From 9dd2ffd71059abfd11d0cda3be9ef6ca7d17df0e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 17 Aug 2010 14:23:19 -0700 Subject: [PATCH] qa: snaptest-capwb check no snapflush case first --- qa/workunits/snaptest-capwb.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/qa/workunits/snaptest-capwb.sh b/qa/workunits/snaptest-capwb.sh index d293c6f9606..ec1650d2f5c 100755 --- a/qa/workunits/snaptest-capwb.sh +++ b/qa/workunits/snaptest-capwb.sh @@ -3,6 +3,16 @@ set -e mkdir foo + +# make sure mds handles it when the client does not send flushsnap +echo x > foo/x +sync +mkdir foo/.snap/ss +ln foo/x foo/xx +cat foo/.snap/ss/x +rmdir foo/.snap/ss + +# echo a > foo/a echo b > foo/b mkdir foo/.snap/s @@ -18,12 +28,4 @@ echo "oh, it didn't hang! good job." cat foo/b rmdir foo/.snap/s -# make sure mds handles it when the client does not send flushsnap -echo x > foo/x -sync -mkdir foo/.snap/ss -ln foo/x foo/xx -cat foo/.snap/ss/x -rmdir foo/.snap/ss - rm -r foo