~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to qa/client/30_subdir_mount.sh

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -x
 
2
 
 
3
basedir=`echo $0 | sed 's/[^/]*$//g'`.
 
4
. $basedir/common.sh
 
5
 
 
6
client_mount
 
7
mkdir -p $mnt/sub
 
8
echo sub > $mnt/sub/file
 
9
client_umount
 
10
 
 
11
mkdir -p $mnt/1
 
12
mkdir -p $mnt/2
 
13
/bin/mount -t ceph $monhost:/sub $mnt/1
 
14
grep sub $mnt/1/file
 
15
 
 
16
/bin/mount -t ceph $monhost:/ $mnt/2
 
17
grep sub $mnt/2/sub/file
 
18
 
 
19
/bin/umount $mnt/1
 
20
grep sub $mnt/2/sub/file
 
21
 
 
22
/bin/umount $mnt/2