Home | History | Annotate | Download | only in ptyfs
History log of /src/sys/fs/ptyfs/ptyfs.h
RevisionDateAuthorComments
 1.16  27-Nov-2020  christos make the order of the arguments in the PTYFS_FILENO macro consistent with
the order in the function calls. One of them was incorrect. Noticed by martin@
 1.15  17-Jan-2020  ad branches: 1.15.6;
VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to
allow us to get shared locks (or no lock) on the returned vnode. Matches
FreeBSD.
 1.14  15-Aug-2014  hannken branches: 1.14.20; 1.14.26;
Change ptyfs to vcache.
- Use (type, minor) as key.
- Change ptyfs_allocvp to return a referenced vnode and lock where needed.
- Remove unneeded vnode backpointer ptyfs_vnode.
- Keep a single hashlist for pty nodes to make their attributes persistent.

OK: Christos Zoulas
 1.13  13-Aug-2014  hannken - Add a map of active controlling ptys per mount and no longer abuse
the vnode lifecycle.
- No longer set "recycle" on VOP_INACTIVE().
- Make ptyfs_used_get() private to ptyfs_subr.c
- Stop copying device attributes from traditional ptys on first allocation.
- Remove unneeded argument "lwp" from ptyfs_allocvp() and ptyfs_free_get().

OK: Christos Zoulas
 1.12  04-Apr-2014  christos branches: 1.12.4;
Handle multiple ptyfs mounts with different chroots. ptys opened in one
chroot are only visible in that chroot.
 1.11  21-Mar-2014  christos Ilya Zykov: Prepare readdir for multi-mountpoint use
 1.10  24-Oct-2012  christos branches: 1.10.2;
rename ptyfs_flag -> ptyfs_status to avoid confusion with ptyfs_flags
 1.9  18-Sep-2012  christos Always do the chroot filename mapping; it is pointless not to do it.
 1.8  15-Mar-2009  christos branches: 1.8.12; 1.8.18; 1.8.20; 1.8.22;
Add a chroot flag, so that ptyfs can be mounted in a chrooted environment.
XXX: This is a hack, in reality we should allow multiple ptyfs mounts.
 1.7  28-Jun-2008  rumble branches: 1.7.4; 1.7.10;
Create sysctl entries during module initialisation and destroy them
appropriately.

Many of these file systems are now ready for modularisation.
 1.6  11-Dec-2005  christos branches: 1.6.70; 1.6.74; 1.6.76; 1.6.78;
merge ktrace-lwp.
 1.5  03-Dec-2005  christos - protect userland exported files against multiple inclusion.
- make sure that kernel only files don't compile in userland using #error
- XXX: some kernel only files still get installed.
- XXX: some files used in userland, don't get installed.
 1.4  12-Sep-2005  christos Fix the CHANGE part too.
 1.3  16-Dec-2004  atatat branches: 1.3.10;
Reorder ptyfs pseudo inode numbers so that 0 and 1 are unused, 2 is
the root of the file system, and slaves and masters alternate starting
at 3. This means the inode numbers won't be really large until you
really allocate a really lot of ptys.
 1.2  25-Nov-2004  christos Add pty group and mode settings.
 1.1  11-Nov-2004  jdolecek branches: 1.1.2;
move ptyfs off sys/miscfs/ptyfs/ to sys/fs/ptyfs/
 1.1.2.6  11-Dec-2005  christos Sync with head.
 1.1.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.2.4  18-Dec-2004  skrll Sync with HEAD.
 1.1.2.3  29-Nov-2004  skrll Sync with HEAD.
 1.1.2.2  14-Nov-2004  skrll Sync with HEAD.
 1.1.2.1  11-Nov-2004  skrll file ptyfs.h was added on branch ktrace-lwp on 2004-11-14 08:15:57 +0000
 1.3.10.1  21-Jun-2006  yamt sync with head.
 1.6.78.1  03-Jul-2008  simonb Sync with head.
 1.6.76.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.6.74.1  04-May-2009  yamt sync with head.
 1.6.70.1  29-Jun-2008  mjf Sync with HEAD.
 1.7.10.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.4.1  28-Apr-2009  skrll Sync with HEAD.
 1.8.22.3  03-Dec-2017  jdolecek update from HEAD
 1.8.22.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.22.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.8.20.1  01-Nov-2012  matt sync with netbsd-6-0-RELEASE.
 1.8.18.1  01-Oct-2012  riz Pull up following revision(s) (requested by christos in ticket #566):
sbin/mount_ptyfs/mount_ptyfs.8: revision 1.11
sbin/mount_ptyfs/mount_ptyfs.8: revision 1.12
sys/fs/ptyfs/ptyfs.h: revision 1.9
sbin/mount_ptyfs/mount_ptyfs.c: revision 1.14
sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.43
sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.44
Does not make sense to mount this as NFS, so it is not a bug.
We can now mount multiple instances, but all of them show all the ptys.
let us get mounted multiple times.
remove -c and chroot option; they are always on now
Always do the chroot filename mapping; it is pointless not to do it.
 1.8.12.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.12.1  30-Oct-2012  yamt sync with head
 1.10.2.1  18-May-2014  rmind sync with head
 1.12.4.1  17-Aug-2014  riz Pull up following revision(s) (requested by hannken in ticket #29):
sbin/mount_ptyfs/mount_ptyfs.8: revision 1.14
sys/fs/ptyfs/ptyfs_vnops.c: revision 1.48
sys/fs/ptyfs/ptyfs_vnops.c: revision 1.49
sys/fs/ptyfs/ptyfs_subr.c: revision 1.30
sys/fs/ptyfs/ptyfs_subr.c: revision 1.31
sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.51
sys/fs/ptyfs/ptyfs_subr.c: revision 1.32
sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.52
sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.53
sys/fs/ptyfs/ptyfs.h: revision 1.13
sys/fs/ptyfs/ptyfs.h: revision 1.14
Needs HASH_SLIST, not HASH_LIST.
Change ptyfs to vcache.
- Use (type, minor) as key.
- Change ptyfs_allocvp to return a referenced vnode and lock where needed.
- Remove unneeded vnode backpointer ptyfs_vnode.
- Keep a single hashlist for pty nodes to make their attributes persistent.
OK: Christos Zoulas
Overflow if *data_len == OSIZE and args->version >= PTYFS_ARGSVERSION.
Sent on tech-kern@, ok christos@
Adapt to reality -- already open BSD style nodes do not appear on
ptyfs mounts (this changed some months ago).
- Add a map of active controlling ptys per mount and no longer abuse
the vnode lifecycle.
- No longer set "recycle" on VOP_INACTIVE().
- Make ptyfs_used_get() private to ptyfs_subr.c
- Stop copying device attributes from traditional ptys on first allocation.
- Remove unneeded argument "lwp" from ptyfs_allocvp() and ptyfs_free_get().
OK: Christos Zoulas
 1.14.26.1  17-Jan-2020  ad Sync with head.
 1.14.20.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.15.6.1  14-Dec-2020  thorpej Sync w/ HEAD.

RSS XML Feed