Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 32655 Details for
Bug 52926
loop device removal fails in certain setups
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Revised fix
dm_deactivate.sh (text/plain), 485 bytes, created by
Marc Ballarin
on 2004-06-04 12:44:06 UTC
(
hide
)
Description:
Revised fix
Filename:
MIME Type:
Creator:
Marc Ballarin
Created:
2004-06-04 12:44:06 UTC
Size:
485 bytes
patch
obsolete
>if [ -f "/sbin/dmsetup" ] >then > # get a list of all dm-mappings on top of loop devices. Based on > # the assumption that loop devices always use major number 7 > for i in `/sbin/dmsetup deps | grep '(7,' | awk '{print substr($1,1,length($1)-1)}'` > do > # get minor number of loop device > LN=`/sbin/dmsetup deps ${i} | awk '{print substr($5,1,length($5)-1)}'` > umount /dev/mapper/${i} &>/dev/null; true > /sbin/dmsetup remove ${i} > /sbin/losetup -d /dev/loop${LN} > unset LN > done >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 52926
: 32655