=?gb2312?B?u9i4tDogu9i4tDogaG93IHRvIG1ha2UgbW9yZSB0aGFuIDI1NiBwdA==?=

Yin Dadian (yindd@bupt.edu.cn)
Mon, 1 Jun 1998 08:02:11 +0800


Yes. I really need >256 user terminal sessions. It is about 450 or almost.
But i can't use two server to solve this problem.
New kernel 2.1.103 did not increase the minor number. I saw there has
slackware
3.5 beta. But after i read its README , I did not find any useful message
about
this. I hope next version of slackware will has default 512 or more users.
I also changed kernel 2.1.103 to support DEVPTS . But when i recomplied my
kernel
it did not work.
So, i want to change the macros : MINOR and MAJOR , let MINOR use 9 bits and
MAJOR
use 7 bits. As you know , i can get 0-511 minor number. But i found that i
must to
change so many places, such as majors.h sysmacros.h tty.h tty_io.c ..... I
have changed
my file system commands such as ls mknod mv .... It can exactly display the
files.
I believe that i will success.
Thanks give me so many helps.

>The problem is not mknod (i.e. the program, BTW yours is most
>likely from GNU fileutils). The kernel (even in 2.1.x)
>restricts minor device numbers to 8 bits. (Don't confuse this with
>the user level include files, e.g. glibc sports larger minors,
>but of course can use them only if the kernel supports it.)
>I doubt that the 2.1 /dev/pts can get around this. After all it still
>has to return different minor device numbers for different ptys.
>
>Given this restriction your only chance to have more than 256 ptys
>is to hack the driver source to allocate another major device number
>for the next 256 ptys etc. BTW what are you really trying to achieve?
>Do you really need >256 user terminal sessions? Maybe there's
>another way to solve your original problem?
>
>Cheers, Roderich

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu