ceph/qa/workunits/fs/snaps/snaptest-estale.sh
Yan, Zheng 4580cf5d79 qa/workunits/snaps: move snap tests into fs sub-directory
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-11-09 11:09:22 +08:00

16 lines
236 B
Bash
Executable File

#!/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"