diff options
author | Sage Weil <sage@newdream.net> | 2009-11-06 12:12:24 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-06 13:52:12 -0800 |
commit | 12482dba162cb2a593dcb5b107b8ea3d452c73b0 (patch) | |
tree | ed53efb90292add8a3177d5c4a89c5eaa83b2274 /qa/client | |
parent | 057b046402ac68998dec1f9e8f51d9a76861185c (diff) | |
download | ceph-12482dba162cb2a593dcb5b107b8ea3d452c73b0.tar.gz |
qa: test subdir mounts
Diffstat (limited to 'qa/client')
-rwxr-xr-x | qa/client/30_subdir_mount.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/qa/client/30_subdir_mount.sh b/qa/client/30_subdir_mount.sh new file mode 100755 index 00000000000..03a8623b036 --- /dev/null +++ b/qa/client/30_subdir_mount.sh @@ -0,0 +1,22 @@ +#!/bin/bash -x + +basedir=`echo $0 | sed 's/[^/]*$//g'`. +. $basedir/common.sh + +mount +mkdir -p $mnt/sub +echo sub > $mnt/sub/file +umount + +mkdir -p $mnt/1 +mkdir -p $mnt/2 +/bin/mount -t ceph $monhost:/sub $mnt/1 +grep sub $mnt/1/file + +/bin/mount -t ceph $monhost:/ $mnt/2 +grep sub $mnt/2/sub/file + +/bin/umount $mnt/1 +grep sub $mnt/2/sub/file + +/bin/umount $mnt/2 |