diff options
Diffstat (limited to 'qa/client/30_subdir_mount.sh')
-rwxr-xr-x | qa/client/30_subdir_mount.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qa/client/30_subdir_mount.sh b/qa/client/30_subdir_mount.sh new file mode 100755 index 00000000..0bdf2ed1 --- /dev/null +++ b/qa/client/30_subdir_mount.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +set -x + +basedir=`echo $0 | sed 's/[^/]*$//g'`. +. $basedir/common.sh + +client_mount +mkdir -p $mnt/sub +echo sub > $mnt/sub/file +client_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 |