Subject: Re: kern/31403: /dev/ptm tries to return /dev/ptyv0 which doesn't exist
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Simon Burge <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 09/28/2005 02:52:01
The following reply was made to PR kern/31403; it has been noted by GNATS.

From: Simon Burge <simonb@wasabisystems.com>
To: christos@zoulas.com (Christos Zoulas)
Cc: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/31403: /dev/ptm tries to return /dev/ptyv0 which doesn't exist 
Date: Wed, 28 Sep 2005 12:51:46 +1000

 Christos Zoulas wrote:
 
 > On Sep 27,  2:47pm, simonb@wasabisystems.com (Simon Burge) wrote:
 > -- Subject: kern/31403: /dev/ptm tries to return /dev/ptyv0 which doesn't exi
 > 
 > |         One idea is to remove 'v' from TTY_LETTERS in tty_bsdpty.c, and
 > |         then adjust /dev/MAKEDEV so that ptyw0 is the minor number after
 > |         ptyuf (ie, 96).
 > 
 > 
 > This is on i386. On other platforms other pty numbers are reserved...
 > The simplest solution is to un-reserve the numbers/names or use ptyfs.
 > I don't want to start adding unmaintainable hacks in the name of backwards
 > compatibility.
 
 It doesn't look like ptyfs is an option for the 3.0 branch.  The only
 reference to it in _any_ kernel configuration file is this commented out
 entry:
 
 	thoreau 2> grep -r PTYFS */conf/[A-Z]???*
 	i386/conf/GENERIC.MPACPI:#file-system PTYFS # experimental - /dev/ptm support
 	thoreau 3> cat CVS/Tag
 	Tnetbsd-3
 
 and mount_ptyfs(3) says:
 
 BUGS
      This filesystem may not be NFS-exported.  This filesystem is experimen-
      tal.
 
 So using ptyfs for at least the 3.0 branch doesn't seem like an option
 unless this is addressed.
 
 Simon.
 --
 Simon Burge                            <simonb@wasabisystems.com>
 NetBSD Support and Service:         http://www.wasabisystems.com/