[PATCH] xfstests 273: Create lost+found to pass _check_scratch_fs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fsck.extN will complain lost+found is missing and fail 273.
So create lost+found explicitly after removing everything in
$SCRATCH_MNT.

Signed-off-by: Eryu Guan <guaneryu@xxxxxxxxx>
---
 273 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/273 b/273
index 2965132..9ecb2d3 100755
--- a/273
+++ b/273
@@ -36,6 +36,7 @@ _cleanup()
 {
 	cd /
 	rm -rf $SCRATCH_MNT/* $tmp.*
+	mkdir -p $SCRATCH_MNT/lost+found
 	_scratch_unmount
 }
 
@@ -107,6 +108,7 @@ _do_workload()
 	_pid=1
 	
 	rm -rf $SCRATCH_MNT/*
+	mkdir -p $SCRATCH_MNT/lost+found
 
 	_threads_set
 	_file_create
-- 
1.7.8.2

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux