The NetBSD Project

CVS log for src/sys/fs/ptyfs/ptyfs_vnops.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / fs / ptyfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.55.4.2 / (download) - annotate - [select for diffs], Fri Aug 4 13:34:58 2023 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-9
Changes since 1.55.4.1: +2 -6 lines
Diff to previous 1.55.4.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.7.4.1 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1703):

	sys/fs/ptyfs/ptyfs_vnops.c: revision 1.61

PR/55821: tar can not extract base.tgz anymore (./dev/pts and mounted ptyfs)

Allow chown/chmod at the root of ptyfs.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Mon Aug 29 15:45:10 2022 UTC (18 months, 4 weeks ago) by martin
Branch: netbsd-9
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.7.4.1 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1504):

	sys/fs/ptyfs/ptyfs_vnops.c: revision 1.69

ptyfs: Don't copy out cookies past end of buffer.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Aug 5 10:36:02 2022 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.7.4.1 (colored)

ptyfs: Don't copy out cookies past end of buffer.

Reported-by: syzbot+2aae7c4eddc796f917e6@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=5fe24c1da952ac2ea498d745d6479bc6be91a751

Revision 1.68 / (download) - annotate - [select for diffs], Wed Dec 8 20:11:54 2021 UTC (2 years, 3 months ago) by andvar
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) to selected 1.7.4.1 (colored)

s/efficent/efficient/ in comments.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Oct 20 03:08:17 2021 UTC (2 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.66: +2 -3 lines
Diff to previous 1.66 (colored) to selected 1.7.4.1 (colored)

Overhaul of the EVFILT_VNODE kevent(2) filter:

- Centralize vnode kevent handling in the VOP_*() wrappers, rather than
  forcing each individual file system to deal with it (except VOP_RENAME(),
  because VOP_RENAME() is a mess and we currently have 2 different ways
  of handling it; at least it's reasonably well-centralized in the "new"
  way).
- Add support for NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, and NOTE_READ,
  compatible with the same events in FreeBSD.
- Track which kevent notifications clients are interested in receiving
  to avoid doing work for events no one cares about (avoiding, e.g.
  taking locks and traversing the klist to send a NOTE_WRITE when
  someone is merely watching for a file to be deleted, for example).

In support of the above:

- Add support in vnode_if.sh for specifying PRE- and POST-op handlers,
  to be invoked before and after vop_pre() and vop_post(), respectively.
  Basic idea from FreeBSD, but implemented differently.
- Add support in vnode_if.sh for specifying CONTEXT fields in the
  vop_*_args structures.  These context fields are used to convey information
  between the file system VOP function and the VOP wrapper, but do not
  occupy an argument slot in the VOP_*() call itself.  These context fields
  are initialized and subsequently interpreted by PRE- and POST-op handlers.
- Version VOP_REMOVE(), uses the a context field for the file system to report
  back the resulting link count of the target vnode.  Return this in tmpfs,
  udf, nfs, chfs, ext2fs, lfs, and ufs.

NetBSD 9.99.92.

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:37 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.62: +25 -46 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jul 18 23:57:34 2021 UTC (2 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored) to selected 1.7.4.1 (colored)

Fix ptyfs link and symlink ops.

They were set (via macro obfuscation just eliminated) to
genfs_abortop, which is the wrong thing. These code paths are
currently inaccessible because of EROFS enforcement in namei, but if
either were reached odd behavior would likely ensue. Use
genfs_eopnotsupp like the rest of the ops that don't make sense here.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Jul 18 23:57:14 2021 UTC (2 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.64: +24 -46 lines
Diff to previous 1.64 (colored) to selected 1.7.4.1 (colored)

Abolish all the silly indirection macros for initializing vnode ops tables.

These are things of the form #define foofs_op genfs_op, or #define
foofs_op genfs_eopnotsupp, or similar. They serve no purpose besides
obfuscation, and have gotten cutpasted all over everywhere.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jun 29 22:34:07 2021 UTC (2 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored) to selected 1.7.4.1 (colored)

- Add a new vnode op: VOP_PARSEPATH.
 - Move namei_getcomponent to genfs_vnops.c and call it genfs_parsepath.
 - Add a parsepath entry to every vnode ops table.

VOP_PARSEPATH takes a directory vnode to be searched and a complete
following path and chooses how much of that path to consume. To begin
with, all parsepath calls are genfs_parsepath, which locates the first
'/' as always.

Note that the call doesn't take the whole struct componentname, only
the string. The other bits of struct componentname should not be
needed and there's no reason to cause potential complications by
exposing them.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Jun 28 17:52:12 2021 UTC (2 years, 9 months ago) by chs
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) to selected 1.7.4.1 (colored)

VOP_BMAP() may be called via ioctl(FIOGETBMAP) on any vnode that applications
can open.  change various pseudo-fs *_bmap methods return an error instead of
panic.

Reported-by: syzbot+8289a3eaf2ba60958c87@syzkaller.appspotmail.com

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:13 2020 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.60: +4 -8 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.7.4.1 (colored)

Sync w/ HEAD.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Nov 27 14:43:57 2020 UTC (3 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.61: +4 -4 lines
Diff to previous 1.61 (colored) to selected 1.7.4.1 (colored)

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@

Revision 1.61 / (download) - annotate - [select for diffs], Tue Nov 24 16:38:31 2020 UTC (3 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.60: +2 -6 lines
Diff to previous 1.60 (colored) to selected 1.7.4.1 (colored)

PR/55821: tar can not extract base.tgz anymore (./dev/pts and mounted ptyfs)
Allow chown/chmod at the root of ptyfs.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jun 27 17:29:18 2020 UTC (3 years, 9 months ago) by christos
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored) to selected 1.7.4.1 (colored)

Introduce genfs_pathconf() and use it for the default case in all filesystems.

Revision 1.59 / (download) - annotate - [select for diffs], Sat May 16 18:31:49 2020 UTC (3 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.58: +13 -12 lines
Diff to previous 1.58 (colored) to selected 1.7.4.1 (colored)

Add ACL support for FFS. From FreeBSD.

Revision 1.54.10.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:41 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.54.10.2: +1 -1 lines
Diff to previous 1.54.10.2 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Revision 1.57.6.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:10 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Revision 1.58 / (download) - annotate - [select for diffs], Mon Apr 13 19:23:18 2020 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.7.4.1 (colored)

Replace most uses of vp->v_usecount with a call to vrefcnt(vp), a function
that hides the details and does atomic_load_relaxed().  Signature matches
FreeBSD.

Revision 1.54.10.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:02 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.54.10.1: +4 -4 lines
Diff to previous 1.54.10.1 (colored) to branchpoint 1.54 (colored) to selected 1.7.4.1 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.57 / (download) - annotate - [select for diffs], Thu Sep 26 20:57:19 2019 UTC (4 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: bouyer-xenpvh
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored) to selected 1.7.4.1 (colored)

provide VNOVALSIZE and VNOVALFLAGS to avoid casting in source.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Sep 26 18:35:48 2019 UTC (4 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored) to selected 1.7.4.1 (colored)

cast VNOVAL to the the va_size type which is u_quad_t... I think it is time
to change this to uint64_t...

Revision 1.54.10.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:01 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Revision 1.54.8.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:41 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) next main 1.55 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.55 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.7.4.1 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.39.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:43 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.39.2.3: +29 -35 lines
Diff to previous 1.39.2.3 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored) to selected 1.7.4.1 (colored)

update from HEAD

Revision 1.50.2.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:06 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.50.2.2: +7 -5 lines
Diff to previous 1.50.2.2 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Revision 1.54 / (download) - annotate - [select for diffs], Fri May 26 14:21:00 2017 UTC (6 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.53: +5 -3 lines
Diff to previous 1.53 (colored) to selected 1.7.4.1 (colored)

Make VOP_RECLAIM do the last unlock of the vnode.

VOP_RECLAIM naturally has exclusive access to the vnode, so having it
locked on entry is not strictly necessary -- but it means if there
are any final operations that must be done on the vnode, such as
ffs_update, requiring exclusive access to it, we can now kassert that
the vnode is locked in those operations.

We can't just have the caller release the last lock because some file
systems don't use genfs_lock, and require the vnode to remain valid
for VOP_UNLOCK to work, notably unionfs.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:25 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:01 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Revision 1.53 / (download) - annotate - [select for diffs], Tue Apr 11 14:24:59 2017 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored) to selected 1.7.4.1 (colored)

Make VOP_INACTIVE preserve vnode lock on return.

Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html

