ceph/qa/mds/rename/dir_pri_nul.sh
Sage Weil a1a71471c2 qa: test witness subtree adjustment
This exercises the mds at least; we don't have a way to verify mds
behavior currently.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-08 11:22:26 -07:00

29 lines
568 B
Bash
Executable File

#!/bin/sh -ex
# dir: srcdn=destdn
mkdir mnt/a/dir1
mv mnt/a/dir1 mnt/a/dir1.renamed
# dir: diff
mkdir mnt/a/dir2
mv mnt/a/dir2 mnt/b/dir2
# dir: diff, child subtree on target
mkdir -p mnt/a/dir3/child/foo
./ceph mds tell 0 export_dir /a/dir3/child 1
sleep 5
mv mnt/a/dir3 mnt/b/dir3
# dir: diff, child subtree on other
mkdir -p mnt/a/dir4/child/foo
./ceph mds tell 0 export_dir /a/dir4/child 2
sleep 5
mv mnt/a/dir4 mnt/b/dir4
# dir: witness subtree adjustment
mkdir -p mnt/a/dir5/1/2/3/4
./ceph mds tell 0 export_dir /a/dir5/1/2/3 2
sleep 5
mv mnt/a/dir5 mnt/b