scripts/ceph: confirm that loop device is removed.

This patch confirms that the rados loop device is removed from the
system, avioding latent errors on the next build.

Change-Id: Ic8d833aeb4808ba9b0bb462a93b65377e4f7616d
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/372327
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Seth Howell 2017-08-02 09:12:36 -07:00 committed by Jim Harris
parent 85206ad06e
commit 7fedfb484f

View File

@ -5,8 +5,11 @@ set -x
base_dir=`pwd`
home_folder=${base_dir}/ceph
image=${base_dir}/../../../output/ceph_raw.img
dev_backend=/dev/ceph
pkill -9 ceph
sleep 3
umount /dev/loop200p2
losetup -d $dev_backend
rm -rf $home_folder
rm $image