ceph/qa/workunits/fs/snaps/snaptest-dir-rename.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

19 lines
235 B
Bash
Executable File

#!/bin/sh -x
set -e
ceph mds set allow_new_snaps true --yes-i-really-mean-it
#
# make sure we keep an existing dn's seq
#
mkdir a
mkdir .snap/bar
mkdir a/.snap/foo
rmdir a/.snap/foo
rmdir a
stat .snap/bar/a
rmdir .snap/bar
echo OK