The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.202 / (download) - annotate - [select for diffs], Mon Feb 5 21:46:06 2024 UTC (7 weeks, 3 days ago) by andvar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.201: +3 -3 lines
Diff to previous 1.201 (colored) to selected 1.42 (colored)

fix various typos in comments.

Revision 1.201 / (download) - annotate - [select for diffs], Sun Apr 9 12:33:58 2023 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.200: +4 -4 lines
Diff to previous 1.200 (colored) to selected 1.42 (colored)

nfs: Simplify assertion.  No functional change intended.

Revision 1.200 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:36 2018 UTC (5 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, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, 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, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.199: +6 -6 lines
Diff to previous 1.199 (colored) to selected 1.42 (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.199 / (download) - annotate - [select for diffs], Sun Jan 21 20:36:49 2018 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.198: +9 -6 lines
Diff to previous 1.198 (colored) to selected 1.42 (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.198 / (download) - annotate - [select for diffs], Fri Jun 17 14:28:29 2016 UTC (7 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, netbsd-8-base, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.197: +5 -3 lines
Diff to previous 1.197 (colored) to selected 1.42 (colored)

Serialize all access to the NFS request queue via splsoftnet(). Fixes random
crashes.
XXX: Pullup-7

Revision 1.197 / (download) - annotate - [select for diffs], Wed Jul 15 03:28:55 2015 UTC (8 years, 8 months ago) by manu
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.196: +41 -4 lines
Diff to previous 1.196 (colored) to selected 1.42 (colored)

Fix soft NFS force unmount

For many reasons, forcibly unmounting a soft NFS mount could hang forever.
Here are the fixes:
- Introduce decents timeouts in operation that awaited NFS server reply.
- On timeout, fails operations on soft mounts with EIO.
- Introduce NFSMNT_DISMNTFORCE to let the filesystem know that a
  force unmount is ongoing. This causes timeouts to be reduced and
  prevents the NFS client to attempt reconnecting to the NFS server.

Also fix a race condition where some asynchronous I/O could reference
destroyed mount structures. We fix this by awaiting asynchronous I/O
to drain before proceeding.

Reviewed by Chuck Silvers.

Revision 1.196 / (download) - annotate - [select for diffs], Sat May 9 15:22:47 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.195: +4 -4 lines
Diff to previous 1.195 (colored) to selected 1.42 (colored)

change sosend() to accept sockaddr * instead of mbuf * for nam.

bump to 7.99.16

Revision 1.195 / (download) - annotate - [select for diffs], Sat May 2 17:18:04 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
Changes since 1.194: +5 -4 lines
Diff to previous 1.194 (colored) to selected 1.42 (colored)

make connect syscall use sockaddr_big and modify pr_{send,connect}
nam parameter type from buf * to sockaddr *.

final commit for parameter type changes to protocol user requests

* bump kernel version to 7.99.15 for parameter type changes to pr_{send,connect}

Revision 1.194 / (download) - annotate - [select for diffs], Fri Apr 3 20:01:07 2015 UTC (8 years, 11 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.193: +13 -22 lines
Diff to previous 1.193 (colored) to selected 1.42 (colored)

* change pr_bind to accept struct sockaddr * instead of struct mbuf *
* update protocol bind implementations to use/expect sockaddr *
  instead of mbuf *
* introduce sockaddr_big struct for storage of addr data passed via
  sys_bind; sockaddr_big is of sufficient size and alignment to
  accommodate all addr data sizes received.
* modify sys_bind to allocate sockaddr_big instead of using an mbuf.
* bump kernel version to 7.99.9 for change to pr_bind() parameter type.

Patch posted to tech-net@
  http://mail-index.netbsd.org/tech-net/2015/03/15/msg005004.html

The choice to use a new structure sockaddr_big has been retained since
changing sockaddr_storage size would lead to unnecessary ABI change. The
use of the new structure does not preclude future work that increases
the size of sockaddr_storage and at that time sockaddr_big may be
trivially replaced.

Tested by mrg@ and myself, discussed with rmind@, posted to tech-net@

Revision 1.193 / (download) - annotate - [select for diffs], Fri Sep 5 05:34:57 2014 UTC (9 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.192: +7 -7 lines
Diff to previous 1.192 (colored) to selected 1.42 (colored)

Don't use catch as a variable name.

Revision 1.192 / (download) - annotate - [select for diffs], Tue Aug 5 07:55:32 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-1-RELEASE
Branch point for: netbsd-7-0, netbsd-7
Changes since 1.191: +6 -6 lines
Diff to previous 1.191 (colored) to selected 1.42 (colored)

split PRU_SEND function out of pr_generic() usrreq switches and put into
separate functions

   xxx_send(struct socket *, struct mbuf *, struct mbuf *,
       struct mbuf *, struct lwp *)

  - always KASSERT(solocked(so)) even if not implemented

  - replace calls to pr_generic() with req = PRU_SEND with calls to
    pr_send()

rename existing functions that operate on PCB for consistency (and to
free up their names for xxx_send() PRUs

  - l2cap_send() -> l2cap_send_pcb()
  - sco_send() -> sco_send_pcb()
  - rfcomm_send() -> rfcomm_send_pcb()

patch reviewed by rmind

Revision 1.191 / (download) - annotate - [select for diffs], Sun May 18 14:46:16 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.190: +6 -6 lines
Diff to previous 1.190 (colored) to selected 1.42 (colored)

Add struct pr_usrreqs with a pr_generic function and prepare for the
dismantling of pr_usrreq in the protocols; no functional change intended.
PRU_ATTACH/PRU_DETACH changes will follow soon.

Bump for struct protosw.  Welcome to 6.99.62!

Revision 1.190 / (download) - annotate - [select for diffs], Sat Sep 14 22:29:08 2013 UTC (10 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.189: +6 -2 lines
Diff to previous 1.189 (colored) to selected 1.42 (colored)

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

Revision 1.189 / (download) - annotate - [select for diffs], Wed Mar 23 17:42:11 2011 UTC (13 years ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, 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, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Changes since 1.188: +7 -7 lines
Diff to previous 1.188 (colored) to selected 1.42 (colored)

As suggested by matt@: change socket buffer reservations for NFS send/receive
to 3 times max RPC size rather than 2 times.  Avoids nasty TCP stalls observed
at Panix.  Will require increase to sbmax via sysctl for those running really
huge NFS rsize/wsize (>64K).

Revision 1.188 / (download) - annotate - [select for diffs], Fri Dec 17 22:22:00 2010 UTC (13 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.187: +5 -3 lines
Diff to previous 1.187 (colored) to selected 1.42 (colored)

nfs_rcvunlock: don't wake up all waiters.

Revision 1.187 / (download) - annotate - [select for diffs], Tue Mar 2 23:19:09 2010 UTC (14 years 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.186: +20 -970 lines
Diff to previous 1.186 (colored) to selected 1.42 (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.186 / (download) - annotate - [select for diffs], Sat Feb 13 11:17:30 2010 UTC (14 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.185: +4 -2 lines
Diff to previous 1.185 (colored) to selected 1.42 (colored)

nfs_msg: #if 0 out tprintf for now and comment why.

Revision 1.185 / (download) - annotate - [select for diffs], Tue Jan 19 13:39:04 2010 UTC (14 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.184: +9 -5 lines
Diff to previous 1.184 (colored) to selected 1.42 (colored)

nfs_request: fix races which break congestion window and make nfs client stuck.

Revision 1.184 / (download) - annotate - [select for diffs], Thu Dec 31 19:31:31 2009 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.183: +4 -4 lines
Diff to previous 1.183 (colored) to selected 1.42 (colored)

appease gcc.

Revision 1.183 / (download) - annotate - [select for diffs], Sun Dec 6 18:00:15 2009 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.182: +20 -20 lines
Diff to previous 1.182 (colored) to selected 1.42 (colored)

For readability's sake, write NULL instead of (type *)0.

Revision 1.182 / (download) - annotate - [select for diffs], Thu Nov 5 08:11:24 2009 UTC (14 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.181: +3 -3 lines
Diff to previous 1.181 (colored) to selected 1.42 (colored)

Handle EWOULDBLOCK the same way as EPIPE. It seems the TCP socket layer
can return EWOULDBLOCK on some occasion when the connection is broken.

Revision 1.181 / (download) - annotate - [select for diffs], Fri Oct 16 23:36:05 2009 UTC (14 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.180: +5 -4 lines
Diff to previous 1.180 (colored) to selected 1.42 (colored)

If send fails with EMSGSIZE for whatever reason, it's unlikely to
succeed no matter how hard we retry.  So just fail the request.

Revision 1.180 / (download) - annotate - [select for diffs], Sat Mar 14 21:04:25 2009 UTC (15 years ago) by dsl
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.179: +3 -5 lines
Diff to previous 1.179 (colored) to selected 1.42 (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.179 / (download) - annotate - [select for diffs], Sat Mar 14 15:36:24 2009 UTC (15 years ago) by dsl
Branch: MAIN
Changes since 1.178: +10 -44 lines
Diff to previous 1.178 (colored) to selected 1.42 (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.178 / (download) - annotate - [select for diffs], Wed Feb 4 20:36:54 2009 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.177: +7 -7 lines
Diff to previous 1.177 (colored) to selected 1.42 (colored)

PR kern/40491 5.0: nfs timer can crash/break on smp

Hack around it by acquiring softnet_lock around the client-side timer loop.

Revision 1.177 / (download) - annotate - [select for diffs], Wed Jan 21 06:59:29 2009 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.176: +3 -3 lines
Diff to previous 1.176 (colored) to selected 1.42 (colored)

restore the pre socket locking patch signal behaviour.
this fixes a busy-loop in nfs_connect.

Revision 1.176 / (download) - annotate - [select for diffs], Sun Jan 18 09:45:05 2009 UTC (15 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.175: +4 -2 lines
Diff to previous 1.175 (colored) to selected 1.42 (colored)

Actually enforce the maximum timeout (60s by default) rather
than backing off to 256*SRTT.  This is why it sometimes could take
hours for a NFS mount to come back when the server returned.

contributed anonymously.

Revision 1.175 / (download) - annotate - [select for diffs], Sun Nov 23 08:22:07 2008 UTC (15 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.174: +20 -5 lines
Diff to previous 1.174 (colored) to selected 1.42 (colored)

avoid noisy nfs_timer/nfs_reply DEBUG output that occurs when the
NFS server goes away.  use ratelimit(9) and only print the console
error once every 10 seconds.  PR#31562.

Revision 1.174 / (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.173: +48 -477 lines
Diff to previous 1.173 (colored) to selected 1.42 (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.173 / (download) - annotate - [select for diffs], Tue Oct 7 01:20:37 2008 UTC (15 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.172: +2 -3 lines
Diff to previous 1.172 (colored) to selected 1.42 (colored)

nuke outdated comment

Revision 1.172 / (download) - annotate - [select for diffs], Tue Sep 30 14:25:15 2008 UTC (15 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.171: +6 -2 lines
Diff to previous 1.171 (colored) to selected 1.42 (colored)

Apply #ifdef modern art to make NFSSERVER-without-NFS possible.

Revision 1.171 / (download) - annotate - [select for diffs], Wed Aug 6 15:01:24 2008 UTC (15 years, 7 months ago) by plunky
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.170: +17 -22 lines
Diff to previous 1.170 (colored) to selected 1.42 (colored)

Convert socket options code to use a sockopt structure
instead of laying everything into an mbuf.

approved by core

Revision 1.170 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:39 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, haad-dm
Changes since 1.169: +22 -18 lines
Diff to previous 1.169 (colored) to selected 1.42 (colored)

Merge the socket locking patch:

- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.

Revision 1.169 / (download) - annotate - [select for diffs], Thu Apr 10 12:32:37 2008 UTC (15 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.168: +7 -12 lines
Diff to previous 1.168 (colored) to selected 1.42 (colored)

- make nfs_receive and nfs_reply static.
- ansify.

Revision 1.168 / (download) - annotate - [select for diffs], Fri Mar 28 14:29:57 2008 UTC (16 years ago) by yamt
Branch: MAIN
Changes since 1.167: +3 -4 lines
Diff to previous 1.167 (colored) to selected 1.42 (colored)

whitespace.

Revision 1.167 / (download) - annotate - [select for diffs], Wed Jan 2 19:26:46 2008 UTC (16 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.166: +21 -17 lines
Diff to previous 1.166 (colored) to selected 1.42 (colored)

use kmem_alloc instead of malloc.

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

Merge vmlocking2 to head.

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

merge non-intrusive nfs changes from vmlocking.

Revision 1.164 / (download) - annotate - [select for diffs], Sun Oct 21 08:23:19 2007 UTC (16 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, mjf-devfs
Changes since 1.163: +7 -9 lines
Diff to previous 1.163 (colored) to selected 1.42 (colored)

remove lwp argument from nfs_reconnect and always use &lwp0
because who triggers a reconnect doesn't really matter here.  PR/37145.

Revision 1.163 / (download) - annotate - [select for diffs], Sun Aug 5 09:40:39 2007 UTC (16 years, 7 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
Branch point for: matt-mips64, matt-armv6, bouyer-xenamd64
Changes since 1.162: +4 -4 lines
Diff to previous 1.162 (colored) to selected 1.42 (colored)

use kpause rather than lbolt.

Revision 1.162 / (download) - annotate - [select for diffs], Thu Aug 2 12:45:37 2007 UTC (16 years, 8 months ago) by yamt
Branch: MAIN
Branch point for: jmcneill-pm
Changes since 1.161: +3 -2 lines
Diff to previous 1.161 (colored) to selected 1.42 (colored)

nfsdsock_unlock: add an assertion.

Revision 1.161 / (download) - annotate - [select for diffs], Fri Jul 27 10:03:58 2007 UTC (16 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: hpcarm-cleanup
Changes since 1.160: +54 -11 lines
Diff to previous 1.160 (colored) to selected 1.42 (colored)

stop nfs tick when we have nothing to do.

Revision 1.160 / (download) - annotate - [select for diffs], Mon Jul 9 21:11:30 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.159: +9 -4 lines
Diff to previous 1.159 (colored) to selected 1.42 (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.159 / (download) - annotate - [select for diffs], Sat Jun 30 15:27:02 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.158: +4 -3 lines
Diff to previous 1.158 (colored) to selected 1.42 (colored)

Updates for changes prototype of kauth_cred_set/getgroups().

Revision 1.158 / (download) - annotate - [select for diffs], Fri Jun 22 14:39:59 2007 UTC (16 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.157: +3 -2 lines
Diff to previous 1.157 (colored) to selected 1.42 (colored)

- nfsrv_slpderef: fix a locking botch.
  (should fix "slp->ns_sref == 0" assertion failures in nfsrv_init)
- add some related assertions.

Revision 1.157 / (download) - annotate - [select for diffs], Fri Jun 1 11:56:03 2007 UTC (16 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.156: +32 -37 lines
Diff to previous 1.156 (colored) to selected 1.42 (colored)

use mutex and condvar.

Revision 1.156 / (download) - annotate - [select for diffs], Fri Jun 1 11:38:44 2007 UTC (16 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.155: +1 -1 lines
Diff to previous 1.155 (colored) to selected 1.42 (colored)

nfsdsock_lock: fix an inverted check of SLP_VALID.

Revision 1.155 / (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.154: +1 -14 lines
Diff to previous 1.154 (colored) to selected 1.42 (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.154 / (download) - annotate - [select for diffs], Wed May 2 16:19:55 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.153: +1 -4 lines
Diff to previous 1.153 (colored) to selected 1.42 (colored)

nfs_rcvlock: fix NFSMNT_INT check, which has been broken since rev.1.39.

Revision 1.153 / (download) - annotate - [select for diffs], Wed May 2 14:48:47 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.152: +22 -22 lines
Diff to previous 1.152 (colored) to selected 1.42 (colored)

- nfs_reply: keep rcvlock longer so that lwp which already have its reply
  received won't be stuck in nfs_receive.
- nfs_rcvlock: check exceptions before sleeping on the lock.
- nfs_rcvunlock: use cv_broadcast rather than cv_signal to ensure that
  lwps which received its reply get woken up.

Revision 1.152 / (download) - annotate - [select for diffs], Mon Apr 30 23:10:55 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.151: +0 -6 lines
Diff to previous 1.151 (colored) to selected 1.42 (colored)

remove R_GETONEREP.

Revision 1.151 / (download) - annotate - [select for diffs], Sun Apr 29 14:56:59 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.150: +14 -9 lines
Diff to previous 1.150 (colored) to selected 1.42 (colored)

use condvar.

Revision 1.150 / (download) - annotate - [select for diffs], Sun Apr 29 10:30:18 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.149: +81 -69 lines
Diff to previous 1.149 (colored) to selected 1.42 (colored)

use mutex and condver.

Revision 1.149 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:36 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored) to selected 1.42 (colored)

Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.148 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:37 2007 UTC (17 years ago) by christos
Branch: MAIN
Branch point for: vmlocking
Changes since 1.147: +25 -25 lines
Diff to previous 1.147 (colored) to selected 1.42 (colored)

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

Revision 1.147 / (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.146: +9 -9 lines
Diff to previous 1.146 (colored) to selected 1.42 (colored)

TRUE -> true, FALSE -> false

Revision 1.146 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:08 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.145: +5 -5 lines
Diff to previous 1.145 (colored) to selected 1.42 (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.145 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:36 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.144: +3 -3 lines
Diff to previous 1.144 (colored) to selected 1.42 (colored)

Merge newlock2 to head.

Revision 1.144 / (download) - annotate - [select for diffs], Wed Dec 27 12:10:09 2006 UTC (17 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.143: +19 -112 lines
Diff to previous 1.143 (colored) to selected 1.42 (colored)

remove nqnfs.

Revision 1.143 / (download) - annotate - [select for diffs], Wed Dec 6 09:13:46 2006 UTC (17 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored) to selected 1.42 (colored)

nfs_disconnect: 2 -> SHUT_RDWR.  no functional change.

Revision 1.142 / (download) - annotate - [select for diffs], Wed Dec 6 08:55:52 2006 UTC (17 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.141: +4 -2 lines
Diff to previous 1.141 (colored) to selected 1.42 (colored)

nfsrv_rcv: claim ownership of received mbufs.

Revision 1.141 / (download) - annotate - [select for diffs], Thu Nov 9 09:53:57 2006 UTC (17 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, 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, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.140: +4 -4 lines
Diff to previous 1.140 (colored) to selected 1.42 (colored)

remove some __unused in function parameters.

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

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

Revision 1.139 / (download) - annotate - [select for diffs], Tue Oct 10 21:49:15 2006 UTC (17 years, 5 months ago) by dogcow
Branch: MAIN
Changes since 1.138: +3 -3 lines
Diff to previous 1.138 (colored) to selected 1.42 (colored)

change the MOWNER_INIT define to take two args; fix extant struct mowner
decls to use it. Makes options MBUFTRACE compile again and not whinge about
missing structure declarations. (Also makes initialization consistent.)

Revision 1.138 / (download) - annotate - [select for diffs], Sat Sep 2 13:30:08 2006 UTC (17 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.137: +0 -1 lines
Diff to previous 1.137 (colored) to selected 1.42 (colored)

nfsdreq_free: remove an assertion which is not true.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Jul 15 05:54:10 2006 UTC (17 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.136: +3 -3 lines
Diff to previous 1.136 (colored) to selected 1.42 (colored)

nfs_getreq: fix a kauth fallout.
pointed by nanashi-san.  http://pc8.2ch.net/test/read.cgi/unix/1145181361/786

Revision 1.136 / (download) - annotate - [select for diffs], Fri Jun 30 09:55:06 2006 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.135: +2 -6 lines
Diff to previous 1.135 (colored) to selected 1.42 (colored)

nfs_request: don't bother to handle NFSERR_STALEWRITEVERF
because it isn't a real nfs error value.

Revision 1.135 / (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.134: +13 -11 lines
Diff to previous 1.134 (colored) to selected 1.42 (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.134 / (download) - annotate - [select for diffs], Sun May 28 13:23:08 2006 UTC (17 years, 10 months ago) by blymn
Branch: MAIN
CVS Tags: simonb-timecounters-base
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored) to selected 1.42 (colored)

Clean up bogus whitespace

Revision 1.133 / (download) - annotate - [select for diffs], Sun May 28 06:47:58 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.132: +7 -4 lines
Diff to previous 1.132 (colored) to selected 1.42 (colored)

nfs_request: use kauth_cred_free rather than kauth_cred_destroy.

Revision 1.132 / (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
Branch point for: chap-midi
Changes since 1.131: +35 -23 lines
Diff to previous 1.131 (colored) to selected 1.42 (colored)

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

Revision 1.131 / (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.130: +53 -19 lines
Diff to previous 1.130 (colored) to selected 1.42 (colored)

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

Revision 1.130 / (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.129: +61 -31 lines
Diff to previous 1.129 (colored) to selected 1.42 (colored)

integrate kauth.

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

quell GCC 4.1 uninitialised variable warnings.

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

Revision 1.128 / (download) - annotate - [select for diffs], Sat Apr 15 02:46:39 2006 UTC (17 years, 11 months ago) by dogcow
Branch: MAIN
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored) to selected 1.42 (colored)

#if -> #ifdef

Revision 1.127 / (download) - annotate - [select for diffs], Sat Apr 15 01:57:36 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.126: +6 -3 lines
Diff to previous 1.126 (colored) to selected 1.42 (colored)

Coverity CID 734: Define NFS_TEST_HEAVY for testing nfsds, and use this to
ifdef out dead code. XXX: Why is this turned on by default?

Revision 1.126 / (download) - annotate - [select for diffs], Wed Mar 1 21:31:00 2006 UTC (18 years, 1 month ago) by rpaulo
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.125: +3 -4 lines
Diff to previous 1.125 (colored) to selected 1.42 (colored)

Back out revision 1.125 and 1.124. The code for checking if
slp->ns_reclen == 0, was already there since "Linux sometimes
generates 0-lenght records.".

Bad Rui...

Revision 1.125 / (download) - annotate - [select for diffs], Wed Mar 1 19:38:29 2006 UTC (18 years, 1 month ago) by rpaulo
Branch: MAIN
Changes since 1.124: +3 -3 lines
Diff to previous 1.124 (colored) to selected 1.42 (colored)

In nfsrv_getstream(), ns_reclen will never be negative due to the
previous assignment (recmark & ~0x80000000).
Pointed out by Christos.

Revision 1.124 / (download) - annotate - [select for diffs], Wed Mar 1 15:30:12 2006 UTC (18 years, 1 month ago) by rpaulo
Branch: MAIN
Changes since 1.123: +4 -3 lines
Diff to previous 1.123 (colored) to selected 1.42 (colored)

From FreeBSD SA-06:10
	Correct a remote kernel panic when processing zero-length RPC records
	via TCP.

Revision 1.123 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:32 2006 UTC (18 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.122: +8 -9 lines
Diff to previous 1.122 (colored) to selected 1.42 (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.122 / (download) - annotate - [select for diffs], Tue Jan 3 12:30:01 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.121: +43 -2 lines
Diff to previous 1.121 (colored) to selected 1.42 (colored)

nfssvc_nfsd: reduce a chance for a slow peer to capture all our threads.
instead of sleeping to wait for the socket to send our reply,
just hand-off our reply to the thread which is holding the socket.

Revision 1.121 / (download) - annotate - [select for diffs], Tue Jan 3 11:41:03 2006 UTC (18 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.120: +118 -36 lines
Diff to previous 1.120 (colored) to selected 1.42 (colored)

improve nfsd locking.
- don't bother to take nfs_sndlock when doing nfsrv_rcv.
  unlike client, we never reconnect.
- nfsrv_getstream: fix the case that m_split sleeps.
- free socket in nfsrv_slpderef rather than nfsrv_zapsock.
  fix race with nfssvc_nfsd.
- while i'm here, remove NFSD_WAITING and NFSD_REQINPROG
  as they are redundant.
- some comments and assertions.

Revision 1.120 / (download) - annotate - [select for diffs], Fri Dec 30 10:35:44 2005 UTC (18 years, 3 months ago) by jmmv
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.119: +2 -4 lines
Diff to previous 1.119 (colored) to selected 1.42 (colored)

Avoid dereferencing the lwp parameter in nfs_receive, as it is always NULL.
Solves a crash when mounting NFS shares.  (The proc parameter used before
the conversion to lwp's was NULL too, so the addition of 'l->l_proc' in the
code was extra.)

Revision 1.119 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:16 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.118: +62 -59 lines
Diff to previous 1.118 (colored) to selected 1.42 (colored)

merge ktrace-lwp.

Revision 1.118 / (download) - annotate - [select for diffs], Mon Nov 21 09:39:02 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-base3, yamt-readahead-base2, ktrace-lwp-base
Changes since 1.117: +28 -4 lines
Diff to previous 1.117 (colored) to selected 1.42 (colored)

use c99 initializers for proct.

Revision 1.117 / (download) - annotate - [select for diffs], Sun Sep 25 12:49:09 2005 UTC (18 years, 6 months ago) by tron
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.116: +3 -3 lines
Diff to previous 1.116 (colored) to selected 1.42 (colored)

Correct typo in last commit to fix compilation error.

Revision 1.116 / (download) - annotate - [select for diffs], Sun Sep 25 02:48:40 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.115: +10 -2 lines
Diff to previous 1.115 (colored) to selected 1.42 (colored)

Add missing TIMEDOUT and IO errors.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Sep 25 00:20:38 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.114: +118 -13 lines
Diff to previous 1.114 (colored) to selected 1.42 (colored)

Convert from nfs error values to regular errno's. Although most values of
nfs errors are chosen to be the same as errno, some of them are not and
it is better for portability to do the conversion anyway. Also a server
can return a bad error number that can cause the server to crash, because
it can have the high bits that are used internally set. This was the case
with amd. Finally nfs_request() should return a valid errno, because we
can return a bogus value to userland. Thanks to rpaulo for debugging this.

Revision 1.114 / (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.113: +3 -3 lines
Diff to previous 1.113 (colored) to selected 1.42 (colored)

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

Revision 1.113 / (download) - annotate - [select for diffs], Tue Mar 29 09:22:35 2005 UTC (19 years ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored) to selected 1.42 (colored)

nfsrv_rcv: don't do so_receive from socket upcall context.
while there's little benefits, it complicates locking and confuses
flow control.

Revision 1.112 / (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
Branch point for: netbsd-3
Changes since 1.111: +7 -7 lines
Diff to previous 1.111 (colored) to selected 1.42 (colored)

nuke trailing whitespace

Revision 1.111 / (download) - annotate - [select for diffs], Fri Sep 17 14:11:26 2004 UTC (19 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored) to selected 1.42 (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.110 / (download) - annotate - [select for diffs], Tue Aug 24 20:09:44 2004 UTC (19 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.109: +75 -20 lines
Diff to previous 1.109 (colored) to selected 1.42 (colored)

nfs_request: a workaround for servers doing "maproot".
for i/o requests which are expected not to fail due to permission
to mimic unix file open semantics (READ, WRITE, COMMIT),
try two credentials.  namely, the file owner's one and open time one.
remember which credential worked in per-file basis and try it first
next time to minimize number of retries.
ideas from Chuck Silvers.  PR/23716 and PR/24987.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Aug 18 23:44:47 2004 UTC (19 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.108: +3 -13 lines
Diff to previous 1.108 (colored) to selected 1.42 (colored)

remove a "proc botch" debug printf.  ok'ed by Jonathan Stone.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Jun 24 04:15:51 2004 UTC (19 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) to selected 1.42 (colored)

Rename MBUFTRACE helper function m_claim() to m_claimm(),
for consistency with M_FREE() and m_freem().  Affected files:

sys/mbuf.h
kern/uipc_socket2.c
kern/uipc_mbuf.c
net/if_ethersubr.c
netatalk/ddp_input.c
nfs/nfs_socket.c

Revision 1.107 / (download) - annotate - [select for diffs], Mon May 24 19:08:07 2004 UTC (19 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.106: +10 -5 lines
Diff to previous 1.106 (colored) to selected 1.42 (colored)

Change DIAGNOSTIC warning in nfs_send() about NULL rep->r_procp: the
warning is triggered pervasively, so print it only once per boot.
(The callers who pass NULL r_procps should soon be fixed to pass a
valid struct proc* ).

Revision 1.106 / (download) - annotate - [select for diffs], Sun May 23 08:08:48 2004 UTC (19 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.105: +23 -5 lines
Diff to previous 1.105 (colored) to selected 1.42 (colored)

- for tcp, use SO_RCVTIMEO to recover from server crash.
  otherwise we can be stuck in soreceive forever.
  the problem is pointed by Minoura Makoto.  PR/25662
- clear r_rexmit on reconnect and clear r_rtt and R_TIMING on retransmit
  so that the above (and soft mounts) happy.

Revision 1.105 / (download) - annotate - [select for diffs], Sat May 22 22:52:15 2004 UTC (19 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.104: +35 -21 lines
Diff to previous 1.104 (colored) to selected 1.42 (colored)

Eliminate several uses of `curproc' from the socket-layer code and from NFS.

Add a new explicit `struct proc *p' argument to socreate(), sosend().
Use that argument instead of curproc. Follow-on changes to pass that
argument to socreate(), sosend(), and (*so->so_send)() calls.
These changes reviewed and independently recoded  by Matt Thomas.

Changes to soreceive() and (*dom->dom_exernalize() from Matt Thomas:
pass soreceive()'s struct uio* uio->uio_procp to unp_externalize().
Eliminate curproc from unp_externalize.   Also, now soreceive() uses
its uio->uio_procp value, pass that same value downward to
((pr->pru_usrreq)() calls for consistency, instead of (struct proc * )0.

Similar changes in sys/nfs to eliminate (most) uses of curproc,
either via the req-> r_procp field of a struct nfsreq *req argument,
or by passing down new explicit struct proc * arguments.

Reviewed by: Matt Thomas, posted to tech-kern.
NB: The (*pr->pru_usrreq)() change should be tested on more (all!) protocols.

Revision 1.104 / (download) - annotate - [select for diffs], Mon May 10 10:40:42 2004 UTC (19 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.103: +19 -5 lines
Diff to previous 1.103 (colored) to selected 1.42 (colored)

don't do kludge for a reply to a retransmitted request
unless we actually retransmitted the request.

Revision 1.103 / (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.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.42 (colored)

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

Revision 1.102 / (download) - annotate - [select for diffs], Wed Mar 17 10:40:34 2004 UTC (20 years ago) by yamt
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.42 (colored)

nfs_sndlock: fix nfsd null dereference.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Mar 10 22:36:42 2004 UTC (20 years ago) by matt
Branch: MAIN
Changes since 1.100: +8 -5 lines
Diff to previous 1.100 (colored) to selected 1.42 (colored)

Don't report EPIPE errors on nfs sockets.  These can be due to idle tcp
mounts which will be closed by netapp, solaris, etc. if left idle too long.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Dec 7 21:15:46 2003 UTC (20 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.99: +14 -2 lines
Diff to previous 1.99 (colored) to selected 1.42 (colored)

Unix semantics dictate that access checks for files are done when it
is opened. An open file can always be read from and/or written to,
depending on how it was opened.

Therefore, the read/write/commit RPCs should never return EACCESS,
as they are only performed on files that have been successfully opened
already.

This change improves the current situation and works in most cases.
It simply always uses the most recently known owner/group of the file,
iff the authentication mechanism is AUTH_UNIX (in other cases, the
creds for a succesful open are used, but note that no other cases
are currently implemented).

A retry mechanism can be used to catch a few more cases, but this is
a good improvement for now.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Oct 9 13:23:33 2003 UTC (20 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.98: +4 -4 lines
Diff to previous 1.98 (colored) to selected 1.42 (colored)

for nfs_timer_ch, use callout_schedule rather than callout_reset
as the former is a little more efficient.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Aug 16 18:09:14 2003 UTC (20 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.97: +4 -3 lines
Diff to previous 1.97 (colored) to selected 1.42 (colored)

use sizeof() instead of a hardcorded constant.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Aug 16 18:08:27 2003 UTC (20 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.96: +6 -7 lines
Diff to previous 1.96 (colored) to selected 1.42 (colored)

current trylater/jukebox retry delay is way too long and
it has a bug in the backoff calculation. so,
- clip it to 1-60 sec. (suggested by Rick Macklem)
- use a constant multiplier instead of nfs_backoff, which
  is already exponential.
- move some related constant definations to nfs.h from nqnfs.h and
  prefix with NFS_ instead of NQ_ because they are not nqnfs-specific.

Revision 1.96 / (download) - annotate - [select for diffs], Thu Aug 7 16:33:52 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.95: +3 -7 lines
Diff to previous 1.95 (colored) to selected 1.42 (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.95 / (download) - annotate - [select for diffs], Wed Jul 23 13:52:23 2003 UTC (20 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.94: +8 -2 lines
Diff to previous 1.94 (colored) to selected 1.42 (colored)

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

Revision 1.94 / (download) - annotate - [select for diffs], Wed Jul 23 13:50:46 2003 UTC (20 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) to selected 1.42 (colored)

fix parenthesis mismatch in rev.1.93.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Jul 23 13:41:00 2003 UTC (20 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.92: +4 -3 lines
Diff to previous 1.92 (colored) to selected 1.42 (colored)

use sizeof() instead of hardcoding the size of the array.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:17 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.91: +35 -36 lines
Diff to previous 1.91 (colored) to selected 1.42 (colored)

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

Revision 1.91 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:17 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.90: +38 -37 lines
Diff to previous 1.90 (colored) to selected 1.42 (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.90 / (download) - annotate - [select for diffs], Wed Jun 25 14:37:50 2003 UTC (20 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.89: +22 -12 lines
Diff to previous 1.89 (colored) to selected 1.42 (colored)

- instead of scaning a list when looking up
  {a idle thread, a socket with pending requests},
  maintain dedicated list of them.
- add spin locks.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:19 2003 UTC (20 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.88: +3 -2 lines
Diff to previous 1.88 (colored) to selected 1.42 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.88 / (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.87: +4 -5 lines
Diff to previous 1.87 (colored) to selected 1.42 (colored)

poolify nfsrv_descript.

Revision 1.87 / (download) - annotate - [select for diffs], Thu May 22 14:11:50 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.86: +26 -14 lines
Diff to previous 1.86 (colored) to selected 1.42 (colored)

interlock for nfs_rcvlock.

Revision 1.86 / (download) - annotate - [select for diffs], Wed May 21 14:41:26 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored) to selected 1.42 (colored)

- use FREE not free for MALLOC'ed memory.
- remove unneeded caddr_t casts.

Revision 1.85 / (download) - annotate - [select for diffs], Wed May 21 13:50:54 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.84: +2 -5 lines
Diff to previous 1.84 (colored) to selected 1.42 (colored)

remove local definitions of TRUE and FALSE.

Revision 1.84 / (download) - annotate - [select for diffs], Wed May 21 13:31:04 2003 UTC (20 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.83: +33 -31 lines
Diff to previous 1.83 (colored) to selected 1.42 (colored)

indent

Revision 1.83 / (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.82: +6 -9 lines
Diff to previous 1.82 (colored) to selected 1.42 (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.82 / (download) - annotate - [select for diffs], Tue Apr 15 13:51:11 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.81: +61 -61 lines
Diff to previous 1.81 (colored) to selected 1.42 (colored)

fix indent.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Apr 3 15:14:51 2003 UTC (21 years ago) by yamt
Branch: MAIN
Changes since 1.80: +14 -67 lines
Diff to previous 1.80 (colored) to selected 1.42 (colored)

use m_copydata and m_split instead of similar inlined ones.

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

use queue manipulation macros.

Revision 1.79 / (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.78: +27 -11 lines
Diff to previous 1.78 (colored) to selected 1.42 (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.78 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:49 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.77: +4 -2 lines
Diff to previous 1.77 (colored) to selected 1.42 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

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

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

Revision 1.76 / (download) - annotate - [select for diffs], Fri Sep 27 15:38:00 2002 UTC (21 years, 6 months ago) by provos
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.42 (colored)

remove trailing \n in panic().  approved perry.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Aug 2 00:09:33 2002 UTC (21 years, 8 months ago) by fvdl
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.74: +8 -4 lines
Diff to previous 1.74 (colored) to selected 1.42 (colored)

Initialize recm to NULL inside the loop, so that a record length of
NULL will not accidentallly append bogus data (the previous record).

Derived from a fix by Matt Dillon in FreeBSD.

Revision 1.74 / (download) - annotate - [select for diffs], Sun May 12 23:04:36 2002 UTC (21 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.42 (colored)

Eliminate commons

Revision 1.73 / (download) - annotate - [select for diffs], Sun Mar 17 22:22:39 2002 UTC (22 years ago) by christos
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.72: +23 -9 lines
Diff to previous 1.72 (colored) to selected 1.42 (colored)

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

Revision 1.72 / (download) - annotate - [select for diffs], Wed Feb 27 03:46:36 2002 UTC (22 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.71: +16 -13 lines
Diff to previous 1.71 (colored) to selected 1.42 (colored)

nfs_connect(): if NFSMNT_RESVPORT is set, set IP_PORTRANGE_LOW on the socket
rather than using home-grown code to find a free reserved socket.
this also results in nfs pcb's having the INP_ANONPORT and INP_LOWPORT flags
set, which is useful for netstat(1) to know.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jan 22 09:37:59 2002 UTC (22 years, 2 months ago) by minoura
Branch: MAIN
Changes since 1.70: +3 -4 lines
Diff to previous 1.70 (colored) to selected 1.42 (colored)

Back out the previous.
It was my misreading from the lack of mbuf usage...
Sorry for the mess.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jan 21 13:21:51 2002 UTC (22 years, 2 months ago) by minoura
Branch: MAIN
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (colored) to selected 1.42 (colored)

Correctly write back the updated value of the local variable to the
struct nfssvc_sock.
Affected only when a recordmark of RPC over TCP is fragmented to
multiple mbufs.  I do not know whether this code has ever been executed :)

Revision 1.69 / (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.68: +4 -1 lines
Diff to previous 1.68 (colored) to selected 1.42 (colored)

add RCSIDs

Revision 1.68 / (download) - annotate - [select for diffs], Sat Oct 13 22:59:16 2001 UTC (22 years, 5 months ago) by simonb
Branch: MAIN
Branch point for: thorpej-mips-cache
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) to selected 1.42 (colored)

Don't initialise the 5th element of some 4 element arrays.

Revision 1.67 / (download) - annotate - [select for diffs], Wed May 9 20:02:32 2001 UTC (22 years, 10 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Changes since 1.66: +10 -3 lines
Diff to previous 1.66 (colored) to selected 1.42 (colored)

Suppress another case of a potentially noisy error message which
isn't fatal.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Feb 21 21:39:57 2001 UTC (23 years, 1 month ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored) to selected 1.42 (colored)

make some more constant arrays 'const'

Revision 1.65 / (download) - annotate - [select for diffs], Wed Dec 27 22:01:43 2000 UTC (23 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored) to selected 1.42 (colored)

update commented out code to recent changes of signal structures

Revision 1.64 / (download) - annotate - [select for diffs], Wed Dec 27 16:35:37 2000 UTC (23 years, 3 months ago) by bjh21
Branch: MAIN
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored) to selected 1.42 (colored)

Extra diagnostic assertion:  subtle pmap bugs can ultimately lead to trying
to use NULL credentials for NFS ops, so spot them before we dereference them.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Dec 10 23:17:01 2000 UTC (23 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) to selected 1.42 (colored)

Make sobind() take a struct proc *. It already took curproc and
passed it down to the appropriate usrreq function, and this
allows usage for contexts that need to be explicitly different
from curproc (like in the NFS code when binding to a reserved port).

Revision 1.62 / (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.61: +7 -4 lines
Diff to previous 1.61 (colored) to selected 1.42 (colored)

Avoid unused variables for V2_ONLY case.

Revision 1.61 / (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.60: +7 -2 lines
Diff to previous 1.60 (colored) to selected 1.42 (colored)

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

Revision 1.60 / (download) - annotate - [select for diffs], Tue Sep 19 22:21:21 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.59: +23 -9 lines
Diff to previous 1.59 (colored) to selected 1.42 (colored)

"ENOBUF" on socket writes isn't really fatal; we may just be too fast
for the driver. Don't log the error, just try again. Could try to
be smart and do a backoff, but it's probably not worth the trouble.

Revision 1.59 / (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.58: +2 -1 lines
Diff to previous 1.58 (colored) to selected 1.42 (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.58 / (download) - annotate - [select for diffs], Tue Jun 27 17:52:33 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.57: +5 -5 lines
Diff to previous 1.57 (colored) to selected 1.42 (colored)

remove include of <vm/vm.h>

Revision 1.57 / (download) - annotate - [select for diffs], Fri Jun 9 00:00:17 2000 UTC (23 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.56: +22 -1 lines
Diff to previous 1.56 (colored) to selected 1.42 (colored)

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

Revision 1.56 / (download) - annotate - [select for diffs], Sat May 27 04:52:41 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored) to selected 1.42 (colored)

sleep() -> tsleep()

Revision 1.55 / (download) - annotate - [select for diffs], Thu Mar 30 12:51:15 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.54: +50 -50 lines
Diff to previous 1.54 (colored) to selected 1.42 (colored)

Remove register declarations.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Mar 23 07:03:32 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.53: +5 -2 lines
Diff to previous 1.53 (colored) to selected 1.42 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Aug 29 16:29:16 1999 UTC (24 years, 7 months ago) by sommerfeld
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi
Changes since 1.52: +6 -4 lines
Diff to previous 1.52 (colored) to selected 1.42 (colored)

Fix overzealous DIAGNOSTIC check in nfs_disconnect()
(fix pr8249, 8288)

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jul 30 09:46:24 1999 UTC (24 years, 8 months ago) by fvdl
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored) to selected 1.42 (colored)

Don't try to copy an mbuf that may have been freed in case of an error.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jul 4 19:56:00 1999 UTC (24 years, 9 months ago) by sommerfeld
Branch: MAIN
Changes since 1.50: +43 -3 lines
Diff to previous 1.50 (colored) to selected 1.42 (colored)

kern/5591: Fix race in the NFS socket code during umount -f and system
shutdown:

During an unmount, wake up all the processes which are waiting to lock
the socket for receive, and wait for them (and the process blocked in
soreceive, if any) to go away before blowing away the socket and the
mount structure.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Mar 6 05:34:41 1999 UTC (25 years ago) by fair
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.49: +3 -3 lines
Diff to previous 1.49 (colored) to selected 1.42 (colored)

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

Revision 1.49 / (download) - annotate - [select for diffs], Fri Feb 12 01:37:06 1999 UTC (25 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.48: +6 -6 lines
Diff to previous 1.48 (colored) to selected 1.42 (colored)

Fix printf format warnings on Alpha.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Nov 12 22:31:02 1998 UTC (25 years, 4 months ago) by fvdl
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.42 (colored)

Use different names for the "nfscon" label to tsleep(), so that it can
be seen in which one a process is sleeping.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Sep 11 12:50:12 1998 UTC (25 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.46: +14 -5 lines
Diff to previous 1.46 (colored) to selected 1.42 (colored)

Substantial signal handling changes:
* Increase the size of sigset_t to accomodate 128 signals -- adding new
  versions of sys_setprocmask(), sys_sigaction(), sys_sigpending() and
  sys_sigsuspend() to handle the changed arguments.
* Abstract the guts of sys_sigaltstack(), sys_setprocmask(), sys_sigaction(),
  sys_sigpending() and sys_sigsuspend() into separate functions, and call them
  from all the emulations rather than hard-coding everything.  (Avoids uses
  the stackgap crap for these system calls.)
* Add a new flag (p_checksig) to indicate that a process may have signals
  pending and userret() needs to do the full (slow) check.
* Eliminate SAS_ALTSTACK; it's exactly the inverse of SS_DISABLE.
* Correct emulation bugs with restoring SS_ONSTACK.
* Make the signal mask in the sigcontext always use the emulated mask format.
* Store signals internally in sigaction structures, rather than maintaining a
  bunch of little sigsets for each SA_* bit.
* Keep track of where we put the signal trampoline, rather than figuring it out
  in *_sendsig().
* Issue a warning when a non-emulated sigaction bit is observed.
* Add missing emulated signals, and a native SIGPWR (currently not used).
* Implement the `not reset when caught' semantics for relevant signals.

Note: Only code touched by the i386 port has been modified.  Other ports and
emulations need to be updated.

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

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

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jul 20 16:41:05 1998 UTC (25 years, 8 months ago) by fvdl
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) to selected 1.42 (colored)

Avoid possibly overflowing an mbuf. From Dan S. Decasper, via Chuck Cranor.

Revision 1.44 / (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.43: +2 -1 lines
Diff to previous 1.43 (colored) to selected 1.42 (colored)

defopt NFSSERVER

Revision 1.43 / (download) - annotate - [select for diffs], Sat Apr 25 17:41:01 1998 UTC (25 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.42: +8 -8 lines
Diff to previous 1.42 (colored)

Adapt to new sosend/soreceive and upcall (now down in sowakeup)

Revision 1.42 / (download) - annotate - [selected], Thu Feb 19 00:54:13 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.41: +3 -1 lines
Diff to previous 1.41 (colored)

Include the NFS option header.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jan 30 22:44:13 1998 UTC (26 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.40: +24 -11 lines
Diff to previous 1.40 (colored) to selected 1.42 (colored)

Only take the receive lock before disconnecting when doing it from
nfs_decode_args. Otherwise we might just end up locking against ourselves.

XXX workaround, will do ok for now. Proper fix forthcoming.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Nov 16 23:23:20 1997 UTC (26 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.39: +11 -13 lines
Diff to previous 1.39 (colored) to selected 1.42 (colored)

Make sure the receive lock is taken when disconnecting a socket. Also
change a check for a 'connected' socket to use the socket rather than
the mount flags.

From Matthias Drochner.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Oct 10 01:53:24 1997 UTC (26 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-3-base, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.38: +12 -12 lines
Diff to previous 1.38 (colored) to selected 1.42 (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.38 / (download) - annotate - [select for diffs], Thu May 22 18:20:06 1997 UTC (26 years, 10 months ago) by gwr
Branch: MAIN
CVS Tags: thorpej-signal-base, marc-pcmcia-bp, bouyer-scsipi
Branch point for: thorpej-signal, marc-pcmcia
Changes since 1.37: +12 -2 lines
Diff to previous 1.37 (colored) to selected 1.42 (colored)

Temporary work-around for PR kern/3579 (from Jonathan Stone).

Revision 1.37 / (download) - annotate - [select for diffs], Mon May 12 23:40:22 1997 UTC (26 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.36: +10 -4 lines
Diff to previous 1.36 (colored) to selected 1.42 (colored)

* If nfs_reconnect fails, be sure to release the sndlock, otherwise no
  other requests will get through and the mount point will be effectively dead.
  This could happen for mounts using TCP and -i and/or -s.
* Reserve enough space for UDP sockets. Fixes PR 3008, from Naofumi Honda.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Apr 8 17:57:16 1997 UTC (26 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.35: +10 -6 lines
Diff to previous 1.35 (colored) to selected 1.42 (colored)

Avoid nfsiods acquiring/releasing a lock, then acquiring it again,  before
anyone else can get to it, by checking if a reply was received, and it
has thus become unnecessary to take the lock. From FreeBSD.

XXX I don't really like this, "locks" potentially suffer from the same
problem throughout the whole kernel; they should probably be FIFO everywhere.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Feb 22 02:59:08 1997 UTC (27 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.34: +26 -114 lines
Diff to previous 1.34 (colored) to selected 1.42 (colored)

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

date: 1995/11/30 20:37:03;  author: cp;  state: Exp;  lines: +25 -14
Change splsoftclock() to splnet();
Make nfsrv_getstream create two copies of data when
splitting up an mbuf rather than two references to the
same external buffer. The symptom this fixes is client
hangs.

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

Revision 1.34 / (download) - annotate - [select for diffs], Sun Feb 9 21:19:05 1997 UTC (27 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: mrg-vm-swap
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored) to selected 1.42 (colored)

* Fix some bugs in NQNFS (malformed RPC requests, no directory lease eviction)
* Avoid possible NULL ptr ref in nfs_reply
* Don't ever try to sillyrename directories (from FreeBSD)

Revision 1.33 / (download) - annotate - [select for diffs], Tue Feb 4 21:33:19 1997 UTC (27 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: is-newarp-base
Branch point for: is-newarp
Changes since 1.32: +6 -2 lines
Diff to previous 1.32 (colored) to selected 1.42 (colored)

* Make sure a new socket is created when switching to/from NOCONN with
  a mount
* Add extra printf statements to hopefully get some more info on lockups,
  specifically when a send error is ignored.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jan 31 02:58:50 1997 UTC (27 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) to selected 1.42 (colored)

NFSCLIENT -> NFS.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Oct 13 01:39:07 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Branch point for: thorpej-setroot
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored) to selected 1.42 (colored)

revert kprintf changes

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

printf -> kprintf, sprintf -> ksprintf

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jul 2 23:21:15 1996 UTC (27 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.42 (colored)

Remove bogus check on record length < NFS_MINPACKET.
(From Guy Harris via Rick Macklem).

Revision 1.28 / (download) - annotate - [select for diffs], Wed May 22 13:56:31 1996 UTC (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored) to selected 1.42 (colored)

Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
PRU_CONTROL.  The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Apr 15 20:20:00 1996 UTC (27 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) to selected 1.42 (colored)

Make this compile again on a SPARC if NFSCLIENT is defined without
NFSSERVER.  (-Wall unused variable lossage)

Revision 1.26 / (download) - annotate - [select for diffs], Sun Feb 25 17:47:26 1996 UTC (28 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored) to selected 1.42 (colored)

Oops. Do previous fix on the right line this time.. (thanks Charles)

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 25 15:30:01 1996 UTC (28 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.24: +6 -4 lines
Diff to previous 1.24 (colored) to selected 1.42 (colored)

Call soreserve() with the right size for receives (from pk).

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

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

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

nfs prototype changes

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 19 23:07:38 1995 UTC (28 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.21: +50 -50 lines
Diff to previous 1.21 (colored) to selected 1.42 (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], Sun Aug 13 00:00:01 1995 UTC (28 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) to selected 1.42 (colored)

splnet --> splsoftnet

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

Fix more off by one errors.

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

Fix another off by one error.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jun 2 18:38:57 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.42 (colored)

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

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

Convert some more lists and queues.

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

Change the reply list to a TAILQ.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 29 06:42:16 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.14: +3 -2 lines
Diff to previous 1.14 (colored) to selected 1.42 (colored)

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

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

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

Revision 1.13 / (download) - annotate - [select for diffs], Tue May 24 02:33:36 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.42 (colored)

MIN -> min, MAX -> max

Revision 1.12 / (download) - annotate - [select for diffs], Thu May 5 05:39:46 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored) to selected 1.42 (colored)

lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

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

patchkit date deletions!

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 22 04:13:50 1993 UTC (30 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.9: +8 -8 lines
Diff to previous 1.9 (colored) to selected 1.42 (colored)

minor cleanup

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

Canonicalize all #includes.

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

Make nfs_timer() return void.

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

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

Revision 1.5 / (download) - annotate - [select for diffs], Sat May 22 11:42:59 1993 UTC (30 years, 10 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.4: +1 -2 lines
Diff to previous 1.4 (colored) to selected 1.42 (colored)

add include of select.h if necessary for protos, or delete if extraneous

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 18 18:20:28 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.3: +3 -9 lines
Diff to previous 1.3 (colored) to selected 1.42 (colored)

make kernel select interface be one-stop shopping & clean it all up.

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

migrated code to make split possible

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

after 0.2.2 "stable" patches applied

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.42 (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>