From 2870ed7687d40520f1d94b0e7d66507450a6a506 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Fri, 21 Apr 2017 09:16:25 -0500 Subject: [PATCH] LU-9383 test: use a subdir in sanityn test_71b() 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 Change-Id: Ic3bfbf24a9f6d00f07392014b48af0c5062756f6 Reviewed-on: https://review.whamcloud.com/26771 Tested-by: Jenkins Reviewed-by: Andreas Dilger Reviewed-by: James Nunez --- lustre/tests/sanityn.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 9c944ec..e607822 100644 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -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" -- 1.8.3.1