mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: filter whitespace in 128 and 132
Seems either I have a different lsattr version, or different mount points cause differences in the golden output. Send the lsattr output through the whitespaces filter so that it works everywhere. The lsattr output /does/ change depending on mountpoints. Ick. I'd actually changed it to the long format output because line length in the short format changes every time the flags change. Signed-off-by: Christoph Hellwig <hch@lst.de> [darrick.wong@oracle.com: update changelog] Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
+5
-5
@@ -87,32 +87,32 @@ for i in `seq 2 $nr`; do
|
||||
done
|
||||
_test_remount
|
||||
free_blocks1=$(stat -f "$testdir" -c '%f')
|
||||
lsattr -l $testdir/ | _filter_test_dir
|
||||
lsattr -l $testdir/ | _filter_test_dir | _filter_spaces
|
||||
|
||||
echo "funshare part of a file"
|
||||
"$XFS_IO_PROG" -f -c "falloc 0 $((sz / 2))" "$testdir/file2"
|
||||
_test_remount
|
||||
lsattr -l $testdir/ | _filter_test_dir
|
||||
lsattr -l $testdir/ | _filter_test_dir | _filter_spaces
|
||||
|
||||
echo "funshare some of the copies"
|
||||
"$XFS_IO_PROG" -f -c "falloc 0 $sz" "$testdir/file2"
|
||||
"$XFS_IO_PROG" -f -c "falloc 0 $sz" "$testdir/file3"
|
||||
_test_remount
|
||||
free_blocks2=$(stat -f "$testdir" -c '%f')
|
||||
lsattr -l $testdir/ | _filter_test_dir
|
||||
lsattr -l $testdir/ | _filter_test_dir | _filter_spaces
|
||||
|
||||
echo "funshare the rest of the files"
|
||||
"$XFS_IO_PROG" -f -c "falloc 0 $sz" "$testdir/file4"
|
||||
"$XFS_IO_PROG" -f -c "falloc 0 $sz" "$testdir/file1"
|
||||
_test_remount
|
||||
free_blocks3=$(stat -f "$testdir" -c '%f')
|
||||
lsattr -l $testdir/ | _filter_test_dir
|
||||
lsattr -l $testdir/ | _filter_test_dir | _filter_spaces
|
||||
|
||||
echo "Rewrite the original file"
|
||||
_pwrite_byte 0x65 0 $sz "$testdir/file1" >> "$seqres.full"
|
||||
_test_remount
|
||||
free_blocks4=$(stat -f "$testdir" -c '%f')
|
||||
lsattr -l $testdir/ | _filter_test_dir
|
||||
lsattr -l $testdir/ | _filter_test_dir | _filter_spaces
|
||||
#echo $free_blocks0 $free_blocks1 $free_blocks2 $free_blocks3 $free_blocks4
|
||||
|
||||
_within_tolerance "free blocks after reflinking" $free_blocks1 $((free_blocks0 - blks)) $margin -v
|
||||
|
||||
Reference in New Issue
Block a user