Re: Larger dev_t

Alan Cox
2001-04-03T12:42:20Z

> Names stay constant, but why the NUMBERS? The names should stay
> constant and represent the actual layout on each busses (say:
> sane hierachic enumeration) of course.

You can do it that way too

> But /dev/ide/host0/bus0/target0/lun0/part1 could get a new device
> number on every reboot, right?

It could be a different device each boot too. Who is doing the bus
enumeration in a constant manner.

> Otherwise it would be too easy to remove static major/minors and
> all the fun allocating them. And LANANA would have one thing less
> to worry about ;-)

There are a very large number of reasons you need them and things that depend
on constant numbering for block devices such as backup tools. They can Im sure
be taught constant naming, but there is no provision for names not device ids
in them.

Things like tar will no longer work on Linux for example because tar does not
know how to archive the name of a device node.

> One thing I certainly miss: DevFS is not mandatory (yet).

devfs solves a different problem - enumeration of dynamically configured
resources. Its unrelated to the fundamental problem.