From a4930d9eea78a4b35ddb9629ec8cd693d2b52c1a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 17 Aug 2010 11:37:42 -0700 Subject: [PATCH] qa: add snaptest-estale.sh Verify requests withing snapped namespace are directed to the proper MDS. We should never get ESTALE, only ENOENT. --- qa/workunits/snaptest-estale.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 qa/workunits/snaptest-estale.sh diff --git a/qa/workunits/snaptest-estale.sh b/qa/workunits/snaptest-estale.sh new file mode 100755 index 00000000000..29699fc73e3 --- /dev/null +++ b/qa/workunits/snaptest-estale.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +mkdir .snap/foo + +echo "We want ENOENT, not ESTALE, here." +for f in `seq 1 100` +do + stat .snap/foo/$f 2>&1 | grep 'No such file' +done +echo "Pass!" + +rmdir .snap/foo \ No newline at end of file