The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.242 / (download) - annotate - [select for diffs], Wed Feb 9 21:50:24 2022 UTC (2 years, 1 month ago) by andvar
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.241: +3 -3 lines
Diff to previous 1.241 (colored) to selected 1.202.2.1 (colored)

s/ony/only/

Revision 1.241 / (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.240: +3 -3 lines
Diff to previous 1.240 (colored) to selected 1.202.2.1 (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.240 / (download) - annotate - [select for diffs], Mon May 25 21:15:10 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.239: +5 -5 lines
Diff to previous 1.239 (colored) to selected 1.202.2.1 (colored)

- Alter the convention for uvm_page_array slightly, so the basic search
  parameters can't change part way through a search: move the "uobj" and
  "flags" arguments over to uvm_page_array_init() and store those with the
  array.

- With that, detect when it's not possible to find any more pages in the
  tree with the given search parameters, and avoid repeated tree lookups if
  the caller loops over uvm_page_array_fill_and_peek().

Revision 1.232.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:59 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.232.2.1: +40 -16 lines
Diff to previous 1.232.2.1 (colored) to branchpoint 1.232 (colored) next main 1.233 (colored) to selected 1.202.2.1 (colored)

Merge changes from current as of 20200406

Revision 1.239 / (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.238: +4 -4 lines
Diff to previous 1.238 (colored) to selected 1.202.2.1 (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.238 / (download) - annotate - [select for diffs], Sun Mar 8 22:12:42 2020 UTC (4 years ago) by mgorny
Branch: MAIN
Changes since 1.237: +8 -4 lines
Diff to previous 1.237 (colored) to selected 1.202.2.1 (colored)

Update NFS errno mapping and add assert for correctness

Add the mapping for errno values missing in nfsrv_v2errmap[].  While
at it, add a compile-time assert to make sure that the array does not
become out-of-date again.

Revision 1.236.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:08 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.236: +31 -20 lines
Diff to previous 1.236 (colored) next main 1.237 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.237 / (download) - annotate - [select for diffs], Mon Feb 24 20:18:53 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.236: +31 -20 lines
Diff to previous 1.236 (colored) to selected 1.202.2.1 (colored)

v_interlock -> vmobjlock

Revision 1.236 / (download) - annotate - [select for diffs], Sun Dec 15 21:11:34 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.235: +12 -3 lines
Diff to previous 1.235 (colored) to selected 1.202.2.1 (colored)

Merge from yamt-pagecache:

- do gang lookup of pages using radixtree.
- remove now unused uvm_object::uo_memq and vm_page::listq.queue.

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

Sync with HEAD

Revision 1.230.2.4 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:05 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.230.2.3: +5 -5 lines
Diff to previous 1.230.2.3 (colored) to branchpoint 1.230 (colored) next main 1.231 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.235 / (download) - annotate - [select for diffs], Sat Dec 22 14:28:57 2018 UTC (5 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, 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, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.234: +4 -4 lines
Diff to previous 1.234 (colored) to selected 1.202.2.1 (colored)

Replace M_ALIGN and MH_ALIGN by m_align.

Revision 1.234 / (download) - annotate - [select for diffs], Sat Dec 22 13:11:38 2018 UTC (5 years, 3 months ago) by maxv
Branch: MAIN
Changes since 1.233: +3 -3 lines
Diff to previous 1.233 (colored) to selected 1.202.2.1 (colored)

Replace: M_MOVE_PKTHDR -> m_move_pkthdr. No functional change, since the
former is a macro to the latter.

Revision 1.230.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:45 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.230.2.2: +5 -5 lines
Diff to previous 1.230.2.2 (colored) to branchpoint 1.230 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

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

Revision 1.233 / (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-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.232: +5 -5 lines
Diff to previous 1.232 (colored) to selected 1.202.2.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.229.6.1 / (download) - annotate - [select for diffs], Fri Jun 8 10:25:23 2018 UTC (5 years, 9 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2
Changes since 1.229: +4 -2 lines
Diff to previous 1.229 (colored) next main 1.230 (colored) to selected 1.202.2.1 (colored)

Pull up following revision(s) (requested by maya in ticket #856):

	sys/nfs/nfs.h: revision 1.76
	sys/nfs/nfs_subs.c: revision 1.230
	sys/nfs/nfs_socket.c: revision 1.199
	sys/nfs/nfs_clntsocket.c: revision 1.6

PR/40491: From Tobias Ulmer in tech-kern@:
1. Protect the nfs request queue with its own mutex
2. make the nfs_receive queue check for signals so that intr mounts
   can be interrupted.

XXX: pullup-8

Revision 1.230.2.2 / (download) - annotate - [select for diffs], Mon May 21 04:36:17 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.230.2.1: +3 -6 lines
Diff to previous 1.230.2.1 (colored) to branchpoint 1.230 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

Revision 1.232 / (download) - annotate - [select for diffs], Tue May 8 16:47:58 2018 UTC (5 years, 10 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.231: +3 -6 lines
Diff to previous 1.231 (colored) to selected 1.202.2.1 (colored)

Use M_MOVE_PKTHDR.

Revision 1.230.2.1 / (download) - annotate - [select for diffs], Wed May 2 07:20:24 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.230: +3 -3 lines
Diff to previous 1.230 (colored) to selected 1.202.2.1 (colored)

Synch with HEAD

Revision 1.231 / (download) - annotate - [select for diffs], Thu Apr 26 20:10:44 2018 UTC (5 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0502
Changes since 1.230: +3 -3 lines
Diff to previous 1.230 (colored) to selected 1.202.2.1 (colored)

Hum. This should be M_READONLY, not M_ROMAP.

M_ROMAP tells us whether the mbuf storage is mapped on a read-only page.
But an mbuf can still be read-only in the sense that the storage is
shared with other mbufs.

Revision 1.230 / (download) - annotate - [select for diffs], Sun Jan 21 20:36:49 2018 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.229: +4 -2 lines
Diff to previous 1.229 (colored) to selected 1.202.2.1 (colored)

PR/40491: From Tobias Ulmer in tech-kern@:
1. Protect the nfs request queue with its own mutex
2. make the nfs_receive queue check for signals so that intr mounts
   can be interrupted.
XXX: pullup-8

Revision 1.222.8.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:06 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.222.8.1: +3 -1 lines
Diff to previous 1.222.8.1 (colored) to branchpoint 1.222 (colored) next main 1.223 (colored) to selected 1.202.2.1 (colored)

update from HEAD

Revision 1.227.4.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:13 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.227.4.1: +4 -2 lines
Diff to previous 1.227.4.1 (colored) to branchpoint 1.227 (colored) next main 1.228 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

Revision 1.228.2.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:30 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.228: +4 -2 lines
Diff to previous 1.228 (colored) next main 1.229 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

Revision 1.228.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:07 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.228: +4 -2 lines
Diff to previous 1.228 (colored) next main 1.229 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

Revision 1.229 / (download) - annotate - [select for diffs], Sat Apr 1 19:35:57 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-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.228: +4 -2 lines
Diff to previous 1.228 (colored) to selected 1.202.2.1 (colored)

KASSERT(mutex_owned(vp->v_interlock)) in vnode iterator selector.

Revision 1.227.4.1 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:23 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.227: +3 -3 lines
Diff to previous 1.227 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

Revision 1.228 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:16 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.227: +3 -3 lines
Diff to previous 1.227 (colored) to selected 1.202.2.1 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.222.8.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:36 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.222: +59 -33 lines
Diff to previous 1.222 (colored) to selected 1.202.2.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.227 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:36 2014 UTC (9 years, 7 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, 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.226: +6 -3 lines
Diff to previous 1.226 (colored) to selected 1.202.2.1 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.225.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:45 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.225.2.1: +31 -23 lines
Diff to previous 1.225.2.1 (colored) to branchpoint 1.225 (colored) next main 1.226 (colored) to selected 1.202.2.1 (colored)

Rebase.

Revision 1.225.2.1 / (download) - annotate - [select for diffs], Thu Jul 17 14:03:33 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.225: +6 -3 lines
Diff to previous 1.225 (colored) to selected 1.202.2.1 (colored)

Adjustments to the "earlyentropy" branch in response to the various
discussions beginning with my initial proposal
http://mail-index.netbsd.org/tech-kern/2014/04/08/msg016876.html and
particularly the long discussion of cprng_fast() performance (e.g.
https://mail-index.netbsd.org/tech-crypto/2014/04/21/msg000642.html).

In particular:

	* Per-CPU, lockless cprng_fast replacement using Dennis Ferguson's
	  "ccrand" implementation of ChaCha8.

	* libkern arc4random() is gone, gone, gone.

	* Entropy estimator reverted to 32-bit recordkeeping and timestamps
	  per Dennis' comments and analysis.

	* LZF entropy estimator removed: it required a great deal of state,
	  and rejected only truly pathological input.

	I have not yet reverted the changes that provide LZF in the kernel
	as generic functionality; I will likely revert those changes prior
	to any merge of this branch to HEAD.

Revision 1.226 / (download) - annotate - [select for diffs], Sat May 24 16:34:04 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: tls-earlyentropy-base
Changes since 1.225: +31 -23 lines
Diff to previous 1.225 (colored) to selected 1.202.2.1 (colored)

Introduce a selector function to the vfs vnode iterator so that we don't
need to vget() vnodes that we are not interested at, and optimize locking
a bit. Iterator changes reviewed by Hannken (thanks), the rest of the bugs
are mine.

Revision 1.221.2.6 / (download) - annotate - [select for diffs], Thu May 22 19:11:37 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.221.2.5: +5 -2 lines
Diff to previous 1.221.2.5 (colored) to branchpoint 1.221 (colored) next main 1.222 (colored) to selected 1.202.2.1 (colored)

fix a merge botch

Revision 1.221.2.5 / (download) - annotate - [select for diffs], Thu May 22 11:41:11 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.221.2.4: +33 -19 lines
Diff to previous 1.221.2.4 (colored) to branchpoint 1.221 (colored) to selected 1.202.2.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.222.12.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:14 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.222: +31 -16 lines
Diff to previous 1.222 (colored) next main 1.223 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.225 / (download) - annotate - [select for diffs], Mon Mar 17 09:35:24 2014 UTC (10 years ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.224: +10 -10 lines
Diff to previous 1.224 (colored) to selected 1.202.2.1 (colored)

Change nfs_clearcommit() to use vfs_vnode_iterator.

Revision 1.224 / (download) - annotate - [select for diffs], Wed Sep 18 23:27:38 2013 UTC (10 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.223: +4 -2 lines
Diff to previous 1.223 (colored) to selected 1.202.2.1 (colored)

knf (blank line even if there are no local declarations)

Revision 1.223 / (download) - annotate - [select for diffs], Wed Sep 18 16:33:14 2013 UTC (10 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.222: +23 -10 lines
Diff to previous 1.222 (colored) to selected 1.202.2.1 (colored)

Use reference counting to keep track of construction and destruction of the
structures used by both the nfs server and client code. Tested by pgoyette@

1. mount remote fs via nfs (my /home directory), which autoloads nfs module
2. manually modload nfsserver
3. wait a bit
4. manually modunload nfsserver
5. wait a couple minutes
6. verify that client access still works (/bin/ls ~paul home dir)
7. manually modload nfsserver again
8. start an nfsd process
9. wait a bit
10. kill nfsd process
11. wait
12. manually modunload nfsserver again
13. verify continued client access

XXX: Note that nfs_vfs_init() calls nfs_init(), but nfs_vfs_done() does not
     call nfs_fini(). Also note that the destruction order is wrong in it,
     but probably does not matter. "someone" (!= me) should fix it :-) and
     run the above tests.

Revision 1.221.2.4 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:47 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.221.2.3: +4 -3 lines
Diff to previous 1.221.2.3 (colored) to branchpoint 1.221 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.221.2.3 / (download) - annotate - [select for diffs], Sat Nov 26 15:37:50 2011 UTC (12 years, 4 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.221.2.2: +1 -1 lines
Diff to previous 1.221.2.2 (colored) to branchpoint 1.221 (colored) to selected 1.202.2.1 (colored)

update after radixtree.h api changes

Revision 1.222 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:30 2011 UTC (12 years, 4 months ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, khorben-n900, jmcneill-usbmp-pre-base2, 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, jmcneill-usbmp-base, jmcneill-usbmp, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.221: +4 -3 lines
Diff to previous 1.221 (colored) to selected 1.202.2.1 (colored)

First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.

Revision 1.221.2.2 / (download) - annotate - [select for diffs], Sun Nov 6 22:05:01 2011 UTC (12 years, 4 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.221.2.1: +11 -1 lines
Diff to previous 1.221.2.1 (colored) to branchpoint 1.221 (colored) to selected 1.202.2.1 (colored)

remove pg->listq and uobj->memq

Revision 1.221.2.1 / (download) - annotate - [select for diffs], Wed Nov 2 21:53:59 2011 UTC (12 years, 4 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.221: +19 -17 lines
Diff to previous 1.221 (colored) to selected 1.202.2.1 (colored)

page cache related changes

- maintain object pages in radix tree rather than rb tree.
- reduce unnecessary page scan in putpages.  esp. when an object has a ton of
  pages cached but only a few of them are dirty.
- reduce the number of pmap operations by tracking page dirtiness more
  precisely in uvm layer.
- fix nfs commit range tracking.
- fix nfs write clustering.  XXX hack

Revision 1.220.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:27 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.220: +6 -6 lines
Diff to previous 1.220 (colored) next main 1.221 (colored) to selected 1.202.2.1 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.221 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:59 2011 UTC (12 years, 9 months ago) by rmind
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.220: +4 -4 lines
Diff to previous 1.220 (colored) to selected 1.202.2.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.219.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:56:04 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.219.2.1: +3 -3 lines
Diff to previous 1.219.2.1 (colored) to branchpoint 1.219 (colored) next main 1.220 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.220 / (download) - annotate - [select for diffs], Sat Nov 6 11:00:29 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: MAIN
CVS Tags: 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.219: +3 -3 lines
Diff to previous 1.219 (colored) to selected 1.202.2.1 (colored)

Include uvm/uvm.h to use UVM internal type (struct vm_page).

Revision 1.201.4.7 / (download) - annotate - [select for diffs], Sun Oct 10 08:29:39 2010 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.201.4.6: +2 -2 lines
Diff to previous 1.201.4.6 (colored) to branchpoint 1.201 (colored) next main 1.202 (colored) to selected 1.202.2.1 (colored)

some locking changes

Revision 1.201.4.6 / (download) - annotate - [select for diffs], Sun Sep 26 03:58:55 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.201.4.5: +41 -5 lines
Diff to previous 1.201.4.5 (colored) to branchpoint 1.201 (colored) to selected 1.202.2.1 (colored)

locking changes

Revision 1.218.2.2 / (download) - annotate - [select for diffs], Thu May 27 04:40:14 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.218.2.1: +1 -1 lines
Diff to previous 1.218.2.1 (colored) to branchpoint 1.218 (colored) next main 1.219 (colored) to selected 1.202.2.1 (colored)

Include uvm/uvm.h, because this touches uvm internal.

Revision 1.218.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:22 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.218: +2 -470 lines
Diff to previous 1.218 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.219.2.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:12 2010 UTC (14 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.219: +6 -6 lines
Diff to previous 1.219 (colored) to selected 1.202.2.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.201.4.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:31 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.201.4.4: +3 -484 lines
Diff to previous 1.201.4.4 (colored) to branchpoint 1.201 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.219 / (download) - annotate - [select for diffs], Tue Mar 2 23:19:09 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.218: +2 -470 lines
Diff to previous 1.218 (colored) to selected 1.202.2.1 (colored)

Get rid of dependency on fs_nfs.h, i.e. source modules with
conditional content depending on if the NFS client is wanted or
not.  The server can now be made an independent module not depending
on the nfs client.

Tested with rump_nfs (standalone client), rump_nfsd (standalone
nfsd) and a qemu installation with both the client and the server.

Revision 1.218 / (download) - annotate - [select for diffs], Thu Dec 31 20:01:33 2009 UTC (14 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.217: +3 -2 lines
Diff to previous 1.217 (colored) to selected 1.202.2.1 (colored)

put nuidhash_max in a file that is shared between server and client code.

Revision 1.212.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:53 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.212.2.1: +8 -4 lines
Diff to previous 1.212.2.1 (colored) to branchpoint 1.212 (colored) next main 1.213 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.201.4.4 / (download) - annotate - [select for diffs], Sat May 16 10:41:51 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.201.4.3: +8 -4 lines
Diff to previous 1.201.4.3 (colored) to branchpoint 1.201 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.217 / (download) - annotate - [select for diffs], Thu May 14 15:42:22 2009 UTC (14 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.216: +8 -4 lines
Diff to previous 1.216 (colored) to selected 1.202.2.1 (colored)

nfs_clearcommit: fix a race with vnode cleaning.

Revision 1.212.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:51 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.212: +46 -143 lines
Diff to previous 1.212 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

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

Revision 1.201.4.3 / (download) - annotate - [select for diffs], Mon May 4 08:14:22 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.201.4.2: +85 -640 lines
Diff to previous 1.201.4.2 (colored) to branchpoint 1.201 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.209.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:45 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.209.2.1: +46 -143 lines
Diff to previous 1.209.2.1 (colored) to branchpoint 1.209 (colored) next main 1.210 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.216 / (download) - annotate - [select for diffs], Sun Mar 15 17:20:10 2009 UTC (15 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.215: +9 -19 lines
Diff to previous 1.215 (colored) to selected 1.202.2.1 (colored)

ansify function definitions

Revision 1.215 / (download) - annotate - [select for diffs], Sat Mar 14 21:04:25 2009 UTC (15 years ago) by dsl
Branch: MAIN
Changes since 1.214: +8 -20 lines
Diff to previous 1.214 (colored) to selected 1.202.2.1 (colored)

ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.

Revision 1.214 / (download) - annotate - [select for diffs], Sat Mar 14 15:36:24 2009 UTC (15 years ago) by dsl
Branch: MAIN
Changes since 1.213: +27 -102 lines
Diff to previous 1.213 (colored) to selected 1.202.2.1 (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.213 / (download) - annotate - [select for diffs], Sat Mar 14 14:46:11 2009 UTC (15 years ago) by dsl
Branch: MAIN
Changes since 1.212: +8 -8 lines
Diff to previous 1.212 (colored) to selected 1.202.2.1 (colored)

Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.

Revision 1.209.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:20 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.209: +27 -464 lines
Diff to previous 1.209 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.199.6.6 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:34 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.199.6.5: +33 -495 lines
Diff to previous 1.199.6.5 (colored) to branchpoint 1.199 (colored) next main 1.200 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.212 / (download) - annotate - [select for diffs], Wed Dec 17 20:51:38 2008 UTC (15 years, 3 months ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.211: +5 -5 lines
Diff to previous 1.211 (colored) to selected 1.202.2.1 (colored)

kill MALLOC and FREE macros.

Revision 1.204.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:28 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.204.4.1: +24 -471 lines
Diff to previous 1.204.4.1 (colored) to branchpoint 1.204 (colored) next main 1.205 (colored) to selected 1.202.2.1 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.211 / (download) - annotate - [select for diffs], Fri Nov 28 06:47:08 2008 UTC (15 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.210: +2 -4 lines
Diff to previous 1.210 (colored) to selected 1.202.2.1 (colored)

g/c unused malloc types

Revision 1.210 / (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.209: +24 -459 lines
Diff to previous 1.209 (colored) to selected 1.202.2.1 (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.209 / (download) - annotate - [select for diffs], Wed Oct 22 12:29:35 2008 UTC (15 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: 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, 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
Branch point for: nick-hppapmap
Changes since 1.208: +3 -8 lines
Diff to previous 1.208 (colored) to selected 1.202.2.1 (colored)

Don't need nfs_vfs_reinit anymore since we don't resize tables anymore.
Move reinit code to init case.

Revision 1.208 / (download) - annotate - [select for diffs], Wed Oct 22 11:36:06 2008 UTC (15 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.207: +2 -7 lines
Diff to previous 1.207 (colored) to selected 1.202.2.1 (colored)

Change NFS to use a RB-tree for its FH->nfsnode lookups.

Revision 1.204.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:59 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.204: +19 -28 lines
Diff to previous 1.204 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.202.2.3 / (download) - annotate - [select for diffs], Fri Oct 10 22:35:43 2008 UTC (15 years, 5 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.202.2.2: +17 -28 lines
Diff to previous 1.202.2.2 (colored) next main 1.203 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.207 / (download) - annotate - [select for diffs], Thu Oct 9 00:11:39 2008 UTC (15 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, haad-dm-base1
Changes since 1.206: +10 -25 lines
Diff to previous 1.206 (colored) to selected 1.202.2.1 (colored)

Use atomic op to get next xid.  Initialize value with arc4random()
at nfs init time instead system time based trickery intermingled
with the runtime code.

le bouef: kills last simple_lock from nfs

Revision 1.199.6.5 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:33 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.199.6.4: +7 -3 lines
Diff to previous 1.199.6.4 (colored) to branchpoint 1.199 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.206 / (download) - annotate - [select for diffs], Tue Sep 30 14:29:39 2008 UTC (15 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.205: +9 -5 lines
Diff to previous 1.205 (colored) to selected 1.202.2.1 (colored)

Initialize nfsnode pools and malloc type dynamically in the
constructor instead of depending on link sets.  Consequently, rename
nfs_nh{init,reinit,done} to nfs_node_{init,reinit,done}, respectively,
to better convey the function.

Revision 1.199.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:41:00 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.199.6.3: +2 -0 lines
Diff to previous 1.199.6.3 (colored) to branchpoint 1.199 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.202.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:02 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.202.2.1: +4 -2 lines
Diff to previous 1.202.2.1 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.204.2.1 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:57 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.204: +4 -2 lines
Diff to previous 1.204 (colored) next main 1.205 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.205 / (download) - annotate - [select for diffs], Tue Jul 15 16:06:58 2008 UTC (15 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.204: +4 -2 lines
Diff to previous 1.204 (colored) to selected 1.202.2.1 (colored)

explicitly set birthtime to VNOVAL, since there is no such thing in nfsv{2,3}

Revision 1.202.2.1 / (download) - annotate - [selected], Mon Jun 23 04:32:01 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.202: +5 -3 lines
Diff to previous 1.202 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.201.2.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:16 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.201.2.1: +3 -3 lines
Diff to previous 1.201.2.1 (colored) to branchpoint 1.201 (colored) next main 1.202 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.199.6.3 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:37 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.199.6.2: +1 -1 lines
Diff to previous 1.199.6.2 (colored) to branchpoint 1.199 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Also fix build.

Revision 1.204 / (download) - annotate - [select for diffs], Wed Jun 4 12:41:40 2008 UTC (15 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl, haad-dm
Changes since 1.203: +3 -3 lines
Diff to previous 1.203 (colored) to selected 1.202.2.1 (colored)

vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both.

Revision 1.199.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:30 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.199.6.1: +5 -4 lines
Diff to previous 1.199.6.1 (colored) to branchpoint 1.199 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.201.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:45 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.201: +7 -6 lines
Diff to previous 1.201 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.201.4.2 / (download) - annotate - [select for diffs], Fri May 16 02:25:49 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.201.4.1: +7 -6 lines
Diff to previous 1.201.4.1 (colored) to branchpoint 1.201 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.203 / (download) - annotate - [select for diffs], Sat May 10 02:26:10 2008 UTC (15 years, 10 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Changes since 1.202: +4 -2 lines
Diff to previous 1.202 (colored) to selected 1.202.2.1 (colored)

Convert file systems to dynamically attach with the new module interface.
Make VFS hooks dynamic while we're here and say farewell to VFS_ATTACH and
VFS_HOOKS_ATTACH linksets.

As a consequence, most of the file systems can now be loaded as new style
modules.

Quick sanity check by ad@.

Revision 1.202 / (download) - annotate - [select for diffs], Mon May 5 17:11:17 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.201: +5 -6 lines
Diff to previous 1.201 (colored) to selected 1.202.2.1 (colored)

- Convert hashinit() to use kmem_alloc(). The hash tables can be large
  and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.

Revision 1.201.4.1 / (download) - annotate - [select for diffs], Sun Apr 27 12:52:50 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.201: +24 -7 lines
Diff to previous 1.201 (colored) to selected 1.202.2.1 (colored)

commit some work-in-progress changes to make nfs client mp-safe to a branch,
so that they won't get lost.
	- sprinkle some locking
	- mark the filesystem, nfstimer callout, and kq kthread mp-safe
	- add assertions and comments
	- disable upgrade mount for now
	- some unrelated cosmetic changes

Revision 1.199.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:10 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.199: +74 -36 lines
Diff to previous 1.199 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.201 / (download) - annotate - [select for diffs], Mon Mar 24 12:24:37 2008 UTC (16 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.200: +63 -34 lines
Diff to previous 1.200 (colored) to selected 1.202.2.1 (colored)

merge yamt-lazymbuf branch.

Revision 1.199.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:27 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.199: +13 -4 lines
Diff to previous 1.199 (colored) next main 1.200 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.191.6.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:08 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.191.6.2: +17 -40 lines
Diff to previous 1.191.6.2 (colored) to branchpoint 1.191 (colored) next main 1.192 (colored) to selected 1.202.2.1 (colored)

sync with HEAD

Revision 1.149.2.13 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:46 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.12: +13 -4 lines
Diff to previous 1.149.2.12 (colored) next main 1.150 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.200 / (download) - annotate - [select for diffs], Wed Mar 5 11:49:18 2008 UTC (16 years ago) by elad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Changes since 1.199: +13 -4 lines
Diff to previous 1.199 (colored) to selected 1.202.2.1 (colored)

Nuke a KAUTH_GENERIC_ISSUSER, this time in favor of an euid == 0, as
the traditional NFS maproot functionality goes.

Put in a note explaining why and who, also mark for future greps.

Okay yamt@.

Revision 1.149.2.12 / (download) - annotate - [select for diffs], Wed Feb 27 09:10:57 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.11: +2 -3 lines
Diff to previous 1.149.2.11 (colored) to selected 1.202.2.1 (colored)

revert incomplete nfs client locking for now.

Revision 1.149.2.11 / (download) - annotate - [select for diffs], Wed Feb 27 08:37:05 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.10: +5 -2 lines
Diff to previous 1.149.2.10 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.192.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:18 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.192.2.2: +23 -54 lines
Diff to previous 1.192.2.2 (colored) to branchpoint 1.192 (colored) next main 1.193 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.149.2.10 / (download) - annotate - [select for diffs], Fri Feb 15 10:40:08 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.9: +3 -2 lines
Diff to previous 1.149.2.9 (colored) to selected 1.202.2.1 (colored)

- sprinkle some locks.
- disable MNT_UPDATE because it involves too much locking headache.
- don't overwrite other bits in v_vflags when setting VV_ROOT.

Revision 1.199 / (download) - annotate - [select for diffs], Wed Feb 13 09:51:37 2008 UTC (16 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.198: +5 -2 lines
Diff to previous 1.198 (colored) to selected 1.202.2.1 (colored)

reject files larger than nm_maxfilesize.

Revision 1.149.2.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:44 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.8: +3 -38 lines
Diff to previous 1.149.2.8 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.198 / (download) - annotate - [select for diffs], Mon Jan 28 10:44:51 2008 UTC (16 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.197: +2 -12 lines
Diff to previous 1.197 (colored) to selected 1.202.2.1 (colored)

nfs_check_wccdata: unifdef wcc kludge messages.

Revision 1.197 / (download) - annotate - [select for diffs], Thu Jan 24 17:32:56 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.196: +3 -28 lines
Diff to previous 1.196 (colored) to selected 1.202.2.1 (colored)

specfs changes for PR kern/37717 (raidclose() is no longer called on
shutdown). There are still problems with device access and a PR will be
filed.

- Kill checkalias(). Allow multiple vnodes to reference a single device.

- Don't play dangerous tricks with block vnodes to ensure that only one
  vnode can describe a block device. Instead, prohibit concurrent opens of
  block devices. As a bonus remove the unreliable code that prevents
  multiple file system mounts on the same device. It's no longer needed.

- Track opens by vnode and by device. Issue cdev_close() when the last open
  goes away, instead of abusing vnode::v_usecount to tell if the device is
  open.

Revision 1.149.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:35 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.7: +19 -19 lines
Diff to previous 1.149.2.7 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.191.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:53 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.191.6.1: +20 -21 lines
Diff to previous 1.191.6.1 (colored) to branchpoint 1.191 (colored) to selected 1.202.2.1 (colored)

sync with HEAD

Revision 1.194.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:57:44 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.194: +19 -18 lines
Diff to previous 1.194 (colored) next main 1.195 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

Revision 1.196 / (download) - annotate - [select for diffs], Wed Jan 2 19:26:46 2008 UTC (16 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.195: +10 -9 lines
Diff to previous 1.195 (colored) to selected 1.202.2.1 (colored)

use kmem_alloc instead of malloc.

Revision 1.195 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:04 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.194: +11 -11 lines
Diff to previous 1.194 (colored) to selected 1.202.2.1 (colored)

Merge vmlocking2 to head.

Revision 1.192.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:36 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.192.2.1: +2 -3 lines
Diff to previous 1.192.2.1 (colored) to branchpoint 1.192 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.193.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:53 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.193.2.1: +2 -3 lines
Diff to previous 1.193.2.1 (colored) to branchpoint 1.193 (colored) next main 1.194 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.191.4.3 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:44 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.191.4.2: +2 -3 lines
Diff to previous 1.191.4.2 (colored) to branchpoint 1.191 (colored) next main 1.192 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.194 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:51 2007 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.193: +2 -3 lines
Diff to previous 1.193 (colored) to selected 1.202.2.1 (colored)

Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.192.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:24 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.192: +3 -4 lines
Diff to previous 1.192 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.149.2.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:44 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.6: +3 -4 lines
Diff to previous 1.149.2.6 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.193.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:35 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.193: +11 -11 lines
Diff to previous 1.193 (colored) to selected 1.202.2.1 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.191.4.2 / (download) - annotate - [select for diffs], Tue Nov 27 19:39:02 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.191.4.1: +3 -4 lines
Diff to previous 1.191.4.1 (colored) to branchpoint 1.191 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.193 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:21 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.192: +3 -4 lines
Diff to previous 1.192 (colored) to selected 1.202.2.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.149.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:45:20 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.5: +26 -3 lines
Diff to previous 1.149.2.5 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.191.10.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:03:08 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.191: +26 -3 lines
Diff to previous 1.191 (colored) next main 1.192 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

Revision 1.191.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:34:22 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.191: +26 -3 lines
Diff to previous 1.191 (colored) to selected 1.202.2.1 (colored)

sync with HEAD

Revision 1.191.4.1 / (download) - annotate - [select for diffs], Mon Oct 29 02:57:26 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.191: +26 -3 lines
Diff to previous 1.191 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.192 / (download) - annotate - [select for diffs], Sun Oct 28 22:24:29 2007 UTC (16 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.191: +26 -3 lines
Diff to previous 1.191 (colored) to selected 1.202.2.1 (colored)

make NFS_ATTRTIMEO a function.

Revision 1.184.2.9 / (download) - annotate - [select for diffs], Wed Oct 24 16:47:02 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.184.2.8: +4 -3 lines
Diff to previous 1.184.2.8 (colored) to branchpoint 1.184 (colored) next main 1.185 (colored) to selected 1.202.2.1 (colored)

Do locking / use marker vnodes when traversing mountpoint vnode lists.

Revision 1.184.2.8 / (download) - annotate - [select for diffs], Sun Sep 16 19:04:38 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.184.2.7: +2 -3 lines
Diff to previous 1.184.2.7 (colored) to branchpoint 1.184 (colored) to selected 1.202.2.1 (colored)

Checkpoint work in progress on the vnode lifecycle and reference counting
stuff. This makes it work properly without kernel_lock and fixes a few
quite old bugs. See vfs_subr.c 1.283.2.17 for details.

Revision 1.149.2.5 / (download) - annotate - [select for diffs], Mon Sep 3 14:44:19 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.4: +74 -60 lines
Diff to previous 1.149.2.4 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.184.2.7 / (download) - annotate - [select for diffs], Mon Aug 20 21:28:12 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.184.2.6: +3 -3 lines
Diff to previous 1.184.2.6 (colored) to branchpoint 1.184 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.190.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:50:03 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.190: +3 -3 lines
Diff to previous 1.190 (colored) next main 1.191 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.191.12.2 / (download) - annotate - [select for diffs], Fri Jul 27 10:03:59 2007 UTC (16 years, 8 months ago) by yamt
Branch: matt-mips64
Changes since 1.191.12.1: +2994 -0 lines
Diff to previous 1.191.12.1 (colored) to branchpoint 1.191 (colored) next main 1.192 (colored) to selected 1.202.2.1 (colored)

stop nfs tick when we have nothing to do.

Revision 1.191.12.1, Fri Jul 27 10:03:58 2007 UTC (16 years, 8 months ago) by yamt
Branch: matt-mips64
Changes since 1.191: +0 -2994 lines
FILE REMOVED

file nfs_subs.c was added on branch matt-mips64 on 2007-07-27 10:03:59 +0000

Revision 1.191 / (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-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.190: +3 -3 lines
Diff to previous 1.190 (colored) to selected 1.202.2.1 (colored)

stop nfs tick when we have nothing to do.

Revision 1.184.2.6 / (download) - annotate - [select for diffs], Sun Jul 15 15:53:02 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.184.2.5: +2 -5 lines
Diff to previous 1.184.2.5 (colored) to branchpoint 1.184 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.184.2.5 / (download) - annotate - [select for diffs], Sun Jul 15 13:28:06 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.184.2.4: +6 -2 lines
Diff to previous 1.184.2.4 (colored) to branchpoint 1.184 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.184.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:13 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.184: +20 -17 lines
Diff to previous 1.184 (colored) next main 1.185 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.190 / (download) - annotate - [select for diffs], Mon Jul 9 21:29:09 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.189: +6 -5 lines
Diff to previous 1.189 (colored) to selected 1.202.2.1 (colored)

Fix build when not !NFSSERVER.

Revision 1.189 / (download) - annotate - [select for diffs], Mon Jul 9 21:11:30 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.188: +7 -3 lines
Diff to previous 1.188 (colored) to selected 1.202.2.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.184.2.4 / (download) - annotate - [select for diffs], Sun Jul 1 21:50:59 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.184.2.3: +3 -3 lines
Diff to previous 1.184.2.3 (colored) to branchpoint 1.184 (colored) to selected 1.202.2.1 (colored)

Adapt to callout API change.

Revision 1.184.2.3 / (download) - annotate - [select for diffs], Mon Jun 18 13:39:12 2007 UTC (16 years, 9 months ago) by yamt
Branch: vmlocking
Changes since 1.184.2.2: +3 -2 lines
Diff to previous 1.184.2.2 (colored) to branchpoint 1.184 (colored) to selected 1.202.2.1 (colored)

fix a merge botch.

Revision 1.184.2.2 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:15 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.184.2.1: +7 -10 lines
Diff to previous 1.184.2.1 (colored) to branchpoint 1.184 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.188 / (download) - annotate - [select for diffs], Wed Jun 6 09:23:55 2007 UTC (16 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.187: +7 -8 lines
Diff to previous 1.187 (colored) to selected 1.202.2.1 (colored)

nfs_getattrcache: simplify.  no functional changes.

Revision 1.187 / (download) - annotate - [select for diffs], Mon May 28 16:47:38 2007 UTC (16 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.186: +0 -2 lines
Diff to previous 1.186 (colored) to selected 1.202.2.1 (colored)

- remove nfs_exit exit hook.  ok'ed by christos@.
	- as far as i understand the code, it shouldn't be necessary
	  because nfs_request can't return without removing its request
	  and r->r_lwp is either curlwp or NULL.
	- even if it's necessary, leaking requests is not the correct way
	  to recover from the condition.
- nfs_request: add a related assertion.

Revision 1.180.2.3 / (download) - annotate - [select for diffs], Mon May 7 10:56:11 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.180.2.2: +9 -8 lines
Diff to previous 1.180.2.2 (colored) next main 1.181 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.186 / (download) - annotate - [select for diffs], Sun Apr 29 10:30:18 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.185: +8 -8 lines
Diff to previous 1.185 (colored) to selected 1.202.2.1 (colored)

use mutex and condver.

Revision 1.185 / (download) - annotate - [select for diffs], Sun Apr 22 08:30:01 2007 UTC (16 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.184: +3 -2 lines
Diff to previous 1.184 (colored) to selected 1.202.2.1 (colored)

Change the way that emulations locate files within the emulation root to
  avoid having to allocate space in the 'stackgap'
  - which is very LWP unfriendly.
The additional code for non-emulation namei() is trivial, the reduction for
  the emulations is massive.
The vnode for a processes emulation root is saved in the cwdi structure
  during process exec.
If the emulation root the TRYEMULROOT flag are set, namei() will do an initial
  search for absolute pathnames in the emulation root, if that fails it will
  retry from the normal root.
".." at the emulation root will always go to the real root, even in the middle
  of paths and when expanding symlinks.
Absolute symlinks found using absolute paths in the emulation root will be
  relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links
  inside the emulation root don't need changing).
If the root of the emulation would be returned (for an emulation lookup), then
  the real root is returned instead (matching the behaviour of emul_lookup,
  but being a cheap comparison here) so that programs that scan "../.."
  looking for the root dircetory don't loop forever.
The target for symbolic links is no longer mangled (it used to get the
  CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended).
CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding
  TRYEMULROOT to the flags to NDINIT().
A lot of the emulation system call stubs could now be deleted.

Revision 1.184.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:51:13 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.184: +19 -15 lines
Diff to previous 1.184 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.180.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 06:00:36 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.180.2.1: +57 -46 lines
Diff to previous 1.180.2.1 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.184 / (download) - annotate - [select for diffs], Fri Mar 9 05:55:33 2007 UTC (17 years ago) by yamt
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.183: +18 -7 lines
Diff to previous 1.183 (colored) to selected 1.202.2.1 (colored)

nfs_check_wccdata: print timestamps.

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

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

Revision 1.180.2.1 / (download) - annotate - [select for diffs], Wed Feb 28 09:35:40 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.180: +14 -14 lines
Diff to previous 1.180 (colored) to selected 1.202.2.1 (colored)

sync with head.  (somehow missed in the previous)

Revision 1.149.2.4 / (download) - annotate - [select for diffs], Mon Feb 26 09:12:06 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.3: +17 -17 lines
Diff to previous 1.149.2.3 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.182 / (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.181: +11 -11 lines
Diff to previous 1.181 (colored) to selected 1.202.2.1 (colored)

TRUE -> true, FALSE -> false

Revision 1.181 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:09 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.180: +5 -5 lines
Diff to previous 1.180 (colored) to selected 1.202.2.1 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.177.2.1 / (download) - annotate - [select for diffs], Sat Feb 17 23:27:51 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.177: +23 -9 lines
Diff to previous 1.177 (colored) next main 1.178 (colored) to selected 1.202.2.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.180 / (download) - annotate - [select for diffs], Thu Feb 15 16:01:51 2007 UTC (17 years, 1 month ago) by yamt
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.179: +5 -5 lines
Diff to previous 1.179 (colored) to selected 1.202.2.1 (colored)

use mutex and rwlock rather than lockmgr.

Revision 1.170.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:19 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.170.2.1: +29 -71 lines
Diff to previous 1.170.2.1 (colored) to branchpoint 1.170 (colored) next main 1.171 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.149.2.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:52 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.2: +109 -107 lines
Diff to previous 1.149.2.2 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.179 / (download) - annotate - [select for diffs], Wed Dec 27 12:10:09 2006 UTC (17 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Changes since 1.178: +8 -64 lines
Diff to previous 1.178 (colored) to selected 1.202.2.1 (colored)

remove nqnfs.

Revision 1.170.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:24 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.170.4.1: +31 -34 lines
Diff to previous 1.170.4.1 (colored) to branchpoint 1.170 (colored) next main 1.171 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.178 / (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.177: +23 -9 lines
Diff to previous 1.177 (colored) to selected 1.202.2.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.170.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:44 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.170: +16 -26 lines
Diff to previous 1.170 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.177 / (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.176: +10 -27 lines
Diff to previous 1.176 (colored) to selected 1.202.2.1 (colored)

remove some __unused in function parameters.

Revision 1.170.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:43 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.170: +35 -28 lines
Diff to previous 1.170 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.176 / (download) - annotate - [select for diffs], Fri Oct 20 18:58:12 2006 UTC (17 years, 5 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.175: +3 -3 lines
Diff to previous 1.175 (colored) to selected 1.202.2.1 (colored)

Replace the LIST structure mp->mnt_vnodelist to a TAILQ structure since all
vnodes were synced and processed backwards. This meant that the last
accessed node was processed first and the earlierst last.

An extra benefit is the removal of the ugly hack from the Berkly days on
LFS.

In the proces, i've also replaced the various variations hand written loops
by the TAILQ_FOREACH() macro's.

Revision 1.175 / (download) - annotate - [select for diffs], Tue Oct 17 18:21:29 2006 UTC (17 years, 5 months ago) by dogcow
Branch: MAIN
Changes since 1.174: +2 -10 lines
Diff to previous 1.174 (colored) to selected 1.202.2.1 (colored)

now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.

Revision 1.174 / (download) - annotate - [select for diffs], Sat Oct 14 09:18:57 2006 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.173: +8 -2 lines
Diff to previous 1.173 (colored) to selected 1.202.2.1 (colored)

grab glock when calling uvm_unp_setsize, so that it doesn't interfere
mmap'ed accesses.  this fixes an assertion failure in in nfs_doio_read.
("vp->v_size >= uiop->uio_offset + uiop->uio_resid")

Revision 1.173 / (download) - annotate - [select for diffs], Fri Oct 13 20:53:59 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.172: +14 -9 lines
Diff to previous 1.172 (colored) to selected 1.202.2.1 (colored)

more __unused

Revision 1.172 / (download) - annotate - [select for diffs], Fri Oct 13 18:28:07 2006 UTC (17 years, 5 months ago) by dogcow
Branch: MAIN
Changes since 1.171: +10 -2 lines
Diff to previous 1.171 (colored) to selected 1.202.2.1 (colored)

more unused variable fallout.

Revision 1.171 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:47 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.170: +16 -20 lines
Diff to previous 1.170 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.158.2.5 / (download) - annotate - [select for diffs], Thu Sep 14 12:32:00 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.158.2.4: +4 -4 lines
Diff to previous 1.158.2.4 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.157.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:59:24 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.157: +105 -108 lines
Diff to previous 1.157 (colored) next main 1.158 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.170 / (download) - annotate - [select for diffs], Mon Sep 4 08:38:16 2006 UTC (17 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.169: +1 -1 lines
Diff to previous 1.169 (colored) to selected 1.202.2.1 (colored)

nfs_ispublicfh: fix another instance of cast-qual.

Revision 1.169 / (download) - annotate - [select for diffs], Mon Sep 4 08:27:49 2006 UTC (17 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.168: +1 -1 lines
Diff to previous 1.168 (colored) to selected 1.202.2.1 (colored)

remove (void *) cast from NFSRVFH_DATA as it sometimes
discards const qualifier.  pointed out by Havard Eidnes.
(it wasn't detected by in-tree gcc4.  seems like a compiler bug.)

Revision 1.158.2.4 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:56 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.158.2.3: +70 -16 lines
Diff to previous 1.158.2.3 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.168 / (download) - annotate - [select for diffs], Sat Sep 2 12:40:36 2006 UTC (17 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8
Changes since 1.167: +69 -16 lines
Diff to previous 1.167 (colored) to selected 1.202.2.1 (colored)

nfsd: deal with variable-sized filehandles.

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

fix default type decls
fix incomplete initializer

Revision 1.158.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:47:05 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.158.2.2: +3 -3 lines
Diff to previous 1.158.2.2 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

sync with head

Revision 1.165.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:50:06 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored) next main 1.166 (colored) to selected 1.202.2.1 (colored)

Merge from HEAD.

Revision 1.166 / (download) - annotate - [select for diffs], Thu Jul 13 12:00:26 2006 UTC (17 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored) to selected 1.202.2.1 (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.158.2.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:54:28 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.158.2.1: +5 -5 lines
Diff to previous 1.158.2.1 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.149.2.2 / (download) - annotate - [select for diffs], Wed Jun 21 15:11:59 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149.2.1: +72 -110 lines
Diff to previous 1.149.2.1 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.164.2.2 / (download) - annotate - [select for diffs], Mon Jun 19 04:10:37 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.164.2.1: +2978 -0 lines
Diff to previous 1.164.2.1 (colored) to branchpoint 1.164 (colored) next main 1.165 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.165 / (download) - annotate - [select for diffs], Wed Jun 7 22:34:17 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Changes since 1.164: +5 -5 lines
Diff to previous 1.164 (colored) to selected 1.202.2.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.157.4.3 / (download) - annotate - [select for diffs], Thu Jun 1 22:39:13 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.157.4.2: +18 -61 lines
Diff to previous 1.157.4.2 (colored) to branchpoint 1.157 (colored) next main 1.158 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.158.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:46 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.158: +20 -61 lines
Diff to previous 1.158 (colored) next main 1.159 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.158.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:59:15 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.158: +20 -61 lines
Diff to previous 1.158 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.164.2.1, Fri May 19 13:53:11 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.164: +0 -2978 lines
FILE REMOVED

file nfs_subs.c was added on branch chap-midi on 2006-06-19 04:10:37 +0000

Revision 1.164 / (download) - annotate - [select for diffs], Fri May 19 13:53:11 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.163: +4 -2 lines
Diff to previous 1.163 (colored) to selected 1.202.2.1 (colored)

- fix compilation problem for !NFSSERVER && NFS.
  pointed by Tom Spindler on source-changes@.
- make nfs_srvdesc_pool static.

Revision 1.163 / (download) - annotate - [select for diffs], Thu May 18 12:44:45 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.162: +0 -46 lines
Diff to previous 1.162 (colored) to selected 1.202.2.1 (colored)

- fix some leaks in nfsd, introduced by kauth changes.
- simplify code.
- add some assertions.
- wrap some long lines.
- remove an unnecessary ";".

Revision 1.162 / (download) - annotate - [select for diffs], Sun May 14 21:32:21 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.161: +27 -26 lines
Diff to previous 1.161 (colored) to selected 1.202.2.1 (colored)

integrate kauth.

Revision 1.161 / (download) - annotate - [select for diffs], Sun May 14 05:42:43 2006 UTC (17 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.160: +3 -3 lines
Diff to previous 1.160 (colored) to selected 1.202.2.1 (colored)

XXX: GCC uninitialized

Revision 1.158.4.9 / (download) - annotate - [select for diffs], Sat May 6 23:32:11 2006 UTC (17 years, 10 months ago) by christos
Branch: elad-kernelauth
Changes since 1.158.4.8: +3 -2 lines
Diff to previous 1.158.4.8 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored) to selected 1.202.2.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.157.4.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:15 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.157.4.1: +17 -31 lines
Diff to previous 1.157.4.1 (colored) to branchpoint 1.157 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.158.4.8 / (download) - annotate - [select for diffs], Wed Apr 19 05:06:37 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.158.4.7: +4 -2 lines
Diff to previous 1.158.4.7 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.160 / (download) - annotate - [select for diffs], Sat Apr 15 01:45:15 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.159: +3 -2 lines
Diff to previous 1.159 (colored) to selected 1.202.2.1 (colored)

Coverity CID 1141: Add a KASSERT before deref.

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

Coverity CID 1142: Add a KASSERT before deref.

Revision 1.158.4.7 / (download) - annotate - [select for diffs], Tue Mar 14 02:50:43 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.158.4.6: +3 -17 lines
Diff to previous 1.158.4.6 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

Use kauth_cred_clone() where appropriate.

Revision 1.158.4.6 / (download) - annotate - [select for diffs], Mon Mar 13 00:01:05 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.158.4.5: +2 -8 lines
Diff to previous 1.158.4.5 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

kauth_cred_clone() takes care of the groups for us, remove redundant code.

Revision 1.158.4.5 / (download) - annotate - [select for diffs], Sun Mar 12 17:32:26 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.158.4.4: +4 -4 lines
Diff to previous 1.158.4.4 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

Fix group cleaning loop, as pointed out by yamt@.

While I'm here, add an XXX near the second loop that watches NGROUPS; this
should be internal to kauth(9).

Revision 1.158.4.4 / (download) - annotate - [select for diffs], Sat Mar 11 21:22:42 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.158.4.3: +4 -3 lines
Diff to previous 1.158.4.3 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

Replace check for euid == 0 with kauth_authorize_generic().

Revision 1.158.4.3 / (download) - annotate - [select for diffs], Fri Mar 10 22:38:09 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.158.4.2: +18 -8 lines
Diff to previous 1.158.4.2 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

Cleanup more interface abuse.

Make nfsrv_setcred() take a kauth_cred_t * as outcred. The original code
just modified it directly; we can't do that, nor do we want to.

Get rid of another case of kauth_cred_zero() followed by kauth_cred_hold()
and use kauth_cred_clone() to make sure we don't leave out important
members.

Add another DIAGNOSTIC check for reference count of above one.

Again, this should be tested.

Revision 1.158.4.2 / (download) - annotate - [select for diffs], Fri Mar 10 21:43:19 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.158.4.1: +2 -11 lines
Diff to previous 1.158.4.1 (colored) to branchpoint 1.158 (colored) to selected 1.202.2.1 (colored)

Remove some more no longer needed calls to kauth_cred_setngroups() and
nfsrvw_sort().

Revision 1.158.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:06:28 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.158: +40 -22 lines
Diff to previous 1.158 (colored) to selected 1.202.2.1 (colored)

Adapt to kernel authorization KPI.

This could use some testing...

Revision 1.158 / (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-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.157: +15 -31 lines
Diff to previous 1.157 (colored) to selected 1.202.2.1 (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.157.4.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:12:50 2006 UTC (18 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.157: +5 -5 lines
Diff to previous 1.157 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.156.2.2 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:48 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.156.2.1: +4 -3 lines
Diff to previous 1.156.2.1 (colored) next main 1.157 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.157 / (download) - annotate - [select for diffs], Mon Jan 16 21:45:38 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.156: +4 -3 lines
Diff to previous 1.156 (colored) to selected 1.202.2.1 (colored)

- tweak RUN_ONCE api to allow init_func returns an error.
- physio: handle failure of workqueue_create.

Revision 1.156.2.1 / (download) - annotate - [select for diffs], Sat Dec 31 16:29:01 2005 UTC (18 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.156: +15 -31 lines
Diff to previous 1.156 (colored) to selected 1.202.2.1 (colored)

- adapt nfs.
- nfs_doio_read: #if 0 out "killproc if text is modified" part of
  the code as it's broken.  (a process reading the modified text is not
  necessarily a process which is using the file as a text.)

Revision 1.156 / (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.155: +13 -13 lines
Diff to previous 1.155 (colored) to selected 1.202.2.1 (colored)

merge ktrace-lwp.

Revision 1.125.2.13 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:35 2005 UTC (18 years, 3 months ago) by christos
Branch: ktrace-lwp
Changes since 1.125.2.12: +21 -10 lines
Diff to previous 1.125.2.12 (colored) next main 1.126 (colored) to selected 1.202.2.1 (colored)

Sync with head.

Revision 1.153.6.2 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:33 2005 UTC (18 years, 4 months ago) by yamt
Branch: yamt-readahead
Changes since 1.153.6.1: +16 -4 lines
Diff to previous 1.153.6.1 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.155 / (download) - annotate - [select for diffs], Fri Nov 25 20:01:38 2005 UTC (18 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-readahead-base3, ktrace-lwp-base
Changes since 1.154: +16 -4 lines
Diff to previous 1.154 (colored) to selected 1.202.2.1 (colored)

Use a once control to initialize the NFS server / client shared data
from nfs_vfs_init() or sys_nfssvc().  Remove the nfs_init() call from
main().

Revision 1.153.6.1 / (download) - annotate - [select for diffs], Tue Nov 22 16:08:22 2005 UTC (18 years, 4 months ago) by yamt
Branch: yamt-readahead
Changes since 1.153: +7 -8 lines
Diff to previous 1.153 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.154 / (download) - annotate - [select for diffs], Tue Nov 22 04:44:29 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-base2
Changes since 1.153: +7 -8 lines
Diff to previous 1.153 (colored) to selected 1.202.2.1 (colored)

- reduce number of linear search per rpc.
- coalesce mount_netexport_pair into netexport.

Revision 1.125.2.12 / (download) - annotate - [select for diffs], Thu Nov 10 14:11:56 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.11: +31 -24 lines
Diff to previous 1.125.2.11 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.132.2.3.2.4 / (download) - annotate - [select for diffs], Thu Oct 27 05:17:56 2005 UTC (18 years, 5 months ago) by riz
Branch: netbsd-2
Changes since 1.132.2.3.2.3: +4 -3 lines
Diff to previous 1.132.2.3.2.3 (colored) to branchpoint 1.132.2.3 (colored) next main 1.132.2.4 (colored) to selected 1.202.2.1 (colored)

Pull up following revision(s) (requested by christos in ticket #5863):
	sys/nfs/nfs_subs.c: revision 1.152 via patch
	sys/nfs/nfs.h: revision 1.49
	sys/nfs/nfs_vfsops.c: revision 1.149 via patch
	usr.sbin/amd/include/config.h: revision 1.36
	sys/nfs/nfs_vnops.c: revision 1.227 via patch
	sys/nfs/nfsmount.h: revision 1.34
Allow the attribute cache to be turned off, and allow amd to do it.

Revision 1.148.2.1 / (download) - annotate - [select for diffs], Tue Sep 27 10:28:53 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Changes since 1.148: +4 -3 lines
Diff to previous 1.148 (colored) next main 1.149 (colored) to selected 1.202.2.1 (colored)

Pull up following revision(s) (requested by christos in ticket #816):
	sys/nfs/nfs_subs.c: revision 1.152
ATTRTIMEO takes 2 args.

Revision 1.153 / (download) - annotate - [select for diffs], Fri Sep 23 12:10:33 2005 UTC (18 years, 6 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.152: +7 -3 lines
Diff to previous 1.152 (colored) to selected 1.202.2.1 (colored)

Apply the NFS exports list rototill patch:

- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
  function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
  file sys/nfs/nfs_export.c.  The former was becoming large and its code
  is always compiled, regardless of the build options.  Using the latter,
  the code is only compiled in when NFSSERVER is enabled.  While doing this,
  also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
  path and a set of export entries.  At the moment it can only clear the
  exports list or append entries, one by one, but it is done in a way that
  allows setting the whole set of entries atomically in the future (see the
  comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
  that it becomes file system agnostic.  In fact, all this whole thing was
  done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
  exports initialization; done internally by the kernel when initializing
  the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
  subsystems can run arbitrary code upon receipt of specific VFS events.
  At the moment, this only provides support for unmount and is used to
  destroy NFS exports lists from the file systems being unmounted, though it
  has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.

Revision 1.152 / (download) - annotate - [select for diffs], Mon Sep 19 00:53:55 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.151: +4 -3 lines
Diff to previous 1.151 (colored) to selected 1.202.2.1 (colored)

ATTRTIMEO takes 2 args.

Revision 1.151 / (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.150: +4 -6 lines
Diff to previous 1.150 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.149.2.1 / (download) - annotate - [select for diffs], Thu Jul 7 11:53:25 2005 UTC (18 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.149: +63 -34 lines
Diff to previous 1.149 (colored) to selected 1.202.2.1 (colored)

adapt to mbuf.h changes.

Revision 1.150 / (download) - annotate - [select for diffs], Thu Jul 7 02:05:03 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.149: +12 -8 lines
Diff to previous 1.149 (colored) to selected 1.202.2.1 (colored)

1. use p = uio->uio_procp consistently and eliminate suspicious uses
   of curproc (where uio->uio_procp should be used?). Don't do this
   for nfs_commit(), because yamt says it is possibly wrong.
2. nfs_doio() does not use struct proc; remove it and the code to compute it.
3. use copyin_proc() and copyout_proc() instead of copyin() and copyout().
4. check return of copyout_proc(). and mark return from copyin_proc() XXX
5. Eliminate check p == curproc assertion check from nfs_write;
   nfs_read does not have it and we might be called in a different
   process context anyway (PR 20138).

Revision 1.149 / (download) - annotate - [select for diffs], Sun May 29 20:58:13 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.148: +12 -12 lines
Diff to previous 1.148 (colored) to selected 1.202.2.1 (colored)

- sprinkle const
- avoid shadowed variables
- mark bad const use with XXXUNCONST

Revision 1.140.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:36 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.140: +112 -14 lines
Diff to previous 1.140 (colored) next main 1.141 (colored) to selected 1.202.2.1 (colored)

sync with -current

Revision 1.143.2.3 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:51 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.143.2.2: +9 -9 lines
Diff to previous 1.143.2.2 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.132.2.3.2.3 / (download) - annotate - [select for diffs], Wed Mar 16 11:54:53 2005 UTC (19 years ago) by tron
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.132.2.3.2.2: +3 -3 lines
Diff to previous 1.132.2.3.2.2 (colored) to branchpoint 1.132.2.3 (colored) to selected 1.202.2.1 (colored)

Pull up revision 1.146 (requested by yamt in ticket #1148):
nfs_clearcommit: don't attempt to clear commit info (n_pushlo, etc)
unless the vnode is of VREG.  union members used to keep commit info
are used for other purposes in the case of !VREG.

Revision 1.132.2.5 / (download) - annotate - [select for diffs], Wed Mar 16 11:54:49 2005 UTC (19 years ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE
Changes since 1.132.2.4: +3 -3 lines
Diff to previous 1.132.2.4 (colored) to branchpoint 1.132 (colored) next main 1.133 (colored) to selected 1.202.2.1 (colored)

Pull up revision 1.146 (requested by yamt in ticket #1148):
nfs_clearcommit: don't attempt to clear commit info (n_pushlo, etc)
unless the vnode is of VREG.  union members used to keep commit info
are used for other purposes in the case of !VREG.

Revision 1.125.2.11 / (download) - annotate - [select for diffs], Fri Mar 4 16:54:20 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.10: +9 -9 lines
Diff to previous 1.125.2.10 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.148 / (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, kent-audio2-base
Branch point for: netbsd-3
Changes since 1.147: +9 -9 lines
Diff to previous 1.147 (colored) to selected 1.202.2.1 (colored)

nuke trailing whitespace

Revision 1.143.2.2 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:55 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.143.2.1: +3016 -0 lines
Diff to previous 1.143.2.1 (colored) to branchpoint 1.143 (colored) to selected 1.202.2.1 (colored)

sync with head.

Revision 1.125.2.10 / (download) - annotate - [select for diffs], Fri Feb 4 11:48:04 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.9: +26 -9 lines
Diff to previous 1.125.2.9 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.132.2.3.2.2 / (download) - annotate - [select for diffs], Sun Jan 30 13:44:21 2005 UTC (19 years, 2 months ago) by he
Branch: netbsd-2
Changes since 1.132.2.3.2.1: +2 -14 lines
Diff to previous 1.132.2.3.2.1 (colored) to branchpoint 1.132.2.3 (colored) to selected 1.202.2.1 (colored)

Pull up revision 1.138 (requested by yamt in ticket #968):
  Since daddr_t is 64-bit these days, simply use nfs directory
  cookies as buffer cache indexes.  This should make the
  regress/sys/fs/getdents test work.  Fixes PR#27112.

Revision 1.147 / (download) - annotate - [select for diffs], Fri Jan 28 10:12:23 2005 UTC (19 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.146: +4 -2 lines
Diff to previous 1.146 (colored) to selected 1.202.2.1 (colored)

nfs_namei: return EACCES for empty filenames as rfc1813 says.

Revision 1.146 / (download) - annotate - [select for diffs], Fri Jan 28 10:11:31 2005 UTC (19 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.145: +3 -3 lines
Diff to previous 1.145 (colored) to selected 1.202.2.1 (colored)

nfs_clearcommit: don't attempt to clear commit info (n_pushlo, etc)
unless the vnode is of VREG.  union members used to keep commit info
are used for other purposes in the case of !VREG.

Revision 1.145 / (download) - annotate - [select for diffs], Thu Jan 27 11:33:26 2005 UTC (19 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.144: +7 -5 lines
Diff to previous 1.144 (colored) to selected 1.202.2.1 (colored)

keep directory eof cache when inactivating vnode
because there's no reason to throw it away.
(fix an unintended side effect of nfs_subs.c rev.1.144.)

Revision 1.144 / (download) - annotate - [select for diffs], Wed Jan 26 10:30:58 2005 UTC (19 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.143: +4 -2 lines
Diff to previous 1.143 (colored) to selected 1.202.2.1 (colored)

handle a really empty directory, which doesn't have even the dot entry.

Revision 1.143.2.1, Tue Jan 25 12:20:32 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.143: +0 -3010 lines
FILE REMOVED

file nfs_subs.c was added on branch yamt-km on 2005-02-12 18:17:55 +0000

Revision 1.143 / (download) - annotate - [select for diffs], Tue Jan 25 12:20:32 2005 UTC (19 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km
Changes since 1.142: +17 -6 lines
Diff to previous 1.142 (colored) to selected 1.202.2.1 (colored)

nfs_check_wccdata: comment.

Revision 1.125.2.9 / (download) - annotate - [select for diffs], Mon Jan 24 08:35:53 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.8: +85 -4 lines
Diff to previous 1.125.2.8 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.142 / (download) - annotate - [select for diffs], Fri Jan 21 14:31:29 2005 UTC (19 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.141: +4 -4 lines
Diff to previous 1.141 (colored) to selected 1.202.2.1 (colored)

s/time/mono_time/ for n_attrstamp and n_accstamp.  (parts of) PR/25641.

Revision 1.141 / (download) - annotate - [select for diffs], Wed Jan 19 16:22:19 2005 UTC (19 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.140: +83 -2 lines
Diff to previous 1.140 (colored) to selected 1.202.2.1 (colored)

implement inaccurate mtime/ctime detection.
namely, if mtime or ctime are same between pre_op_attr and post_op_attr
when we expected them to be changed, don't trust the server.

Revision 1.125.2.8 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:55 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.7: +24 -16 lines
Diff to previous 1.125.2.7 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.132.2.3.2.1 / (download) - annotate - [select for diffs], Tue Jan 11 06:42:19 2005 UTC (19 years, 2 months ago) by jmc
Branch: netbsd-2
Changes since 1.132.2.3: +15 -10 lines
Diff to previous 1.132.2.3 (colored) to selected 1.202.2.1 (colored)

Pullup rev 1.140 (requested by yamt in ticket #1079)

	Invalidate cache if filesize is changed besides our activity
	because it means that were out of sync with the server.

Revision 1.132.2.4 / (download) - annotate - [select for diffs], Tue Jan 11 06:41:35 2005 UTC (19 years, 2 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-1-RELEASE
Changes since 1.132.2.3: +15 -10 lines
Diff to previous 1.132.2.3 (colored) to branchpoint 1.132 (colored) to selected 1.202.2.1 (colored)

Pullup rev 1.140 (requested by yamt in ticket #1079)

	Invalidate cache if filesize is changed besides our activity
	because it means that were out of sync with the server.

Revision 1.140 / (download) - annotate - [select for diffs], Sun Jan 9 01:32:32 2005 UTC (19 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio1-beforemerge
Branch point for: kent-audio2
Changes since 1.139: +15 -10 lines
Diff to previous 1.139 (colored) to selected 1.202.2.1 (colored)

invalidate cache if filesize is changed besides our activity
because it means that we're out of sync with the server.

Revision 1.139 / (download) - annotate - [select for diffs], Thu Jan 6 11:52:44 2005 UTC (19 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.138: +11 -8 lines
Diff to previous 1.138 (colored) to selected 1.202.2.1 (colored)

nfs_loadattrcache: invalidate access cache when ctime is changed.

Revision 1.125.2.7 / (download) - annotate - [select for diffs], Tue Nov 2 07:53:24 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.6: +2 -14 lines
Diff to previous 1.125.2.6 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.138 / (download) - annotate - [select for diffs], Tue Oct 26 04:34:46 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.137: +2 -14 lines
Diff to previous 1.137 (colored) to selected 1.202.2.1 (colored)

since daddr_t is 64-bit these days, simply use nfs directory cookies
as buffer cache indexes.  regress/sys/fs/getdents is now supposed to work.
fix PR/27112.

Revision 1.125.2.6 / (download) - annotate - [select for diffs], Tue Oct 19 15:58:19 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.5: +3 -2 lines
Diff to previous 1.125.2.5 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

Revision 1.132.2.3 / (download) - annotate - [select for diffs], Mon Oct 4 06:05:30 2004 UTC (19 years, 5 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3
Branch point for: netbsd-2
Changes since 1.132.2.2: +3 -2 lines
Diff to previous 1.132.2.2 (colored) to branchpoint 1.132 (colored) to selected 1.202.2.1 (colored)

Pullup rev 1.137 (requested by yamt in ticket #889)

nfs_enterdircache: initialize dc_flags of a newly allocated dircache entry.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Oct 3 10:51:28 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.136: +3 -2 lines
Diff to previous 1.136 (colored) to selected 1.202.2.1 (colored)

nfs_enterdircache: initialize dc_flags of a newly allocated dircache entry.
provided by Greg Oster.

Revision 1.125.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:38:39 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.4: +11 -11 lines
Diff to previous 1.125.2.4 (colored) to selected 1.202.2.1 (colored)

Fix the sync with head I botched.

Revision 1.132.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 19:21:45 2004 UTC (19 years, 6 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-RC2, netbsd-2-0-RC1
Changes since 1.132.2.1: +145 -44 lines
Diff to previous 1.132.2.1 (colored) to branchpoint 1.132 (colored) to selected 1.202.2.1 (colored)

Pull up revision 1.135 (requested by yamt in ticket #858):
  Fix access-after-free bugs in dircache code by reference
  counting nfsdircache.  Fixes PR#26864.

Revision 1.125.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:20 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.3: +154 -53 lines
Diff to previous 1.125.2.3 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.136 / (download) - annotate - [select for diffs], Fri Sep 17 14:11:26 2004 UTC (19 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.135: +4 -4 lines
Diff to previous 1.135 (colored) to selected 1.202.2.1 (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.135 / (download) - annotate - [select for diffs], Wed Sep 15 09:50:56 2004 UTC (19 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.134: +145 -44 lines
Diff to previous 1.134 (colored) to selected 1.202.2.1 (colored)

fix access-after-free bugs in dircache code by refcounting nfsdircache.
PR/26864.

Revision 1.125.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:41 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.2: +5 -6 lines
Diff to previous 1.125.2.2 (colored) to selected 1.202.2.1 (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.125.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:56:17 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.125.2.1: +86 -40 lines
Diff to previous 1.125.2.1 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD

Revision 1.132.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 10:15:57 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-2-0
Changes since 1.132: +5 -2 lines
Diff to previous 1.132 (colored) to selected 1.202.2.1 (colored)

Pull up revision 1.134 (requested by yamt in ticket #515):
nfs_searchdircache: fix a null dereference in the case that
offset!=0 and dircache hasn't been initialized yet.

Revision 1.134 / (download) - annotate - [select for diffs], Mon Jun 14 12:28:35 2004 UTC (19 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.133: +5 -2 lines
Diff to previous 1.133 (colored) to selected 1.202.2.1 (colored)

nfs_searchdircache: fix a null dereference in the case that
offset!=0 and dircache hasn't been initialized yet.

Revision 1.133 / (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.132: +3 -3 lines
Diff to previous 1.132 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.132 / (download) - annotate - [select for diffs], Fri Mar 19 13:53:28 2004 UTC (20 years ago) by yamt
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.131: +4 -3 lines
Diff to previous 1.131 (colored) to selected 1.202.2.1 (colored)

nfs_getattrcache: deal with timer wraparound.

Revision 1.131 / (download) - annotate - [select for diffs], Fri Mar 12 16:52:37 2004 UTC (20 years ago) by yamt
Branch: MAIN
Changes since 1.130: +5 -4 lines
Diff to previous 1.130 (colored) to selected 1.202.2.1 (colored)

shrink sizeof struct nfsnode by putting exclusive members into union.

Revision 1.130 / (download) - annotate - [select for diffs], Sat Nov 29 19:31:13 2003 UTC (20 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.129: +9 -6 lines
Diff to previous 1.129 (colored) to selected 1.202.2.1 (colored)

nfs_zeropad: remove an unneeded substitution (and clean up a little.)

Revision 1.103.6.1 / (download) - annotate - [select for diffs], Sat Oct 4 08:34:22 2003 UTC (20 years, 5 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.103: +15 -7 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.202.2.1 (colored)

Pull up revision 1.129 (requested by martti in ticket #1506):
plug mbuf leak due to manual mbuf handling.  PR kern/13807.
(martti confirmed that it stabilizes the situation described in kren/13807)

Revision 1.129 / (download) - annotate - [select for diffs], Thu Oct 2 06:01:51 2003 UTC (20 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.128: +15 -7 lines
Diff to previous 1.128 (colored) to selected 1.202.2.1 (colored)

plug mbuf leak due to manual mbuf handling.  PR kern/13807.
(martti confirmed that it stabilizes the situation described in kren/13807)

Revision 1.128 / (download) - annotate - [select for diffs], Fri Sep 26 11:51:53 2003 UTC (20 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored) to selected 1.202.2.1 (colored)

change n_mtime from time_t to timespec in order to improve
cache consistency.
(1 second granularity is too loose these days.)

Revision 1.127 / (download) - annotate - [select for diffs], Thu Aug 7 16:33:53 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.126: +3 -7 lines
Diff to previous 1.126 (colored) to selected 1.202.2.1 (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.126 / (download) - annotate - [select for diffs], Wed Jul 23 13:52:24 2003 UTC (20 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.125: +55 -21 lines
Diff to previous 1.125 (colored) to selected 1.202.2.1 (colored)

when rexmitting a request due to NFSERR_JUKEBOX,
use a new xid as RFC1813 says.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:10 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.125: +15 -14 lines
Diff to previous 1.125 (colored) to selected 1.202.2.1 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:18 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.124: +11 -11 lines
Diff to previous 1.124 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.124 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:37 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.123: +5 -6 lines
Diff to previous 1.123 (colored) to selected 1.202.2.1 (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.123 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:18 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.122: +15 -14 lines
Diff to previous 1.122 (colored) to selected 1.202.2.1 (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.122 / (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.121: +47 -53 lines
Diff to previous 1.121 (colored) to selected 1.202.2.1 (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.121 / (download) - annotate - [select for diffs], Thu May 22 14:16:23 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.120: +4 -2 lines
Diff to previous 1.120 (colored) to selected 1.202.2.1 (colored)

poolify nfsrv_descript.

Revision 1.120 / (download) - annotate - [select for diffs], Thu May 22 14:14:02 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.119: +22 -10 lines
Diff to previous 1.119 (colored) to selected 1.202.2.1 (colored)

avoid double free with xlatecookie.

Revision 1.119 / (download) - annotate - [select for diffs], Wed May 7 16:18:53 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.118: +4 -2 lines
Diff to previous 1.118 (colored) to selected 1.202.2.1 (colored)

simple lock for nfs iod.

Revision 1.118 / (download) - annotate - [select for diffs], Sat May 3 18:07:42 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.117: +27 -3 lines
Diff to previous 1.117 (colored) to selected 1.202.2.1 (colored)

tweak nfsm_adj to pay attention to read only mbufs.

Revision 1.117 / (download) - annotate - [select for diffs], Sat May 3 16:35:22 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.116: +5 -4 lines
Diff to previous 1.116 (colored) to selected 1.202.2.1 (colored)

more comment.

Revision 1.116 / (download) - annotate - [select for diffs], Sat May 3 16:28:57 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.115: +9 -5 lines
Diff to previous 1.115 (colored) to selected 1.202.2.1 (colored)

better handling of write verifier change.

Revision 1.115 / (download) - annotate - [select for diffs], Thu Apr 24 21:21:05 2003 UTC (20 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.114: +10 -10 lines
Diff to previous 1.114 (colored) to selected 1.202.2.1 (colored)

Change some subordinate functions to take a "struct nfsnode" argument
instead of "struct vnode". This saves a number of pointer dereferences;
it sums up to about half a kB for me. And it paves the way for future
fixes.
While cleaning up, eliminate a write-only member of "struct nfsreq"
and a pointless assignment in the NFS_V2_ONLY case.

Revision 1.114 / (download) - annotate - [select for diffs], Wed Apr 16 14:51:55 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.113: +5 -5 lines
Diff to previous 1.113 (colored) to selected 1.202.2.1 (colored)

sync a comment with reality.

Revision 1.113 / (download) - annotate - [select for diffs], Wed Apr 2 15:14:22 2003 UTC (21 years ago) by yamt
Branch: MAIN
Changes since 1.112: +9 -8 lines
Diff to previous 1.112 (colored) to selected 1.202.2.1 (colored)

use queue manipulation macros.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Apr 1 11:59:03 2003 UTC (21 years ago) by yamt
Branch: MAIN
Changes since 1.111: +4 -2 lines
Diff to previous 1.111 (colored) to selected 1.202.2.1 (colored)

add an assertion.

Revision 1.111 / (download) - annotate - [select for diffs], Mon Mar 31 14:47:03 2003 UTC (21 years ago) by yamt
Branch: MAIN
Changes since 1.110: +7 -7 lines
Diff to previous 1.110 (colored) to selected 1.202.2.1 (colored)

rename fvdl_debug to NFS_DEBUG_COMMIT.

ok'ed by fvdl.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Mar 28 13:05:48 2003 UTC (21 years ago) by yamt
Branch: MAIN
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.109 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:19 2003 UTC (21 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.108: +28 -19 lines
Diff to previous 1.108 (colored) to selected 1.202.2.1 (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.108 / (download) - annotate - [select for diffs], Mon Feb 10 17:31:01 2003 UTC (21 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.107: +4 -2 lines
Diff to previous 1.107 (colored) to selected 1.202.2.1 (colored)

move the MALLOC decl for DIROFFS to nfs_subs.c

Revision 1.92.2.11 / (download) - annotate - [select for diffs], Wed Dec 11 06:46:50 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.92.2.10: +0 -1 lines
Diff to previous 1.92.2.10 (colored) next main 1.93 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Dec 1 23:02:11 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.106: +2 -3 lines
Diff to previous 1.106 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.92.2.10 / (download) - annotate - [select for diffs], Mon Nov 11 22:16:09 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.92.2.9: +7 -2 lines
Diff to previous 1.92.2.9 (colored) to selected 1.202.2.1 (colored)

Catch up to -current

Revision 1.106 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:50 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.105: +7 -2 lines
Diff to previous 1.105 (colored) to selected 1.202.2.1 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.92.2.9 / (download) - annotate - [select for diffs], Tue Oct 22 18:09:43 2002 UTC (21 years, 5 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.92.2.8: +30 -6 lines
Diff to previous 1.92.2.8 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.105 / (download) - annotate - [select for diffs], Mon Oct 21 12:52:33 2002 UTC (21 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: kqueue-beforemerge
Changes since 1.104: +30 -6 lines
Diff to previous 1.104 (colored) to selected 1.202.2.1 (colored)

fix a page locking deadlock problem for nfs.

add a flag that specify if the file can be truncated safely or not
to nfsm_loadattr and friends.  when it isn't safe, just mark the nfsnode
as "should be truncated later".

ok'ed by Frank van der Linden and Chuck Silvers.
close kern/18036.

Revision 1.95.2.6 / (download) - annotate - [select for diffs], Mon Sep 30 20:43:44 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.95.2.5: +7 -2 lines
Diff to previous 1.95.2.5 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored) to selected 1.202.2.1 (colored)

add support for kevents to NFS
to detect file changes on server by other NFS clients, polling kernel thread
is used to periodically check for attribute changes of watched files;
the NFS server is only contacted when the vnode expires from local attrcache
(which takes 5-60 seconds currently), to keep network&CPU overhead low

the routine checking for remote changes is quite simplistic, but hopefully
doing it's job well enough

Revision 1.95.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:49:49 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.95.2.4: +4 -4 lines
Diff to previous 1.95.2.4 (colored) to branchpoint 1.95 (colored) to selected 1.202.2.1 (colored)

sync kqueue branch with HEAD

Revision 1.103.4.1 / (download) - annotate - [select for diffs], Thu Aug 29 00:56:56 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.103: +4 -4 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.202.2.1 (colored)

catch up with -current.

Revision 1.92.2.8 / (download) - annotate - [select for diffs], Tue Aug 27 23:48:21 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.92.2.7: +2 -2 lines
Diff to previous 1.92.2.7 (colored) to selected 1.202.2.1 (colored)

Catch up to -current.

Revision 1.104 / (download) - annotate - [select for diffs], Fri Aug 23 05:38:51 2002 UTC (21 years, 7 months ago) by enami
Branch: MAIN
CVS Tags: kqueue-base, gehenna-devsw-base
Changes since 1.103: +4 -4 lines
Diff to previous 1.103 (colored) to selected 1.202.2.1 (colored)

s/FREE/PNBUF_PUT/

Revision 1.95.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:51:49 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.95.2.3: +4 -2 lines
Diff to previous 1.95.2.3 (colored) to branchpoint 1.95 (colored) to selected 1.202.2.1 (colored)

catch up with -current on kqueue branch

Revision 1.92.2.7 / (download) - annotate - [select for diffs], Mon Apr 1 07:49:07 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.92.2.6: +24 -8 lines
Diff to previous 1.92.2.6 (colored) to selected 1.202.2.1 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.103 / (download) - annotate - [select for diffs], Sun Mar 17 22:22:40 2002 UTC (22 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.102: +4 -2 lines
Diff to previous 1.102 (colored) to selected 1.202.2.1 (colored)

use the exithook mechanism to remove the exiting process from the list
of processes to be signalled in a soft mount.

Revision 1.95.2.3 / (download) - annotate - [select for diffs], Sat Mar 16 16:02:20 2002 UTC (22 years ago) by jdolecek
Branch: kqueue
Changes since 1.95.2.2: +22 -8 lines
Diff to previous 1.95.2.2 (colored) to branchpoint 1.95 (colored) to selected 1.202.2.1 (colored)

Catch up with -current.

Revision 1.102 / (download) - annotate - [select for diffs], Mon Mar 11 22:56:47 2002 UTC (22 years ago) by jdolecek
Branch: MAIN
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.202.2.1 (colored)

Cosmetic change for nfs_enterdircache() - since 'blkno' is last arg,
define it's type last, too.
Noted in kern/14742 by John Franklin.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Feb 28 21:38:08 2002 UTC (22 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.100: +21 -7 lines
Diff to previous 1.100 (colored) to selected 1.202.2.1 (colored)

Invalidate the access cache when loading a new set of attributes into
the atribute cache. Fixes access cache problem seen by
Nathan Funk of the UofS, relayed by Greg Oster.

Revision 1.92.2.6 / (download) - annotate - [select for diffs], Thu Feb 28 04:15:21 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.92.2.5: +4 -2 lines
Diff to previous 1.92.2.5 (colored) to selected 1.202.2.1 (colored)

Catch up to -current.

Revision 1.95.2.2 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:43 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.95.2.1: +4 -2 lines
Diff to previous 1.95.2.1 (colored) to branchpoint 1.95 (colored) to selected 1.202.2.1 (colored)

Sync w/ -current.

Revision 1.100 / (download) - annotate - [select for diffs], Sat Jan 26 02:52:20 2002 UTC (22 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored) to selected 1.202.2.1 (colored)

re-enable NFSv3 commit RPCs by abandoning my new approach in favor of
frank's scheme, with one new twist:  don't wait until we've totally run
out of free pages before committing, but instead notice when we've built
up a largish range of uncommitted pages and commit only the older half of
the range, which is likely to already be on disk on the server.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:04:25 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.95: +15 -12 lines
Diff to previous 1.95 (colored) to selected 1.202.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.77.2.5 / (download) - annotate - [select for diffs], Thu Nov 15 22:35:24 2001 UTC (22 years, 4 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.77.2.4: +3 -2 lines
Diff to previous 1.77.2.4 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored) to selected 1.202.2.1 (colored)

Pull up revision 1.98 (requested by fvdl):
  Always initialize ni_rootdir in nfs_namei().  This fixes a problem
  where use of ``..'' would instead use the information for ``.'',
  when using NetBSD/alpha NFS servers, and fixes PR#11618 ands
  PR#12953.

Revision 1.92.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:18:45 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.92.2.4: +4 -1 lines
Diff to previous 1.92.2.4 (colored) to selected 1.202.2.1 (colored)

Catch up to -current.

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:37 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.98: +4 -1 lines
Diff to previous 1.98 (colored) next main 1.99 (colored) to selected 1.202.2.1 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Nov 10 10:59:10 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.98: +4 -1 lines
Diff to previous 1.98 (colored) to selected 1.202.2.1 (colored)

add RCSIDs

Revision 1.92.2.4 / (download) - annotate - [select for diffs], Mon Oct 8 20:11:48 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.92.2.3: +3 -2 lines
Diff to previous 1.92.2.3 (colored) to selected 1.202.2.1 (colored)

Catch up to -current.

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:48:01 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.95: +12 -12 lines
Diff to previous 1.95 (colored) next main 1.96 (colored) to selected 1.202.2.1 (colored)

Catch up with -current.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Sep 27 21:44:56 2001 UTC (22 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.97: +3 -2 lines
Diff to previous 1.97 (colored) to selected 1.202.2.1 (colored)

Always initialize ni_rootdir in nfs_namei. From Andrei Petrov.

Revision 1.92.2.3 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:56 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.92.2.2: +10 -11 lines
Diff to previous 1.92.2.2 (colored) to selected 1.202.2.1 (colored)

Catch up to -current.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Sep 15 20:36:40 2001 UTC (22 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: post-chs-ubcperf
Changes since 1.96: +4 -4 lines
Diff to previous 1.96 (colored) to selected 1.202.2.1 (colored)

a whole bunch of changes to improve performance and robustness under load:

 - remove special treatment of pager_map mappings in pmaps.  this is
   required now, since I've removed the globals that expose the address range.
   pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
   no longer any need to special-case it.
 - eliminate struct uvm_vnode by moving its fields into struct vnode.
 - rewrite the pageout path.  the pager is now responsible for handling the
   high-level requests instead of only getting control after a bunch of work
   has already been done on its behalf.  this will allow us to UBCify LFS,
   which needs tighter control over its pages than other filesystems do.
   writing a page to disk no longer requires making it read-only, which
   allows us to write wired pages without causing all kinds of havoc.
 - use a new PG_PAGEOUT flag to indicate that a page should be freed
   on behalf of the pagedaemon when it's unlocked.  this flag is very similar
   to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
   pageout fails due to eg. an indirect-block buffer being locked.
   this allows us to remove the "version" field from struct vm_page,
   and together with shrinking "loan_count" from 32 bits to 16,
   struct vm_page is now 4 bytes smaller.
 - no longer use PG_RELEASED for swap-backed pages.  if the page is busy
   because it's being paged out, we can't release the swap slot to be
   reallocated until that write is complete, but unlike with vnodes we
   don't keep a count of in-progress writes so there's no good way to
   know when the write is done.  instead, when we need to free a busy
   swap-backed page, just sleep until we can get it busy ourselves.
 - implement a fast-path for extending writes which allows us to avoid
   zeroing new pages.  this substantially reduces cpu usage.
 - encapsulate the data used by the genfs code in a struct genfs_node,
   which must be the first element of the filesystem-specific vnode data
   for filesystems which use genfs_{get,put}pages().
 - eliminate many of the UVM pagerops, since they aren't needed anymore
   now that the pager "put" operation is a higher-level operation.
 - enhance the genfs code to allow NFS to use the genfs_{get,put}pages
   instead of a modified copy.
 - clean up struct vnode by removing all the fields that used to be used by
   the vfs_cluster.c code (which we don't use anymore with UBC).
 - remove kmem_object and mb_object since they were useless.
   instead of allocating pages to these objects, we now just allocate
   pages with no object.  such pages are mapped in the kernel until they
   are freed, so we can use the mapping to find the page to free it.
   this allows us to remove splvm() protection in several places.

The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.

Revision 1.96 / (download) - annotate - [select for diffs], Sat Sep 15 16:13:01 2001 UTC (22 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: pre-chs-ubcperf
Changes since 1.95: +7 -8 lines
Diff to previous 1.95 (colored) to selected 1.202.2.1 (colored)

add a new VFS op, vfs_reinit, which is called when desiredvnodes is
adjusted via sysctl.  file systems that have hash tables which are
sized based on the value of this variable now resize those hash tables
using the new value.  the max number of FFS softdeps is also recalculated.

convert various file systems to use the <sys/queue.h> macros for
their hash tables.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:09:35 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.92.2.1: +12 -7 lines
Diff to previous 1.92.2.1 (colored) to selected 1.202.2.1 (colored)

Catch up to -current.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Jun 7 01:04:40 2001 UTC (22 years, 9 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp, kqueue
Changes since 1.94: +5 -3 lines
Diff to previous 1.94 (colored) to selected 1.202.2.1 (colored)

delint lvalue cast abuse

Revision 1.71.2.7 / (download) - annotate - [select for diffs], Mon Apr 23 09:42:34 2001 UTC (22 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.71.2.6: +8 -5 lines
Diff to previous 1.71.2.6 (colored) next main 1.72 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Apr 21 21:35:53 2001 UTC (22 years, 11 months ago) by bjh21
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.93: +8 -5 lines
Diff to previous 1.93 (colored) to selected 1.202.2.1 (colored)

In nfs_loadattrcache(), if checkalias() gives us a new vnode, lock it.  This
prevents us losing the locked state of the old vnode.

fvdl thinks the old vnode is certain to be locked at this point.  I've put in
a KASSERT to be on the safe side.

This seems to fix PR kern/12661.

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:58:57 2001 UTC (22 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.92: +3 -2 lines
Diff to previous 1.92 (colored) to selected 1.202.2.1 (colored)

Catch up with -current.

Revision 1.77.2.4 / (download) - annotate - [select for diffs], Fri Apr 6 00:02:45 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.77.2.3: +3 -2 lines
Diff to previous 1.77.2.3 (colored) to branchpoint 1.77 (colored) to selected 1.202.2.1 (colored)

Pull up revision 1.93 (requested by wrstuden):
  Explicitly VOP_UNLOCK before setting v_op to spec_vnode_ops_p.
  Works around a lock leak and eventual kernel panic.

Revision 1.71.2.6 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:44 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.71.2.5: +3 -2 lines
Diff to previous 1.71.2.5 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Mar 23 21:11:44 2001 UTC (23 years ago) by fvdl
Branch: MAIN
Changes since 1.92: +3 -2 lines
Diff to previous 1.92 (colored) to selected 1.202.2.1 (colored)

Same change as in the UFS code: unlock vnode before setting v_op
to spec_vnode_ops. From Bill Studenmund.

Revision 1.71.2.5 / (download) - annotate - [select for diffs], Mon Mar 12 13:32:01 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.71.2.4: +20 -12 lines
Diff to previous 1.71.2.4 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Feb 21 21:39:57 2001 UTC (23 years, 1 month ago) by jdolecek
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored) to selected 1.202.2.1 (colored)

make some more constant arrays 'const'

Revision 1.91 / (download) - annotate - [select for diffs], Wed Feb 14 15:36:45 2001 UTC (23 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.90: +19 -11 lines
Diff to previous 1.90 (colored) to selected 1.202.2.1 (colored)

Fix some possible locking errors in nfs_namei (XXX this function should die)

Revision 1.71.2.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:35 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.71.2.3: +36 -34 lines
Diff to previous 1.71.2.3 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.90 / (download) - annotate - [select for diffs], Thu Jan 18 20:28:28 2001 UTC (23 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.89: +36 -34 lines
Diff to previous 1.89 (colored) to selected 1.202.2.1 (colored)

constify

Revision 1.77.2.3 / (download) - annotate - [select for diffs], Thu Dec 14 23:37:09 2000 UTC (23 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.77.2.2: +231 -20 lines
Diff to previous 1.77.2.2 (colored) to branchpoint 1.77 (colored) to selected 1.202.2.1 (colored)

Pull up revisions 1.85,1.87 (requested by fvdl):
  Improve NFS performance, possibly with as much as 100% in
  throughput.  Please note: this implies a kernel interface change,
  VOP_FSYNC gains two arguments.

Revision 1.71.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:19:22 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.71.2.2: +39 -47 lines
Diff to previous 1.71.2.2 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:49 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.88: +40 -48 lines
Diff to previous 1.88 (colored) to selected 1.202.2.1 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:06:34 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.71.2.1: +5 -4 lines
Diff to previous 1.71.2.1 (colored) to selected 1.202.2.1 (colored)

Sync with HEAD.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:19 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.71: +355 -108 lines
Diff to previous 1.71 (colored) to selected 1.202.2.1 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.88 / (download) - annotate - [select for diffs], Wed Nov 8 14:28:15 2000 UTC (23 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.87: +5 -4 lines
Diff to previous 1.87 (colored) to selected 1.202.2.1 (colored)

Update for hashinit() change.

Revision 1.77.2.2 / (download) - annotate - [select for diffs], Mon Oct 30 22:22:58 2000 UTC (23 years, 5 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2
Changes since 1.77.2.1: +2445 -0 lines
Diff to previous 1.77.2.1 (colored) to branchpoint 1.77 (colored) to selected 1.202.2.1 (colored)

Pullup 1.87 [fvdl]:
Do not accept vnode type changes to an active node. This may wreak
havoc if the server erroneously uses the same filehandle for
different files. This changes back revision 1.28; the PR that
that revision fixed doesn't apply anymore, it has been verified
not to be a problem with this change.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Oct 24 12:02:04 2000 UTC (23 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored) to selected 1.202.2.1 (colored)

Do not accept vnode type changes to an active node. This may wreak
havoc if the server erroneously uses the same filehandle for
different files. This changes back revision 1.28; the PR that
that revision fixed doesn't apply anymore, it has been verified
not to be a problem with this change.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Sep 27 18:36:03 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.85: +5 -3 lines
Diff to previous 1.85 (colored) to selected 1.202.2.1 (colored)

Avoid unused variables for V2_ONLY case.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Sep 24 06:59:21 2000 UTC (23 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.84: +4 -2 lines
Diff to previous 1.84 (colored) to selected 1.202.2.1 (colored)

Don't bother to clear commit information for the vnode of type VNON.
It is not necessary since it is a vnode being initialized and it shouldn't
be done since filesystem private data may not be assigned yet.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Sep 19 23:26:26 2000 UTC (23 years, 6 months ago) by bjh21
Branch: MAIN
Changes since 1.83: +5 -1 lines
Diff to previous 1.83 (colored) to selected 1.202.2.1 (colored)

Extend NFS_V2_ONLY to remove NQNFS lease support as well.  Saves another 10k.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Sep 19 22:13:55 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.82: +229 -20 lines
Diff to previous 1.82 (colored) to selected 1.202.2.1 (colored)

Add functions to deal with keeping track of commit ranges.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Sep 19 17:04:51 2000 UTC (23 years, 6 months ago) by bjh21
Branch: MAIN
Changes since 1.81: +2 -1 lines
Diff to previous 1.81 (colored) to selected 1.202.2.1 (colored)

New kernel option, NFS_V2_ONLY, which aims to reduce the NFS client to just
that required to support NFSv2 mounts.  Not finished yet, but already
provides some 44k of saving in code size on arm26.  More savings, and some
documentation, are still to come.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Aug 3 20:41:32 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.80: +12 -8 lines
Diff to previous 1.80 (colored) to selected 1.202.2.1 (colored)

Convert namei pathname buffer allocation to use the pool allocator.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Aug 3 06:15:05 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jun 28 03:30:42 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.78: +1 -3 lines
Diff to previous 1.78 (colored) to selected 1.202.2.1 (colored)

remove include of <vm/vm.h>

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

remove include of <vm/vm.h>

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:10:18 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.75: +23 -3 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.202.2.1 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.77.2.1, Tue Jun 20 02:29:51 2000 UTC (23 years, 9 months ago) by tv
Branch: netbsd-1-5
Changes since 1.77: +0 -2445 lines
FILE REMOVED

file nfs_subs.c was added on branch netbsd-1-5 on 2000-10-30 22:22:58 +0000

Revision 1.77 / (download) - annotate - [select for diffs], Tue Jun 20 02:29:51 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored) to selected 1.202.2.1 (colored)

disable the bloated NFS structure check on 64bit sparc64.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Jun 9 00:00:18 2000 UTC (23 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.75: +22 -2 lines
Diff to previous 1.75 (colored) to selected 1.202.2.1 (colored)

Some tweaks to enable NFS over IPv6. The special-casing of AF_INET
should really be removed.

Revision 1.75 / (download) - annotate - [select for diffs], Thu Mar 30 12:51:16 2000 UTC (24 years ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.74: +61 -61 lines
Diff to previous 1.74 (colored) to selected 1.202.2.1 (colored)

Remove register declarations.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Mar 30 02:43:13 2000 UTC (24 years ago) by simonb
Branch: MAIN
Changes since 1.73: +1 -4 lines
Diff to previous 1.73 (colored) to selected 1.202.2.1 (colored)

Delete redundant decl of nfs_pub - it's in <sys/mount.h>.
Delete redundant decls of nfsv{2,3}_type - they're in <nfs/nfsproto.h>.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Mar 16 18:08:29 2000 UTC (24 years ago) by jdolecek
Branch: MAIN
Changes since 1.72: +7 -1 lines
Diff to previous 1.72 (colored) to selected 1.202.2.1 (colored)

Add new VFS op routine - vfs_done and call it on filesystem detach
in vfs_detach(). vfs_done may free global filesystem's resources,
typically those allocated in respective filesystem's init function.
Needed so those filesystems which went in via LKM have a chance to
clean after themselves before unloading. This fixes random panics
when LKM for filesystem using pools was loaded and unloaded several
times.

For each leaf filesystem, add appropriate vfs_done routine.

Revision 1.71.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:30 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.71: +16 -10 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.202.2.1 (colored)

Pull up to last week's -current.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:42:16 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.71: +16 -10 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.202.2.1 (colored)

Sync with -current

Revision 1.72 / (download) - annotate - [select for diffs], Mon Nov 1 21:32:41 1999 UTC (24 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Changes since 1.71: +16 -10 lines
Diff to previous 1.71 (colored) to selected 1.202.2.1 (colored)

Stuff values in va_blocksize that are closer to reality.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Fri Sep 10 22:24:25 1999 UTC (24 years, 6 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.202.2.1 (colored)

Pull up revision 1.71:
  Don't truncate minor numbers > 255 on a NFS client.  (is)

Revision 1.71 / (download) - annotate - [select for diffs], Mon Sep 6 09:27:18 1999 UTC (24 years, 6 months ago) by is
Branch: MAIN
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.202.2.1 (colored)

Don't truncate minor numbers >= 256.
Problem reported by Saitoh Masanobu, fix by Frank van der Linden.

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Mon Aug 2 22:38:27 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.69: +6 -4 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.202.2.1 (colored)

Update from trunk.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Jul 8 01:06:03 1999 UTC (24 years, 8 months ago) by wrstuden
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.69: +6 -4 lines
Diff to previous 1.69 (colored) to selected 1.202.2.1 (colored)

Modify file systems to deal with struct lock in struct vnode. All leaf
fs's other than nfs use genfs_lock() for locking.

Modify lookup routines to set PDIRUNLOCK when they unlock the parrent.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:28 1999 UTC (25 years ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.68: +1 -12 lines
Diff to previous 1.68 (colored) to selected 1.202.2.1 (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.68 / (download) - annotate - [select for diffs], Tue Mar 16 23:24:28 1999 UTC (25 years ago) by fvdl
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored) to selected 1.202.2.1 (colored)

..JUKEBOX can happen on writes too.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Mar 16 23:22:57 1999 UTC (25 years ago) by fvdl
Branch: MAIN
Changes since 1.66: +2 -1 lines
Diff to previous 1.66 (colored) to selected 1.202.2.1 (colored)

The JUKEBOX error may be returned by the read operation, so don't
filter it out.

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

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

Revision 1.65 / (download) - annotate - [select for diffs], Sat Feb 27 00:47:34 1999 UTC (25 years, 1 month ago) by wrstuden
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored) to selected 1.202.2.1 (colored)

Rationalize the vfs_checkexp macro to be VFS_CHECKEXP.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Feb 26 23:44:47 1999 UTC (25 years, 1 month ago) by wrstuden
Branch: MAIN
Changes since 1.63: +5 -2 lines
Diff to previous 1.63 (colored) to selected 1.202.2.1 (colored)

Modify vfsops to seperate vfs_fhtovp() into two routines. vfs_fhtovp() now
only handles the file handle to vnode conversion, and a new call,
vfs_checkexp(), performs the export verification.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Aug 9 21:19:52 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.62: +15 -15 lines
Diff to previous 1.62 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jul 5 04:37:44 1998 UTC (25 years, 9 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.61: +2 -1 lines
Diff to previous 1.61 (colored) to selected 1.202.2.1 (colored)

defopt ISO TPIP.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Jun 25 22:18:09 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored) to selected 1.202.2.1 (colored)

defopt NFSSERVER

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jun 24 20:58:46 1998 UTC (25 years, 9 months ago) by sommerfe
Branch: MAIN
Changes since 1.59: +1 -6 lines
Diff to previous 1.59 (colored) to selected 1.202.2.1 (colored)

Always include fifos; "not an option any more".

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jun 22 22:01:05 1998 UTC (25 years, 9 months ago) by sommerfe
Branch: MAIN
Changes since 1.58: +2 -1 lines
Diff to previous 1.58 (colored) to selected 1.202.2.1 (colored)

defopt for options FIFO

Revision 1.58 / (download) - annotate - [select for diffs], Fri May 8 18:26:54 1998 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.202.2.1 (colored)

Fix some arithmetics lossage on typeless pointers.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Mar 3 13:38:32 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.56: +4 -3 lines
Diff to previous 1.56 (colored) to selected 1.202.2.1 (colored)

Only free cookies on error when they were actually allocated by the readdir vop.

Revision 1.56 / (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.55: +4 -19 lines
Diff to previous 1.55 (colored) to selected 1.202.2.1 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:45 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +887 -166 lines
Diff to previous 1.1.1.2 (colored) to selected 1.202.2.1 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:10:40 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +485 -494 lines
Diff to previous 1.1.1.1 (colored) to selected 1.202.2.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.55 / (download) - annotate - [select for diffs], Thu Feb 19 00:54:13 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored) to selected 1.202.2.1 (colored)

Include the NFS option header.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Feb 10 14:10:16 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.53 / (download) - annotate - [select for diffs], Sat Feb 7 02:45:00 1998 UTC (26 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.202.2.1 (colored)

add flags arg to hashinit(), to pass to malloc().

Revision 1.52 / (download) - annotate - [select for diffs], Fri Feb 6 08:22:54 1998 UTC (26 years, 1 month ago) by mikel
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored) to selected 1.202.2.1 (colored)

ELAST incremented, update nfsrv_v2errmap[] initialization

Revision 1.51 / (download) - annotate - [select for diffs], Thu Feb 5 08:00:24 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.50: +13 -1 lines
Diff to previous 1.50 (colored) to selected 1.202.2.1 (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.49.2.1 / (download) - annotate - [select for diffs], Thu Jan 29 12:13:23 1998 UTC (26 years, 2 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001
Changes since 1.49: +9 -1 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.202.2.1 (colored)

Pull up 1.50 (fvdl)

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jan 22 00:53:59 1998 UTC (26 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.49: +9 -1 lines
Diff to previous 1.49 (colored) to selected 1.202.2.1 (colored)

Refuse to create entries in the dir cache for offset 0. This is a special
case anyway, and amd(8) erroneously returns some entries with cookie 0.
Fixes PR 4844

Revision 1.49 / (download) - annotate - [select for diffs], Sun Oct 19 01:46:32 1997 UTC (26 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.48: +187 -27 lines
Diff to previous 1.48 (colored) to selected 1.202.2.1 (colored)

* Implement optional 32 <-> 64 bit directory cookie translation. This uses
  the directory cache as translation table. See nfs_subs.c for comments.
  Makes the code a bit more complex to look at than I would have liked,
  but doesn't affect the speed of the default behavior.
* Optimize caching behavior a bit when buffers are invalidated.
* Save some RPCs in readdir operations by not bothering if there is
  a small amount left to do to fill the buffer. It'll be done in the
  next RPC with a larger chunk anyway. Wastes a bit of buffer space
  but is faster.
* Make n_vattr an allocated vattr struct. This avoids nfsnode bloat,
  and is friendlier to the malloc routines.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Tue Oct 14 15:58:36 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.45: +179 -88 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.202.2.1 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Oct 11 02:09:48 1997 UTC (26 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.47: +71 -71 lines
Diff to previous 1.47 (colored) to selected 1.202.2.1 (colored)

Move cookie heuristic function inside ifdef NFS, to make a kernel with server
code but without client code link again. From Erik Bertelsen, PR 4259

Revision 1.47 / (download) - annotate - [select for diffs], Fri Oct 10 13:21:51 1997 UTC (26 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.46: +8 -9 lines
Diff to previous 1.46 (colored) to selected 1.202.2.1 (colored)

Fix unitialized var warning (did not appear on i386, but did on sparc).

Revision 1.46 / (download) - annotate - [select for diffs], Fri Oct 10 01:53:25 1997 UTC (26 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.45: +180 -88 lines
Diff to previous 1.45 (colored) to selected 1.202.2.1 (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.45 / (download) - annotate - [select for diffs], Mon Jul 14 20:46:20 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.44: +23 -14 lines
Diff to previous 1.44 (colored) to selected 1.202.2.1 (colored)

Don't assume that pointers into mbuf data remain valid across nfsm_dissect.
In readdirplus, don't keep such pointers but store the file attributes
in a variable instead until they are needed. Change nfsm_loadattr*
a bit so it can accept a direct pointer to an nfs_fattr structure.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jul 4 20:22:10 1997 UTC (26 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.202.2.1 (colored)

Don't cast 64bit (off_t) file sizes to vm_offset_t (32bit on many
architectures), truncate them intelligently instead.
The truncation is done centralized in vnode_pager.c.
This prevents from wrap-over effects when parts of large (>2^32 byte) files
are mmapped.
Don't allow to mmap above the numerical range of vm_offset_t.
This is considered a temporary solution until the vm system handles the
object sizes/offsets more cleanly.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jun 24 23:36:02 1997 UTC (26 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.42: +186 -32 lines
Diff to previous 1.42 (colored) to selected 1.202.2.1 (colored)

Extend lookup handling for WebNFS. This means that nfs_namei deals
with full pathname lookups if a public filehandle is used, and that
it translates the '%' escapes (URL-style) in the same case. Also,
make nfsrv_fhtovp convert the public filehandle to the vp of the
publicly exported filesystem, as stored in the nfs_pub structure.

Revision 1.42 / (download) - annotate - [select for diffs], Thu May 8 16:20:35 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) to selected 1.202.2.1 (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.41 / (download) - annotate - [select for diffs], Thu Mar 27 20:40:09 1997 UTC (27 years ago) by thorpej
Branch: MAIN
Changes since 1.40: +4 -7 lines
Diff to previous 1.40 (colored) to selected 1.202.2.1 (colored)

Update for new mbuf code.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Mar 23 20:55:51 1997 UTC (27 years ago) by fvdl
Branch: MAIN
Changes since 1.39: +11 -1 lines
Diff to previous 1.39 (colored) to selected 1.202.2.1 (colored)

Check for the use of reserved ports on a per-request basis, unless
MNT_EXNORESPORT is specified. The check is cheap and doesn't impose
any extra overhead.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Wed Mar 12 21:25:12 1997 UTC (27 years ago) by is
Branch: is-newarp
Changes since 1.38: +96 -46 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.202.2.1 (colored)

Merge in changes from Trunk

Revision 1.39 / (download) - annotate - [select for diffs], Sat Feb 22 03:03:03 1997 UTC (27 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.38: +96 -46 lines
Diff to previous 1.38 (colored) to selected 1.202.2.1 (colored)

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

date: 1997/02/10 18:41:14;  author: cp;  state: Exp;  lines: +110 -46
Make nfs_realign go away on sparc and add functionality to nfsm_disct.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jan 31 02:58:52 1997 UTC (27 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-base
Branch point for: is-newarp
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) to selected 1.202.2.1 (colored)

NFSCLIENT -> NFS.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Tue Jan 14 21:27:20 1997 UTC (27 years, 2 months ago) by thorpej
Branch: thorpej-setroot
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.202.2.1 (colored)

Snapshot of work-in-progress, committed to private branch.

These changes implement machine-independent root device and file system
selection.  Notable features:

	- All ports behave in a consistent manner regarding root
	  device selection.
	- No more "options GENERIC"; all kernels have the ability
	  to boot with RB_ASKNAME to select root device and file system
	  type.
	- Root file system type can be wildcarded; a machine-independent
	  function will try all possible file systems for the selected
	  root device until one succeeds.
	- If the root file system fails to mount, the operator will
	  be given the chance to select a new root device and file
	  system type, rather than having the machine simply panic.
	- nfs_mountroot() no longer panics if any part of the NFS
	  mount process fails; it now returns an error, giving the
	  operator a chance to recover.
	- New, more consistent, config(8) grammar.  The constructs:

		config netbsd swap generic
		config netbsd root on nfs

	  have been replaced with:

		config netbsd root on ? type ?
		config netbsd root on ? type nfs

	  Additionally, the operator may select or wildcard root file
	  system type in the kernel configuration file:

		config netbsd root on cd0a type cd9660

	  config(8) now requires that a "root" specification be
	  made.  "root" may be wired down or wildcarded.  "swap" and
	  "dump" specifications are optional, and follow previous
	  semantics.

	- config(8) has a new "file-system" keyword, used to configure
	  file systems into the kernel.  Eventually, this will be used
	  to generate the default vfssw[].

	- "options NFSCLIENT" is obsolete, and is replaced by
	  "file-system NFS".  "options NFSSERVER" still exists, since
	  NFS server support is independent of the NFS file system
	  client.

	- sys/arch/<foo>/<foo>/swapgeneric.c is no longer used, and
	  will be removed; all information is now generated by config(8).

As of this commit, all ports except arm32 have been updated to use
the new setroot().  Only SPARC, i386, and Alpha ports have been
tested at this time.  Port masters should test these changes on their
ports, and report any problems back to me.

More changes are on their way, including RB_ASKNAME support in
nfs_mountroot() (to prompt for server address and path) and, potentially,
the ability to select rarp/bootparam or bootp in nfs_mountroot().

Revision 1.37 / (download) - annotate - [select for diffs], Mon Dec 9 11:31:11 1996 UTC (27 years, 3 months ago) by fvdl
Branch: MAIN
Branch point for: thorpej-setroot
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored) to selected 1.202.2.1 (colored)

Comment change in previous made for some bad english..

Revision 1.36 / (download) - annotate - [select for diffs], Mon Dec 9 10:46:20 1996 UTC (27 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.202.2.1 (colored)

Move '#ifdef NFSSERVER' back to the right spot; NQNFS datastructures need
to be initialized on both the client and the server side. Remove misleading
comment about this being just server stuff.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Dec 3 00:22:44 1996 UTC (27 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +23 -13 lines
Diff to previous 1.34 (colored) to selected 1.202.2.1 (colored)

Make NFSSERVER work without NFSCLIENT.  This is achieved by splitting
the client and server/shared data initialization into separate functions,
and calling the server/shared initialization directly from main().
Problem noted in PR #1308 (Kenneth Stailey) and PR #1780 (Chris Demetriou).
Fix suggested in PR #1780 by Chris Demetriou, and munged a bit by me,
and OK'd by Frank van der Linden <fvdl@netbsd.org>.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Dec 2 22:55:42 1996 UTC (27 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored) to selected 1.202.2.1 (colored)

NFS performance improvement from Doug Rabson/FreeBSD:

Improve the queuing algorithms used by NFS' asynchronous i/o.  The
existing mechanism uses a global queue for some buffers and the
vp->b_dirtyblkhd queue for others.  This turns sequential writes into
randomly ordered writes to the server, affecting both read and write
performance.  The existing mechanism also copes badly with hung
servers, tending to block accesses to other servers when all the iods
are waiting for a hung server.

The new mechanism uses a queue for each mount point.  All asynchronous
i/o goes through this queue which preserves the ordering of requests.
A simple mechanism ensures that the iods are shared out fairly between
active mount points.

Reviewed/integrated/approved by Frank van der Linden <fvdl@netbsd.org>

Revision 1.33 / (download) - annotate - [select for diffs], Fri Oct 25 23:14:09 1996 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored) to selected 1.202.2.1 (colored)

make the namei struct members ni_dirp and ni_next, and the componentname
struct member cn_nameptr 'const', since they should never be used to
modify the path name.  (Only the pathname buffer, cn_pnbuf, should be
modified.)  Propagate the const poisoning to code that uses the namei
and componentname structs.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Oct 13 01:39:08 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.31: +9 -9 lines
Diff to previous 1.31 (colored) to selected 1.202.2.1 (colored)

revert kprintf changes

Revision 1.31 / (download) - annotate - [select for diffs], Thu Oct 10 23:31:22 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.30: +9 -9 lines
Diff to previous 1.30 (colored) to selected 1.202.2.1 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.27.4.3 / (download) - annotate - [select for diffs], Mon Jul 8 20:34:24 1996 UTC (27 years, 8 months ago) by jtc
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-RELEASE, netbsd-1-2-PATCH001
Changes since 1.27.4.2: +18 -1 lines
Diff to previous 1.27.4.2 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.202.2.1 (colored)

Pulled up from rev 1.30 by request from Frank van der Linden

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jul 7 12:23:49 1996 UTC (27 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.29: +18 -1 lines
Diff to previous 1.29 (colored) to selected 1.202.2.1 (colored)

Start XIDs at a value based on the current time, not 0. This avoids nasty
XID confusions with servers that cache them over a long period and
with clients that reboot quickly.

Problems: because of the sanity check that is done by comparing the system
time with filesystem time, XIDs will start at 0 until root is mounted,
which means it isn't completely safe for diskless setups. But it's clearly
better than it was. It would also be cleaner if all XID handling (more
generally, all RPC handling) within the kernel went through the
same functions.

Revision 1.27.4.2 / (download) - annotate - [select for diffs], Tue Jul 2 23:35:59 1996 UTC (27 years, 9 months ago) by jtc
Branch: netbsd-1-2
Changes since 1.27.4.1: +10 -11 lines
Diff to previous 1.27.4.1 (colored) to branchpoint 1.27 (colored) to selected 1.202.2.1 (colored)

Pulled up from rev 1.29 by request from fvdl

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jul 1 10:22:47 1996 UTC (27 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.28: +10 -11 lines
Diff to previous 1.28 (colored) to selected 1.202.2.1 (colored)

We're only handling uio with iovcnt == 1, so don't ever attempt to increment
uio_iov, this will get us into nasty trouble. (Thanks to Matthias Drochner for
tracking this down).

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Sat May 25 22:40:34 1996 UTC (27 years, 10 months ago) by fvdl
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-BETA
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.202.2.1 (colored)

Pull in bugfixes from main branch.

Revision 1.28 / (download) - annotate - [select for diffs], Thu May 23 22:47:31 1996 UTC (27 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.202.2.1 (colored)

* Make mounts with symlinks work (needed for direct mounts with amd). PR #1917
* Never change the NQNFS flag and/or version when just doing an update mount.
  Fixes a problem that made diskless booting impossible under some
  circumstances.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Apr 3 23:25:36 1996 UTC (28 years ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.26: +5 -1 lines
Diff to previous 1.26 (colored) to selected 1.202.2.1 (colored)

Make these link in the absense of "options FIFO".

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 13 00:44:17 1996 UTC (28 years ago) by fvdl
Branch: MAIN
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored) to selected 1.202.2.1 (colored)

Disable invalidating of directory offsets cookies. Should fix one or two
directory problems.

XXX There is no clean solution to the cookie/cookieverifier validity mess.
    Together with the disabled strict cookie check, this puts us back at
    what v2 did in this case. Slightly better solution possible by
    consequently storing 64bit cookies in other places too.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 18 11:53:51 1996 UTC (28 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.24: +913 -153 lines
Diff to previous 1.24 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.24 / (download) - annotate - [select for diffs], Fri Feb 9 21:48:34 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.23: +31 -13 lines
Diff to previous 1.23 (colored) to selected 1.202.2.1 (colored)

nfs prototype changes

Revision 1.23 / (download) - annotate - [select for diffs], Thu Feb 1 00:40:44 1996 UTC (28 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.22: +10 -10 lines
Diff to previous 1.22 (colored) to selected 1.202.2.1 (colored)

Rename struct timespec fields to conform to POSIX.1b

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 19 23:07:43 1995 UTC (28 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.21: +29 -29 lines
Diff to previous 1.21 (colored) to selected 1.202.2.1 (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.21 / (download) - annotate - [select for diffs], Fri Sep 8 13:52:23 1995 UTC (28 years, 6 months ago) by ws
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.20: +1 -3 lines
Diff to previous 1.20 (colored) to selected 1.202.2.1 (colored)

No point in computing cn_hash here,
as it gets immediately recomputed in lookup

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jun 2 18:35:50 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) to selected 1.202.2.1 (colored)

Exported group list now starts at offset 0, not 1.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jun 1 22:44:41 1995 UTC (28 years, 10 months ago) by jtc
Branch: MAIN
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored) to selected 1.202.2.1 (colored)

Moved egid credential from cr_groups[0] to new field cr_gid.  POSIX.1
requires that sgid executables and the setuid() syscall *not* change
the supplemental group list.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Fri Aug 19 12:10:31 1994 UTC (29 years, 7 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: 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
Changes since 1.14.2.1: +19 -25 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored) to selected 1.202.2.1 (colored)

update from trunk

Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 18 22:47:53 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +11 -14 lines
Diff to previous 1.17 (colored) to selected 1.202.2.1 (colored)

More LIST/CIRCLEQ migration.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Aug 17 14:43:53 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +8 -10 lines
Diff to previous 1.16 (colored) to selected 1.202.2.1 (colored)

Convert some more lists and queues.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 17 11:41:44 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +2 -3 lines
Diff to previous 1.15 (colored) to selected 1.202.2.1 (colored)

Change the reply list to a TAILQ.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sun Jul 24 01:37:30 1994 UTC (29 years, 8 months ago) by cgd
Branch: netbsd-1-0
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored) to selected 1.202.2.1 (colored)

from trunk.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 22 23:16:36 1994 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored) to selected 1.202.2.1 (colored)

Set the group list length when copying credentials.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 29 06:42:22 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored) to selected 1.202.2.1 (colored)

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

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 13 16:00:41 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.202.2.1 (colored)

Move a misplaced #endif.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 8 11:37:00 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +556 -417 lines
Diff to previous 1.11 (colored) to selected 1.202.2.1 (colored)

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

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

Make FFS optional

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 6 11:28:37 1994 UTC (30 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.9: +8 -1 lines
Diff to previous 1.9 (colored) to selected 1.202.2.1 (colored)

Eliminate some more uses of b_actl.

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

Canonicalize all #includes.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Sun Nov 14 22:22:28 1993 UTC (30 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.1: +22 -22 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.202.2.1 (colored)

Canonicalize all #includes.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:56:40 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored) to selected 1.202.2.1 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.
nfs_vfsops.c, nfsmount.h: Make nfs_quotactl() take an int rather than a uid_t,
as it might be -1.
nfs_vnops.c: va_size and va_bytes are now quads.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 7 15:41:45 1993 UTC (30 years, 6 months ago) by ws
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored) to selected 1.202.2.1 (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], Mon Aug 2 23:11:14 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.202.2.1 (colored)

Make bpos arg to nfsm_reqh a caddr_t*, not a caddr_t**, as that's what it
is actually passed.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 13 10:40:07 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: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.202.2.1 (colored)

bpos is really a caddr_t **.  doesn't really make a diff to the code
generated...

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 13 10:04:28 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored) to selected 1.202.2.1 (colored)

diskless changes made last time were hosed; were using NULL for
"no credentials" rather than NOCRED.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jul 7 12:06:34 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.3: +13 -6 lines
Diff to previous 1.3 (colored) to selected 1.202.2.1 (colored)

changes from ws to support diskless booting...  these are "OK" on inspection
and after testing...  (actually, currently, none of the changed
code is even used...)

Revision 1.3 / (download) - annotate - [select for diffs], Fri May 21 07:38:05 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored) to selected 1.202.2.1 (colored)

add rcsid again; fix RCS+crash fuckup

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

migrated code to make split possible

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.202.2.1 (colored)

initial import of 386bsd-0.1 sources

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.202.2.1 (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>