From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alasdair G Kergon Date: Tue, 11 Dec 2007 19:13:21 +0000 Subject: Re: [dm-devel] [PATCH] improve atomicity of device creation Message-Id: <20071211191321.GX22311@agk.fab.redhat.com> List-Id: References: <1197389316.25082.27.camel@quest> <20071211162538.GR22311@agk.fab.redhat.com> <1197391333.25082.31.camel@quest> <20071211170352.GS22311@agk.fab.redhat.com> <1197393526.25082.36.camel@quest> <3ae72650712110951h477d1fc0hd9abd39f069da105@mail.gmail.com> <20071211180829.GW22311@agk.fab.redhat.com> <1197397532.2579.26.camel@lov.site> In-Reply-To: <1197397532.2579.26.camel@lov.site> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Kay Sievers Cc: device-mapper development , linux-hotplug-devel@lists.sourceforge.net On Tue, Dec 11, 2007 at 07:25:32PM +0100, Kay Sievers wrote: > Should we create an additional new iocl to request the device node > creation, or add that call to an existing one? Currently we get an ADD from alloc_dev -> add_disk -> register_disk. But the device is not usable until the dm resume ioctl, so ideally that one should be ignored, and it's the CHANGE issued by dm resume that udev should act upon. (That's not essential though - the /dev node can be created in response to the ADD, but nothing in udev userspace should attempt to open it until after the CHANGE is received.) > Could it be that we want to pass more properties to the event, which are > added as environment keys? Don't think so - we'll be handing full control of ownership/permissions over to udev. Alasdair -- agk@redhat.com ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel