ceph/qa/workunits/snaps/snaptest-dir-rename.sh

19 lines
230 B
Bash
Raw Normal View History

2010-08-25 19:05:19 +00:00
#!/bin/sh -x
set -e
ceph mds set allow_new_snaps --yes-i-really-mean-it
2010-08-25 19:05:19 +00:00
#
# 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