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

From: Ling, Xiaofeng
Date: Mon Jan 12 2004 - 04:12:27 EST


>
> 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/