diff options
Diffstat (limited to 'src/ceph/qa/workunits/fs/snaps/snaptest-intodir.sh')
-rwxr-xr-x | src/ceph/qa/workunits/fs/snaps/snaptest-intodir.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ceph/qa/workunits/fs/snaps/snaptest-intodir.sh b/src/ceph/qa/workunits/fs/snaps/snaptest-intodir.sh new file mode 100755 index 0000000..729baa1 --- /dev/null +++ b/src/ceph/qa/workunits/fs/snaps/snaptest-intodir.sh @@ -0,0 +1,24 @@ +#!/bin/sh -ex + +ceph mds set allow_new_snaps true --yes-i-really-mean-it + +# this tests fix for #1399 +mkdir foo +mkdir foo/.snap/one +touch bar +mv bar foo +sync +# should not crash :) + +mkdir baz +mkdir baz/.snap/two +mv baz foo +sync +# should not crash :) + +# clean up. +rmdir foo/baz/.snap/two +rmdir foo/.snap/one +rm -r foo + +echo OK
\ No newline at end of file |