Re: [PATCH 14/15] xfs: introduce new file range commit ioctls

Christoph Hellwig
2024-03-27T11:06:49Z

On Tue, Mar 26, 2024 at 06:56:29PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
>
> 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.

Unless we actually have a good use case for this right now I'd still
prefer to skip it.