ceph/qa/workunits/snaps/snaptest-intodir.sh
Sage Weil ce00564049 qa: test rename into snapped dir
Tests fix for #1399.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-17 09:07:08 -07:00

22 lines
264 B
Bash
Executable File

#!/bin/sh -ex
# 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