The NetBSD Project

CVS log for src/sys/ufs/ufs/ufs_quota.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.118 / (download) - annotate - [select for diffs], Wed Feb 22 21:49:45 2023 UTC (13 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.117: +65 -65 lines
Diff to previous 1.117 (colored) to selected 1.61 (colored)

ufs: Nix trailing whitespace and tidy up some other minor KNF.

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:45 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.112: +25 -39 lines
Diff to previous 1.112 (colored) next main 1.113 (colored) to selected 1.61 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:58 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.115: +9 -9 lines
Diff to previous 1.115 (colored) next main 1.116 (colored) to selected 1.61 (colored)

Rebase.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Jun 28 22:27:51 2014 UTC (9 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, tls-maxphys-base, tls-earlyentropy-base, 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, 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, pgoyette-compat, 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, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, 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-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, 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, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.116: +9 -9 lines
Diff to previous 1.116 (colored) to selected 1.61 (colored)

Revert the following changes:

   src/sys/sys/quotactl.h 1.37
   src/sys/compat/netbsd32/netbsd32.h 1.101
   src/sys/compat/netbsd32/netbsd32_netbsd.c 1.188, 1.189
   src/sys/kern/vfs_quotactl.c 1.39
   src/sys/kern/vfs_syscalls.c 1.483
   src/sys/ufs/lfs/ulfs_quota.c 1.11
   src/sys/ufs/ufs/ufs_quota.c 1.116
   src/lib/libquota/quota_kernel.c 1.5

and do them correctly.

If you're going to change the name of something, you need to change
the name of *all* the things with the same name, not just a handful,
and you should change it to something similar so it still matches the
rest of the system rather than just picking an arbitrarily different
name.

Hi, Joerg.

To wit, rename the quotactl "delete" operation to "del", because
"delete" is a reserved word in C++ and for some reason Joerg wants to
run internal interfaces used only by C code through his C++ compiler.
Do not rename it to "remove" instead, because this doesn't match
libquota or the rest of the usage throughout the system; and rename
all the related identifiers, not just the ones that blew the mind of
Joerg's C++ compiler.

Because this is not a user-facing API (the only userland consumer
sys/quotactl.h is libquota) it is sort of ok to make arbitrary
source-incompatible changes; however, by the same token it's completely
unnecessary. If it *were* a user-facing API that someone might have a
semi-rational reason to want to run a C++ compiler on, it would be
incorrect to change it at this point.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Jun 12 21:39:45 2014 UTC (9 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.115: +3 -3 lines
Diff to previous 1.115 (colored) to selected 1.61 (colored)

Don't t use a C++ keyword as field name.

Revision 1.70.4.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:19 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.70.4.2: +18 -32 lines
Diff to previous 1.70.4.2 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored) to selected 1.61 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.112.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:22 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.112: +18 -32 lines
Diff to previous 1.112 (colored) next main 1.113 (colored) to selected 1.61 (colored)

sync with head

Revision 1.115 / (download) - annotate - [select for diffs], Sat Nov 16 17:04:53 2013 UTC (10 years, 5 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.114: +9 -15 lines
Diff to previous 1.114 (colored) to selected 1.61 (colored)

tidy the QUOTA2 blocks a bit more

Revision 1.114 / (download) - annotate - [select for diffs], Sat Nov 16 12:49:29 2013 UTC (10 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.113: +21 -26 lines
Diff to previous 1.113 (colored) to selected 1.61 (colored)

move variable use and initialisation inside the #ifdef / block that uses it.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Oct 18 19:55:37 2013 UTC (10 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.112: +5 -8 lines
Diff to previous 1.112 (colored) to selected 1.61 (colored)

move code inside ifdef

Revision 1.108.2.1.2.1 / (download) - annotate - [select for diffs], Thu Nov 1 16:45:05 2012 UTC (11 years, 5 months ago) by matt
Branch: matt-nb6-plus
Changes since 1.108.2.1: +3 -3 lines
Diff to previous 1.108.2.1 (colored) next main 1.108.2.2 (colored) to selected 1.61 (colored)

sync with netbsd-6-0-RELEASE.

Revision 1.70.4.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:23:01 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.70.4.1: +4 -4 lines
Diff to previous 1.70.4.1 (colored) to branchpoint 1.70 (colored) to selected 1.61 (colored)

sync with head

Revision 1.108.2.2 / (download) - annotate - [select for diffs], Thu Sep 13 22:24:27 2012 UTC (11 years, 7 months ago) by riz
Branch: netbsd-6
CVS Tags: 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-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, matt-nb6-plus-nbase, matt-nb6-plus-base
Changes since 1.108.2.1: +1 -1 lines
Diff to previous 1.108.2.1 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by manu in ticket #551):
	sys/ufs/ufs/ufs_quota.c: revision 1.112
Temporary fix for quotactl authorization: it must use the effective UID
and not the real UID.
Further work is required to move the check to the kauth listener instead
of having it in UFS code.

Revision 1.112 / (download) - annotate - [select for diffs], Sun Sep 9 04:27:49 2012 UTC (11 years, 7 months ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored) to selected 1.61 (colored)

Temporary fix for quotactl authorization: it must use the effective UID
and not the real UID.

Further work is required to move the check to the kauth listener instead
of having it in UFS code.

Revision 1.111 / (download) - annotate - [select for diffs], Sun Aug 26 02:32:14 2012 UTC (11 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.110: +2 -3 lines
Diff to previous 1.110 (colored) to selected 1.61 (colored)

Move INITQFNAMES to the right header file.

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Mon Jul 30 08:24:57 2012 UTC (11 years, 8 months ago) by martin
Branch: netbsd-6
CVS Tags: netbsd-6-0-RC1
Branch point for: matt-nb6-plus
Changes since 1.108: +4 -2 lines
Diff to previous 1.108 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by dholland in ticket #450):
	sys/ufs/ufs/ufs_quota.c: revision 1.110
	sys/ufs/ufs/ufs_quota.h: revision 1.21
	sys/ufs/ufs/ufs_quota.c: revision 1.109
Eliminate a common in a header file (add a missing extern) and
declare it in the approriate C file.
Restore accidentally lost initialization of quotatypes[].
Fixes (null) in the kernel message triggered when you go over quota, and
maybe other things. Reported by Matthew Mondor.

Revision 1.110 / (download) - annotate - [select for diffs], Sun Jul 29 08:32:27 2012 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.109: +4 -3 lines
Diff to previous 1.109 (colored) to selected 1.61 (colored)

Restore accidentally lost initialization of quotatypes[].
Fixes (null) in the kernel message triggered when you go over quota, and
maybe other things. Reported by Matthew Mondor.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:57 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.70: +404 -286 lines
Diff to previous 1.70 (colored) to selected 1.61 (colored)

sync with head

Revision 1.70.8.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:56 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.70: +404 -286 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.61 (colored)

merge to -current.

Revision 1.109 / (download) - annotate - [select for diffs], Sat Feb 18 06:13:23 2012 UTC (12 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, 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
Changes since 1.108: +3 -2 lines
Diff to previous 1.108 (colored) to selected 1.61 (colored)

Eliminate a common in a header file (add a missing extern) and
declare it in the approriate C file.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Feb 1 05:43:54 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.107: +19 -19 lines
Diff to previous 1.107 (colored) to selected 1.61 (colored)

Improve the names of some members of struct quotactl_args. These are
effectively function parameter names, but since they need to be
described with the same names in the man page the choices do matter.
Some.

Revision 1.107 / (download) - annotate - [select for diffs], Wed Feb 1 05:34:43 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.106: +31 -31 lines
Diff to previous 1.106 (colored) to selected 1.61 (colored)

Change the syscall API for quotas over to the new non-proplib one.

   - struct vfs_quotactl_args -> struct quotactl_args
   - add sys/stdint.h to sys/quotactl.h for clean userland build
   - install sys/quotactl.h in /usr/include
   - update set lists for same
   - add new marshalling code in libquota
   - add new unmarshalling code in vfs_syscalls.c
   - discard proplib interpreter code in vfs_quotactl.c
   - add dispatching code for the 14 quotactl ops in vfs_quotactl.c
   - mark the proplib quotactl syscall obsolete
   - add a new syscall number for the new quotactl syscall
   - change the name of the syscall to __quotactl()
   - remove the decl of the old quotactl from quota/quotaprop.h
   - add a decl of the new quotactl to sys/quotactl.h
   - update the libc build
   - update ktruss
   - remove proplib marshalling code from libquota
   - update copy of syscall table in gdb ppc sources
   - hack rumphijack to accomodate new quotactl name (as I recall,
     pooka wanted such a name change to simplify something, but I
     don't really see what/how)

This change appears to require a kernel version bump for rumpish
reasons.

Revision 1.106 / (download) - annotate - [select for diffs], Wed Feb 1 05:16:56 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.105: +82 -2 lines
Diff to previous 1.105 (colored) to selected 1.61 (colored)

Add QUOTACTL_IDTYPESTAT and QUOTACTL_OBJTYPESTAT for retrieving info
about idtypes and objtypes. This avoids compiling in the names of
the id and object types.

I overlooked this last week because the proplib syscall interface has
no way to convey this information.

Renumber the operation codes again (since we still can) to insert
the new operations into the list in a semantically sensible place.

Requires kernel version bump.

Revision 1.105 / (download) - annotate - [select for diffs], Sun Jan 29 11:59:14 2012 UTC (12 years, 2 months ago) by para
Branch: MAIN
Changes since 1.104: +12 -2 lines
Diff to previous 1.104 (colored) to selected 1.61 (colored)

sprinkel some #ifdef QUOTA2 to avoid unused variables

Revision 1.104 / (download) - annotate - [select for diffs], Sun Jan 29 07:16:53 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.103: +2 -3 lines
Diff to previous 1.103 (colored) to selected 1.61 (colored)

Remove references to <quota/quotaprop.h> in src/sys/ufs.
The remaining references in the kernel are in vfs_quotactl.c, the
compat_50 code for the old quotactl (to be fixed up), and the
code compiled from src/common/lib/libquota.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Jan 29 07:14:38 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.102: +5 -5 lines
Diff to previous 1.102 (colored) to selected 1.61 (colored)

Remove the extra op argument to VFS_QUOTACTL() - the op is now stored
purely in the args structure.

This change requires a kernel version bump.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Jan 29 07:13:43 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.101: +14 -14 lines
Diff to previous 1.101 (colored) to selected 1.61 (colored)

Tidy up the VFS_QUOTACTL interface. Renumber the command codes in a
logical order (as opposed to the previous order, which accumulated
arbitrarily), remove the separate codes for argument encoding as
there's now a 1-1 mapping between ops and argument substructures,
and assert in VFS_QUOTACTL() itself that the op in the args structure
matches the op passed directly.

This change requires a kernel version bump.

Revision 1.101 / (download) - annotate - [select for diffs], Sun Jan 29 07:12:41 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.100: +21 -11 lines
Diff to previous 1.100 (colored) to selected 1.61 (colored)

Change QUOTACTL_GETVERSION to QUOTACTL_STAT. Add struct quotastat.

This change requires a kernel version bump.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Jan 29 07:11:55 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.99: +6 -16 lines
Diff to previous 1.99 (colored) to selected 1.61 (colored)

Move proplib bits for QUOTACTL_QUOTAOFF out of the ufs code.

This change requires a kernel version bump.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Jan 29 07:11:12 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.98: +8 -25 lines
Diff to previous 1.98 (colored) to selected 1.61 (colored)

Move the proplib bits for QUOTACTL_QUOTAON out of the ufs code.

This change requires a kernel version bump.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Jan 29 07:09:52 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.97: +97 -15 lines
Diff to previous 1.97 (colored) to selected 1.61 (colored)

Add QUOTACTL_CURSORSKIPIDTYPE, QUOTACTL_CURSORATEND, QUOTACTL_CURSORREWIND.

This change requires a kernel version bump.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Jan 29 07:08:58 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.96: +3 -5 lines
Diff to previous 1.96 (colored) to selected 1.61 (colored)

Don't pass the idtype to QUOTACTL_GETALL. Instead, iterate both users
and groups.

This change requires a kernel version bump.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Jan 29 07:07:22 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.95: +12 -5 lines
Diff to previous 1.95 (colored) to selected 1.61 (colored)

Call QUOTACTL_GETALL in a loop to get results 8 at a time. Make
the QUOTACTL_GETALL interface less abusive.

Note: this change requires a kernel version bump.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Jan 29 07:02:06 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.94: +6 -17 lines
Diff to previous 1.94 (colored) to selected 1.61 (colored)

Hack QUOTACTL_GETALL to return results without using proplib.

(this interface is abusive and is going to be cleaned up in the
immediate future)

Note: this change requires a kernel version bump.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Jan 29 07:00:39 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.93: +10 -11 lines
Diff to previous 1.93 (colored) to selected 1.61 (colored)

Pass the cursor to QUOTACTL_GETALL. Don't pass unused proplib items.

Note: this change requires a kernel version bump.

Revision 1.93 / (download) - annotate - [select for diffs], Sun Jan 29 06:57:15 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.92: +64 -2 lines
Diff to previous 1.92 (colored) to selected 1.61 (colored)

Begin adding quota cursor/iteration interface to VFS_QUOTACTL.

Add struct quotakcursor.
Add QUOTACTL_CURSOROPEN and QUOTACTL_CURSORCLOSE operations.
Implement the plumbing for them.
Add trivial implementations of them for quota2.
(iteration is not supported on quota1 for the time being, just as
getall isn't)
Have the proplib interpreter open and close a cursor around doing
QUOTACTL_GETALL.

Note: this change requires a kernel version bump.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Jan 29 06:55:44 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.91: +13 -13 lines
Diff to previous 1.91 (colored) to selected 1.61 (colored)

Package up the args of QUOTACTL_DELETE as a struct quotakey.

Revision 1.91 / (download) - annotate - [select for diffs], Sun Jan 29 06:54:34 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.90: +12 -12 lines
Diff to previous 1.90 (colored) to selected 1.61 (colored)

QUOTACTL_CLEAR -> QUOTACTL_DELETE to match intended API and user API.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Jan 29 06:53:35 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.89: +5 -3 lines
Diff to previous 1.89 (colored) to selected 1.61 (colored)

Improve the quota2 QUOTACTL_CLEAR code to allow clearing blocks and
files independently.

Note: this change requires a kernel version bump.

Revision 1.89 / (download) - annotate - [select for diffs], Sun Jan 29 06:52:39 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.88: +4 -8 lines
Diff to previous 1.88 (colored) to selected 1.61 (colored)

The handling of QUOTACTL_CLEAR does not use the proplib data
dictionary, so don't pass it.

Note: this change requires a kernel version bump.

Revision 1.88 / (download) - annotate - [select for diffs], Sun Jan 29 06:51:43 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.87: +19 -49 lines
Diff to previous 1.87 (colored) to selected 1.61 (colored)

Move toplevel proplib iteration of QUOTACTL_CLEAR to fs-independent code.

Note: this change requires a kernel version bump.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Jan 29 06:50:53 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.86: +9 -8 lines
Diff to previous 1.86 (colored) to selected 1.61 (colored)

Tidy up a bit.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Jan 29 06:50:15 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.85: +16 -19 lines
Diff to previous 1.85 (colored) to selected 1.61 (colored)

Whitespace.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Jan 29 06:49:43 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.84: +11 -11 lines
Diff to previous 1.84 (colored) to selected 1.61 (colored)

Rename QUOTACTL_SET to QUOTACTL_PUT, to match future intended API.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Jan 29 06:48:50 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.83: +14 -15 lines
Diff to previous 1.83 (colored) to selected 1.61 (colored)

Combine the miscellaneous QUOTACTL_SET args into a struct quotakey.

Note: this change requires a kernel version bump.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Jan 29 06:47:38 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.82: +12 -16 lines
Diff to previous 1.82 (colored) to selected 1.61 (colored)

Pass only one objtype and its quotaval to QUOTACTL_SET at one time.

(The backend code to handle this is a lot tidier than I expected given
that the proplib code doesn't allow setting blocks and files
independently; I was afraid there would turn out to be a reason for
that...)

Note: this change requires a kernel version bump.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Jan 29 06:46:49 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored) to selected 1.61 (colored)

For QUOTACTL_SET in quota2, use the quotaval data instead of proplib.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Jan 29 06:46:16 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.80: +7 -3 lines
Diff to previous 1.80 (colored) to selected 1.61 (colored)

For QUOTACTL_SET in quota1, use the quotaval data instead of proplib.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Jan 29 06:44:33 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.79: +17 -47 lines
Diff to previous 1.79 (colored) to selected 1.61 (colored)

Move the top level iteration for QUOTACTL_SET from ufs to vfs_quotactl.

Note: this change requires a kernel version bump.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Jan 29 06:42:14 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.78: +14 -16 lines
Diff to previous 1.78 (colored) to selected 1.61 (colored)

Whitespace.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Jan 29 06:41:41 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.77: +7 -15 lines
Diff to previous 1.77 (colored) to selected 1.61 (colored)

Use struct quotakey with QUOTACTL_GET. Tidy up accordingly.

Step 5 of 5 for QUOTACTL_GET.

Note: this change requires a kernel version bump.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Jan 29 06:40:57 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.76: +8 -7 lines
Diff to previous 1.76 (colored) to selected 1.61 (colored)

Per the FS-independent schema, get one quotaval at a time from the
filesystem, instead of blocks and files together.

This results in fetching each FS-level quota entry twice and therefore
doing slightly more work, but (1) quota access isn't a critical path
and (2) after fetching the block values the file values will be hot in
the cache, so it won't add much total time.

Also move more of the FS-independent defintions from <quota.h> to
<sys/quota.h> so we can use them internally.

Step 4 of 5 for QUOTACTL_GET.

Note: this change requires a kernel version bump.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Jan 29 06:39:37 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.75: +7 -38 lines
Diff to previous 1.75 (colored) to selected 1.61 (colored)

Move what was second-layer proplib frobbing for QUOTACTL_GET to
FS-independent code. (Step 3 of probably 5 for QUOTACTL_GET.)

Note: this change requires a kernel version bump.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Jan 29 06:38:24 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.74: +38 -6 lines
Diff to previous 1.74 (colored) to selected 1.61 (colored)

Move second-layer proplib frobbing within ufs quota code up to the
first layer. (Step 2 of several for QUOTACTL_GET.)

Revision 1.74 / (download) - annotate - [select for diffs], Sun Jan 29 06:37:30 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.73: +15 -56 lines
Diff to previous 1.73 (colored) to selected 1.61 (colored)

Move first-layer proplib frobbing for QUOTACTL_GET to FS-independent code.
(step 1 of several)

Note: this change requires a kernel version bump.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jan 29 06:36:51 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.72: +10 -38 lines
Diff to previous 1.72 (colored) to selected 1.61 (colored)

Move proplib frobbing for QUOTACTL_GETVERSION to FS-independent code.

Note: this change requires a kernel version bump.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Jan 29 06:36:07 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.71: +109 -36 lines
Diff to previous 1.71 (colored) to selected 1.61 (colored)

Introduce struct vfs_quotactl_args. Use it.

This change uglifies vfs_quotactl some in order to make room for
moving operation-specific but FS-independent logic out of ufs_quota.c.

Note: this change requires a kernel version bump.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Jan 29 06:34:58 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.70: +24 -47 lines
Diff to previous 1.70 (colored) to selected 1.61 (colored)

Move the proplib-based quota command dispatching (that is, the code
that knows the magic string names for the allowed actions) out of
UFS-specific code and to fs-independent code.

This introduces QUOTACTL_* operation codes and changes the signature
of VFS_QUOTACTL() again for compile safety.

Note: this change requires a kernel version bump.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:10:18 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.68: +536 -712 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.65.4.4 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:21 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.65.4.3: +534 -710 lines
Diff to previous 1.65.4.3 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.61 (colored)

sync with head

Revision 1.70 / (download) - annotate - [select for diffs], Thu Mar 24 17:05:46 2011 UTC (13 years ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.69: +5 -7 lines
Diff to previous 1.69 (colored) to selected 1.61 (colored)

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)

Revision 1.69 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:39 2011 UTC (13 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.68: +537 -711 lines
Diff to previous 1.68 (colored) to selected 1.61 (colored)

merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.

Revision 1.65.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:56:34 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.65.4.2: +18 -8 lines
Diff to previous 1.65.4.2 (colored) to branchpoint 1.65 (colored) to selected 1.61 (colored)

sync with head

Revision 1.68.4.14 / (download) - annotate - [select for diffs], Sun Feb 13 00:11:09 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.13: +35 -28 lines
Diff to previous 1.68.4.13 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.61 (colored)

Fix memory leak

Revision 1.68.4.13 / (download) - annotate - [select for diffs], Sat Feb 12 21:48:09 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.12: +5 -2 lines
Diff to previous 1.68.4.12 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Don't count snapshot files in inode quota too.
At umount time, chk?q may be called after quota have been shutdown,
as there is a final vflush pass after quota?_umount(); so skip quota
checks if the quota vnode is not there any more.

Revision 1.68.4.12 / (download) - annotate - [select for diffs], Sat Feb 12 19:52:40 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.11: +6 -2 lines
Diff to previous 1.68.4.11 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Do not update disk quotas for snapshot inodes, as this may require a
write to the same filesystem, which will trigger a copy on write,
which will trigger another update to the same block.
Set SF_SNAPSHOT just after truncating the snapshot inode, so that this
inode always account for 0 blocks in quotas.

Revision 1.68.4.11 / (download) - annotate - [select for diffs], Wed Feb 9 16:15:01 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.10: +79 -2 lines
Diff to previous 1.68.4.10 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Reimplement quotactl commands for quota1

Revision 1.68.4.10 / (download) - annotate - [select for diffs], Wed Feb 9 11:18:30 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.9: +14 -2 lines
Diff to previous 1.68.4.9 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Various build fixes

Revision 1.68.4.9 / (download) - annotate - [select for diffs], Tue Feb 8 20:00:53 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.8: +6 -4 lines
Diff to previous 1.68.4.8 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Minimal hacking to make 'options QUOTA' compile again.

Revision 1.68.4.8 / (download) - annotate - [select for diffs], Mon Feb 7 20:30:39 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.7: +71 -2 lines
Diff to previous 1.68.4.7 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Implement clear command (quota2 only), which either free the specified
quota2 entry (if both disk and inode usage are 0) or revert its limits to
the default quota entry.

Revision 1.68.4.7 / (download) - annotate - [select for diffs], Mon Jan 31 21:09:53 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.6: +6 -2 lines
Diff to previous 1.68.4.6 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

On command with multiple data, make sure to reset 'defaultq' to 0.

Revision 1.68.4.6 / (download) - annotate - [select for diffs], Mon Jan 31 15:24:10 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.5: +2 -3 lines
Diff to previous 1.68.4.5 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Catch up with Q2V -> QL renaming
Enforce limits for quota2.
pass quota type (*QUOTA) and limit type (QL_*) to
KAUTH_REQ_SYSTEM_FS_QUOTA_NOLIMIT, to make it possible to skip
limit checks for some quota type only if a listener wants to.

Revision 1.68.4.5 / (download) - annotate - [select for diffs], Sun Jan 30 19:38:46 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.4: +54 -2 lines
Diff to previous 1.68.4.4 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Implement "get version" quotactl command, which return the filesystem's
enabled quota versiob (1 for legacy, 2 for new).
For quota2, make quota and repquota print the user's allowed grace period
if -v is given and not overquota (if overquota, the remaining time is
printed instead, as usual).

Revision 1.68.4.4 / (download) - annotate - [select for diffs], Sun Jan 30 00:25:19 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.3: +74 -2 lines
Diff to previous 1.68.4.3 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Implement 'set' command for quota2.

Revision 1.68.4.3 / (download) - annotate - [select for diffs], Sat Jan 29 23:22:00 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.2: +2 -4 lines
Diff to previous 1.68.4.2 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Describe how the on-disk structures are protected from concurent access,
and try to implement it.

Revision 1.68.4.2 / (download) - annotate - [select for diffs], Fri Jan 21 16:58:06 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68.4.1: +64 -21 lines
Diff to previous 1.68.4.1 (colored) to branchpoint 1.68 (colored) to selected 1.61 (colored)

Add support for quotactl("getall") command, and convert repquota to new
world.

Revision 1.68.4.1 / (download) - annotate - [select for diffs], Thu Jan 20 14:25:03 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.68: +229 -745 lines
Diff to previous 1.68 (colored) to selected 1.61 (colored)

Snapshot of work in progress on a modernised disk quota system:
- new quotactl syscall (versionned for backward compat), which takes
  as parameter a path to a mount point, and a prop_dictionary
  (in plistref format) describing commands and arguments.
  For each command, status and data are returned as a prop_dictionary.
  quota commands features will be added to take advantage of this,
  exporting quota data or getting quota commands as plists.

- new on disk-format storage (all 64bit wide), integrated to metadata for
  ffs (and playing nicely with wapbl).
  Quotas are enabled on a ffs filesystem via superblock flags.
  tunefs(8) can enable or disable quotas.
  On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid
  block and inode usages, and will check and update quotas in Pass 6.
  quota usage and limits are stored in unliked files (one for users,
  one for groups)l fsck_ffs(8) will create the files if needed, or
  free them if needed. This means that after enabling or disabling
  quotas on a filesystem; a fsck_ffs(8) run is required.
  quotacheck(8) is not needed any more, on a unclean shutdown
  fsck or journal replay will take care of fixing quotas.
  newfs(8) can create a ready-to-mount quota-enabled filesystem
  (superblock flags are set and quota inodes are created).
  Other new features or semantic changes:
  - default quota datas, applied to users or groups which don't already
    have a quota entry
  - per-user/group grace time (instead of a filesystem global one)
  - 0 really means "nothing allowed at all", not "no limit".
    If you want "no limit", set the limit to UQUAD_MAX (tools will
    understand "unlimited" and "-")

  A quota file is structured as follow:
  it starts with a header, containing a few per-filesystem values,
  and the default quota limits.
  Quota entries are linked together as a simple list, each entry has a
  pointer (as an offset withing the file) to the next.
  The header has a pointer to a list of free quota entries, and
  a hash table of in-use entries. The size of the hash table depends
  on the filesystem block size (header+hash table should fit in the
  first block). The file is not sparse and is a multiple of
  filesystem block size (when the free quota entry list is empty a new
  filesystem block is allocated). quota entries to not cross
  filesystem block boundaries.

  In memory, the kernel keeps a cache of recently used quota entries
  as a reference to the block number, and offset withing the block.
  The quota entry itself is keept in the buf cache.

fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with
related atf tests :)
The kernel can update disk usage and report it via quotactl(2).

Todo: enforce quotas limits (limits are not checked by kernel yet)
      update repquota, edquota and rpc.rquotad to the new world
      implement compat_50_quotactl ioctl.
      update quotactl(2) man page

fsck_ffs required fixes so that allocating new blocks or inodes will
properly update the superblock and cg sumaries. This was not an issue up
to now because superblock and cg sumaries check happened last, but now
allocations or frees can happen in pass 6.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Nov 19 06:44:47 2010 UTC (13 years, 5 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.67: +15 -5 lines
Diff to previous 1.67 (colored) to selected 1.61 (colored)

Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:48:13 2010 UTC (13 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.65: +8 -8 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.59.4.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:55:15 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.59.4.5: +8 -8 lines
Diff to previous 1.59.4.5 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jul 21 17:52:14 2010 UTC (13 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.66: +5 -5 lines
Diff to previous 1.66 (colored) to selected 1.61 (colored)

Make holding v_interlock mandatory for callers of vget().

Announced some time ago on tech-kern.

Revision 1.65.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:20:06 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.65.4.1: +5 -5 lines
Diff to previous 1.65.4.1 (colored) to branchpoint 1.65 (colored) to selected 1.61 (colored)

sync with head

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:20 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.65: +5 -5 lines
Diff to previous 1.65 (colored) to selected 1.61 (colored)

Clean up vnode lock operations pass 2:

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

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.60.10.1.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:26 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.60.10.1: +11 -8 lines
Diff to previous 1.60.10.1 (colored) next main 1.60.10.2 (colored) to selected 1.61 (colored)

sync to netbsd-5

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:16 2010 UTC (14 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.65: +8 -8 lines
Diff to previous 1.65 (colored) to selected 1.61 (colored)

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

Revision 1.59.4.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:46 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.59.4.4: +10 -8 lines
Diff to previous 1.59.4.4 (colored) to branchpoint 1.59 (colored) to selected 1.61 (colored)

sync with head

Revision 1.60.10.4 / (download) - annotate - [select for diffs], Wed Jan 27 21:26:45 2010 UTC (14 years, 2 months ago) by sborrill
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.60.10.3: +10 -8 lines
Diff to previous 1.60.10.3 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

Pull up the following revisions(s) (requested by bouyer in ticket #1252):
	sys/ufs/ufs/ufs_quota.c:	revision 1.65

vclean() actually sets v_tag to VT_NON but doesn't touch v_type.
getcleanvnode() sets v_type to VNON after releasing v_interlock.
So the thread doing quotaon(), quotaoff() or qsync() could vget()
a vnode which is being recycled in getcleanvnode(), after it has
been cleaned and v_interlock released, but before v_type has been
reset, leading to KASSERT(vp->v_usecount == 1) firing in
getnewvnode(), or qsync() dereferencing a NULL pointer as in
PR kern/42205.
Fix by using the same tests as other ffs functions traversing the mount
list: also check for VTOI(vp) == NULL, and VI_XLOCK in addition
to VI_CLEAN.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jan 15 19:46:35 2010 UTC (14 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.64: +10 -8 lines
Diff to previous 1.64 (colored) to selected 1.61 (colored)

vclean() actually sets v_tag to VT_NON but doesn't touch v_type.
getcleanvnode() sets v_type to VNON after releasing v_interlock.
So the thread doing quotaon(), quotaoff() or qsync() could vget()
a vnode which is being recycled in getcleanvnode(), after is has
been cleaned and v_interlock released, but before v_type has been
reset, leading to KASSERT(vp->v_usecount == 1) firing in
getnewvnode(), or qsync() dereferending a NULL pointer as in
PR kern/42205.
Fix by using the same tests as other ffs function traversing the mount
list: also check for VTOI(vp) == NULL, and VI_XLOCK in addition
to VI_CLEAN.

Revision 1.59.4.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:35 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.59.4.3: +3 -2 lines
Diff to previous 1.59.4.3 (colored) to branchpoint 1.59 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.60.10.3 / (download) - annotate - [select for diffs], Fri Aug 7 05:59:44 2009 UTC (14 years, 8 months ago) by snj
Branch: netbsd-5
Changes since 1.60.10.2: +3 -3 lines
Diff to previous 1.60.10.2 (colored) to branchpoint 1.60 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by bouyer in ticket #898):
	sys/ufs/ufs/ufs_quota.c: revision 1.64
Fix previous: mutex_destroy() the right mutex

Revision 1.60.10.2 / (download) - annotate - [select for diffs], Fri Aug 7 05:59:17 2009 UTC (14 years, 8 months ago) by snj
Branch: netbsd-5
Changes since 1.60.10.1: +3 -2 lines
Diff to previous 1.60.10.1 (colored) to branchpoint 1.60 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by bouyer in ticket #898):
	sys/ufs/ufs/ufs_quota.c: revision 1.63
Add missing mutex_destroy() before pool_cache_put(). Prevents a
"Mutex error: lockdebug_alloc: already initialized" panic.

Revision 1.60.10.1.2.2 / (download) - annotate - [select for diffs], Fri Aug 7 05:57:54 2009 UTC (14 years, 8 months ago) by snj
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE
Changes since 1.60.10.1.2.1: +3 -3 lines
Diff to previous 1.60.10.1.2.1 (colored) to branchpoint 1.60.10.1 (colored) next main 1.60.10.2 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by bouyer in ticket #898):
	sys/ufs/ufs/ufs_quota.c: revision 1.64
Fix previous: mutex_destroy() the right mutex

Revision 1.60.10.1.2.1 / (download) - annotate - [select for diffs], Fri Aug 7 05:57:06 2009 UTC (14 years, 8 months ago) by snj
Branch: netbsd-5-0
Changes since 1.60.10.1: +3 -2 lines
Diff to previous 1.60.10.1 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by bouyer in ticket #898):
	sys/ufs/ufs/ufs_quota.c: revision 1.63
Add missing mutex_destroy() before pool_cache_put(). Prevents a
"Mutex error: lockdebug_alloc: already initialized" panic.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Aug 2 20:50:33 2009 UTC (14 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.61 (colored)

Fix previous: mutex_destroy() the right mutex

Revision 1.63 / (download) - annotate - [select for diffs], Sat Aug 1 09:08:53 2009 UTC (14 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.62: +3 -2 lines
Diff to previous 1.62 (colored) to selected 1.61 (colored)

Add missing mutex_destroy() before pool_cache_put(). Prevents a
"Mutex error: lockdebug_alloc: already initialized" panic.

Revision 1.59.4.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:54 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.59.4.2: +7 -5 lines
Diff to previous 1.59.4.2 (colored) to branchpoint 1.59 (colored) to selected 1.61 (colored)

sync with head

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:23:07 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.61: +7 -5 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Sync with HEAD.

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

Revision 1.62 / (download) - annotate - [select for diffs], Thu May 7 19:26:09 2009 UTC (14 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.61: +7 -5 lines
Diff to previous 1.61 (colored)

Introduce several actions/requests for authorizing file-system related
operations, specifically quota and block allocation from reserved space.

Modify ufs_quotactl() to accomodate passing "mp" earlier by vfs_busy()ing
it a little bit higher.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/04/26/msg004936.html

Note that the umapfs request mentioned in this thread was NOT added as
there is still on-going discussion regarding the proper implementation.

Revision 1.59.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:38 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.59.4.1: +9 -2 lines
Diff to previous 1.59.4.1 (colored) to branchpoint 1.59 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.60.10.1 / (download) - annotate - [select for diffs], Mon Feb 2 18:24:17 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-0, matt-nb5-mips64
Changes since 1.60: +9 -2 lines
Diff to previous 1.60 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by ad in ticket #351):
	sys/ufs/ufs/ufs_quota.c: revision 1.61
Print a warning message and return EOPNOTSUPP if the user tries to enable
quotas on a file system that is using logging.

Revision 1.60.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:36 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.60: +9 -2 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

Sync with HEAD.

Revision 1.58.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:42 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.58.6.2: +7 -0 lines
Diff to previous 1.58.6.2 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.61 / (download) - annotate - [selected], Sun Dec 21 10:48:10 2008 UTC (15 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.60: +9 -2 lines
Diff to previous 1.60 (colored)

Print a warning message and return EOPNOTSUPP if the user tries to enable
quotas on a file system that is using logging.

Revision 1.58.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:37 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.58.6.1: +4 -10 lines
Diff to previous 1.58.6.1 (colored) to branchpoint 1.58 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:56 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.59: +6 -12 lines
Diff to previous 1.59 (colored) next main 1.60 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.59.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:26:01 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.59: +6 -12 lines
Diff to previous 1.59 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.60 / (download) - annotate - [select for diffs], Mon May 5 17:11:17 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, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.59: +6 -12 lines
Diff to previous 1.59 (colored) to selected 1.61 (colored)

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

Revision 1.58.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:14 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.34.2.8 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:14 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.7: +4 -4 lines
Diff to previous 1.34.2.7 (colored) next main 1.35 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.50.4.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:13 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.50.4.2: +9 -5 lines
Diff to previous 1.50.4.2 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.61 (colored)

sync with HEAD

Revision 1.59 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:01 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored) to selected 1.61 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:32 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.51: +79 -47 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.34.2.7 / (download) - annotate - [select for diffs], Mon Feb 4 09:25:08 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.6: +8 -5 lines
Diff to previous 1.34.2.6 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 25 14:16:41 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: mjf-devfs2
Changes since 1.57: +6 -4 lines
Diff to previous 1.57 (colored) to selected 1.61 (colored)

Ignore clean vnodes in a couple more places.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jan 24 22:55:21 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.56: +4 -3 lines
Diff to previous 1.56 (colored) to selected 1.61 (colored)

quotaoff: ignore clean vnodes. Fixes PR kern/37818.

Revision 1.34.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:48:17 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.5: +77 -48 lines
Diff to previous 1.34.2.5 (colored) to selected 1.61 (colored)

sync with head

Revision 1.52.4.3 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:47 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.52.4.2: +1 -0 lines
Diff to previous 1.52.4.2 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.61 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jan 15 21:30:46 2008 UTC (16 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored) to selected 1.61 (colored)

fix locking botch; vunmark() needs the mountvnode lock, and the loop invariant
is to exit with the mountvnode lock held.

Revision 1.50.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:36 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.50.4.1: +76 -48 lines
Diff to previous 1.50.4.1 (colored) to branchpoint 1.50 (colored) to selected 1.61 (colored)

sync with HEAD

Revision 1.52.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:12:05 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.52.4.1: +13 -13 lines
Diff to previous 1.52.4.1 (colored) to branchpoint 1.52 (colored) to selected 1.61 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jan 3 19:28:50 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.54: +9 -9 lines
Diff to previous 1.54 (colored) to selected 1.61 (colored)

Use pool_cache.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jan 3 01:26:32 2008 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.53: +8 -8 lines
Diff to previous 1.53 (colored) to selected 1.61 (colored)

valloc -> vnalloc, vfree -> vnfree
Avoids collision with userland valloc(3).

no functional change
ad ok

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:58:30 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.52: +68 -40 lines
Diff to previous 1.52 (colored) to selected 1.61 (colored)

Sync with HEAD

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:14 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.52: +68 -40 lines
Diff to previous 1.52 (colored) to selected 1.61 (colored)

Merge vmlocking2 to head.

Revision 1.51.6.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:40:03 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.51.6.1: +3 -3 lines
Diff to previous 1.51.6.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:55 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.50.2.1: +3 -3 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.61 (colored)

Sync with HEAD.

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

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

Revision 1.51.6.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:54 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.51: +68 -40 lines
Diff to previous 1.51 (colored) to selected 1.61 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:35:24 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored) to selected 1.61 (colored)

sync with HEAD

Revision 1.44.2.7 / (download) - annotate - [select for diffs], Sun Oct 28 22:01:29 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.44.2.6: +54 -26 lines
Diff to previous 1.44.2.6 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored) to selected 1.61 (colored)

Fix up mnt_vnodelist handling.

Revision 1.34.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:51 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.4: +4 -4 lines
Diff to previous 1.34.2.4 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:49:39 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored) to selected 1.61 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.44.2.6 / (download) - annotate - [select for diffs], Thu Oct 25 20:52:19 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.44.2.5: +12 -12 lines
Diff to previous 1.44.2.5 (colored) to branchpoint 1.44 (colored) to selected 1.61 (colored)

Fix up mnt_vnodelist handling.

Revision 1.50.6.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:49:23 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored) next main 1.51 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:40 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored) to selected 1.61 (colored)

Merge from vmlocking:

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

Revision 1.34.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:47:01 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.3: +283 -196 lines
Diff to previous 1.34.2.3 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:05:23 2007 UTC (16 years, 7 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.61 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.44.2.5 / (download) - annotate - [select for diffs], Mon Aug 20 21:28:29 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.44.2.4: +188 -169 lines
Diff to previous 1.44.2.4 (colored) to branchpoint 1.44 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:51:18 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.48: +187 -168 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Sat Aug 11 15:09:49 2007 UTC (16 years, 8 months ago) by bouyer
Branch: netbsd-2
Changes since 1.30: +3 -2 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by hannken in ticket #11334):
	sys/ufs/ufs/ufs_quota.c: revision 1.46
	sys/ufs/ufs/quota.h: revision 1.24
If a quota-enabled file system has 65536 active vnodes for one uid
the reference counter of the corresponding struct dquot will overflow.
Change the type of the reference counter from u_int16_t to u_int32_t and
add an assertion to check for overflow.
Observed and tested by Edgar Fu

Revision 1.50.8.2 / (download) - annotate - [select for diffs], Tue Jul 31 09:29:53 2007 UTC (16 years, 8 months ago) by hannken
Branch: matt-mips64
Changes since 1.50.8.1: +1005 -0 lines
Diff to previous 1.50.8.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.61 (colored)

- Replace the freelist with a pool.  Current code never freed its dquot's.
- Always call dqsync() with dq locked.
- Add some assertions to verify the lock held.
- Serialize quotaon()/quotaoff(), dqhashmtx becomes dqlock.  From ad@

Reviewed by: Andrew Doran <ad@netbsd.org>

Revision 1.50.8.1, Tue Jul 31 09:29:52 2007 UTC (16 years, 8 months ago) by hannken
Branch: matt-mips64
Changes since 1.50: +0 -1005 lines
FILE REMOVED

file ufs_quota.c was added on branch matt-mips64 on 2007-07-31 09:29:53 +0000

Revision 1.50 / (download) - annotate - [select for diffs], Tue Jul 31 09:29:52 2007 UTC (16 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.49: +124 -110 lines
Diff to previous 1.49 (colored) to selected 1.61 (colored)

- Replace the freelist with a pool.  Current code never freed its dquot's.
- Always call dqsync() with dq locked.
- Add some assertions to verify the lock held.
- Serialize quotaon()/quotaoff(), dqhashmtx becomes dqlock.  From ad@

Reviewed by: Andrew Doran <ad@netbsd.org>

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jul 19 09:33:04 2007 UTC (16 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: hpcarm-cleanup
Changes since 1.48: +91 -86 lines
Diff to previous 1.48 (colored) to selected 1.61 (colored)

Update and add locking to ufs_quota:

- Replace DQ_LOCK/DQ_WANT/sleep/wakeup with a mutex `dq_interlock'.  Use this
  mutex to protect all quota values and flags.
- Protect the hashtable with a mutex.
- Never update quotas for the quota files on the same file system.  Prevents
  a deadlock when dqsync() has to change the  quota file's size (PR #13942).

Reviewed by:	Andrew Doran <ad@netbsd.org>
		Bill Stouder-Studenmund <wrstuden@netbsd.org>

Revision 1.44.2.4 / (download) - annotate - [select for diffs], Sun Jul 15 13:28:21 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.44.2.3: +113 -41 lines
Diff to previous 1.44.2.3 (colored) to branchpoint 1.44 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:51 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.44: +113 -45 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Jul 10 09:50:09 2007 UTC (16 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.47: +107 -40 lines
Diff to previous 1.47 (colored) to selected 1.61 (colored)

Move `struct dquot' and its supporting functions from quota.h to ufs_quota.c.

- Make quota-internal functions static.
- Clean up declarations in quota.h and ufs_extern.h.  quota.h now has the
  description of quota criterions, on-disk structure, user-kernel interface and
  declaration of init/done functions.  All ufs quota related function
  prototypes go to ufs_extern.h.
- New functions ufsquota_init() and ufsquota_free() create or destroy the
  quota fields of `struct inode'.
- chkdq() and chkiq() always update the quota fields of `struct inode' first.
- Only ufs_access() explicitely calls getinoquota().

No objections on tech-kern@

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jun 30 09:37:54 2007 UTC (16 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.46: +7 -3 lines
Diff to previous 1.46 (colored) to selected 1.61 (colored)

Using POOL_INIT here makes no sense, since file systems always have
an init method.  So get rid of it and #ifdef _LKM and just always
init in the init method.  Give malloc types the same treatment.
Makes file systems nicer to work with in linksetless environments
and fixes a few LKM discrepancies.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Thu Jun 28 12:36:00 2007 UTC (16 years, 9 months ago) by ghen
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by hannken in ticket #747):
	sys/ufs/ufs/ufs_quota.c: revision 1.46
	sys/ufs/ufs/quota.h: revision 1.24
	sys/sys/param.h: patch
If a quota-enabled file system has 65536 active vnodes for one uid
the reference counter of the corresponding struct dquot will overflow.
Change the type of the reference counter from u_int16_t to u_int32_t and
add an assertion to check for overflow.
Bump kernel version as LKM's depending on UFS internals will have to be
recompiled after this change (discussed and approved on tech-kern).

Revision 1.33.6.1 / (download) - annotate - [select for diffs], Thu Jun 28 11:43:30 2007 UTC (16 years, 9 months ago) by ghen
Branch: netbsd-3-1
CVS Tags: netbsd-3-1-1-RELEASE
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by hannken in ticket #1807):
	sys/ufs/ufs/ufs_quota.c: revision 1.46
	sys/ufs/ufs/quota.h: revision 1.24
	sys/sys/param.h: patch
If a quota-enabled file system has 65536 active vnodes for one uid
the reference counter of the corresponding struct dquot will overflow.
Change the type of the reference counter from u_int16_t to u_int32_t and
add an assertion to check for overflow.
Bump kernel version as LKM's depending on UFS internals will have to be
recompiled after this change (discussed and approved on tech-kern).

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Thu Jun 28 11:43:21 2007 UTC (16 years, 9 months ago) by ghen
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by hannken in ticket #1807):
	sys/ufs/ufs/ufs_quota.c: revision 1.46
	sys/ufs/ufs/quota.h: revision 1.24
	sys/sys/param.h: patch
If a quota-enabled file system has 65536 active vnodes for one uid
the reference counter of the corresponding struct dquot will overflow.
Change the type of the reference counter from u_int16_t to u_int32_t and
add an assertion to check for overflow.
Bump kernel version as LKM's depending on UFS internals will have to be
recompiled after this change (discussed and approved on tech-kern).

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Thu Jun 28 11:43:11 2007 UTC (16 years, 9 months ago) by ghen
Branch: netbsd-3
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by hannken in ticket #1807):
	sys/ufs/ufs/ufs_quota.c: revision 1.46
	sys/ufs/ufs/quota.h: revision 1.24
	sys/sys/param.h: patch
If a quota-enabled file system has 65536 active vnodes for one uid
the reference counter of the corresponding struct dquot will overflow.
Change the type of the reference counter from u_int16_t to u_int32_t and
add an assertion to check for overflow.
Bump kernel version as LKM's depending on UFS internals will have to be
recompiled after this change (discussed and approved on tech-kern).

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 23 14:56:10 2007 UTC (16 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.45: +3 -2 lines
Diff to previous 1.45 (colored) to selected 1.61 (colored)

If a quota-enabled file system has 65536 active vnodes for one uid
the reference counter of the corresponding struct dquot will overflow.

Change the type of the reference counter from u_int16_t to u_int32_t and
add an assertion to check for overflow.

Observed and tested by Edgar Fu

Welcome to 4.99.21 (struct dquot and therefore struct inode changed layout)

Revision 1.44.2.3 / (download) - annotate - [select for diffs], Sun Jun 17 21:32:18 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.44.2.2: +4 -4 lines
Diff to previous 1.44.2.2 (colored) to branchpoint 1.44 (colored) to selected 1.61 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Sun Apr 15 16:04:09 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.43.2.1: +2 -6 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:55 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.44.2.1: +2 -6 lines
Diff to previous 1.44.2.1 (colored) to branchpoint 1.44 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Apr 7 14:21:52 2007 UTC (17 years ago) by hannken
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Changes since 1.44: +2 -6 lines
Diff to previous 1.44 (colored) to selected 1.61 (colored)

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

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:51:52 2007 UTC (17 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.44: +8 -8 lines
Diff to previous 1.44 (colored) to selected 1.61 (colored)

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

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 06:01:11 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.43: +14 -14 lines
Diff to previous 1.43 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:48 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.43: +14 -14 lines
Diff to previous 1.43 (colored) to selected 1.61 (colored)

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

Revision 1.34.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:12:24 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.2: +5 -4 lines
Diff to previous 1.34.2.2 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.41.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:25 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.41.4.1: +5 -4 lines
Diff to previous 1.41.4.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jan 4 16:55:30 2007 UTC (17 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.42: +5 -4 lines
Diff to previous 1.42 (colored) to selected 1.61 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.34.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:51:01 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34.2.1: +22 -17 lines
Diff to previous 1.34.2.1 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:49 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.41: +18 -11 lines
Diff to previous 1.41 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:51 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.41: +18 -11 lines
Diff to previous 1.41 (colored) next main 1.42 (colored) to selected 1.61 (colored)

sync with head

Revision 1.42 / (download) - annotate - [select for diffs], Fri Oct 20 18:58:13 2006 UTC (17 years, 6 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.41: +18 -11 lines
Diff to previous 1.41 (colored) to selected 1.61 (colored)

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

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

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

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 03:00:13 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.37: +32 -35 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.61 (colored)

sync with head

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:47:37 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.38.2.2: +6 -8 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.61 (colored)

sync with head

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

Use the LWP cached credentials where sane.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:54:50 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.38.2.1: +12 -12 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:39 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.34: +60 -107 lines
Diff to previous 1.34 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:11:44 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.39: +12 -12 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Jun 7 22:34:44 2006 UTC (17 years, 10 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.39: +12 -12 lines
Diff to previous 1.39 (colored) to selected 1.61 (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.37.6.3 / (download) - annotate - [select for diffs], Thu Jun 1 22:39:44 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.37.6.2: +20 -19 lines
Diff to previous 1.37.6.2 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.38.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:48 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.38: +20 -19 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.61 (colored)

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

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:59:26 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.38: +20 -19 lines
Diff to previous 1.38 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Sun May 14 21:33:39 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.38: +20 -19 lines
Diff to previous 1.38 (colored) to selected 1.61 (colored)

integrate kauth.

Revision 1.38.4.2 / (download) - annotate - [select for diffs], Sat May 6 23:32:58 2006 UTC (17 years, 11 months ago) by christos
Branch: elad-kernelauth
Changes since 1.38.4.1: +3 -2 lines
Diff to previous 1.38.4.1 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.61 (colored)

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

Approved by core.

Revision 1.37.6.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:27 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.37.6.1: +4 -6 lines
Diff to previous 1.37.6.1 (colored) to branchpoint 1.37 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:39:12 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.38: +19 -19 lines
Diff to previous 1.38 (colored) to selected 1.61 (colored)

Adapt to kernel authorization KPI.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:33 2006 UTC (18 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.37: +4 -6 lines
Diff to previous 1.37 (colored) to selected 1.61 (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.37.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:12:50 2006 UTC (18 years, 2 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.37: +12 -12 lines
Diff to previous 1.37 (colored) to selected 1.61 (colored)

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

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Sat Dec 31 12:37:20 2005 UTC (18 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.37: +4 -6 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.61 (colored)

adapt some random parts of kernel to uio_vmspace.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Dec 27 04:06:46 2005 UTC (18 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored) to selected 1.61 (colored)

changes for making DIAGNOSTIC not change the kernel ABI:
 - for structure fields that are conditionally present,
   make those fields always present.
 - for functions which are conditionally inline, make them never inline.
 - remove some other functions which are conditionally defined but
   don't actually do anything anymore.
 - make a lock-debugging function conditional on only LOCKDEBUG.

as discussed on tech-kern some time back.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:28 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.35: +13 -11 lines
Diff to previous 1.35 (colored) to selected 1.61 (colored)

merge ktrace-lwp.

Revision 1.35.6.2 / (download) - annotate - [select for diffs], Fri Nov 18 08:44:55 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-readahead
CVS Tags: yamt-readahead-pervnode
Changes since 1.35.6.1: +1 -1 lines
Diff to previous 1.35.6.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.61 (colored)

- associate read-ahead context to vnode, rather than file.
- revert VOP_READ prototype.

Revision 1.35.6.1 / (download) - annotate - [select for diffs], Tue Nov 15 03:48:47 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-readahead
CVS Tags: yamt-readahead-perfile
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.61 (colored)

adapt ffs, lfs, nfs.

Revision 1.27.2.9 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:39 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.27.2.8: +28 -76 lines
Diff to previous 1.27.2.8 (colored) next main 1.28 (colored) to selected 1.61 (colored)

Sync with HEAD. Here we go again...

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jul 10 00:18:52 2005 UTC (18 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-readahead
Changes since 1.34: +27 -75 lines
Diff to previous 1.34 (colored) to selected 1.61 (colored)

- Use ANSI function decls.
- Sprinkle some static.

Revision 1.34 / (download) - annotate - [select for diffs], Sun May 29 21:25:24 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) to selected 1.61 (colored)

- sprinkle const
- avoid shadow variables.

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:39 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.61 (colored)

sync with -current

Revision 1.32.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:37:07 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.61 (colored)

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

Revision 1.27.2.8 / (download) - annotate - [select for diffs], Fri Mar 4 16:55:00 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.27.2.7: +3 -3 lines
Diff to previous 1.27.2.7 (colored) to selected 1.61 (colored)

Sync with HEAD.

Hi Perry!

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

nuke trailing whitespace

Revision 1.27.2.7 / (download) - annotate - [select for diffs], Wed Oct 27 06:24:01 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.27.2.6: +3 -4 lines
Diff to previous 1.27.2.6 (colored) to selected 1.61 (colored)

Remove the struct lwp * arguments from qsync and ufs_checkpath that are
no longer (read: were never) required.

Revision 1.27.2.6 / (download) - annotate - [select for diffs], Tue Sep 21 13:39:22 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.27.2.5: +17 -14 lines
Diff to previous 1.27.2.5 (colored) to selected 1.61 (colored)

Fix the sync with head I botched.

Revision 1.27.2.5 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:59 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.27.2.4: +14 -17 lines
Diff to previous 1.27.2.4 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Sep 17 14:11:27 2004 UTC (19 years, 7 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.31: +4 -4 lines
Diff to previous 1.31 (colored) to selected 1.61 (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.27.2.4 / (download) - annotate - [select for diffs], Wed Aug 25 06:59:15 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.27.2.3: +6 -9 lines
Diff to previous 1.27.2.3 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:56 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.27.2.2: +5 -5 lines
Diff to previous 1.27.2.2 (colored) to selected 1.61 (colored)

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

Revision 1.31 / (download) - annotate - [select for diffs], Sun Aug 15 07:19:58 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.30: +6 -9 lines
Diff to previous 1.30 (colored) to selected 1.61 (colored)

Fixing age old cruft:
* Rather than using mnt_maxsymlinklen to indicate that a file systems returns
  d_type fields(!), add a new internal flag, IMNT_DTYPE.

Add 3 new elements to ufsmount:
* um_maxsymlinklen, replaces mnt_maxsymlinklen (which never should have existed
  in the first place).
* um_dirblksiz, which tracks the current directory block size, eliminating the
  FS-specific checks littered throughout the code.  This may be used later to
  make the block size variable.
* um_maxfilesize, which is the maximum file size, possibly adjusted lower due
  to implementation issues.

Sync some bug fixes from FFS into ext2fs, particularly:
* ffs_lookup.c 1.21, 1.28, 1.33, 1.48
* ffs_inode.c 1.43, 1.44, 1.45, 1.66, 1.67
* ffs_vnops.c 1.84, 1.85, 1.86

Clean up some crappy pointer frobnication.

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:57:00 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.27.2.1: +7 -7 lines
Diff to previous 1.27.2.1 (colored) to selected 1.61 (colored)

Sync with HEAD

Revision 1.30 / (download) - annotate - [select for diffs], Wed Nov 5 10:18:38 2003 UTC (20 years, 5 months ago) by hannken
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.29: +3 -5 lines
Diff to previous 1.29 (colored) to selected 1.61 (colored)

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

From Darrin B. Jewell.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 15 11:29:01 2003 UTC (20 years, 6 months ago) by hannken
Branch: MAIN
Changes since 1.28: +8 -2 lines
Diff to previous 1.28 (colored) to selected 1.61 (colored)

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

From FreeBSD with slight modifications.

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

Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:46 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.27: +3 -7 lines
Diff to previous 1.27 (colored) to selected 1.61 (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.27.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:27 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.27: +20 -17 lines
Diff to previous 1.27 (colored) to selected 1.61 (colored)

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

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

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

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

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

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:29 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.24: +20 -17 lines
Diff to previous 1.24 (colored) to selected 1.61 (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.24 / (download) - annotate - [select for diffs], Wed Apr 2 10:39:44 2003 UTC (21 years ago) by fvdl
Branch: MAIN
Changes since 1.23: +14 -14 lines
Diff to previous 1.23 (colored) to selected 1.61 (colored)

Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:54 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 (colored) to selected 1.61 (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.20.6.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:05:24 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.20: +48 -19 lines
Diff to previous 1.20 (colored) next main 1.21 (colored) to selected 1.61 (colored)

Sync kqueue branch with -current.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:19:02 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.20.2.1: +5 -1 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored) to selected 1.61 (colored)

Catch up to -current.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:51 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.21: +5 -1 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.61 (colored)

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

Revision 1.22 / (download) - annotate - [select for diffs], Thu Nov 8 02:39:17 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Changes since 1.21: +5 -1 lines
Diff to previous 1.21 (colored) to selected 1.61 (colored)

add RCSID

Revision 1.20.8.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:48:34 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.20: +44 -19 lines
Diff to previous 1.20 (colored) next main 1.21 (colored) to selected 1.61 (colored)

Catch up with -current.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Fri Sep 21 22:37:09 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20: +44 -19 lines
Diff to previous 1.20 (colored) to selected 1.61 (colored)

Catch up to -current.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 15 16:13:07 2001 UTC (22 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.20: +44 -19 lines
Diff to previous 1.20 (colored) to selected 1.61 (colored)

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

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

Revision 1.12.12.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:06:55 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.12.12.1: +3 -2 lines
Diff to previous 1.12.12.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.12.12.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:54 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.12: +47 -33 lines
Diff to previous 1.12 (colored) to selected 1.61 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.20 / (download) - annotate - [select for diffs], Wed Nov 8 14:28:16 2000 UTC (23 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base, perseant-lfsv2-base, perseant-lfsv2
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored) to selected 1.61 (colored)

Update for hashinit() change.

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Wed Jul 5 17:18:27 2000 UTC (23 years, 9 months ago) by jdolecek
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored) next main 1.18 (colored) to selected 1.61 (colored)

pullup 1.18, 1.19 from trunk (requsted by mjacob, approved by thorpej):
adapt to tablefull() change, hopefully the hint is helpfull

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jul 5 17:08:14 2000 UTC (23 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored) to selected 1.61 (colored)

kern.maxvnodes (and hence desireddquot) depends more directly on NVNODE than
on NPROC, adjust the hint to tablefull() accordingly

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 4 20:31:55 2000 UTC (23 years, 9 months ago) by mjacob
Branch: MAIN
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored) to selected 1.61 (colored)

Add missing second argument to tablefull call. I *think* the added
message makes sense- somebody might want to check it.

Revision 1.17 / (download) - annotate - [select for diffs], Sat May 27 04:52:42 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.16: +8 -8 lines
Diff to previous 1.16 (colored) to selected 1.61 (colored)

sleep() -> tsleep()

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 20 03:25:14 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored) to selected 1.61 (colored)

In chkdq(), check for NOCRED.  Should fix port-alpha/10147.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 30 12:41:14 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.14: +22 -22 lines
Diff to previous 1.14 (colored) to selected 1.61 (colored)

Remove register declarations.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 16 18:26:49 2000 UTC (24 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.13: +10 -2 lines
Diff to previous 1.13 (colored) to selected 1.61 (colored)

Change ufs_init() to keep global count of how many times it was called.
Resources are initialized still just once (on first call).

Add ufs_done(), which takes care of freeing all resources allocated in
ufs_init(). The resources are freed only when last user of the code exits.

Revision 1.12.18.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:41 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.12: +6 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.61 (colored)

Pull up to last week's -current.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:15 1999 UTC (24 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.12: +6 -2 lines
Diff to previous 1.12 (colored) to selected 1.61 (colored)

Add Kirk McKusick's soft updates code to the trunk. Not enabled by
default, as the copyright on the main file (ffs_softdep.c) is such
that is has been put into gnusrc. options SOFTDEP will pull this
in. This code also contains the trickle syncer.

Bump version number to 1.4O

Revision 1.12.14.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:50:52 1999 UTC (24 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.12: +6 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.61 (colored)

Bring in Kirk McKusick's FFS softdep code on a branch.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Aug 9 20:15:40 1998 UTC (25 years, 8 months ago) by perry
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.61 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:37 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.10: +35 -34 lines
Diff to previous 1.10 (colored) to selected 1.61 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:14:08 1998 UTC (26 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +62 -85 lines
Diff to previous 1.1.1.1 (colored) to selected 1.61 (colored)

Import 4.4BSD-Lite2

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

Import 4.4BSD-Lite for reference

Revision 1.10 / (download) - annotate - [select for diffs], Sat Feb 7 02:45:04 1998 UTC (26 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.61 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 11 10:10:14 1997 UTC (26 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.8: +9 -9 lines
Diff to previous 1.8 (colored) to selected 1.61 (colored)

Add support for ext2fs, this needed a few modifications to ufs/ufs/inode.h:
- added an "union inode_ext" to struct inode, for the per-fs extentions.
  For now only ext2fs uses it.
- i_din is now an union:
	union {
		struct  dinode ffs_din; /* 128 bytes of the on-disk dinode. */
		struct ext2fs_dinode e2fs_din; /* 128 bytes of the on-disk dinode. */
	} i_din
  Added a lot of #define i_ffs_* and i_e2fs_* to access the fields.
- Added two macros: FFS_ITIMES and EXT2FS_ITIMES. ITIMES calls the rigth
  macro, depending on the time of the inode. ITIMES is used where necessary,
  FFS_ITIMES and EXT2FS_ITIMES in other places.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 9 22:36:09 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.7: +12 -10 lines
Diff to previous 1.7 (colored) to selected 1.61 (colored)

ufs prototype changes

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 8 01:51:38 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.61 (colored)

cast pointer to long, not int

Revision 1.6 / (download) - annotate - [select for diffs], Wed Dec 14 19:03:13 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.61 (colored)

Remove extra arg to vn_open().

Revision 1.5 / (download) - annotate - [select for diffs], Tue Dec 13 10:45:35 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +27 -54 lines
Diff to previous 1.4 (colored) to selected 1.61 (colored)

Sync with CSRG.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 14 06:03:35 1994 UTC (29 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) to selected 1.61 (colored)

added extra argument to vn_open

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 20 04:21:22 1994 UTC (29 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.61 (colored)

update for new syscall args description mechanism, and deal safely
with wider types.

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

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

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 8 11:43:20 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Diff to selected 1.61 (colored)

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

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>