mirror of
https://github.com/ceph/ceph
synced 2025-01-29 14:34:40 +00:00
init-rbdmap: fix error on stop rbdmap
Avoid an error on stop service if many /dev/rbd* exist. Signed-off-by: Laurent Barbe <laurent@ksperis.com>
This commit is contained in:
parent
17859e1477
commit
b419924b18
@ -68,7 +68,7 @@ do_unmap() {
|
||||
umount $MNT
|
||||
done
|
||||
# Unmap all rbd device
|
||||
if [ -b /dev/rbd[0-9]* ]; then
|
||||
if ls /dev/rbd[0-9]* >/dev/null 2>&1; then
|
||||
for DEV in /dev/rbd[0-9]*; do
|
||||
log_progress_msg $DEV
|
||||
rbd unmap $DEV
|
||||
|
Loading…
Reference in New Issue
Block a user