The NetBSD Project

CVS log for src/sys/nfs/nfs_serv.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.184 / (download) - annotate - [select for diffs], Thu Mar 23 19:53:01 2023 UTC (12 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.183: +10 -10 lines
Diff to previous 1.183 (colored) to selected 1.115 (colored)

nfs: Avoid free of uninitialized on bad name size in create, mknod.

XXX These error branches are a nightmare and need to be more
systematically cleaned up.  Even if they are correct now, they are
impossible to audit and extremely fragile in case anyone ever needs
to make other changes to them.

XXX pullup-8
XXX pullup-9
XXX pullup-10

Revision 1.183 / (download) - annotate - [select for diffs], Wed Apr 27 17:38:52 2022 UTC (23 months ago) by hannken
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.182: +22 -46 lines
Diff to previous 1.182 (colored) to selected 1.115 (colored)

As VOP_GETATTR() needs a shared lock at least move the preopattr lookup
inside nfs_namei() where we may lock the start directory without violating
the lock order.

Revision 1.182 / (download) - annotate - [select for diffs], Thu Sep 16 20:17:47 2021 UTC (2 years, 6 months ago) by andvar
Branch: MAIN
Changes since 1.181: +3 -3 lines
Diff to previous 1.181 (colored) to selected 1.115 (colored)

fix various typos, mainly in comments.

Revision 1.181 / (download) - annotate - [select for diffs], Sat Sep 5 16:30:12 2020 UTC (3 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.180: +5 -3 lines
Diff to previous 1.180 (colored) to selected 1.115 (colored)

Round of uvm.h cleanup.

The poorly named uvm.h is generally supposed to be for uvm-internal
users only.

- Narrow it to files that actually need it -- mostly files that need
  to query whether curlwp is the pagedaemon, which should maybe be
  exposed by an external header.

- Use uvm_extern.h where feasible and uvm_*.h for things not exposed
  by it.  We should split up uvm_extern.h but this will serve for now
  to reduce the uvm.h dependencies.

- Use uvm_stat.h and #ifdef UVMHIST uvm.h for files that use
  UVMHIST(ubchist), since ubchist is declared in uvm.h but the
  reference evaporates if UVMHIST is not defined, so we reduce header
  file dependencies.

- Make uvm_device.h and uvm_swap.h independently includable while
  here.

ok chs@

Revision 1.180 / (download) - annotate - [select for diffs], Sat Apr 4 07:07:20 2020 UTC (3 years, 11 months ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.179: +6 -6 lines
Diff to previous 1.179 (colored) to selected 1.115 (colored)

NFSv2 is limited to use only 32bit in metadata. Prevent that larger
metadata values are simply truncated.

-> clamp filesystem block counts to signed 32bit.
-> clamp file sizes to signed 32bit (*)

Some NFSv2 clients also have problems to handle buffer sizes larger
than (signed) 16bit.
-> clamp buffer sizes to signed 16bit for better compatibility.

(*) This can lead to erroneous behaviour for files larger than 2GB
that NFSv2 cannot handle but it is still better than before.
An alternative would be to (partially) reject operations on files
larger than 2GB, but which causes other problems.

Revision 1.179 / (download) - annotate - [select for diffs], Fri Jan 17 20:08:09 2020 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Changes since 1.178: +6 -4 lines
Diff to previous 1.178 (colored) to selected 1.115 (colored)

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.

Revision 1.178 / (download) - annotate - [select for diffs], Thu Jan 2 15:42:27 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-namecache-base
Branch point for: ad-namecache
Changes since 1.177: +14 -8 lines
Diff to previous 1.177 (colored) to selected 1.115 (colored)

- Eliminate the global "boottime" variable, which was being accessed
  without any synchronization against changes by e.g. clock_settime().
- Replace with new getbinboottime() / getnanoboottime() / getmicroboottime()
  functions (naming mirrors that of other time access functions in kern_tc.c).
  It returns the (maybe-converted) value of timebasebin, which also tracks
  our estimate of when the system was booted (i.e. the legacy "boottime" was
  redundant).

XXX There needs to be a lockless synchronization mechanism for reading
timebasebin, but this is a problem in kern_tc.c that pre-existed these
"boottime" changes.  At least now the problem is centralized in one location.

Revision 1.177 / (download) - annotate - [select for diffs], Wed Feb 20 10:05:20 2019 UTC (5 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, 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.176: +7 -3 lines
Diff to previous 1.176 (colored) to selected 1.115 (colored)

Bracket do_sys_renameat() and nfsrv_rename() with fstrans.

The v_mount field for vnodes on the same file system as "from"
is now stable for referenced vnodes.

VFS_RENAMELOCK no longer may use lock from an unreferenced and
freed "struct mount".

Revision 1.176 / (download) - annotate - [select for diffs], Sun Feb 3 03:19:28 2019 UTC (5 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.175: +3 -2 lines
Diff to previous 1.175 (colored) to selected 1.115 (colored)

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily

Revision 1.175 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:36 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.174: +4 -4 lines
Diff to previous 1.174 (colored) to selected 1.115 (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.174 / (download) - annotate - [select for diffs], Thu May 3 07:28:43 2018 UTC (5 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.173: +6 -3 lines
Diff to previous 1.173 (colored) to selected 1.115 (colored)

nfsrv_readlink: stop attaching a zero-length mbuf for zero length symlinks.

Revision 1.173 / (download) - annotate - [select for diffs], Wed Apr 26 03:02:49 2017 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-compat-base, 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, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.172: +4 -2 lines
Diff to previous 1.172 (colored) to selected 1.115 (colored)

Change VOP_REMOVE and VOP_RMDIR to preserve lock/ref on dvp.

No change to vp -- the plan is to replace the node by the
componentname in the vop parameters, and let all directory vops do
lookups internally.

Proposed on tech-kern with no objections:
https://mail-index.netbsd.org/tech-kern/2017/04/17/msg021825.html

Revision 1.172 / (download) - annotate - [select for diffs], Tue Apr 21 03:19:03 2015 UTC (8 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.171: +4 -4 lines
Diff to previous 1.171 (colored) to selected 1.115 (colored)

Cull unused INRENAME and INRELOOKUP from callers.

Revision 1.171 / (download) - annotate - [select for diffs], Mon Apr 20 23:03:09 2015 UTC (8 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.170: +5 -2 lines
Diff to previous 1.170 (colored) to selected 1.115 (colored)

Make VOP_LINK return directory still locked and referenced.

Ride 7.99.10 bump.

Revision 1.170 / (download) - annotate - [select for diffs], Thu Jan 23 10:13:57 2014 UTC (10 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, 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, netbsd-7
Branch point for: nick-nhusb
Changes since 1.169: +12 -4 lines
Diff to previous 1.169 (colored) to selected 1.115 (colored)

Change vnode operations create, mknod, mkdir and symlink to return
the resulting vnode *vpp unlocked.

Discussed on tech-kern@

Welcome to 6.99.30

Revision 1.169 / (download) - annotate - [select for diffs], Fri Jan 17 10:55:02 2014 UTC (10 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.168: +12 -11 lines
Diff to previous 1.168 (colored) to selected 1.115 (colored)

Change vnode operations create, mknod, mkdir and symlink to keep the
directory node dvp locked on return.

Discussed on tech-kern@

Welcome to 6.99.29

Revision 1.168 / (download) - annotate - [select for diffs], Sat Dec 14 22:04:03 2013 UTC (10 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.167: +6 -4 lines
Diff to previous 1.167 (colored) to selected 1.115 (colored)

only prevent autounload, not regular unload when we have exports

Revision 1.167 / (download) - annotate - [select for diffs], Sat Dec 14 16:19:28 2013 UTC (10 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.166: +4 -2 lines
Diff to previous 1.166 (colored) to selected 1.115 (colored)

don't allow the nfs server module to unload if it has exported filesystems.

Revision 1.166 / (download) - annotate - [select for diffs], Sat Sep 14 22:29:08 2013 UTC (10 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.165: +36 -26 lines
Diff to previous 1.165 (colored) to selected 1.115 (colored)

Backout wildcard pragma to kill warnings and instead sprinkle a few dozen
__unused attributes.
Requested by joerg@

Revision 1.165 / (download) - annotate - [select for diffs], Wed Aug 29 14:00:22 2012 UTC (11 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.164: +3 -2 lines
Diff to previous 1.164 (colored) to selected 1.115 (colored)

When unloading the nfsserver module, call nfs_fini() so that the nfsrvdescpl
pool gets destroyed. Otherwise we are left with a stray pool that points to
unmapped memory behind (and bad things happen). Typically you get seemingly
random page faults (without printing uvm_fault) that happen in various pool
operations. Most frequent one is the pool_drain() from the page daemon.

Revision 1.164 / (download) - annotate - [select for diffs], Mon Aug 27 11:35:13 2012 UTC (11 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.163: +3 -2 lines
Diff to previous 1.163 (colored) to selected 1.115 (colored)

fix error handling in nfsrv_rename(): when the first nfs_namei() fails,
don't try to free the resources allocated by a successful lookup.

Revision 1.163 / (download) - annotate - [select for diffs], Wed Feb 1 02:27:24 2012 UTC (12 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-0-RC1, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: netbsd-6, matt-nb6-plus
Changes since 1.162: +4 -3 lines
Diff to previous 1.162 (colored) to selected 1.115 (colored)

When using socket loaning, make sure the KVA used for the loan has the same
color as the UVA being loaned.

Revision 1.162 / (download) - annotate - [select for diffs], Mon Nov 21 09:07:59 2011 UTC (12 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.161: +18 -11 lines
Diff to previous 1.161 (colored) to selected 1.115 (colored)

nfsrv_lookup(): Defer the postopattr lookup on dirp until the
                child node is unlocked.

Ok: YAMAMOTO Takashi <yamt@netbsd.org>

Revision 1.161 / (download) - annotate - [select for diffs], Sun Oct 30 12:00:27 2011 UTC (12 years, 5 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.160: +38 -6 lines
Diff to previous 1.160 (colored) to selected 1.115 (colored)

VOP_GETATTR() needs a shared lock at least.

Revision 1.160 / (download) - annotate - [select for diffs], Mon Aug 8 16:04:07 2011 UTC (12 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.159: +44 -12 lines
Diff to previous 1.159 (colored) to selected 1.115 (colored)

nfs_namei() should not return a non-null path buffer except on success,
even though the callers are apparently prepared to cope.

Fixes last tidyup part of PR 44625.

Revision 1.159 / (download) - annotate - [select for diffs], Mon Apr 18 00:38:33 2011 UTC (12 years, 11 months ago) by dholland
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.158: +2 -19 lines
Diff to previous 1.158 (colored) to selected 1.115 (colored)

Back in -r1.60 of nfs_serv.c (a long time ago) VOP_MKNOD was changed
so nfsd no longer needed to do a lookup() call immediately afterwards
to retrieve the newly created object.

Since that change there has been no way for ISSYMLINK to be set upon
return from VOP_MKNOD (or before the call to VOP_MKNOD either) so
remove the test for it and associated block of dead code.

(I do not understand how this code was reachable before then either.
The logic in question is only reached if no object by that name
existed, and there's no reasonable way that a successful call to
VOP_MKNOD should ever create a symlink. The code appears to come from
4.4lite; maybe they had locking bugs?)

Revision 1.158 / (download) - annotate - [select for diffs], Mon Apr 11 01:33:05 2011 UTC (12 years, 11 months ago) by dholland
Branch: MAIN
Changes since 1.157: +2 -5 lines
Diff to previous 1.157 (colored) to selected 1.115 (colored)

Clean up. Move some more code across from nfsd's private entry points.

Revision 1.157 / (download) - annotate - [select for diffs], Sat Mar 19 01:34:24 2011 UTC (13 years ago) by dholland
Branch: MAIN
Changes since 1.156: +8 -2 lines
Diff to previous 1.156 (colored) to selected 1.115 (colored)

Fix memory leak introduced with the struct pathbuf changes. Hi, me.
Closes PR 44625.

Revision 1.156 / (download) - annotate - [select for diffs], Sat Feb 5 13:35:11 2011 UTC (13 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored) to selected 1.115 (colored)

typo in a comment

Revision 1.155 / (download) - annotate - [select for diffs], Sun Jan 2 05:12:34 2011 UTC (13 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.154: +5 -6 lines
Diff to previous 1.154 (colored) to selected 1.115 (colored)

Remove remaining references to SAVESTART.

Revision 1.154 / (download) - annotate - [select for diffs], Sun Jan 2 05:09:31 2011 UTC (13 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.153: +3 -7 lines
Diff to previous 1.153 (colored) to selected 1.115 (colored)

Remove the special refcount behavior (adding an extra reference to the
parent dir) associated with SAVESTART in relookup().

Check all call sites to make sure that SAVESTART wasn't set while
calling relookup(); if it was, adjust the refcount behavior. Remove
related references to SAVESTART.

The only code that was reaching the extra ref was msdosfs_rename,
where the refcount behavior was already fairly broken and/or gross;
repair it.

Add a dummy 4th argument to relookup to make sure code that hasn't
been inspected won't compile. (This will go away next time the
relookup semantics change, which they will.)

Revision 1.153 / (download) - annotate - [select for diffs], Sun Jan 2 05:01:21 2011 UTC (13 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.152: +4 -11 lines
Diff to previous 1.152 (colored) to selected 1.115 (colored)

Remove unused nameidata field ni_startdir.

Revision 1.152 / (download) - annotate - [select for diffs], Tue Nov 30 10:30:03 2010 UTC (13 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.151: +77 -10 lines
Diff to previous 1.151 (colored) to selected 1.115 (colored)

Abolish struct componentname's cn_pnbuf. Use the path buffer in the
pathbuf object passed to namei as work space instead. (For now a pnbuf
pointer appears in struct nameidata, to support certain unclean things
that haven't been fixed yet, but it will be going away in the future.)

This removes the need for the SAVENAME and HASBUF namei flags.

Revision 1.151 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:17 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
Changes since 1.150: +11 -11 lines
Diff to previous 1.150 (colored) to selected 1.115 (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.150 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:11 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.149: +10 -10 lines
Diff to previous 1.149 (colored) to selected 1.115 (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.149 / (download) - annotate - [select for diffs], Wed Dec 23 01:09:25 2009 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.148: +5 -4 lines
Diff to previous 1.148 (colored) to selected 1.115 (colored)

Define namei flag INRENAME and set it if a lookup operation is part
of rename.  This helps with building better asserts for rename in
the DELETE lookup ... the RENAME lookup is quite obviously a part
of rename.

Revision 1.148 / (download) - annotate - [select for diffs], Sat Nov 7 07:27:49 2009 UTC (14 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.147: +3 -3 lines
Diff to previous 1.147 (colored) to selected 1.115 (colored)

Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.

Revision 1.147 / (download) - annotate - [select for diffs], Sun Sep 27 17:19:07 2009 UTC (14 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored) to selected 1.115 (colored)

Rename lookup() to lookup_for_nfsd(), to make it clear just whose
private backdoor entry point this is.

Also, clone the lookup_for_nfsd() entry point as
lookup_for_nfsd_index(), for use by a different call site in nfsd that
does different unclean things with nameidata.

Revision 1.146 / (download) - annotate - [select for diffs], Sat May 23 15:31:21 2009 UTC (14 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.145: +13 -6 lines
Diff to previous 1.145 (colored) to selected 1.115 (colored)

- Fix a race between umount()/mount() and nfssvc().
- Toss netexport state on nfsserver module unload.

Revision 1.145 / (download) - annotate - [select for diffs], Sat May 23 14:45:18 2009 UTC (14 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.144: +4 -4 lines
Diff to previous 1.144 (colored) to selected 1.115 (colored)

Fix a crash when unloading nfsserver module.

Revision 1.144 / (download) - annotate - [select for diffs], Fri Apr 10 18:58:50 2009 UTC (14 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.143: +65 -32 lines
Diff to previous 1.143 (colored) to selected 1.115 (colored)

PR kern/41158: nfs_rename() locking against myself
nfsrv_rename() can exit without calling genfs_renamelock_exit() because
the nfsm_reply() can do return (0) on error.
Change nfsm_reply to use 'error = 0; goto nfsmout' instead.
Fix a few place so it's safe to goto nfsmout from nfsm_reply, or other
macros calling it.
As a side effect it could fix a missing vrele(dirp) in various place where
nfsm_reply could return(0).

Revision 1.143 / (download) - annotate - [select for diffs], Sat Mar 14 15:36:24 2009 UTC (15 years ago) by dsl
Branch: MAIN
Changes since 1.142: +26 -122 lines
Diff to previous 1.142 (colored) to selected 1.115 (colored)

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

Revision 1.142 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:54 2009 UTC (15 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.141: +5 -5 lines
Diff to previous 1.141 (colored) to selected 1.115 (colored)

merge christos-time_t

Revision 1.141 / (download) - annotate - [select for diffs], Wed Dec 3 14:56:05 2008 UTC (15 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored) to selected 1.115 (colored)

nfsd_use_loan: int -> bool

Revision 1.140 / (download) - annotate - [select for diffs], Thu Nov 27 14:04:58 2008 UTC (15 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.139: +4 -3 lines
Diff to previous 1.139 (colored) to selected 1.115 (colored)

Use struct nfs_fattr in struct flrep instead of uint32_t array
acrobatics to get rid of type punning warning.

Revision 1.139 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:09 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.138: +49 -2 lines
Diff to previous 1.138 (colored) to selected 1.115 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.138 / (download) - annotate - [select for diffs], Fri Mar 28 05:02:08 2008 UTC (16 years ago) by dholland
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, 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, netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: yamt-nfs-mp, nick-hppapmap, netbsd-5, haad-dm, christos-time_t
Changes since 1.137: +13 -2 lines
Diff to previous 1.137 (colored) to selected 1.115 (colored)

Yet another rename workaround - this time check for . and .. early because
relookup() objects to being asked to handle them.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Mar 8 08:03:46 2008 UTC (16 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.136: +8 -8 lines
Diff to previous 1.136 (colored) to selected 1.115 (colored)

desupport link/unlink of directories.  noted by Elad Efrat.

Revision 1.136 / (download) - annotate - [select for diffs], Thu Feb 28 17:07:49 2008 UTC (16 years, 1 month ago) by elad
Branch: MAIN
Changes since 1.135: +6 -6 lines
Diff to previous 1.135 (colored) to selected 1.115 (colored)

Introduce a new kauth action, KAUTH_NETWORK_NFS, and two requests,
KAUTH_REQ_NETWORK_NFS_EXPORT and KAUTH_REQ_NETWORK_NFS_SVC, and use them
to replace two KAUTH_GENERIC_ISSUSER calls in the NFS code.

Also replace two more with KAUTH_SYSTEM_MKNOD, where appropriate.

Documetnation and examples updated. More to come.

Revision 1.135 / (download) - annotate - [select for diffs], Wed Feb 20 17:15:51 2008 UTC (16 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored) to selected 1.115 (colored)

Fix extern declaration to match actual declaration (add const).

Revision 1.134 / (download) - annotate - [select for diffs], Mon Jan 28 14:31:19 2008 UTC (16 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.133: +39 -2 lines
Diff to previous 1.133 (colored) to selected 1.115 (colored)

Fix some race conditions in rename.
Introduce a per-FS rename lock and new vfsops to manipulate it.
Get this lock while renaming. Also add another relookup() in do_sys_rename,
which is a hack to kludge around some of the worst deficiencies of
ufs_rename.
reviewed-by: pooka (and an earlier rev by ad)
posted on tech-kern with no objections.

Revision 1.133 / (download) - annotate - [select for diffs], Sat Dec 22 03:31:15 2007 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.132: +1 -1 lines
Diff to previous 1.132 (colored) to selected 1.115 (colored)

nfsrv_create: fix a use-after-release.

Revision 1.132 / (download) - annotate - [select for diffs], Tue Dec 4 17:42:30 2007 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.131: +18 -14 lines
Diff to previous 1.131 (colored) to selected 1.115 (colored)

merge non-intrusive nfs changes from vmlocking.

Revision 1.131 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:20 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase
Branch point for: vmlocking2
Changes since 1.130: +57 -57 lines
Diff to previous 1.130 (colored) to selected 1.115 (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.130 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:31 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.129: +5 -5 lines
Diff to previous 1.129 (colored) to selected 1.115 (colored)

Merge from vmlocking:

- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.

Revision 1.129 / (download) - annotate - [select for diffs], Fri Jul 27 10:03:58 2007 UTC (16 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.128: +3 -2 lines
Diff to previous 1.128 (colored) to selected 1.115 (colored)

stop nfs tick when we have nothing to do.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Apr 6 14:28:28 2007 UTC (16 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.127: +4 -89 lines
Diff to previous 1.127 (colored) to selected 1.115 (colored)

Remove calls to now obsolete vn_start_write() and vn_finished_write().

Revision 1.127 / (download) - annotate - [select for diffs], Mon Mar 5 23:18:50 2007 UTC (17 years ago) by yamt
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.126: +3 -2 lines
Diff to previous 1.126 (colored) to selected 1.115 (colored)

nfsrv_setattr: revive nfsm_srvsattr which was (mistakenly?)
removed with caddr_t.

Revision 1.126 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:37 2007 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.125: +75 -76 lines
Diff to previous 1.125 (colored) to selected 1.115 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.125 / (download) - annotate - [select for diffs], Thu Feb 22 06:14:28 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.124: +29 -29 lines
Diff to previous 1.124 (colored) to selected 1.115 (colored)

TRUE -> true, FALSE -> false

Revision 1.124 / (download) - annotate - [select for diffs], Tue Feb 20 16:27:21 2007 UTC (17 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.123: +4 -2 lines
Diff to previous 1.123 (colored) to selected 1.115 (colored)

after freeing cookies, set the pointer to NULL to prevent dangling reuse

Revision 1.123 / (download) - annotate - [select for diffs], Sun Feb 4 14:48:51 2007 UTC (17 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.122: +6 -4 lines
Diff to previous 1.122 (colored) to selected 1.115 (colored)

in nfsrv_rename(), change vput(fdirp) back to vrele() since the dirp
returned from nfs_namei() is not locked in this case.  fixes PR 35542.
also, apply the same fix here as was made in rename_files() to handle
the case when dvp and vp are the same.

Revision 1.122 / (download) - annotate - [select for diffs], Thu Jan 4 20:24:08 2007 UTC (17 years, 2 months ago) by elad
Branch: MAIN
Changes since 1.121: +6 -6 lines
Diff to previous 1.121 (colored) to selected 1.115 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.121 / (download) - annotate - [select for diffs], Wed Dec 27 12:10:09 2006 UTC (17 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.120: +4 -3 lines
Diff to previous 1.120 (colored) to selected 1.115 (colored)

remove nqnfs.

Revision 1.120 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:52 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.119: +56 -77 lines
Diff to previous 1.119 (colored) to selected 1.115 (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.119 / (download) - annotate - [select for diffs], Thu Nov 9 09:53:57 2006 UTC (17 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.118: +6 -14 lines
Diff to previous 1.118 (colored) to selected 1.115 (colored)

remove some __unused in function parameters.

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

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

Revision 1.117 / (download) - annotate - [select for diffs], Sat Sep 2 12:40:36 2006 UTC (17 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.116: +139 -161 lines
Diff to previous 1.116 (colored) to selected 1.115 (colored)

nfsd: deal with variable-sized filehandles.

Revision 1.116 / (download) - annotate - [select for diffs], Sat Sep 2 07:26:47 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.115: +3 -2 lines
Diff to previous 1.115 (colored)

fix default type decls
fix incomplete initializer

Revision 1.115 / (download) - annotate - [selected], Thu Jul 20 15:12:23 2006 UTC (17 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.114: +4 -2 lines
Diff to previous 1.114 (colored)

When there are too many empty entries in a row, and we need to try to
read the next block, free the cookie buffer before doing so to avoid
a memory leak. Reported by  Mark Davies.

Revision 1.114 / (download) - annotate - [select for diffs], Thu Jul 13 12:00:26 2006 UTC (17 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.113: +21 -10 lines
Diff to previous 1.113 (colored) to selected 1.115 (colored)

Fix alignement problems for fhandle_t, exposed by gcc4.1.

While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).

Revision 1.113 / (download) - annotate - [select for diffs], Fri Jun 30 09:56:03 2006 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.112: +6 -6 lines
Diff to previous 1.112 (colored) to selected 1.115 (colored)

wrap long lines and fix indents after kauth merge.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Jun 17 07:06:51 2006 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, chap-midi-nbase, chap-midi-base
Changes since 1.111: +8 -27 lines
Diff to previous 1.111 (colored) to selected 1.115 (colored)

- introduce vfs_composefh() and use it where appropriate.
- fix lock/unlock mismatch in sys_getfh.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Jun 9 21:41:14 2006 UTC (17 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: gdamore-uart-base
Branch point for: gdamore-uart
Changes since 1.110: +16 -10 lines
Diff to previous 1.110 (colored) to selected 1.115 (colored)

stack police: don't allocate statvfs on the stack.

Revision 1.110 / (download) - annotate - [select for diffs], Wed Jun 7 22:34:17 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
Changes since 1.109: +7 -4 lines
Diff to previous 1.109 (colored) to selected 1.115 (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.109 / (download) - annotate - [select for diffs], Sun May 14 21:32:21 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.108: +63 -35 lines
Diff to previous 1.108 (colored) to selected 1.115 (colored)

integrate kauth.

Revision 1.108 / (download) - annotate - [select for diffs], Wed May 10 21:53:19 2006 UTC (17 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.107: +4 -2 lines
Diff to previous 1.107 (colored) to selected 1.115 (colored)

quell GCC 4.1 uninitialised variable warnings.

XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..

Revision 1.107 / (download) - annotate - [select for diffs], Sat Apr 15 01:58:44 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.106: +2 -5 lines
Diff to previous 1.106 (colored) to selected 1.115 (colored)

Coverity CID 735: Remove duplicate code.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Apr 15 01:54:46 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.105: +4 -2 lines
Diff to previous 1.105 (colored) to selected 1.115 (colored)

Coverity CID 736: Comment out dead code.

Revision 1.105 / (download) - annotate - [select for diffs], Sat Apr 15 01:39:15 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.104: +6 -4 lines
Diff to previous 1.104 (colored) to selected 1.115 (colored)

Coverity CID 1143: Prevent NULL deref.

Revision 1.104 / (download) - annotate - [select for diffs], Sat Apr 15 01:37:46 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.103: +6 -4 lines
Diff to previous 1.103 (colored) to selected 1.115 (colored)

Coverity CID 1144: Protect against NULL deref.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Apr 15 00:44:18 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.102: +23 -35 lines
Diff to previous 1.102 (colored) to selected 1.115 (colored)

Coverity CID 2510-2514: Always initialize cache.

Revision 1.102 / (download) - annotate - [select for diffs], Mon Mar 27 20:20:46 2006 UTC (18 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Changes since 1.101: +8 -2 lines
Diff to previous 1.101 (colored) to selected 1.115 (colored)

KASSERT that the returned file id length from VPTOFH is <= the
maximum allowed value (_VFS_MAXFIDSZ).

Revision 1.101 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:32 2006 UTC (18 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.100: +9 -15 lines
Diff to previous 1.100 (colored) to selected 1.115 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.100 / (download) - annotate - [select for diffs], Tue Jan 3 11:41:50 2006 UTC (18 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (colored) to selected 1.115 (colored)

remove a few unnecessary caddr_t casts.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:16 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.98: +135 -146 lines
Diff to previous 1.98 (colored) to selected 1.115 (colored)

merge ktrace-lwp.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Oct 6 10:23:01 2005 UTC (18 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-readahead
Changes since 1.97: +8 -6 lines
Diff to previous 1.97 (colored) to selected 1.115 (colored)

- remove a ufs dependency.
- bump readdir block size to 1024.  (the same value as userland DIRBLKSIZ)

Revision 1.97 / (download) - annotate - [select for diffs], Tue Sep 6 09:36:28 2005 UTC (18 years, 6 months ago) by jmmv
Branch: MAIN
Changes since 1.96: +3 -2 lines
Diff to previous 1.96 (colored) to selected 1.115 (colored)

Set va_type to VLNK before calling VOP_SYMLINK to match the change in the
vfs_syscalls.c file.  Pointed out by yamt@.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Aug 19 12:47:23 2005 UTC (18 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored) to selected 1.115 (colored)

as we now have 64bit ino_t, no need to truncate nfsv3 fileids.

Revision 1.95 / (download) - annotate - [select for diffs], Wed May 18 12:57:34 2005 UTC (18 years, 10 months ago) by yamt
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.94: +14 -12 lines
Diff to previous 1.94 (colored) to selected 1.115 (colored)

nfsrv_mknod: reject device numbers which we can't handle.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Feb 26 22:39:50 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
Changes since 1.93: +15 -15 lines
Diff to previous 1.93 (colored) to selected 1.115 (colored)

nuke trailing whitespace

Revision 1.93 / (download) - annotate - [select for diffs], Thu Dec 9 02:18:45 2004 UTC (19 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.92: +5 -4 lines
Diff to previous 1.92 (colored) to selected 1.115 (colored)

nfsrv_commit: make cnt unsigned so that very large commit requests can be
handled properly.

Revision 1.92 / (download) - annotate - [select for diffs], Thu Dec 9 01:48:22 2004 UTC (19 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.91: +6 -4 lines
Diff to previous 1.91 (colored) to selected 1.115 (colored)

when calling create-type VOP, make sure that va_mode is set
even when a client doesn't specify it.
(most filesystems get confused if va_mode is VNOVAL.)

Revision 1.91 / (download) - annotate - [select for diffs], Sat Dec 4 08:07:52 2004 UTC (19 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.90: +4 -2 lines
Diff to previous 1.90 (colored) to selected 1.115 (colored)

nfsrv_read: fall back to copying when fail to loan pages.
(i forgot to commit this with uvm_loan.c rev.1.51.)

Revision 1.90 / (download) - annotate - [select for diffs], Fri Sep 17 14:11:25 2004 UTC (19 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.89: +8 -8 lines
Diff to previous 1.89 (colored) to selected 1.115 (colored)

There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9).

OK'd by Jason Thorpe

Revision 1.89 / (download) - annotate - [select for diffs], Mon May 31 08:47:08 2004 UTC (19 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.88: +18 -7 lines
Diff to previous 1.88 (colored) to selected 1.115 (colored)

nfsrv_create: fix an LP64 problem for exclusive create.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:42 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.87: +19 -19 lines
Diff to previous 1.87 (colored) to selected 1.115 (colored)

Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.

Revision 1.87 / (download) - annotate - [select for diffs], Wed Jan 7 12:17:10 2004 UTC (20 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.86: +28 -68 lines
Diff to previous 1.86 (colored) to selected 1.115 (colored)

- get pages to loan out in uvm_loanuobjpages() rather than
  having caller (nfsd, in this case) do so.
- tweak locking so that nfs loaned READ works on layered filesystems.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Nov 5 10:18:38 2003 UTC (20 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored) to selected 1.115 (colored)

Clean up the usage of vn_start_write(). At least one occurence clobbered
previous error conditions.
If "(flags & (V_WAIT|V_PCATCH)) == V_WAIT" the return value is always zero.
Ignore the return value in these cases.

From Darrin B. Jewell.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Oct 29 21:28:37 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.84: +2 -3 lines
Diff to previous 1.84 (colored) to selected 1.115 (colored)

Back out the bogus initializer -- the compiler bug is fixed.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Oct 28 02:01:46 2003 UTC (20 years, 5 months ago) by cl
Branch: MAIN
Changes since 1.83: +3 -2 lines
Diff to previous 1.83 (colored) to selected 1.115 (colored)

note 'm68k {u,}int64_t used uninitialized' bug.
add reference to gcc bug report.
mark all (known) occurrences.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Oct 20 13:53:47 2003 UTC (20 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.82: +5 -4 lines
Diff to previous 1.82 (colored) to selected 1.115 (colored)

set READres EOF flag correctly.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Oct 15 11:29:01 2003 UTC (20 years, 5 months ago) by hannken
Branch: MAIN
Changes since 1.81: +91 -5 lines
Diff to previous 1.81 (colored) to selected 1.115 (colored)

Add the gating of system calls that cause modifications to the underlying
file system.
The function vfs_write_suspend stops all new write operations to a file
system, allows any file system modifying system calls already in progress
to complete, then sync's the file system to disk and returns. The
function vfs_write_resume allows the suspended write operations to
complete.

From FreeBSD with slight modifications.

Approved by: Frank van der Linden <fvdl@netbsd.org>

Revision 1.81 / (download) - annotate - [select for diffs], Thu Aug 7 16:33:51 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.80: +3 -7 lines
Diff to previous 1.80 (colored) to selected 1.115 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Jul 9 21:16:12 2003 UTC (20 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.79: +5 -3 lines
Diff to previous 1.79 (colored) to selected 1.115 (colored)

nfsrv_commit(): return success and don't do anything for requests which starts
past the end of the file. This can happen when two clients are writting to
the same file.
Close PR 21696 by myself, discussed on tech-net in 2003/05 and 2003/06.
Issue raised by Chuck Silvers (commit and truncate ops needs to be serialised)
still unadressed.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:16 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.78: +146 -135 lines
Diff to previous 1.78 (colored) to selected 1.115 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:36 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.77: +18 -18 lines
Diff to previous 1.77 (colored) to selected 1.115 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:17 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.76: +151 -162 lines
Diff to previous 1.76 (colored) to selected 1.115 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jun 9 13:10:31 2003 UTC (20 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.75: +14 -13 lines
Diff to previous 1.75 (colored) to selected 1.115 (colored)

rework zero padding of rpc reply.
- for READ procedure, don't send back more bytes than requested.
- don't have doubtful assumptions on mbuf chain structure.
- rename a function (nfsm_adj -> nfs_zeropad) to avoid confusion as
  the semantics of the function was changed.

Revision 1.75 / (download) - annotate - [select for diffs], Thu May 29 15:18:14 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.74: +60 -37 lines
Diff to previous 1.74 (colored) to selected 1.115 (colored)

workaround for UBC limit.

while our nfsd announces MAXBSIZE as wtmax for tcp,
VOP_GETPAGES of filesystems that uses genfs_getpages can't
handle >= MAX_READ_AHEAD(16) pages at once.
therefore, depending on PAGE_SIZE of the machine and file offset of
a read request, we can't VOP_GETPAGES the range at once.

Revision 1.74 / (download) - annotate - [select for diffs], Wed May 7 13:10:44 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.73: +57 -57 lines
Diff to previous 1.73 (colored) to selected 1.115 (colored)

- indent.
- fix a comment typo (mus -> must)
- remove an unneeded caddr_t cast.

Revision 1.73 / (download) - annotate - [select for diffs], Sun May 4 11:40:22 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.115 (colored)

fix handling of the case that readsize == 0.

Revision 1.72 / (download) - annotate - [select for diffs], Sat May 3 18:36:26 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.71: +128 -54 lines
Diff to previous 1.71 (colored) to selected 1.115 (colored)

use uvm page loanout mechanism for nfsd READ procedure processing.

reviewed by Frank van der Linden and Chuck Silvers.
tested by Wojciech Puchar.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Apr 3 15:19:12 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.70: +5 -3 lines
Diff to previous 1.70 (colored) to selected 1.115 (colored)

return rtmax bytes if we get READ requests larger than rtmax.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Apr 2 15:14:20 2003 UTC (21 years ago) by yamt
Branch: MAIN
Changes since 1.69: +18 -22 lines
Diff to previous 1.69 (colored) to selected 1.115 (colored)

use queue manipulation macros.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Mar 28 15:24:58 2003 UTC (21 years ago) by yamt
Branch: MAIN
Changes since 1.68: +11 -10 lines
Diff to previous 1.68 (colored) to selected 1.115 (colored)

reply FSINFO rtmax and wtmax for DGRAM properly.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Mar 28 13:05:47 2003 UTC (21 years ago) by yamt
Branch: MAIN
Changes since 1.67: +36 -11 lines
Diff to previous 1.67 (colored) to selected 1.115 (colored)

reply ENAMETOOLONG properly instead of discarding request as BADRPC.
my own PR20791.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:18 2003 UTC (21 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.66: +26 -24 lines
Diff to previous 1.66 (colored) to selected 1.115 (colored)

Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Dec 1 23:02:10 2002 UTC (21 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored) to selected 1.115 (colored)

Make sure these all agree on the same definitons of various variables.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Sep 27 19:30:46 2002 UTC (21 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.64: +7 -7 lines
Diff to previous 1.64 (colored) to selected 1.115 (colored)

In nfs_commit(), sanity-check what we get from network: if we try to fluch
past end of file, or if off + cnt overflows a quad_t, flush to end of file.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Sep 26 20:41:25 2002 UTC (21 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.63: +2 -3 lines
Diff to previous 1.63 (colored) to selected 1.115 (colored)

In nfsrv_create(), kill an extra PNBUF_PUT() in the NFSv2 mknod case. The
pnbuf has already been freed by VOP_MKNOD. This should have been removed in
rev 1.60.
Should fix PR 18013, OK'd by fvdl.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Sep 26 20:38:04 2002 UTC (21 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.62: +6 -3 lines
Diff to previous 1.62 (colored) to selected 1.115 (colored)

nfsrv_commit(): Properly handle the case cnt == 0, which means "flush to
end of file". Calling VOP_FSYNC with start == end triggers a DIAGNOSTIC
check. Noticed with NFSv3 Linux clients. OK'd by fvdl.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Nov 10 10:59:09 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6
Changes since 1.61: +4 -1 lines
Diff to previous 1.61 (colored) to selected 1.115 (colored)

add RCSIDs

Revision 1.61 / (download) - annotate - [select for diffs], Sun Sep 23 01:37:03 2001 UTC (22 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.60: +5 -44 lines
Diff to previous 1.60 (colored) to selected 1.115 (colored)

remove SAVESTART from the symlink, mknod and create operations.
it was unnecessary, and removing it also fixes a v_usecount leak
that was introduced in the previous revision.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jul 24 15:39:33 2001 UTC (22 years, 8 months ago) by assar
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.59: +10 -29 lines
Diff to previous 1.59 (colored) to selected 1.115 (colored)

change vop_symlink and vop_mknod to return vpp (the created node)
refed, so that the caller can actually use it.  update callers and
file systems that implement these vnode operations

Revision 1.59 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:49 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa, kqueue
Changes since 1.58: +5 -7 lines
Diff to previous 1.58 (colored) to selected 1.115 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Sep 19 22:05:29 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.57: +2 -6 lines
Diff to previous 1.57 (colored) to selected 1.115 (colored)

Adapt for VOP_FSYNC parameter change.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Aug 3 20:41:31 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +22 -22 lines
Diff to previous 1.56 (colored) to selected 1.115 (colored)

Convert namei pathname buffer allocation to use the pool allocator.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Aug 3 06:15:03 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.55: +23 -26 lines
Diff to previous 1.55 (colored) to selected 1.115 (colored)

MALLOC()/FREE() are not to be used for variable size allocations.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jun 27 17:52:32 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.54: +1 -3 lines
Diff to previous 1.54 (colored) to selected 1.115 (colored)

remove include of <vm/vm.h>

Revision 1.54 / (download) - annotate - [select for diffs], Thu Mar 30 12:51:15 2000 UTC (24 years ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.53: +89 -89 lines
Diff to previous 1.53 (colored) to selected 1.115 (colored)

Remove register declarations.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 30 02:42:17 2000 UTC (24 years ago) by simonb
Branch: MAIN
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored) to selected 1.115 (colored)

Delete redundant decl of nfs_pub - it's in <sys/mount.h>.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Dec 5 01:43:06 1999 UTC (24 years, 3 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored) to selected 1.115 (colored)

The length check for readdirplus entries wasn't right, causing troubles
with 32k readdir sizes. From FreeBSD.

Revision 1.51 / (download) - annotate - [select for diffs], Tue May 4 16:01:37 1999 UTC (24 years, 11 months ago) by sommerfe
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.50: +12 -3 lines
Diff to previous 1.50 (colored) to selected 1.115 (colored)

Fix vnode lock leak in nfsrv_mknod() if to-be-created vnode already existed.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Mar 30 12:01:18 1999 UTC (25 years ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored) to selected 1.115 (colored)

Fix two problems with NFSV3CREATE_GUARDED:
* We shouldn't truncate the file.
* We were leaving the vnode locked (unless the truncate happened to fail).
Solaris clients may cause this under some conditions.
Problem reported by chopps, analysis and fix by me.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:28 1999 UTC (25 years ago) by mrg
Branch: MAIN
Changes since 1.48: +1 -18 lines
Diff to previous 1.48 (colored) to selected 1.115 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Mar 6 05:34:41 1999 UTC (25 years ago) by fair
Branch: MAIN
Changes since 1.47: +22 -22 lines
Diff to previous 1.47 (colored) to selected 1.115 (colored)

Snatch a patch from OpenBSD to fix PRs 6529 and 7074.
Adjust fxdr_hyper() and txdr_hyper() macros.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Mar 5 07:27:58 1999 UTC (25 years ago) by mycroft
Branch: MAIN
Changes since 1.46: +9 -13 lines
Diff to previous 1.46 (colored) to selected 1.115 (colored)

Clean up some sign extension bogosity in statfs, so negative numbers are
actually negative on a LP64 client.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jan 31 09:24:10 1999 UTC (25 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored) to selected 1.115 (colored)

non-root users can mkfifo over NFS.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Aug 18 06:45:04 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored) to selected 1.115 (colored)

Add some braces to make egcs happy (ambiguous else warning).

Revision 1.44 / (download) - annotate - [select for diffs], Sun Aug 9 21:19:51 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.43: +16 -16 lines
Diff to previous 1.43 (colored) to selected 1.115 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.43 / (download) - annotate - [select for diffs], Fri Jun 5 19:53:01 1998 UTC (25 years, 9 months ago) by kleink
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored) to selected 1.115 (colored)

Convert fsync vnode operator implementations and usage from the old `waitfor'
argument and MNT_WAIT/MNT_NOWAIT to `flags' and FSYNC_WAIT.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Mar 1 02:24:28 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.41: +15 -44 lines
Diff to previous 1.41 (colored) to selected 1.115 (colored)

Merge with Lite2 + local changes

Revision 1.41 / (download) - annotate - [select for diffs], Tue Feb 10 14:10:12 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.40: +3 -1 lines
Diff to previous 1.40 (colored) to selected 1.115 (colored)

- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Feb 5 08:00:21 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.39: +18 -1 lines
Diff to previous 1.39 (colored) to selected 1.115 (colored)

initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the rest of the MI portion changes.

this will be KNF'd shortly.  :-)

Revision 1.39 / (download) - annotate - [select for diffs], Mon Dec 22 00:09:02 1997 UTC (26 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.38: +9 -1 lines
Diff to previous 1.38 (colored) to selected 1.115 (colored)

Check vnode for VDIR type before doing anything with it in the
NFS readdir service.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Oct 10 01:53:22 1997 UTC (26 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-BETA, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.37: +10 -9 lines
Diff to previous 1.37 (colored) to selected 1.115 (colored)

* New directory entry caching system. Provides full caching of any
  directory cookie that may be thrown back at us from userspace, up
  to a size limit. Fixes double entry problem.
* Split flags for internal and external use in the NFS mount structure.
* Fix some buffer structure fields that weren're being used correctly.
* Fix missing directory cache inval call in nfs_open.
* Limit on NFS_DIRBLKSIZ no longer needed, bumped to the more reasonable
  value of 8k.
* Various other things that I forget, all related to the dir caching
  somehow, though.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 17 23:54:29 1997 UTC (26 years, 8 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp
Branch point for: marc-pcmcia
Changes since 1.36: +9 -4 lines
Diff to previous 1.36 (colored) to selected 1.115 (colored)

* Deal with servers that don't give complete FSINFO (like NT)
  From Olaf Seibert <rhialto@polder.ubc.kun.nl> (PR 3687)
* Make an attempt to check the maximum filesize before attempting
  a write to the server, as write RPCs will typically happen
  asynchronously, and the process will not see the error.
  Fixes problems with unexpectly truncated files at 4G
* Pass up errors in nfs_writerpc correctly

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jul 15 01:07:47 1997 UTC (26 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.35: +17 -1 lines
Diff to previous 1.35 (colored) to selected 1.115 (colored)

A filesystem may not support VFS_VGET (like msdosfs). If it doesn't,
the server code would always skip all dir entries for a readdirplus
operation. To avoid endlessly retrying clients, try VFS_VGET first,
and it it fails, return NFSERR_NOTSUPP so that client will fall
back to normal readdir operations.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jun 24 23:32:45 1997 UTC (26 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.34: +78 -30 lines
Diff to previous 1.34 (colored) to selected 1.115 (colored)

Provide the extra arg to nfsrv_fhtovp, signalling if we're dealing with
a request on the public filehandle. Extend the lookup operation to
support WebNFS, including index file support (URL style). Yucky, it's
optional in the spec, but Solaris 2.6 will support it, so..

Revision 1.34 / (download) - annotate - [select for diffs], Mon May 12 23:37:12 1997 UTC (26 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.33: +15 -1 lines
Diff to previous 1.33 (colored) to selected 1.115 (colored)

In nfsrvw_coalesce, make sure the coalesce list from the nfsd is moved
as well. This fixes client hangs. (from Naofumi Honda
<honda@Kururu.math.sci.hokudai.ac.jp> / NetBSD-pc98)

Revision 1.33 / (download) - annotate - [select for diffs], Thu May 8 16:20:32 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored) to selected 1.115 (colored)

Pass the vnode type to vaccess(), and use it when checking VEXEC.  Make sure
that the mode bits passed to vaccess() and returned by foo_getattr() contain
only permission bits.

Revision 1.32 / (download) - annotate - [select for diffs], Thu May 8 10:57:41 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.31: +28 -24 lines
Diff to previous 1.31 (colored) to selected 1.115 (colored)

VEXEC -> VLOOKUP, as appropriate.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Feb 22 02:56:01 1997 UTC (27 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored) to selected 1.115 (colored)

Fixes from BSDI (thanks go to Keith Bostic). Original RCS message:

date: 1996/11/20 20:02:54;  author: pjd;  state: Exp;  lines: +7 -4
In nfsrv_access(), if VOP_ACCESS() returns an error and the
error == EPERM or its not the owner doing the access, return the error.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Feb 10 12:20:49 1997 UTC (27 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: mrg-vm-swap
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored) to selected 1.115 (colored)

Move vnode_pager_uncache to a better spot in nfsrv_remove. Also use it
in nfsrv_rename, if the 2nd argument is an existing file and will thus
be removed.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jan 31 16:12:26 1997 UTC (27 years, 2 months ago) by fvdl
Branch: MAIN
CVS Tags: is-newarp-base
Branch point for: is-newarp
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored) to selected 1.115 (colored)

nfsrv_readdirplus also suffered from the off-by-one loop problem; fix it too.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 31 09:09:43 1997 UTC (27 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored) to selected 1.115 (colored)

Fix order error in loop condition which could cause a crash in nfsrv_readdir().
Fixes PR #3170

Revision 1.27 / (download) - annotate - [select for diffs], Wed Dec 11 00:01:56 1996 UTC (27 years, 3 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej-setroot
Changes since 1.26: +27 -21 lines
Diff to previous 1.26 (colored) to selected 1.115 (colored)

Give permission to the owner of the file to preserve semantics only
in the relevant cases (read, write). Fixes PR 3017.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jul 1 11:16:03 1996 UTC (27 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.25: +2 -3 lines
Diff to previous 1.25 (colored) to selected 1.115 (colored)

Always call vnode_pager_uncache when removing a file in the server
(same as in sys_unlink()).

Revision 1.25 / (download) - annotate - [select for diffs], Sat Mar 2 15:55:52 1996 UTC (28 years, 1 month ago) by jtk
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.24: +9 -5 lines
Diff to previous 1.24 (colored) to selected 1.115 (colored)

Do not return whiteout directory entries in NFS readdir replies.  (The
NFS protocol doesn't know how to deal with them properly, yet.)

Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 20 23:45:10 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored) to selected 1.115 (colored)

Third argument to VOP_PATHCONF is a register_t *, and register_t may be
different than 'int'.  Do the right thing when declaring variables which
are used this way.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 18 11:53:45 1996 UTC (28 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.22: +2128 -742 lines
Diff to previous 1.22 (colored) to selected 1.115 (colored)

Bring in a merge of Rick Macklem's NFSv3 code from Lite2

Revision 1.22 / (download) - annotate - [select for diffs], Fri Feb 9 21:48:27 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.21: +126 -64 lines
Diff to previous 1.21 (colored) to selected 1.115 (colored)

nfs prototype changes

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 9 15:47:11 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.20: +18 -35 lines
Diff to previous 1.20 (colored) to selected 1.115 (colored)

Fix vop_link, vop_symlink, and vop_remove semantics in several ways:
* Change the argument names to vop_link so they actually make sense.
* Implement vop_link and vop_symlink for all file systems, so they do proper
  cleanup.
* Require the file system to decide whether or not linking and unlinking of
  directories is allowed, and disable it for all current file systems.
(Also, remove the cross-device link check, that was moved into the file
systems some time ago.)

Revision 1.20 / (download) - annotate - [select for diffs], Thu Feb 1 00:40:13 1996 UTC (28 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.115 (colored)

Rename struct timespec fields to conform to POSIX.1b

Revision 1.19 / (download) - annotate - [select for diffs], Tue Dec 19 23:07:32 1995 UTC (28 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.18: +72 -72 lines
Diff to previous 1.18 (colored) to selected 1.115 (colored)

changes to make this work on systems where pointers & longs are 64 bits.
This is mostly just changes to make the stuff that goes over the wire
use fixed-size types.

Revision 1.18 / (download) - annotate - [select for diffs], Tue May 23 06:22:47 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.17: +58 -64 lines
Diff to previous 1.17 (colored) to selected 1.115 (colored)

Remove gratuitous extra indirections.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 13 17:17:01 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.115 (colored)

Sync with CSRG.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 29 06:42:13 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored) to selected 1.115 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 8 11:36:55 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +773 -419 lines
Diff to previous 1.14 (colored) to selected 1.115 (colored)

Update to 4.4-Lite fs code, with local changes.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Apr 21 07:49:09 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.115 (colored)

Convert mount, vnode, and buf structs to use <sys/queue.h>.  Also,
some knf and structure frobbing to do along with it.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 10 06:45:56 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.12: +8 -7 lines
Diff to previous 1.12 (colored) to selected 1.115 (colored)

patchkit date deletions!

Revision 1.12 / (download) - annotate - [select for diffs], Sat Mar 12 01:31:32 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (colored) to selected 1.115 (colored)

fix rcs id

Revision 1.11 / (download) - annotate - [select for diffs], Wed Mar 9 21:24:30 1994 UTC (30 years ago) by ws
Branch: MAIN
Changes since 1.10: +10 -10 lines
Diff to previous 1.10 (colored) to selected 1.115 (colored)

Make FFS optional

Revision 1.10 / (download) - annotate - [select for diffs], Sat Dec 18 00:45:00 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +15 -15 lines
Diff to previous 1.9 (colored) to selected 1.115 (colored)

Canonicalize all #includes.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 26 19:57:04 1993 UTC (30 years, 4 months ago) by ws
Branch: MAIN
Changes since 1.8: +1 -5 lines
Diff to previous 1.8 (colored) to selected 1.115 (colored)

Bug fixes to ISOFS

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 7 15:41:40 1993 UTC (30 years, 6 months ago) by ws
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.7: +26 -19 lines
Diff to previous 1.7 (colored) to selected 1.115 (colored)

Changes to VFS readdir semantics
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers

Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 3 23:57:25 1993 UTC (30 years, 7 months ago) by jtc
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored) to selected 1.115 (colored)

Include systm.h to get prototypes (and possibly inlines) of *max functions.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 16 00:52:50 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored) to selected 1.115 (colored)

ANSI mods.
(originally committed by andrew on 1993/06/27 06:58:35)

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 16 00:51:55 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.4: +10 -1 lines
Diff to previous 1.4 (colored) to selected 1.115 (colored)

fix for macklem's bogus use of the va_flags field, supplied by
John Woods, jfwfrom: @ksr.com.  also, fixes the following problems:
the va_gen field is in a similar position
(Suns are going to be reporting the change-date microseconds as their
"generation"), I've supplied my own set of diffs below for your inspection.
Note these aren't even compiled, but they're pretty similar to what I had
to do to our older version of OSF/1 here.  (There's also an unrelated change
supplied for xdr_subs.h; the pointer types supplied to the fxdr_time() and
txdr_time() macros are not, in fact, both struct timevals.  That turns out
to be one of many tips-of-the-iceberg facing those porting the (old) Berkeley
NFS code to 64-bit machines...)
(originally committed by cgd on 1993/06/03 01:12:42)

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 16 00:50:30 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.3: +2 -10 lines
Diff to previous 1.3 (colored) to selected 1.115 (colored)

more rcs id adding and header cleanup.  i like vi macros!
(originally committed by cgd on 1993/05/20 03:18:44)

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 10 20:19:19 1993 UTC (30 years, 11 months ago) by glass
Branch: MAIN
CVS Tags: netbsd-alpha-1
Changes since 1.2: +38 -0 lines
Diff to previous 1.2 (colored) to selected 1.115 (colored)

migrated code to make split possible

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (31 years ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2
Changes since 1.1: +22 -8 lines
Diff to previous 1.1 (colored) to selected 1.115 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.115 (colored)

Initial revision

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>