summaryrefslogtreecommitdiffstats
path: root/src/ceph/qa/client/30_subdir_mount.sh
blob: 00f4f020e5d267284c80ee57f9d57f59e1ad5a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash -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