numam-spdk/scripts/ceph/stop.sh
Daniel Verkamp ad14da9eab scripts/ceph: move all temp files to /var/tmp/ceph
The current test scripts created a lot of data inside the SPDK repo;
move this to /var/tmp/ceph (where the image is already created) to avoid
polluting the repo working copy.

Change-Id: If895baecfa7fef80733f0d629f091a479a634a52
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/401647
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2018-02-28 10:06:27 -05:00

14 lines
191 B
Bash
Executable File

#!/usr/bin/env bash
set -x
base_dir=/var/tmp/ceph
image=${base_dir}/ceph_raw.img
dev_backend=/dev/ceph
pkill -9 ceph
sleep 3
umount /dev/loop200p2
losetup -d $dev_backend
rm -rf $base_dir