mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
ca97fae81f
Test that it works in snaptest-0.sh, and set the flag in all the snap workunits so they continue to function. Signed-off-by: Greg Farnum <greg@inktank.com> Reviewed-by: Loic Dachary <loic@dachary.org>
16 lines
231 B
Bash
Executable File
16 lines
231 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
ceph mds set allow_new_snaps --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"
|