RE: removable media revalidation - udev vs. devfs or static /dev

Ling, Xiaofeng
2004-01-12T09:09:51Z

>
> 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.