On Monday 10 July 2006 15:42, Antonino A. Daplas wrote:
> Jon Smirl wrote:
> > On 7/10/06, Alan Cox <[email protected]> wrote:
> >> Ar Llu, 2006-07-10 am 09:03 -0400, ysgrifennodd Jon Smirl:
> >> > I agree with this. I made a mistake with the pts vs pty, why not just
> >> > help me fix the mistake instead of rejecting everything? Some the of
> >> > the info being reported in /proc/tty/drivers is wrong (vc./0 - from
> >> > the devfs attempt?). or missing.
> >>
> >> What are you trying to achieve and where are you trying to get. If you
> >> want better info for the tty layer then get the new info working in
> >> sysfs first. Then when people are generally using sysfs you can worry
> >> about cleaning up/removing/breaking the old stuff.
> >
> > Before the change /proc/tty/drivers shows this:
> >
> > [jonsmirl@jonsmirl ~]$ cat /proc/tty/drivers
> > /dev/tty /dev/tty 5 0 system:/dev/tty
> > /dev/console /dev/console 5 1 system:console
> > /dev/ptmx /dev/ptmx 5 2 system
> > /dev/vc/0 /dev/vc/0 4 0 system:vtmaster
>
> vtmaster was /dev/tty0 in 2.2.x, changed to /dev/vc/0 probably
> because of devfs. I would tend to agree with the change of at least
> this part.
>
> A few apps do rely on /proc/tty/drivers for the major-minor
> to device name mapping. /dev/vc/0 does not exist (unless
> created manually) without devfs.
Create a file in /etc/udev/rules.d. Add to it the following.
# devfs-ify vt devices
KERNEL="tty[0-9]*", NAME="vc/%n"
Now John's names are broken.
As Alan's wisely pointed out, it's utterly insane to try to "fix" a legacy
file when it a) can never match all possible, legal, current configurations
and b) shouldn't be used for anything important anyway.
It'd be better to CONFIG out this directory and see what breaks. Then we can
decide if we should (or provide distributors the option to) remove it.
--
Cheers,
Alistair.
Final year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]