Ride 7.99.68, a bumpy bus of incremental vfs improvements!

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:01 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.50.2.1: +3 -5 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Sat Aug 20 12:37:07 2016 UTC (7 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.51: +2 -4 lines
Diff to previous 1.51 (colored) to selected 1.7.4.1 (colored)

Remove now obsolete operation vcache_remove().

Welcome to 7.99.36

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:06 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.50: +4 -3 lines
Diff to previous 1.50 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Revision 1.51 / (download) - annotate - [select for diffs], Tue Jun 23 10:41:06 2015 UTC (8 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Branch point for: pgoyette-localcount
Changes since 1.50: +4 -3 lines
Diff to previous 1.50 (colored) to selected 1.7.4.1 (colored)

No need to call spec_inactive() from ptyfs_incative().

Revision 1.50 / (download) - annotate - [select for diffs], Thu Aug 21 06:40:35 2014 UTC (9 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.49: +2 -4 lines
Diff to previous 1.49 (colored) to selected 1.7.4.1 (colored)

Remove dead returns:

	return VAR/func(XX);
	return VAR;

The latter is never reached. Sent on tech-kern@, no disagreement.

Revision 1.39.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:27 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.39.2.2: +58 -8 lines
Diff to previous 1.39.2.2 (colored) to branchpoint 1.39 (colored) to selected 1.7.4.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sun Aug 17 03:34:02 2014 UTC (9 years, 7 months ago) by riz
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.47: +27 -32 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.7.4.1 (colored)

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

Revision 1.49 / (download) - annotate - [select for diffs], Fri Aug 15 13:40:39 2014 UTC (9 years, 7 months ago) by hannken
Branch: MAIN
Changes since 1.48: +10 -9 lines
Diff to previous 1.48 (colored) to selected 1.7.4.1 (colored)

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

Revision 1.48 / (download) - annotate - [select for diffs], Wed Aug 13 14:10:00 2014 UTC (9 years, 7 months ago) by hannken
Branch: MAIN
Changes since 1.47: +20 -26 lines
Diff to previous 1.47 (colored) to selected 1.7.4.1 (colored)

- 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

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:54 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.46: +4 -2 lines
Diff to previous 1.46 (colored) next main 1.47 (colored) to selected 1.7.4.1 (colored)

Rebase.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jul 25 08:20:52 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.46: +4 -2 lines
Diff to previous 1.46 (colored) to selected 1.7.4.1 (colored)

Add VOP_FALLOCATE and VOP_FDISCARD to every vnode ops table I can
find.

The filesystem ones all call genfs_eopnotsupp - right now I am only
implementing the plumbing and we can implement fallocate and/or
fdiscard for files later.

The device ones call spec_fallocate (which is also genfs_eopnotsupp)
and spec_fdiscard, which dispatches to the device-level op.

The fifo ones all call vn_fifo_bypass, which also ends up being
EOPNOTSUPP.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:01 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.36.2.2: +59 -11 lines
Diff to previous 1.36.2.2 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored) to selected 1.7.4.1 (colored)

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")

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:06 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.41: +58 -10 lines
Diff to previous 1.41 (colored) next main 1.42 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Fri Apr 4 18:10:29 2014 UTC (9 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Branch point for: tls-earlyentropy
Changes since 1.45: +26 -3 lines
Diff to previous 1.45 (colored) to selected 1.7.4.1 (colored)

Handle multiple ptyfs mounts with different chroots. ptys opened in one
chroot are only visible in that chroot.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Mar 27 21:13:06 2014 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Changes since 1.44: +6 -4 lines
Diff to previous 1.44 (colored) to selected 1.7.4.1 (colored)

forgot to commit one patch:
Avoid returning released(free), but still hashed inode numbers.
(Ilya Zykov)

Revision 1.44 / (download) - annotate - [select for diffs], Fri Mar 21 17:21:53 2014 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.7.4.1 (colored)

Ilya Zykov: Prepare readdir for multi-mountpoint use

Revision 1.43 / (download) - annotate - [select for diffs], Fri Feb 7 15:29:21 2014 UTC (10 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.42: +7 -4 lines
Diff to previous 1.42 (colored) to selected 1.7.4.1 (colored)

Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31

Revision 1.42 / (download) - annotate - [select for diffs], Tue Nov 5 00:40:33 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.41: +25 -5 lines
Diff to previous 1.41 (colored) to selected 1.7.4.1 (colored)

- support advisory locking on ptys
- get the link count correct for .
XXX: pullup 6

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:28 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.39.2.1: +3 -3 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored) to selected 1.7.4.1 (colored)

resync from head

Revision 1.41 / (download) - annotate - [select for diffs], Mon Mar 18 19:35:38 2013 UTC (11 years ago) by plunky
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored) to selected 1.7.4.1 (colored)

C99 section 6.7.2.3 (Tags) Note 3 states that:

  A type specifier of the form

	enum identifier

  without an enumerator list shall only appear after the type it
  specifies is complete.

which means that we cannot pass an "enum vtype" argument to
kauth_access_action() without fully specifying the type first.
Unfortunately there is a complicated include file loop which
makes that difficult, so convert this minimal function into a
macro (and capitalize it).

(ok elad@)

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:40 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.39: +14 -14 lines
Diff to previous 1.39 (colored) to selected 1.7.4.1 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:24 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.36.2.1: +14 -14 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.40 / (download) - annotate - [select for diffs], Wed Oct 24 23:36:15 2012 UTC (11 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.39: +14 -14 lines
Diff to previous 1.39 (colored) to selected 1.7.4.1 (colored)

rename ptyfs_flag -> ptyfs_status to avoid confusion with ptyfs_flags

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:19 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.36: +42 -41 lines
Diff to previous 1.36 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.37.4.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:37 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.37.4.1: +35 -40 lines
Diff to previous 1.37.4.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored) to selected 1.7.4.1 (colored)

sync to latest -current.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:49 2012 UTC (12 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.38: +35 -40 lines
Diff to previous 1.38 (colored) to selected 1.7.4.1 (colored)

Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:24 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.37: +5 -2 lines
Diff to previous 1.37 (colored) to selected 1.7.4.1 (colored)

merge to -current.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Dec 12 19:11:21 2011 UTC (12 years, 3 months ago) by njoly
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.37: +5 -2 lines
Diff to previous 1.37 (colored) to selected 1.7.4.1 (colored)

Start making fs read(2) fail with EISDIR if the implementation does
not allow read on directories (kernfs, rumpfs, ptyfs and sysvbfs).
Adjust man page accordingly, and add a small corresponding vfs
testcase.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Nov 18 21:18:50 2011 UTC (12 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.36: +6 -3 lines
Diff to previous 1.36 (colored) to selected 1.7.4.1 (colored)

Obey MNT_RELATIME, the only addition is that mkdir in ufs sets IN_ACCESS too.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Sep 16 18:43:44 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.35: +2 -3 lines
Diff to previous 1.35 (colored) to selected 1.7.4.1 (colored)

don't update access/change times on open.

Revision 1.34.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:15 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored) next main 1.35 (colored) to selected 1.7.4.1 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:53 2011 UTC (12 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored) to selected 1.7.4.1 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:19 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.27.10.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:34 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.27.10.4: +4 -4 lines
Diff to previous 1.27.10.4 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.33.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:50 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.4.1: +4 -4 lines
Diff to previous 1.33.4.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:10 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored) to selected 1.7.4.1 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:07 2010 UTC (14 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored) to selected 1.7.4.1 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.27.10.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:14 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.27.10.3: +4 -4 lines
Diff to previous 1.27.10.3 (colored) to branchpoint 1.27 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:09 2010 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored) to selected 1.7.4.1 (colored)

The VATTR_NULL/VREF/VHOLD/HOLDRELE() macros lost their will to live
years ago when the kernel was modified to not alter ABI based on
DIAGNOSTIC, and now just call the respective function interfaces
(in lowercase).  Plenty of mix'n match upper/lowercase has creeped
into the tree since then.  Nuke the macros and convert all callsites
to lowercase.

no functional change

Revision 1.27.24.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:32 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.24.1: +24 -4 lines
Diff to previous 1.27.24.1 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.27.10.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:21 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.27.10.2: +24 -4 lines
Diff to previous 1.27.10.2 (colored) to branchpoint 1.27 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 3 21:17:40 2009 UTC (14 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.31: +24 -4 lines
Diff to previous 1.31 (colored) to selected 1.7.4.1 (colored)

Where possible, extract the file-system's access() routine to two internal
functions: the first checking if the operation is possible (regardless of
permissions), the second checking file-system permissions, ACLs, etc.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005311.html

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 23 19:36:39 2009 UTC (14 years, 9 months ago) by elad
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) to selected 1.7.4.1 (colored)

Move the implementation of vaccess() to genfs_can_access(), in line with
the other routines of the same spirit.

Adjust file-system code to use it.

Keep vaccess() for KPI compatibility and to keep element of least
surprise. A "diagnostic" message warning that vaccess() is deprecated will
be printed when it's used (obviously, only in DIAGNOSTIC kernels).

No objections on tech-kern@:

	http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005310.html

Revision 1.27.10.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:47 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.27.10.1: +5 -7 lines
Diff to previous 1.27.10.1 (colored) to branchpoint 1.27 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.27.24.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:51 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27: +16 -25 lines
Diff to previous 1.27 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.30 / (download) - annotate - [select for diffs], Thu May 7 19:30:29 2009 UTC (14 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-base
Changes since 1.29: +5 -7 lines
Diff to previous 1.29 (colored) to selected 1.7.4.1 (colored)

Extract the open-coded authorization logic for chtimes() from various
file-systems and put it in a single function, genfs_can_chtimes().

This also makes UDF follow the same policy as all other file-systems.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004951.html

Revision 1.27.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:43 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.27: +13 -20 lines
Diff to previous 1.27 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.27.18.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:53 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.27: +13 -20 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 22 22:57:09 2009 UTC (14 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored) to selected 1.7.4.1 (colored)

Per discussion on tech-kern@:

  - Replace use of label/goto with returns

  - Rename, change prototype of, and move functions from vfs_subr.c to
    genfs_vnops.c

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 20 18:06:27 2009 UTC (14 years, 11 months ago) by elad
Branch: MAIN
Changes since 1.27: +13 -20 lines
Diff to previous 1.27 (colored) to selected 1.7.4.1 (colored)

Refactor some duplicated file-system code.

Proposed and received no objections on tech-kern@:

	http://mail-index.netbsd.org/tech-kern/2009/04/18/msg004843.html

Revision 1.25.4.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:39 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.25.4.1: +4 -4 lines
Diff to previous 1.25.4.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.7.4.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:49 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.4.6: +4 -4 lines
Diff to previous 1.7.4.6 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.23.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:46 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.23.8.1: +9 -16 lines
Diff to previous 1.23.8.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored) to selected 1.7.4.1 (colored)

sync with HEAD

Revision 1.26.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:32 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:43 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) to selected 1.7.4.1 (colored)

