summaryrefslogtreecommitdiffstats
path: root/src/ceph/qa/client/common.sh
diff options
context:
space:
mode:
authorQiaowei Ren <qiaowei.ren@intel.com>2018-03-01 14:38:11 +0800
committerQiaowei Ren <qiaowei.ren@intel.com>2018-03-01 14:38:11 +0800
commit7da45d65be36d36b880cc55c5036e96c24b53f00 (patch)
treed4f944eb4f8f8de50a9a7584ffa408dc3a3185b2 /src/ceph/qa/client/common.sh
parent691462d09d0987b47e112d6ee8740375df3c51b2 (diff)
remove ceph code
This patch removes initial ceph code, due to license issue. Change-Id: I092d44f601cdf34aed92300fe13214925563081c Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Diffstat (limited to 'src/ceph/qa/client/common.sh')
-rw-r--r--src/ceph/qa/client/common.sh58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/ceph/qa/client/common.sh b/src/ceph/qa/client/common.sh
deleted file mode 100644
index d06368e..0000000
--- a/src/ceph/qa/client/common.sh
+++ /dev/null
@@ -1,58 +0,0 @@
-
-# defaults
-[ -z "$bindir" ] && bindir=$PWD # location of init-ceph
-[ -z "$conf" ] && conf="$basedir/ceph.conf"
-[ -z "$mnt" ] && mnt="/c"
-[ -z "$monhost" ] && monhost="cosd0"
-
-set -e
-
-mydir=`hostname`_`echo $0 | sed 's/\//_/g'`
-
-client_mount()
-{
- /bin/mount -t ceph $monhost:/ $mnt
-}
-
-client_umount()
-{
- /bin/umount $mnt
- # look for VFS complaints
- if dmesg | tail -n 50 | grep -c "VFS: Busy inodes" ; then
- echo "looks like we left inodes pinned"
- exit 1
- fi
-}
-
-ceph_start()
-{
- $bindir/init-ceph -c $conf start ${1}
-}
-
-ceph_stop()
-{
- $bindir/init-ceph -c $conf stop ${1}
-}
-
-ceph_restart()
-{
- $bindir/init-ceph -c $conf restart ${1}
-}
-
-ceph_command()
-{
- $bindir/ceph -c $conf $*
-}
-
-client_enter_mydir()
-{
- pushd .
- test -d $mnt/$mydir && rm -r $mnt/$mydir
- mkdir $mnt/$mydir
- cd $mnt/$mydir
-}
-
-client_leave_mydir()
-{
- popd
-}