]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: introduce new file range commit ioctls
authorDarrick J. Wong <djwong@kernel.org>
Wed, 7 Aug 2024 22:54:05 +0000 (15:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Aug 2024 23:23:11 +0000 (16:23 -0700)
commit4fb115adc10b70b51de84f0839e047732044ecf5
tree19cf0a42b8697f7e07b305276bff492ad5f34d32
parent7cd498ccc53e4afa9e4af039232d54b4e84982c9
xfs: introduce new file range commit ioctls

This patch introduces two more new ioctls to manage atomic updates to
file contents -- XFS_IOC_START_COMMIT and XFS_IOC_COMMIT_RANGE.  The
commit mechanism here is exactly the same as what XFS_IOC_EXCHANGE_RANGE
does, but with the additional requirement that file2 cannot have changed
since some sampling point.  The start-commit ioctl performs the sampling
of file attributes.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_fs.h
fs/xfs/xfs_exchrange.c
fs/xfs/xfs_exchrange.h
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_trace.h