mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
dedupe: fix consistent error message prefixes for dedupe tests
Since we're fixing the xfs_io dedupe command to consistently print the dedupe ioctl name on error, fix the tests too. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
c4288aec3c
commit
959f80ec24
+1
-1
@@ -67,7 +67,7 @@ _compare_range $testdir/file1 0 $testdir/file2 0 "$((blksz * 8))" \
|
||||
echo "(Fail to) dedupe the middle blocks together"
|
||||
free_before=$(stat -f -c '%a' $testdir)
|
||||
_dedupe_range $testdir/file1 $((blksz * 4)) $testdir/file2 \
|
||||
$((blksz * 4)) $((blksz * 2)) >> $seqres.full
|
||||
$((blksz * 4)) $((blksz * 2)) 2>&1 | _filter_dedupe_error
|
||||
_test_cycle_mount
|
||||
free_after=$(stat -f -c '%a' $testdir)
|
||||
echo "freesp changed by $free_before -> $free_after" >> $seqres.full
|
||||
|
||||
@@ -4,7 +4,7 @@ Create the original files
|
||||
5e3501f97fd2669babfcbd3e1972e833 TEST_DIR/test-122/file2
|
||||
Files 1-2 do not match (intentional)
|
||||
(Fail to) dedupe the middle blocks together
|
||||
dedupe: Extents did not match.
|
||||
XFS_IOC_FILE_EXTENT_SAME: Extents did not match.
|
||||
Compare sections
|
||||
35ac8d7917305c385c30f3d82c30a8f6 TEST_DIR/test-122/file1
|
||||
5e3501f97fd2669babfcbd3e1972e833 TEST_DIR/test-122/file2
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ echo "Dedupe the last blocks together"
|
||||
echo "1->2"
|
||||
_dedupe_range $testdir/file1 $blksz $testdir/file2 $blksz 37 >> $seqres.full
|
||||
echo "1->3"
|
||||
_dedupe_range $testdir/file1 $blksz $testdir/file3 $blksz 37 >> $seqres.full
|
||||
_dedupe_range $testdir/file1 $blksz $testdir/file3 $blksz 37 2>&1 | _filter_dedupe_error
|
||||
_test_cycle_mount
|
||||
|
||||
md5sum $testdir/file1 | _filter_test_dir
|
||||
|
||||
@@ -7,7 +7,7 @@ c4fd505be25a0c91bcca9f502b9a8156 TEST_DIR/test-136/file2
|
||||
Dedupe the last blocks together
|
||||
1->2
|
||||
1->3
|
||||
dedupe: Extents did not match.
|
||||
XFS_IOC_FILE_EXTENT_SAME: Extents did not match.
|
||||
c4fd505be25a0c91bcca9f502b9a8156 TEST_DIR/test-136/file1
|
||||
c4fd505be25a0c91bcca9f502b9a8156 TEST_DIR/test-136/file2
|
||||
07ac67bf7f271195442509e79cde4cee TEST_DIR/test-136/file3
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ _pwrite_byte 0x61 0 $sz $testdir/file >> $seqres.full
|
||||
_pwrite_byte 0x61 0 $sz $testdir/otherfile >> $seqres.full
|
||||
|
||||
echo "Dedupe one file to another"
|
||||
_dedupe_range $testdir/file 0 $othertestdir/otherfile 0 $sz >> $seqres.full
|
||||
_dedupe_range $testdir/file 0 $othertestdir/otherfile 0 $sz 2>&1 | _filter_dedupe_error
|
||||
|
||||
filter_md5()
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ Format and mount
|
||||
Mount otherdir
|
||||
Create file
|
||||
Dedupe one file to another
|
||||
dedupe: Invalid cross-device link
|
||||
XFS_IOC_FILE_EXTENT_SAME: Invalid cross-device link
|
||||
Check output
|
||||
2d61aa54b58c2e94403fb092c3dbc027 SCRATCH_MNT/test-374/file
|
||||
2d61aa54b58c2e94403fb092c3dbc027 OTHER_DIR/test-374/otherfile
|
||||
|
||||
Reference in New Issue
Block a user