Merge vmlocking2 to head.

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:17 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.25: +7 -14 lines
Diff to previous 1.25 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.7.4.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:02 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.4.5: +7 -14 lines
Diff to previous 1.7.4.5 (colored) to branchpoint 1.7 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:06 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.7.4.1 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.23.6.2 / (download) - annotate - [select for diffs], Tue Nov 27 19:37:47 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.23.6.1: +7 -14 lines
Diff to previous 1.23.6.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:49 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.25: +7 -14 lines
Diff to previous 1.25 (colored) to selected 1.7.4.1 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.23.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:13 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.23: +54 -59 lines
Diff to previous 1.23 (colored) to selected 1.7.4.1 (colored)

sync with HEAD

Revision 1.7.4.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:08 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.4.4: +54 -59 lines
Diff to previous 1.7.4.4 (colored) to branchpoint 1.7 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.22.6.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:17 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.22.6.2: +54 -59 lines
Diff to previous 1.22.6.2 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.7.4.1 (colored)

Sync with head.

Revision 1.23.10.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:29:47 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.23: +54 -59 lines
Diff to previous 1.23 (colored) next main 1.24 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:51 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.23: +54 -59 lines
Diff to previous 1.23 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Sep 24 01:00:02 2007 UTC (16 years, 6 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.24: +47 -56 lines
Diff to previous 1.24 (colored) to selected 1.7.4.1 (colored)

Simplify ptyfs_readdir at pooka's suggestion.

No functional change intended.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Sep 24 00:42:14 2007 UTC (16 years, 6 months ago) by rumble
Branch: MAIN
Changes since 1.23: +19 -15 lines
Diff to previous 1.23 (colored) to selected 1.7.4.1 (colored)

Avoid stack allocation of large dirent structures in foo_readdir().

Revision 1.7.4.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:29 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.4.3: +7 -25 lines
Diff to previous 1.7.4.3 (colored) to branchpoint 1.7 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.22.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:28 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.22: +7 -25 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.7.4.1 (colored)

Sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:48 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.22: +7 -25 lines
Diff to previous 1.22 (colored) to selected 1.7.4.1 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.22.6.2 / (download) - annotate - [select for diffs], Fri Apr 13 20:56:20 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.22.6.1: +7 -25 lines
Diff to previous 1.22.6.1 (colored) to branchpoint 1.22 (colored) to selected 1.7.4.1 (colored)

- Make the devsw interface MP safe, and add some comments.
- Allow individual block/character drivers to be marked MP safe.
- Provide wrappers around the device methods that look up the
  device, returning ENXIO if it's not found, and acquire the
  kernel lock if needed.

Revision 1.22.6.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:50:45 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored) to selected 1.7.4.1 (colored)

