Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61306 - doubtful statement about devfs breaking major/minor constraints
Summary: doubtful statement about devfs breaking major/minor constraints
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/devfs-gu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-22 15:51 UTC by Michael Krelin
Modified: 2004-08-23 08:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Krelin 2004-08-22 15:51:53 UTC
While reading devfs guide on the gentoo site I've bumped into really weird statement:

For instance, with devfs, you don't have to worry about major/minor pairs. It is still supported (for backwards compatibility), but isn't needed. This makes it possible for Linux to support even more devices, since there are no limits anymore (numbers always have boundaries :)

To the best of my knowledge devfs doesn't get rid of major/minor device numbers in any way and therefore doesn't break any boundaries. devfs dynamic creation of filsystem nodes doesn't provide any namespace-based access and the access to the devices still relies on the major/minor numbers provided.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-08-22 18:29:37 UTC
yes but devfs generates nodes dynamically and can assign major/minor pairs dynamically

the limit used to be 8bits (256) but since things are done dynamically, we arent limited to 8bits anymore
Comment 2 Michael Krelin 2004-08-22 21:56:32 UTC
It would be strange to suppose there's nothing behind the statement. But it says "there are no limits anymore" and puts the devfs allocation strategy as opposite to numbers. I'd say that the wording is inaccurate to say the least. If accuracy of the documentation matters...
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2004-08-23 08:47:15 UTC
DevFS uses it for backwards compatibility although it isn't set in stone. If we want to we can remove this bc setting and use dynamic numbering (so instead of giving each type of hardware it's own maj/min, we can just increase the maj/min every time a new hardware device is found).

But I have not seen a working implementation of this as too many tools relie on the static numbering scheme.

It's in the guide to inform the users about DevFS' possibilities, not how Gentoo uses it.
Comment 4 Michael Krelin 2004-08-23 08:55:56 UTC
I think we all know what goes on and what is stated in the documentation. No matter if we speak on devfs or devfs in gentoo, the question is how accurate we describe the concept.

I don't feel like convincing you the's something sheerly wrong in the documentation or god forbid software. All I wanted is, assuming you know the concepts behind devfs, is to draw your attention to the paragraph quoted.