Whamcloud - gitweb
LU-9383 test: use a subdir in sanityn test_71b() 71/26771/2
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 21 Apr 2017 14:16:25 +0000 (09:16 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 22 Apr 2017 01:10:18 +0000 (01:10 +0000)
In sanityn test_71b() use a test specific subdir to avoid changing the
default file striping on the filesystem root.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ic3bfbf24a9f6d00f07392014b48af0c5062756f6
Reviewed-on: https://review.whamcloud.com/26771
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
lustre/tests/sanityn.sh

index 9c944ec..e607822 100644 (file)
@@ -2823,12 +2823,14 @@ test_71b() {
        checkfiemap --test ||
                { skip "error $?: checkfiemap failed" && return; }
 
-       $LFS setstripe -c -1 $DIR1 || error "setstripe failed"
-       dd if=/dev/urandom of=$DIR1/$tfile bs=40K count=1
-       [ "$(facet_fstype ost$(($($GETSTRIPE -i $DIR1/$tfile) + 1)))" = \
+       mkdir -p $DIR1/$tdir
+
+       $LFS setstripe -c -1 $DIR1/$tdir || error "setstripe failed"
+       dd if=/dev/urandom of=$DIR1/$tdir/$tfile bs=40K count=1
+       [ "$(facet_fstype ost$(($($GETSTRIPE -i $DIR1/$tdir/$tfile) + 1)))" = \
                "zfs" ] &&
                skip "ORI-366/LU-1941: FIEMAP unimplemented on ZFS" && return 0
-       checkfiemap $DIR1/$tfile 40960 || error "checkfiemap failed"
+       checkfiemap $DIR1/$tdir/$tfile 40960 || error "checkfiemap failed"
 }
 run_test 71b "check fiemap support for stripecount > 1"