From b577d892976af871b06b6eaf61f009f9c7c25a69 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Mon, 28 Oct 2019 22:15:04 +0800 Subject: [PATCH] scripts/ceph: unmount the right dev. According to my check, I found that we should umount /dev/loop200p2. The name of the dev used in the start.sh and stop.sh is not same. Then there an issue reported in the script: umount /dev/loop200 umount: /dev/loop200: not mounted. I think that this is an issue happens in our every test. And it may influence the further test. Signed-off-by: Ziye Yang Change-Id: I10c460b4e7760f321fd1a1cd87caa69d2911037b Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472514 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Tomasz Zawadzki Reviewed-by: Ben Walker --- scripts/ceph/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ceph/start.sh b/scripts/ceph/start.sh index 88a93563a..9ecd094fc 100755 --- a/scripts/ceph/start.sh +++ b/scripts/ceph/start.sh @@ -16,7 +16,7 @@ dev_backend=/dev/ceph image=/var/tmp/ceph_raw.img dev=/dev/loop200 -umount $dev || true +umount ${dev}p2 || true losetup -d $dev_backend || true # partition osd