Skip to content

Add support to RENAME_EXCHANGE flat to XFS V3

Carlos Maiolino linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Make xfs_vn_rename compliant with renameat2() syscallfs/xfs/xfs_iops.c+10 -51 reply
2/2Add support to RENAME_EXCHANGE flag V3fs/xfs/xfs_inode.c fs/xfs/xfs_inode.h fs/xfs/xfs_iops.c+225 -1114 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Add support to RENAME_EXCHANGE flat to XFS V3

This patchset aims to implement RENAME_EXCHANGE support (from sys_renameat2) to XFS.

For this to be achieved, XFS need to export a rename2() method, which I included in the first patch.

The second patch is the real implementation of the RENAME_EXCHANGE flags, which most of the work I based on xfs_rename().

This patchset passed the xfstests 23, 24 and 25 (specifically for RENAME_EXCHANGE), and I also tested the projectID inheritance problem, where both paths must be under the same projectID to be able to change (I'm going to implement this test into the xfstests too).

In this version of the patch, I tried to use xfs_rename for everything in common between a usual rename and the RENAME_EXCHANGE, using xfs_cross_rename() just for the needed stuff to accomplish RENAME_EXCHANGE requirements (as suggested by Brian).

Carlos Maiolino (2):
Make xfs_vn_rename compliant with renameat2() syscall Add support to RENAME_EXCHANGE flag

 fs/xfs/xfs_inode.c | 325 +++++++++++++++++++++++++++++++++++------------------
 fs/xfs/xfs_inode.h |   7 +-
 fs/xfs/xfs_iops.c  |  15 ++-
 3 files changed, 233 insertions(+), 114 deletions(-)
Signature · 6 lines
2.1.0

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs