mirror of
https://github.com/ceph/ceph
synced 2024-12-11 22:18:18 +00:00
a4930d9eea
Verify requests withing snapped namespace are directed to the proper MDS. We should never get ESTALE, only ENOENT.
12 lines
176 B
Bash
Executable File
12 lines
176 B
Bash
Executable File
#!/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 |