Messages in this thread | | | Date | Mon, 12 Apr 2010 02:37:35 +0200 (CEST) | From | Jan Engelhardt <> | Subject | pts_unix98_lookup returns -EIO dependent on path |
| |
Hi,
for reason not ultimately known to me, opening a pts node outside of /dev/pts makes drivers/char/pty.c:pts_unix98_lookup return -EIO on 2.6.33. The next ancestral commit which looks related to this is possibly 99f1fe18.
In the following screenlog, /dev is a tmpfs, and /dev/pts is devpts. Whether CONFIG_DEVPTS_MULTIPLE_INSTANCES is set or not seems to play no role (the master instance is used only anyway).
02:30 yaguchi:/dev/pts # ls -l total 0 drwxr-xr-x 2 root root 0 Apr 12 2010 . drwxr-xr-x 16 root root 3720 Apr 12 01:55 ..
02:30 yaguchi:/dev/pts # socat pty pty & [1] 7302
02:30 yaguchi:/dev/pts # ls -l total 0 drwxr-xr-x 2 root root 0 Apr 12 2010 . drwxr-xr-x 16 root root 3720 Apr 12 01:55 .. crw--w---- 1 root tty 136, 0 Apr 12 02:30 0 crw--w---- 1 root tty 136, 1 Apr 12 02:30 1
02:30 yaguchi:/dev/pts # echo hi >0 02:30 yaguchi:/dev/pts # cp -a 0 ../0 02:30 yaguchi:/dev/pts # echo hi >../0 bash: ../0: Input/output error 02:30 yaguchi:/dev/pts # ls -l ../0 crw--w---- 1 root tty 136, 0 Apr 12 02:30 ../0
Jan
| |