mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
1300cbc873
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>
23 lines
705 B
Plaintext
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
|