1
0
mirror of https://github.com/ceph/ceph synced 2024-12-22 19:34:30 +00:00
ceph/qa/client/30_subdir_mount.sh
2009-12-01 16:19:19 -08:00

23 lines
369 B
Bash
Executable File

#!/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