Files
apfstests/tests/generic/158.out
T
Eryu Guan 1300cbc873 generic/158,304: filter dedupe error message
Kernel commit 22725ce4e4a0 ("vfs: fix isize/pos/len checks for reflink &
dedupe") added more checks on reflink and dedupe, rejected dedupe past
EOF early and explicitly, and causes generic/158 and generic/304 to fail.

  Try dedupe from past EOF
 -dedupe: Invalid argument
 +XFS_IOC_FILE_EXTENT_SAME: Invalid argument
  Try dedupe to past EOF, destination offset beyond EOF

Also there's an xfsprogs patch from Darrick ("xfs_io: prefix dedupe
command error messages consistently") to change all xfs_io dedupe
error message prefixes to "XFS_IOC_FILE_EXTENT_SAME".

So introduce a new _filter_dedupe_error, change all "dedupe" prefix
to XFS_IOC_FILE_EXTENT_SAME, make tests pass with both old/new
kernel & userspace.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-01-06 16:53:10 +08:00

28 lines
912 B
Plaintext

QA output created by 158
Format and mount
Create the original files
Try cross-device dedupe
XFS_IOC_FILE_EXTENT_SAME: Invalid cross-device link
Try unaligned dedupe
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Try overlapping dedupe
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Try dedupe from past EOF
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Try dedupe to past EOF, destination offset beyond EOF
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Try dedupe to past EOF, destination offset behind EOF
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Try to dedupe a dir
XFS_IOC_FILE_EXTENT_SAME: Is a directory
Try to dedupe a device
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Try to dedupe to a dir
TEST_DIR/test-158/dir1: Is a directory
Try to dedupe to a device
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Try to dedupe to a fifo
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Try to dedupe an append-only file
Dedupe two files