]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: introduce new file range commit ioctls
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:43 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 31 Jul 2024 01:46:45 +0000 (18:46 -0700)
commit930543b4ea19feedd9a19f43fb9adaa2f9b89b98
tree3c0374e6790de668ea570432e2bc041fc9738940
parent9b021818add5273f54e810b501c1662a1b56adb3
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>
libxfs/xfs_fs.h