From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Metzler Date: Sun, 03 Oct 2010 11:59:32 +0000 Subject: Re: [ANNOUNCE] udev 152 release Message-Id: <4q7mn7-225.ln1@argenau.downhill.at.eu.org> List-Id: References: <1271750116.2583.12.camel@yio.site> In-Reply-To: <1271750116.2583.12.camel@yio.site> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote: > On Sun, Oct 3, 2010 at 08:55, Andreas Metzler > wrote: >> Kay Sievers vrfy.org> writes: >> [...] >>> Here comes a new udev version. >> [...] >>> udev 152 >> [...] >>> The option "all_partitions" was removed from udev. This should not be >>> needed for usual hardware. Udev can not safely make assumptions >>> about non-existing partition major/minor numbers, and therefore no >>> longer provide this unreliable and unsafe option. >> [...] >> is there a officially suggested replacement for "all_partitions"? >> USB-cardreaders are not "unusual", but nevertheless usually do not report >> media-changes (See >> http://www.reactivated.net/writing_udev_rules.html#example-usbcardreader). > No, not in udev. The main device node needs to be polled periodically. > This is usually done by udisks, a simple 'touch' will also do. > Currently it's being worked on to add polling to the kernel itself. Isn't polling evil(TM)? I would be (and was) perfectlywithe leightweight solution of of automatically get /dev/sdX[1-8] and symlinks /dev/cardreader/sd[1-8] instead of just /dev/sdX and the symlink /dev/cardreader/sd when udev detects the presence of the cardreader device. Whether the number of device nodes exactly matches the number of partitions on the inserted sd-card is not really of importance for me. cu andreas