X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Freplay-single.sh;h=2dfe615ce78aba388da4e1ab5c435ab81fead69c;hb=5a914ccee212c8bf4920145a6b81fad83688e1a0;hp=3068765896948614c0b6a9b3a8e62c901dc27f88;hpb=bd6cce5b0d88523e6ab629a60b776347f9212cd9;p=fs%2Flustre-release.git diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 3068765..2dfe615 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -2914,6 +2914,28 @@ test_100b() { } run_test 100b "DNE: create striped dir, fail MDT0" +test_101() { #LU-5648 + mkdir -p $DIR/$tdir/d1 + mkdir -p $DIR/$tdir/d2 + touch $DIR/$tdir/file0 + num=1000 + + replay_barrier $SINGLEMDS + for i in $(seq $num) ; do + echo test$i > $DIR/$tdir/d1/file$i + done + + fail_abort $SINGLEMDS + for i in $(seq $num) ; do + touch $DIR/$tdir/d2/file$i + test -s $DIR/$tdir/d2/file$i && + ls -al $DIR/$tdir/d2/file$i && error "file$i's size > 0" + done + + rm -rf $DIR/$tdir +} +run_test 101 "Shouldn't reassign precreated objs to other files after recovery" + complete $SECONDS check_and_cleanup_lustre exit_status