Pull in the initial set of changes for the vmlocking branch.

Revision 1.7.4.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:57 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.4.2: +7 -7 lines
Diff to previous 1.7.4.2 (colored) to branchpoint 1.7 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Sat Feb 17 23:27:45 2007 UTC (17 years, 1 month ago) by tron
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.18: +6 -16 lines
Diff to previous 1.18 (colored) next main 1.19 (colored) to selected 1.7.4.1 (colored)

Apply patch (requested by chs in ticket #422):
- Fix various deadlock problems with nullfs and unionfs.
- Speed up path lookups by upto 25%.

Revision 1.16.4.3 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:33 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.16.4.2: +3 -3 lines
Diff to previous 1.16.4.2 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.7.4.1 (colored)

Sync with head.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 19 20:10:36 2007 UTC (17 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, yamt-idlelwp, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored) to selected 1.7.4.1 (colored)

only change atime on access.

Revision 1.16.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:05 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.16.4.1: +14 -30 lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored) to selected 1.7.4.1 (colored)

Sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jan 4 15:42:38 2007 UTC (17 years, 2 months ago) by elad
Branch: MAIN
Changes since 1.20: +6 -6 lines
Diff to previous 1.20 (colored) to selected 1.7.4.1 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:00 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.4.1: +22 -39 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored)

sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Dec 29 18:05:17 2006 UTC (17 years, 3 months ago) by elad
Branch: MAIN
Changes since 1.19: +6 -12 lines
Diff to previous 1.19 (colored) to selected 1.7.4.1 (colored)

Remove support for immutable and append-only flags on ptyfs.

Revision 1.16.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:38 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.16.6.1: +7 -17 lines
Diff to previous 1.16.6.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:51 2006 UTC (17 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.18: +6 -16 lines
Diff to previous 1.18 (colored) to selected 1.7.4.1 (colored)

a smorgasbord of improvements to vnode locking and path lookup:
 - LOCKPARENT is no longer relevant for lookup(), relookup() or VOP_LOOKUP().
   these now always return the parent vnode locked.  namei() works as before.
   lookup() and various other paths no longer acquire vnode locks in the
   wrong order via vrele().  fixes PR 32535.
   as a nice side effect, path lookup is also up to 25% faster.
 - the above allows us to get rid of PDIRUNLOCK.
 - also get rid of WANTPARENT (just use LOCKPARENT and unlock it).
 - remove an assumption in layer_node_find() that all file systems implement
   a recursive VOP_LOCK() (unionfs doesn't).
 - require that all file systems supply vfs_vptofh and vfs_fhtovp routines.
   fill in eopnotsupp() for file systems that don't support being exported
   and remove the checks for NULL.  (layerfs calls these without checking.)
 - in union_lookup1(), don't change refcounts in the ISDOTDOT case, just
   adjust which vnode is locked.  fixes PR 33374.
 - apply fixes for ufs_rename() from ufs_vnops.c rev. 1.61 to ext2fs_rename().

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:20 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.7.4.1 (colored)

Sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:37 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) to selected 1.7.4.1 (colored)

__unused removal on arguments; approved by core.

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:09 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.17 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:14 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored) to selected 1.7.4.1 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:05 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.12: +49 -43 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.12.8.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:34 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.12.8.2: +14 -15 lines
Diff to previous 1.12.8.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.7.4.1 (colored)

