mirror of
https://github.com/ceph/ceph
synced 2025-01-02 09:02:34 +00:00
qa: add snaptest-estale.sh
Verify requests withing snapped namespace are directed to the proper MDS. We should never get ESTALE, only ENOENT.
This commit is contained in:
parent
4b6deda441
commit
a4930d9eea
12
qa/workunits/snaptest-estale.sh
Executable file
12
qa/workunits/snaptest-estale.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user