Closed GoogleCodeExporter closed 9 years ago
Here is the proposed quick fix for zumastor:
Index: zumastor/lib/zumastor/common
===================================================================
--- zumastor/lib/zumastor/common (revision 1408)
+++ zumastor/lib/zumastor/common (working copy)
@@ -440,7 +440,13 @@ function remove_device {
local -r name=$(volume_name $vol $id)
local output
- dmsetup remove $name || return 1
+ # return if the device does not exist
+ dmsetup info $name >& /dev/null || return 0
+ for i in `seq 5`; do
+ dmsetup remove $name && return 0
+ sleep 1
+ done
+ return 1
}
function umount_remove_device {
Original comment by jiahotc...@gmail.com
on 20 Feb 2008 at 11:35
Looks good. Please add a comment in the code linking to the issue
this fixes, and commit.
Original comment by daniel.r...@gmail.com
on 20 Feb 2008 at 11:43
Fixed by r1411, I believe.
Original comment by daniel.r...@gmail.com
on 26 Feb 2008 at 12:48
Original issue reported on code.google.com by
jiahotc...@gmail.com
on 20 Feb 2008 at 8:40