mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/15[78]: fix error messages in the golden output
Fix the error messages in the golden output for generic/15[78], which examine the responses to invalid inputs as returned by the clone/clone_range/extent_same ioctls. Also fix a filtering omission. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
26aad2e053
commit
11dd9959b8
+13
-5
@@ -76,10 +76,18 @@ mkdir "$TESTDIR1/dir1"
|
||||
seq 1 $((2 * BLKSZ / 250)) | while read f; do
|
||||
touch "$TESTDIR1/dir1/$f"
|
||||
done
|
||||
mknod "$TESTDIR1/dev1" b 8 0
|
||||
mknod "$TESTDIR1/dev1" c 1 3
|
||||
mkfifo "$TESTDIR1/fifo1"
|
||||
sync
|
||||
|
||||
_filter_enotty() {
|
||||
sed -e 's/Inappropriate ioctl for device/Invalid argument/g'
|
||||
}
|
||||
|
||||
_filter_eperm() {
|
||||
sed -e 's/Permission denied/Invalid argument/g'
|
||||
}
|
||||
|
||||
echo "Try cross-device dedupe"
|
||||
_dedupe_range "$TESTDIR1/file1" 0 "$TESTDIR2/file1" 0 $BLKSZ
|
||||
|
||||
@@ -96,16 +104,16 @@ echo "Try to dedupe a dir"
|
||||
_dedupe_range "$TESTDIR1/dir1" 0 "$TESTDIR1/file2" 0 $BLKSZ
|
||||
|
||||
echo "Try to dedupe a device"
|
||||
_dedupe_range "$TESTDIR1/dev1" 0 "$TESTDIR1/file2" 0 $BLKSZ
|
||||
_dedupe_range "$TESTDIR1/dev1" 0 "$TESTDIR1/file2" 0 $BLKSZ 2>&1 | _filter_enotty
|
||||
|
||||
echo "Try to dedupe to a dir"
|
||||
_dedupe_range "$TESTDIR1/file1" 0 "$TESTDIR1/dir1" 0 $BLKSZ
|
||||
_dedupe_range "$TESTDIR1/file1" 0 "$TESTDIR1/dir1" 0 $BLKSZ 2>&1 | _filter_test_dir
|
||||
|
||||
echo "Try to dedupe to a device"
|
||||
_dedupe_range "$TESTDIR1/file1" 0 "$TESTDIR1/dev1" 0 $BLKSZ
|
||||
_dedupe_range "$TESTDIR1/file1" 0 "$TESTDIR1/dev1" 0 $BLKSZ 2>&1 | _filter_eperm
|
||||
|
||||
echo "Try to dedupe to a fifo"
|
||||
_dedupe_range "$TESTDIR1/file1" 0 "$TESTDIR1/fifo1" 0 $BLKSZ -n
|
||||
_dedupe_range "$TESTDIR1/file1" 0 "$TESTDIR1/fifo1" 0 $BLKSZ -n 2>&1 | _filter_eperm
|
||||
|
||||
echo "Try to dedupe an append-only file"
|
||||
_dedupe_range "$TESTDIR1/file1" 0 "$TESTDIR1/file3" 0 $BLKSZ -a >> "$seqres.full"
|
||||
|
||||
Reference in New Issue
Block a user