mirror of
https://github.com/ceph/ceph
synced 2024-12-30 15:33:31 +00:00
3aae5ca6fd
/bin/bash is a Linuxism. Other operating systems install bash to different paths. Use /usr/bin/env in shebangs to find bash. Signed-off-by: Alan Somers <asomers@gmail.com>
24 lines
381 B
Bash
Executable File
24 lines
381 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -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
|