2011-06-08 03:49:45 +00:00
|
|
|
#!/bin/sh -ex
|
|
|
|
|
|
|
|
# dir: srcdn=destdn
|
2011-07-05 22:57:26 +00:00
|
|
|
mkdir ./a/dir1
|
|
|
|
mv ./a/dir1 ./a/dir1.renamed
|
2011-06-08 03:49:45 +00:00
|
|
|
|
|
|
|
# dir: diff
|
2011-07-05 22:57:26 +00:00
|
|
|
mkdir ./a/dir2
|
|
|
|
mv ./a/dir2 ./b/dir2
|
2011-06-08 03:49:45 +00:00
|
|
|
|
|
|
|
# dir: diff, child subtree on target
|
2011-07-05 22:57:26 +00:00
|
|
|
mkdir -p ./a/dir3/child/foo
|
|
|
|
$CEPH_TOOL mds tell 0 export_dir /a/dir3/child 1
|
2011-06-08 03:49:45 +00:00
|
|
|
sleep 5
|
2011-07-05 22:57:26 +00:00
|
|
|
mv ./a/dir3 ./b/dir3
|
2011-06-08 03:49:45 +00:00
|
|
|
|
|
|
|
# dir: diff, child subtree on other
|
2011-07-05 22:57:26 +00:00
|
|
|
mkdir -p ./a/dir4/child/foo
|
|
|
|
$CEPH_TOOL mds tell 0 export_dir /a/dir4/child 2
|
2011-06-08 03:49:45 +00:00
|
|
|
sleep 5
|
2011-07-05 22:57:26 +00:00
|
|
|
mv ./a/dir4 ./b/dir4
|
2011-06-08 18:22:26 +00:00
|
|
|
|
|
|
|
# dir: witness subtree adjustment
|
2011-07-05 22:57:26 +00:00
|
|
|
mkdir -p ./a/dir5/1/2/3/4
|
|
|
|
$CEPH_TOOL mds tell 0 export_dir /a/dir5/1/2/3 2
|
2011-06-08 18:22:26 +00:00
|
|
|
sleep 5
|
2011-07-05 22:57:26 +00:00
|
|
|
mv ./a/dir5 ./b
|
2011-06-08 18:22:26 +00:00
|
|
|
|