sync with head

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:10 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.15: +14 -15 lines
Diff to previous 1.15 (colored) to selected 1.7.4.1 (colored)

Use the LWP cached credentials where sane.

Revision 1.12.8.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:55 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.12.8.1: +14 -13 lines
Diff to previous 1.12.8.1 (colored) to branchpoint 1.12 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.7.4.1 / (download) - annotate - [selected], Wed Jun 21 15:09:30 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7: +97 -95 lines
Diff to previous 1.7 (colored)

sync with head.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:14 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.14: +14 -13 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.7.4.1 (colored)

Sync with head.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:38 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.14: +14 -13 lines
Diff to previous 1.14 (colored) to selected 1.7.4.1 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.12.6.4 / (download) - annotate - [select for diffs], Thu Jun 1 22:37:52 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.12.6.3: +33 -27 lines
Diff to previous 1.12.6.3 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.7.4.1 (colored)

Sync with head.

Revision 1.12.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:34 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.12: +34 -28 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.7.4.1 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.12.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:40 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.12: +34 -28 lines
Diff to previous 1.12 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.14 / (download) - annotate - [select for diffs], Sun May 14 21:31:52 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.13: +33 -27 lines
Diff to previous 1.13 (colored) to selected 1.7.4.1 (colored)

integrate kauth.

Revision 1.12.10.7 / (download) - annotate - [select for diffs], Sat May 6 23:31:29 2006 UTC (17 years, 10 months ago) by christos
Branch: elad-kernelauth
Changes since 1.12.10.6: +3 -2 lines
Diff to previous 1.12.10.6 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.7.4.1 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.12.6.3 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.12.6.2: +2 -2 lines
Diff to previous 1.12.6.2 (colored) to branchpoint 1.12 (colored) to selected 1.7.4.1 (colored)

Sync with head.

Revision 1.12.10.6 / (download) - annotate - [select for diffs], Wed Apr 19 05:03:56 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.12.10.5: +3 -3 lines
Diff to previous 1.12.10.5 (colored) to branchpoint 1.12 (colored) to selected 1.7.4.1 (colored)

sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 14 22:03:18 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.7.4.1 (colored)

Remove dead code.

Revision 1.12.10.5 / (download) - annotate - [select for diffs], Sat Mar 11 16:47:12 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.12.10.4: +3 -3 lines
Diff to previous 1.12.10.4 (colored) to branchpoint 1.12 (colored) to selected 1.7.4.1 (colored)

Fix typo.

Revision 1.12.10.4 / (download) - annotate - [select for diffs], Sat Mar 11 16:45:25 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.12.10.3: +5 -7 lines
Diff to previous 1.12.10.3 (colored) to branchpoint 1.12 (colored) to selected 1.7.4.1 (colored)

When calling kauth_cred_ismember_gid(), don't return the error code if
there is one, just treat it as if the check failed.

Pointed out by thorpej@.

Revision 1.12.10.3 / (download) - annotate - [select for diffs], Sat Mar 11 04:55:28 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.12.10.2: +7 -4 lines
Diff to previous 1.12.10.2 (colored) to branchpoint 1.12 (colored) to selected 1.7.4.1 (colored)

kauth_cred_groupmember() -> kauth_cred_ismember_gid(), as requested by
thorpej@ to conform to the Darwin KPI.

Revision 1.12.10.2 / (download) - annotate - [select for diffs], Fri Mar 10 14:23:39 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.12.10.1: +7 -7 lines
Diff to previous 1.12.10.1 (colored) to branchpoint 1.12 (colored) to selected 1.7.4.1 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.12.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:31:33 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.12: +30 -26 lines
Diff to previous 1.12 (colored) to selected 1.7.4.1 (colored)

Adapt to kernel authorization KPI.

