From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Thu, 01 Jan 2004 20:33:04 +0000 Subject: removable media revalidation - udev vs. devfs or static /dev Message-Id: <200401012333.04930.arvidjaar@mail.ru> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org udev names are created when kernel detects corr. device. Unfortunately for removable media kernel rescans for partitions only when I try to access device. Meaning - because kernel does not know partition table it did not send hotplug event so udev did not create device nodes. But without device nodes I have no way to access device in Unix :( specifically I have now my Jaz and I have no (reasonable) way to access partition 4 assuming device nodes are managed by udev. devfs solved this problem by - always exporting at least handle to the whole disk (sda as example) - using something simple like dd if=/dev/sda count=1 on lookup for non-existing partition (/dev/sda4) that would rescan partitions and create device nodes for them. static /dev simply has all nodes available and does not suffer from this problem at all. unfortunately there are no lookup events in case if udev ... meaning at this moment user must manually rescan partitions after inserting new media. I do not see any way to solve this problem at all given current implementation. The closest is to blindly create nodes for all partitions as soon as block device is available. -andrey ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ 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