Code Review
/
stor4nfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
initial code repo
[stor4nfv.git]
/
src
/
ceph
/
qa
/
workunits
/
fs
/
snaps
/
snaptest-estale.sh
diff --git a/src/ceph/qa/workunits/fs/snaps/snaptest-estale.sh
b/src/ceph/qa/workunits/fs/snaps/snaptest-estale.sh
new file mode 100755
(executable)
index 0000000..
1465a35
--- /dev/null
+++ b/
src/ceph/qa/workunits/fs/snaps/snaptest-estale.sh
@@ -0,0
+1,15
@@
+#!/bin/sh -x
+
+ceph mds set allow_new_snaps true --yes-i-really-mean-it
+
+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
+
+rmdir .snap/foo
+
+echo "OK"