3 [ -z "$bindir" ] && bindir=$PWD # location of init-ceph
4 [ -z "$conf" ] && conf="$basedir/ceph.conf"
5 [ -z "$mnt" ] && mnt="/c"
6 [ -z "$monhost" ] && monhost="cosd0"
10 mydir=`hostname`_`echo $0 | sed 's/\//_/g'`
14 /bin/mount -t ceph $monhost:/ $mnt
20 # look for VFS complaints
21 if dmesg | tail -n 50 | grep -c "VFS: Busy inodes" ; then
22 echo "looks like we left inodes pinned"
29 $bindir/init-ceph -c $conf start ${1}
34 $bindir/init-ceph -c $conf stop ${1}
39 $bindir/init-ceph -c $conf restart ${1}
44 $bindir/ceph -c $conf $*
50 test -d $mnt/$mydir && rm -r $mnt/$mydir