mirror of
https://github.com/ceph/ceph
synced 2026-08-01 22:45:39 +00:00
qa: test subdir mounts
This commit is contained in:
parent
057b046402
commit
12482dba16
22
qa/client/30_subdir_mount.sh
Executable file
22
qa/client/30_subdir_mount.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
basedir=`echo $0 | sed 's/[^/]*$//g'`.
|
||||
. $basedir/common.sh
|
||||
|
||||
mount
|
||||
mkdir -p $mnt/sub
|
||||
echo sub > $mnt/sub/file
|
||||
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
|
||||
Loading…
Reference in New Issue
Block a user