mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: exclude largefs fill files from dump tests
The xfsdump/restore tests will see the space filling files and may try to back them up and restore them, consuming huge amounts of time to do (especially when diffing the results). Exclude the space filling files by setting the no dump attributes on them and ensure that xfsdump runs with the -e flag to exclude such files. This also needs a dump filter addition to remove the output that files were skipped, and to decrement the count of files processed by xfsrestore because the inventory still includes excluded files. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Rich Johnston <rjohnston@sgi.com> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
993ff20706
commit
23866802c3
+3
-1
@@ -223,7 +223,9 @@ _filter_test_dir()
|
||||
|
||||
_filter_scratch()
|
||||
{
|
||||
sed -e "s,$SCRATCH_DEV,SCRATCH_DEV,g" -e "s,$SCRATCH_MNT,SCRATCH_MNT,g"
|
||||
sed -e "s,$SCRATCH_DEV,SCRATCH_DEV,g" \
|
||||
-e "s,$SCRATCH_MNT,SCRATCH_MNT,g" \
|
||||
-e "/.use_space/d"
|
||||
}
|
||||
|
||||
# Turn any device in the scratch pool into SCRATCH_DEV
|
||||
|
||||
Reference in New Issue
Block a user