[Pkg-utopia-maintainers] Bug#545032: Bug#545032: Bug#545032: Bug#545032: Bug#545032: Bug#545032: devicekit-disks - Handles add actions of dm devices

Bastian Blank waldi at debian.org
Sun Oct 18 11:57:36 UTC 2009


On Fri, Oct 16, 2009 at 11:55:55PM +0200, Bastian Blank wrote:
> On Fri, Oct 16, 2009 at 11:43:52PM +0200, Bastian Blank wrote:
> > Okay. What about point 1 of my list? This still probes device-mapper
> > devices.

| - Probe for partitions, aka open, on all block devices with a (small)
|   blacklist. This can be only allowed with a whitelist, as several
|   device types may not be queried from add events or not at all, like
|   several dm subtypes.

> This patch should use an apropriate whitelist.

Actually it lacks some safe device types.

--- a/data/95-devkit-disks.rules
+++ b/data/95-devkit-disks.rules
@@ -12,7 +12,7 @@
 #
 
 # skip rules for inappropriate block devices
-KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*", GOTO="probe_parttable_end"
+KERNEL!="hd*|sd*|sr*|cciss*|dasd*|mmcblk*|mspblk*", GOTO="probe_parttable_end"
 
 # never access non-cdrom removable ide devices, the drivers are causing event loops on open()
 KERNEL=="hd*[!0-9]", ATTR{removable}=="1", SUBSYSTEMS=="ide", ATTRS{media}=="disk|floppy", GOTO="probe_parttable_end"

And while you are at it, add dasd*|cciss* to the presentation list.

Bastian

-- 
You!  What PLANET is this!
		-- McCoy, "The City on the Edge of Forever", stardate 3134.0





More information about the Pkg-utopia-maintainers mailing list