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 <ziye.yang@intel.com>
Change-Id: I10c460b4e7760f321fd1a1cd87caa69d2911037b
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472514
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Ziye Yang 2019-10-28 22:15:04 +08:00 committed by Jim Harris
parent 27ef3373a6
commit b577d89297

View File

@ -16,7 +16,7 @@ dev_backend=/dev/ceph
image=/var/tmp/ceph_raw.img image=/var/tmp/ceph_raw.img
dev=/dev/loop200 dev=/dev/loop200
umount $dev || true umount ${dev}p2 || true
losetup -d $dev_backend || true losetup -d $dev_backend || true
# partition osd # partition osd