OpenBSD CVS

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


[BACK] Up to [local] / src / sys / nfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Wed May 1 13:15:59 2024 UTC (5 weeks, 5 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.30: +1 -2 lines
Diff to previous 1.30 (colored)

remove unneeded includes
ok miod@ mpi@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Apr 30 17:05:20 2024 UTC (5 weeks, 6 days ago) by miod
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

Constify NFS data whenever possible. Also make a few more const data static.

ok jsg@ semarie@

Revision 1.29 / (download) - annotate - [select for diffs], Thu Dec 5 10:41:57 2019 UTC (4 years, 6 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Convert infinite sleeps to tsleep_nsec(9).

ok jca@

Revision 1.28 / (download) - annotate - [select for diffs], Fri Aug 28 00:03:54 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

fairly simple sizes for free(); ok tedu

Revision 1.27 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:52 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.26: +1 -2 lines
Diff to previous 1.26 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.26 / (download) - annotate - [select for diffs], Tue Nov 18 10:42:15 2014 UTC (9 years, 6 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.25: +13 -5 lines
Diff to previous 1.25 (colored)

use siphash for key lookups in all the filesystem hashes.

ok deraadt@ tedu@

Revision 1.25 / (download) - annotate - [select for diffs], Sun Sep 14 14:17:26 2014 UTC (9 years, 8 months ago) by jsg
Branch: MAIN
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored)

remove uneeded proc.h includes
ok mpi@ kspillner@

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jul 12 18:43:52 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jun 4 18:36:43 2009 UTC (15 years ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.22: +17 -9 lines
Diff to previous 1.22 (colored)

Plug mbuf leaks in the DRC, when we reuse entries we didn't
free the mbufs the entry has (socket name, reply).

Found with dlg@'s amazing mbuf debug diff, fix is based on
the same thing in NetBSD (by yamt@netbsd.org).

OK blambert@

Revision 1.22 / (download) - annotate - [select for diffs], Sat May 30 17:20:29 2009 UTC (15 years ago) by thib
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

Remove unused procnums (NQNFS leftovers) and cleanup.

OK blambert@ sometime ago

Revision 1.21 / (download) - annotate - [select for diffs], Wed Dec 24 02:43:52 2008 UTC (15 years, 5 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.20: +8 -48 lines
Diff to previous 1.20 (colored)

Replace the TRUE/FALSE defines with 1/0 respectively. This doesn't
hurt readability and it was just plain annoying seeing them defined
in every other .c file.

OK blambert@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 20 13:40:19 2008 UTC (15 years, 7 months ago) by blambert
Branch: MAIN
Changes since 1.19: +5 -1 lines
Diff to previous 1.19 (colored)

Be pedantically correct in freeing allocated mbufs, even upon clearing
the server cache on shutdown.

ok thib@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jul 5 12:45:06 2008 UTC (15 years, 11 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)


use m_freem() instead of MFREE() since we ignore the
mbuf that points to the rest of the chain (if it is a
chain).

ok blambert@

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jun 12 20:24:06 2008 UTC (16 years ago) by blambert
Branch: MAIN
Changes since 1.17: +2 -4 lines
Diff to previous 1.17 (colored)

Remove now-vestigial bpos pointer from NFS. For building outgoing
NFS mbufs, mbufs now contain all their internal buffer state internally,
the way god intended.

ok thib@

testing johan@ (and possibly merdely@; this diff's been around for a bit...)

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 11 04:52:27 2008 UTC (16 years ago) by blambert
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

Canonical for() -> queue.h FOREACH macro conversions.
Also, it is historical practice to #include <sys/queue.h>
when using queue.h macros.

ok thib@ krw@

special thanks to krw@ for reminders vice violence

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 14 10:39:19 2008 UTC (16 years, 2 months ago) by thib
Branch: MAIN
Changes since 1.15: +82 -73 lines
Diff to previous 1.15 (colored)

move the cache lookup code into a function, instead repeating
it twice, makes this nicer as a bonus;

From NetBSD.

tested by johan@, ok blambert@.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 29 11:16:49 2007 UTC (16 years, 7 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.14: +22 -37 lines
Diff to previous 1.14 (colored)

Touch of KNF and style(9), spaces and comments.
make pretty.

ok krw@

Revision 1.14 / (download) - annotate - [select for diffs], Sun Oct 28 14:12:41 2007 UTC (16 years, 7 months ago) by thib
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Remove the "frev" argument from nfs_rephead(); and clean up the "frev"
variables, that are declared all over, since they are passed via macros
to nfs_rephead(); which doesn't do anything with it.

OK krw@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Sep 20 12:54:31 2007 UTC (16 years, 8 months ago) by thib
Branch: MAIN
Changes since 1.12: +2 -4 lines
Diff to previous 1.12 (colored)

MALLOC/FREE -> malloc/free + M_ZERO.
Uneeded includes and casts...

ok krw@

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 26 21:22:14 2004 UTC (19 years, 5 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.11: +3 -5 lines
Diff to previous 1.11 (colored)

Use list and queue macros where applicable to make the code easier to read;
no change in compiler assembly output.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jul 16 15:01:51 2004 UTC (19 years, 11 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.10: +2 -6 lines
Diff to previous 1.10 (colored)

kill netiso stuff here as well, millert ok

Revision 1.6.4.4 / (download) - annotate - [select for diffs], Sat Jun 7 11:07:44 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.6.4.3: +2 -6 lines
Diff to previous 1.6.4.3 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync SMP branch to -current

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 2 23:28:19 2003 UTC (21 years ago) by millert
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.9: +2 -6 lines
Diff to previous 1.9 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.6.4.3 / (download) - annotate - [select for diffs], Fri Mar 28 00:08:46 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.6.4.2: +1 -1 lines
Diff to previous 1.6.4.2 (colored) to branchpoint 1.6 (colored)

Sync the SMP branch with 3.3

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Tue Oct 29 00:36:49 2002 UTC (21 years, 7 months ago) by art
Branch: UBC
Changes since 1.7.4.1: +2 -2 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

sync to -current

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jul 3 20:57:00 2002 UTC (21 years, 11 months ago) by nate
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Remove unused function parameter 'cache' from nfs_rephead
ok costa@

Revision 1.6.4.2 / (download) - annotate - [select for diffs], Wed Mar 6 02:17:12 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.6.4.1: +15 -15 lines
Diff to previous 1.6.4.1 (colored) to branchpoint 1.6 (colored)

Merge in trunk

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Thu Jan 31 22:55:47 2002 UTC (22 years, 4 months ago) by niklas
Branch: UBC
Changes since 1.7: +15 -15 lines
Diff to previous 1.7 (colored)

Merge in -current, builds on i386, otherwise untested

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jan 16 21:51:16 2002 UTC (22 years, 4 months ago) by ericj
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.7: +15 -15 lines
Diff to previous 1.7 (colored)


use queue.h macro's
remove register

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Wed Jul 4 10:55:49 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 25 03:28:09 2001 UTC (22 years, 11 months ago) by csapuntz
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

Remove NQNFS

Revision 1.6 / (download) - annotate - [select for diffs], Wed Apr 28 09:28:17 1999 UTC (25 years, 1 month ago) by art
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Branch point for: SMP
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

zap the newhashinit hack.
Add an extra flag to hashinit telling if it should wait in malloc.
update all calls to hashinit.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 21 22:30:28 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

partial sync with netbsd 960418, more to come

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 17 04:50:30 1996 UTC (28 years, 2 months ago) by mickey
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Minor cleanups. Checked against Lite2.
(NetBSD's was really just a Lite2's, but w/ 64bit support)

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 31 13:15:50 1996 UTC (28 years, 2 months ago) by mickey
Branch: MAIN
Changes since 1.2: +29 -25 lines
Diff to previous 1.2 (colored)

From NetBSD: NFSv3 import (tomorrow's Net's kernel)
Open's patches kept in. i'll possibly take a look at Lite2 soon,
is there smth usefull ?..

Revision 1.2 / (download) - annotate - [select for diffs], Thu Feb 29 09:24:55 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
Changes since 1.1: +5 -1 lines
Diff to previous 1.1 (colored)

From NetBSD: merge with 960217 (still NFSv2)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:53:22 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:53:22 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

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.