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