Patch: 2.5.62 devfs shrink
Quoted 5 lines · [email protected] wrote:
If you're making it not 100% compatible anyway, now is the time to do away with that horrible 'disc' spelling ;). 'disk' is a harddisk or floppy disk, 'disc' is for compact disc (try Google on both spellings and you'll see that the world agrees ..). Just do s/disc/disk/g in
devfs_register().
The names of devices are not chosen by fs/devfs/*.[ch]. They
are chosen by the client code in device drivers and elsewhere that call call devfs. In the case of the /dev/discs/ names, they are chose by devfs_{create,remove}_partitions in fs/partitions/check.c, which, from the comments, was apparently written by Linus Torvalds and Russell King.
Tangential note:
For what it's worth, my preference would be to change from/dev/discs/disc0/part1 to /dev/disk/0/part1, but I think it would probably do more harm than good to try to coordinate such a change with switching devfs. If you want to try to make a change where people will eventually have to update their systems, I think it would probably make more sense to survey existing devfs naming practices and try to come up with some recommendations harmonize them a bit. For example, should the directory names be singular or plural (/dev/loop or /dev/loops, /dev/disk or /dev/disks)? I would recommend signular because it is less English-centric. There are probably four or five recommendations like these that could be put into a Documentation file. More consistent naming schemes in anything tend to make a system more readily usable.
Adam J. Richter __ ______________ 575 Oroville Road [email protected] \ / Milpitas, California 95035 +1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
Quoted 3 lines · Adam J. Richter
For example, should the directory names be singular or plural (
/dev/loopor/dev/loops,/dev/diskor/dev/disks)? I would recommend signular because it is less English-centric.
I think singular is also far more common in existing [unix] practice.
-Miles
Signature · 3 lines
`Cars give people wonderful freedom and increase their opportunities. But they also destroy the environment, to an extent so drastic that they kill all social life' (from _A Pattern Language_)
In case there is a cleanup of /dev/* names,
I'd like to also point out this (seen on 2.4.*):/dev/printers/0
but/dev/cdroms/cdrom0
./discs/disc0
If there are incompatible changes, it might
be good to cleanup all ugly parts, not only some.
Andreas
Quoted 4 lines · Adam J. Richter
Tangential note:
For what it's worth, my preference would be to change from
/dev/discs/disc0/part1to/dev/disk/0/part1, but I think it would
Yes, that is nice and short. There is no need for the disc0 part, we know it is a disk because it is in /dev/disk.
Quoted 2 lines
probably do more harm than good to try to coordinate such a change with switching devfs. If you want to try to make a change where
Well, I wouldn't mind a disc->disk transition. It seems to mee there aren't that many devfs users yet so I don't think it'll be that much of a problem.
Quoted 6 lines
people will eventually have to update their systems, I think it would probably make more sense to survey existing devfs naming practices and try to come up with some recommendations harmonize them a bit. For example, should the directory names be singular or plural (
/dev/loopor/dev/loops,/dev/diskor/dev/disks)? I would recommend signular because it is less English-centric.
Singular is nice, because we think about /dev/disk/4 (one particular disk) a lot more than we think about "the collection /dev/disks"
Helge Hafting