Files
apfstests/tests/generic/304.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

23 lines
705 B
Plaintext

QA output created by 304
Format and mount
Create the original files
Dedupe large single byte file
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Dedupe large empty file
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Dedupe past maximum file size in dest file (should fail)
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Dedupe high offset to low offset
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Dedupe past source file EOF (should fail)
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Dedupe max size at nonzero offset (should fail)
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Dedupe with huge off/len (should fail)
XFS_IOC_FILE_EXTENT_SAME: Invalid argument
Check file creation
file3
7ffffffffffffffe: 61 a
file4
file6