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

From: Linus Torvalds
Date: Wed Jan 07 2004 - 21:57:38 EST




On Thu, 8 Jan 2004, Andries Brouwer wrote:
>
> On Wed, Jan 07, 2004 at 06:19:42PM -0800, Linus Torvalds wrote:
>
> > When I insert a card in my card reader, it had better "just work". WITHOUT
> > any strange "poll another device Y to make device X" work.
>
> But it does just work.
>
> Already today.

Exactly. It works today, because:

- the device nodes are there.

Ergo: udev should create the device nodes

- the kernel autopartitions the device on any open (both main device and
the subpartitions) when it notices a changed media. No polling
required.

Ergo: the kernel should continue to do this.

We should _not_ be in the situation where either of these things aren't
true.

Linus
-
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/