Revision 1.12.6.2 / (download) - annotate - [select for diffs], Sun Feb 5 11:42:39 2006 UTC (18 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.12.6.1: +8 -7 lines
Diff to previous 1.12.6.1 (colored) to branchpoint 1.12 (colored) to selected 1.7.4.1 (colored)

In the *itimes functions, just call getnanotime() at the start of
the function and use the result if needed, rather than the previous
conditional calls/assignments method.  The code is clearer this way,
and benchmarks at about the same speed.

Revision 1.12.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:12:49 2006 UTC (18 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.12: +12 -12 lines
Diff to previous 1.12 (colored) to selected 1.7.4.1 (colored)

Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.11: +18 -17 lines
Diff to previous 1.11 (colored) to selected 1.7.4.1 (colored)

merge ktrace-lwp.

Revision 1.2.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:43 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.5: +47 -53 lines
Diff to previous 1.2.2.5 (colored) next main 1.3 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 2 12:38:58 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.10: +13 -27 lines
Diff to previous 1.10 (colored) to selected 1.7.4.1 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 03:45:44 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-vop
Changes since 1.10: +13 -27 lines
Diff to previous 1.10 (colored) next main 1.11 (colored) to selected 1.7.4.1 (colored)

adapt ptyfs.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 12 15:23:33 2005 UTC (18 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.9: +13 -3 lines
Diff to previous 1.9 (colored) to selected 1.7.4.1 (colored)

Update the mod and access times directly from ptyfs_read() and
ptyfs_write() rather than setting a flag and updating these times
through ptyfs_itimes() at some indeterminate time in the future.
However, just use the "time" variable to set the times instead of
using a potentially expensive call to nanotime().  A HZ resolution
on these timestamps is more than enough.

(Possibly incomplete) fix for PR kern/31430.
OK'd be christos@.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Sep 12 16:42:09 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.8: +8 -9 lines
Diff to previous 1.8 (colored) to selected 1.7.4.1 (colored)

Fix the CHANGE part too.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Sep 12 16:37:13 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.7: +29 -30 lines
Diff to previous 1.7 (colored) to selected 1.7.4.1 (colored)

propagate itime changes from the other filesystems.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:22 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.6: +11 -11 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.7.4.1 (colored)

sync with -current

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:11 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.6: +11 -11 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.7.4.1 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.2.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:46 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.4: +11 -11 lines
Diff to previous 1.2.2.4 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 26 22:58:55 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.6: +11 -11 lines
Diff to previous 1.6 (colored) to selected 1.7.4.1 (colored)

nuke trailing whitespace

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Sat Dec 18 09:32:35 2004 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.3: +4 -47 lines
Diff to previous 1.2.2.3 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 18 05:26:41 2004 UTC (19 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.5: +3 -33 lines
Diff to previous 1.5 (colored) to selected 1.7.4.1 (colored)

I don't think that the vgone() in vop_inactive is needed; in fact it might
be the source of my deadlocks.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Nov 29 13:55:59 2004 UTC (19 years, 4 months ago) by atatat
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.4: +3 -16 lines
Diff to previous 1.4 (colored) to selected 1.7.4.1 (colored)

Remove the digits() function and simply set va_bytes and va_size to
zero in ptyfs_getattr().  There's no reason to make them something
else and no other devices (except for disk devices) report anything
other than zero here, so why should we be different?

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Mon Nov 29 07:24:51 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.2: +3 -3 lines
Diff to previous 1.2.2.2 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 25 03:46:50 2004 UTC (19 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored) to selected 1.7.4.1 (colored)

Properly set va_fsid so that st_dev ends up correct.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 19 04:42:45 2004 UTC (19 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored) to selected 1.7.4.1 (colored)

Don't call ptyfs_time() with stack garbage.  It makes the times look
funny.  I was getting stuff somewhere around 1939, but that's where my
kernel is.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sun Nov 14 08:15:57 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.1: +1031 -0 lines
Diff to previous 1.2.2.1 (colored) to selected 1.7.4.1 (colored)

Sync with HEAD.

Revision 1.2.2.1, Thu Nov 11 19:19:59 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2: +0 -1030 lines
FILE REMOVED

file ptyfs_vnops.c was added on branch ktrace-lwp on 2004-11-14 08:15:57 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Thu Nov 11 19:19:59 2004 UTC (19 years, 4 months ago) by jdolecek
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored) to selected 1.7.4.1 (colored)

update #include path to fs/ptyfs/

Revision 1.1 / (download) - annotate - [select for diffs], Thu Nov 11 18:56:25 2004 UTC (19 years, 4 months ago) by jdolecek
Branch: MAIN
Diff to selected 1.7.4.1 (colored)

move ptyfs off sys/miscfs/ptyfs/ to sys/fs/ptyfs/

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>