]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
misc: change xfs_io -c swapext to exchangerange
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jun 2024 20:54:34 +0000 (13:54 -0700)
committerZorro Lang <zlang@kernel.org>
Fri, 21 Jun 2024 16:38:24 +0000 (00:38 +0800)
commit5cb01028c5d1fb80b5c1878e8e4baa78a8bfb9f9
treebe69cfbac08ced52ccd82df57cc60a08bab05fcc
parenteb5cfb9bf04b8e78a6b5305c6788276d2bf8c6b5
misc: change xfs_io -c swapext to exchangerange

Update the swapext command to use exchangerange as part of severing the
connection between the two ioctls.

Flags changed:

-h (only exchange written extents) is now -w.

-a (atomic mode) is always enabled now.

-e (to eof) is now the default; -l (length) disables this flag.

-u (unconditonal swap) is inverted to -c (commit only if fresh).

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
29 files changed:
tests/generic/712
tests/generic/713
tests/generic/713.out
tests/generic/714
tests/generic/714.out
tests/generic/715
tests/generic/715.out
tests/generic/716
tests/generic/717
tests/generic/717.out
tests/generic/718
tests/generic/718.out
tests/generic/719
tests/generic/720
tests/generic/721
tests/generic/722
tests/generic/723
tests/generic/724
tests/generic/725
tests/generic/726
tests/generic/727
tests/xfs/300
tests/xfs/443
tests/xfs/790
tests/xfs/790.out
tests/xfs/791
tests/xfs/791.out
tests/xfs/792
tests/xfs/795