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

19 lines
241 B
Bash
Executable File

#!/bin/sh -x
set -e
ceph fs set cephfs 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