On Tue, Feb 04, 2014 at 02:25:06PM +0100, Lennart Poettering wrote:
> On Mon, 03.02.14 14:44, Hannes Reinecke ([email protected]) wrote:
> 
> > 
> > Which raises the question: what exactly should be 'active' contain?
> > The console name (which doesn't have any equivalent in sysfs), or
> > the tty name (which has)?
> 
> Userspace expects that /sys/class/tty/console/active refers to a valid
> tty name, and that /sys/class/tty/tty0/active refers to a valid VT tty
> name.

Even if the identifier string of tty3270.c becomes "3270/tty" it seems
that something goes wrong as in show_cons_active() of drivers/tty/tty_io.c
the name_base of the struct tty_driver is not honored.

Also on s390 the device for "3270/tty" its self is not plugged:

  systemctl list-units | grep virtual-tty | sed 's/^/  /'
  sys-devices-virtual-tty-hvc0.device       loaded active plugged   
/sys/devices/virtual/tty/hvc0
  sys-devices-virtual-tty-hvc1.device       loaded active plugged   
/sys/devices/virtual/tty/hvc1
  sys-devices-virtual-tty-hvc2.device       loaded active plugged   
/sys/devices/virtual/tty/hvc2
  sys-devices-virtual-tty-hvc3.device       loaded active plugged   
/sys/devices/virtual/tty/hvc3
  sys-devices-virtual-tty-hvc4.device       loaded active plugged   
/sys/devices/virtual/tty/hvc4
  sys-devices-virtual-tty-hvc5.device       loaded active plugged   
/sys/devices/virtual/tty/hvc5
  sys-devices-virtual-tty-hvc6.device       loaded active plugged   
/sys/devices/virtual/tty/hvc6
  sys-devices-virtual-tty-hvc7.device       loaded active plugged   
/sys/devices/virtual/tty/hvc7
  sys-devices-virtual-tty-ttysclp0.device   loaded active plugged   
/sys/devices/virtual/tty/ttysclp0

as the existing directory

  /sys/devices/virtual/tty/3270!tty1

is not listed at least with 208.  Nevertheless the nodes are there

  ll /dev/3270/tty1 
  crw--w---- 1 root tty 227, 1 Feb  4 15:51 /dev/3270/tty1

but a `dev-3270-tty1.device' seems not to be usable.

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr

Attachment: pgpqW2pEFtvwk.pgp
Description: PGP signature

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to