mirror of
https://github.com/ceph/ceph
synced 2024-12-23 20:03:56 +00:00
a1a71471c2
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>
29 lines
568 B
Bash
Executable File
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
|
|
|