[dm-devel] [PATCH] Add events for dm suspend / resume

Hannes Reinecke hare at suse.de
Mon May 29 08:04:09 UTC 2006


Hi all,

currently device-mapper doesn't play well with udev & hotplug events.
The event is sent out on the initial device create; only at this stage
the device is not usable. Only after one did a 'table load' and a
'resume' the device is actually accessible from userland.
And thus it is purely coincidental if any 'dmsetup' call from udev
(which is triggered by the device create events) will return any useful
data.

This patch adds two additional events 'online' and 'offline' which get
send after 'resume' and 'suspend', respectively.
With this patch udev can hook on the 'online' event and will always get
valid data via the dmsetup call.

Comments etc. are welcome.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke			hare at suse.de
SuSE Linux Products GmbH		S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dm-suspend-resume-events
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20060529/e2349ee7/attachment.ksh>


More information about the dm-devel mailing list