ceph/qa/client/30_subdir_mount.sh

23 lines
369 B
Bash
Raw Normal View History

2009-11-06 20:12:24 +00:00
#!/bin/bash -x
basedir=`echo $0 | sed 's/[^/]*$//g'`.
. $basedir/common.sh
2009-12-02 00:18:23 +00:00
client_mount
2009-11-06 20:12:24 +00:00
mkdir -p $mnt/sub
echo sub > $mnt/sub/file
2009-12-02 00:18:23 +00:00
client_umount
2009-11-06 20:12:24 +00:00
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