From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ling, Xiaofeng" Date: Mon, 12 Jan 2004 09:09:35 +0000 Subject: RE: removable media revalidation - udev vs. devfs or static /dev Message-Id: <3ACA40606221794F80A5670F0AF15F8402D4EED7@PDSMSX403.ccr.corp.intel.com> List-Id: References: <200401012333.04930.arvidjaar@mail.ru> In-Reply-To: <200401012333.04930.arvidjaar@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Joel Becker , Greg KH Cc: linux-hotplug-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org > > On Wed, Jan 07, 2004 at 10:57:00AM -0800, Greg KH wrote: to create 16 partitions for every block device, if they need them or not. > > Um, adding all 16 partitions for a block device that > has 5 defined is opposite of the intention of udev, no? > While I'd prefer the partition code in-kernel provide hotplug > events for each partition, if it is instead scanned by udev, > udev should indeed scan the partition table. Remember, udev > should be able to give the appropriate system-defined names > for the partition, not just 'sda1'. > > Joel I think current kernel do provide hotplug events for each partition, the key problem is as Linus said, the most hardware will not give a event when media changes. So I just use a stupid way(just like "use a big button"), pull out first and then plug in the flashdriver when changing the media or inserting a media to an empty driver. Then udev can remove the old node for and create new node for new media. ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ 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