X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Freplay-single.sh;h=726d77372e3b3d13beeda8efb88131e39d09f4a8;hp=d588042141c9435bcae45d8dd2c51d6cd084c3a8;hb=ca754ec8b43416d41bbd401bad7d9f93746fb867;hpb=d908fe9686bc1e583da7434856d9c06e6cbbc4fd diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index d588042..726d773 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -473,7 +473,7 @@ test_20b() { # bug 10480 dd if=/dev/zero of=$DIR/$tfile bs=4k count=10000 & while [ ! -e $DIR/$tfile ] ; do - usleep 60 # give dd a chance to start + sleep 0.01 # give dd a chance to start done $LFS getstripe $DIR/$tfile || error "$LFS getstripe $DIR/$tfile failed" @@ -4894,16 +4894,19 @@ test_134() { pool_add pool_134 pool_add_targets pool_134 1 1 - mkdir $DIR/$tdir - $LFS setstripe -p pool_134 $DIR/$tdir + mkdir -p $DIR/$tdir/{A,B} + $LFS setstripe -p pool_134 $DIR/$tdir/A + $LFS setstripe -E EOF -p pool_134 $DIR/$tdir/B replay_barrier mds1 - touch $DIR/$tdir/$tfile + touch $DIR/$tdir/A/$tfile || error "touch non-pfl file failed" + touch $DIR/$tdir/B/$tfile || error "touch pfl failed" fail mds1 - [ -f $DIR/$tdir/$tfile ] || error "file does not exist" + [ -f $DIR/$tdir/A/$tfile ] || error "non-pfl file does not exist" + [ -f $DIR/$tdir/B/$tfile ] || error "pfl file does not exist" } run_test 134 "replay creation of a file created in a pool"