Re: udev and devfs - The final word
From: Valdis . Kletnieks
Date: Sun Jan 04 2004 - 21:25:34 EST
On Sun, 04 Jan 2004 20:02:36 EST, Mark Mielke said:
> If and when this comes up in 2.7 development, I would like to see an
> option of the sort: 1) Try to maintain major:minor numbers across
> reboots (even at the expense of complexity and efficiency), 2) Try to
> maintain a subset of the major:minor numbers across reboots
> (compromise) 3) Provide the most efficient implementation, making no
> guarantees regarding the numbering scheme, unless using a numbering
> scheme turns out to be more efficient. Deprecate 1), and let 2) and 3)
> evolve until we see who the victor is... :-) As long as the interface
> that maps device to number is abstracted, the above should be pluggable.
I'd recommend (at least during 2.7) some code in the allocator:
if (LINUX_VERSION_CODE % 3) {
major ^= get_random_bytes(4);
minor ^= get_random_bytes(4);
}
Just to keep everybody honest. :)
Attachment:
pgp00000.pgp
Description: PGP signature