Code Review
/
stor4nfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
initial code repo
[stor4nfv.git]
/
src
/
ceph
/
qa
/
client
/
30_subdir_mount.sh
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