Re: [PATCH 28/49] tty: Add a new file /proc/tty/consoles

From: Jiri Slaby
Date: Wed Oct 27 2010 - 05:51:29 EST


On 10/27/2010 11:27 AM, Dr. Werner Fink wrote:
> Such a list would be very helpful e.g. to extend sulogin
> to be able to prompt for maintenance on all terminal lines
> of the system console after e.g. failed fsck. Currently
> only the preferred terminal line is prompted for maintenance.

I think nobody objects to the /proc/tty/consoles. This is a good thing
to have. The patch just needs to be fixed (and you already did and sent
me in private).

The objections are against the way how you find out the real tty behind
/dev/console. The method to walk through fd, guessing private_data etc.
is simply unacceptable.

Actually couldn't you just use one of:
1) ttyprintk driver (well, this will insert mess into klog)
2) send the output to all enabled consoles in /proc/tty/consoles
?

regards,
--
js
suse labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/