[GIT PULL 2/7] xfsprogs: atomic file content commits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrey,

Please pull this branch with changes for xfsprogs for 6.11-rc1.

As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts.  Please let me know if you
encounter any problems.

The following changes since commit 6611215e3d441a5e6d9d6a2f85c5ea1bf573a8d0:

xfs: update the pag for the last AG at recovery time (2024-10-31 15:45:04 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfsprogs-dev.git tags/atomic-file-commits-6.12_2024-10-31

for you to fetch changes up to 1cf7afbc0c8bcb450ebc3acab7616c9da49087de:

xfs_io: add atomic file update commands to exercise file commit range (2024-10-31 15:45:04 -0700)

----------------------------------------------------------------
xfsprogs: atomic file content commits [v31.3 2/7]

This series creates XFS_IOC_START_COMMIT and XFS_IOC_COMMIT_RANGE ioctls
to perform the exchange only if the target file has not been changed
since a given sampling point.

This new functionality uses the mechanism underlying EXCHANGE_RANGE to
stage and commit file updates such that reader programs will see either
the old contents or the new contents in their entirety, with no chance
of torn writes.  A successful call completion guarantees that the new
contents will be seen even if the system fails.  The pair of ioctls
allows userspace to perform what amounts to a compare and exchange
operation on entire file contents.

Note that there are ongoing arguments in the community about how best to
implement some sort of file data write counter that nfsd could also use
to signal invalidations to clients.  Until such a thing is implemented,
this patch will rely on ctime/mtime updates.

Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>

----------------------------------------------------------------
Darrick J. Wong (7):
man: document file range commit ioctls
libfrog: add support for commit range ioctl family
libxfs: remove unused xfs_inode fields
libxfs: validate inumber in xfs_iget
xfs_fsr: port to new file exchange library function
xfs_io: add a commitrange option to the exchangerange command
xfs_io: add atomic file update commands to exercise file commit range

fsr/xfs_fsr.c                     |  74 ++++----
include/xfs_inode.h               |   4 -
io/exchrange.c                    | 390 +++++++++++++++++++++++++++++++++++++-
io/io.h                           |   4 +
io/open.c                         |  27 ++-
libfrog/file_exchange.c           | 194 +++++++++++++++++++
libfrog/file_exchange.h           |  10 +
libxfs/inode.c                    |   2 +-
man/man2/ioctl_xfs_commit_range.2 | 296 +++++++++++++++++++++++++++++
man/man2/ioctl_xfs_fsgeometry.2   |   2 +-
man/man2/ioctl_xfs_start_commit.2 |   1 +
man/man8/xfs_io.8                 |  35 +++-
12 files changed, 983 insertions(+), 56 deletions(-)
create mode 100644 man/man2/ioctl_xfs_commit_range.2
create mode 100644 man/man2/ioctl_xfs_start_commit.2





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux