mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
225: add additional fiemap-tester run without sync
Chris Mason pointed out that some filesystems were not doing the right thing on fiemap, in the face of delalloc extents. Because test 225 ran with FIEMAP_FLAG_SYNC only, this didn't get caught. Add a runtime option, and run it both ways. Note that this changes defaults for fiemap-tester, so that it no longer calls with FIEMAP_FLAG_SYNC by default, and a new option -S is added to do so. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Alex Elder <aelder@sgi.com>
This commit is contained in:
@@ -60,7 +60,10 @@ _cleanup()
|
||||
}
|
||||
trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
|
||||
echo "fiemap run without preallocation"
|
||||
echo "fiemap run without preallocation, with sync"
|
||||
$here/src/fiemap-tester -q -S -p 0 -r 200 $fiemapfile 2>&1 | tee $fiemaplog
|
||||
|
||||
echo "fiemap run without preallocation or sync"
|
||||
$here/src/fiemap-tester -q -p 0 -r 200 $fiemapfile 2>&1 | tee $fiemaplog
|
||||
|
||||
if grep -q "Operation not supported" $fiemaplog; then
|
||||
|
||||
Reference in New Issue
Block a user