Up to [cvs.NetBSD.org] / src / usr.sbin / quotaon
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.30 / (download) - annotate - [select for diffs], Sat Apr 7 05:07:33 2012 UTC (13 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
tls-maxphys-nbase,
tls-maxphys-base,
tls-maxphys,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.29: +22 -13
lines
Diff to previous 1.29 (colored)
use getfsspecname()
Revision 1.29 / (download) - annotate - [select for diffs], Mon Jan 30 16:45:13 2012 UTC (15 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Changes since 1.28: +101 -84
lines
Diff to previous 1.28 (colored)
Add quota_quotaon() and quota_quotaoff(). Use them in quotaon(8).
Revision 1.28 / (download) - annotate - [select for diffs], Wed Jan 25 01:28:40 2012 UTC (15 months, 4 weeks ago) by dholland
Branch: MAIN
Changes since 1.27: +3 -3
lines
Diff to previous 1.27 (colored)
attribute noreturn -> __dead
Revision 1.27 / (download) - annotate - [select for diffs], Fri Sep 30 22:08:20 2011 UTC (19 months, 3 weeks ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.26: +4 -4
lines
Diff to previous 1.26 (colored)
Fix an implementation inconsistency with the prop_*_send_syscall() and
prop_*_recv_syscall() functions from proplib(3). They now share the
same logic as the one from prop_*_send_ioctl() functions:
- returns an int
- 0 indicates "no error", otherwise returns the error number (and
set errno)
Many consumers of the prop_*_{ioctl, syscall} expect errno to be set
on error and use err() to display the error message. As such, ensures that
errno gets set before returning from these functions.
prop_*_send_syscall() functions returned a boolean, and now return an int.
Fix all call sites to use the new paradigm (only quota2 is affected in src).
As the prop_*_{send,recv}_syscall() API appeared in -current and is only
used by the recent quota2 code, I am not bumping the lib. The API change
only affects the prop_*_send_syscall() function (recv_syscall()s were
already used correctly), so ensure you are not mixing "old" -current
quota binaries with a new proplib(3) (or the other way around). This
change will be announced via a HEADS-UP and UPDATING.
Does not affect the kernel part of proplib.
Document the correct API in prop_array(3) and prop_dictionary(3).
Thanks to Francois Tigeot for noticing the API inconsistency and
reporting it on tech-kern@.
ok bouyer@.
Revision 1.26 / (download) - annotate - [select for diffs], Thu Mar 24 17:05:47 2011 UTC (2 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: cherry-xenmp-base,
cherry-xenmp
Changes since 1.25: +8 -8
lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Sun Mar 6 23:24:33 2011 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.24: +39 -113
lines
Diff to previous 1.24 (colored)
use common utils
Revision 1.24 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:43 2011 UTC (2 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.23: +73 -18
lines
Diff to previous 1.23 (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.23 / (download) - annotate - [select for diffs], Sat Apr 18 08:20:41 2009 UTC (4 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jym-xensuspend-base,
bouyer-quota2-nbase,
bouyer-quota2-base
Branch point for: bouyer-quota2
Changes since 1.22: +4 -4
lines
Diff to previous 1.22 (colored)
Fix -Wcast-qual issues
Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 21 13:36:59 2008 UTC (4 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
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-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2
Branch point for: jym-xensuspend
Changes since 1.21: +4 -4
lines
Diff to previous 1.21 (colored)
Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
Revision 1.21 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:48 2004 UTC (9 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: wrstuden-revivesa
Changes since 1.20: +5 -5
lines
Diff to previous 1.20 (colored)
Replace the statfs() family of system calls with statvfs(). Retain binary compatibility.
Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:38 2004 UTC (9 years, 4 months ago) by jmmv
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,
netbsd-2
Changes since 1.19: +3 -3
lines
Diff to previous 1.19 (colored)
Homogenize usage messages: make the 'usage' word all lowercase, as this seems to be the most common practice in our tree.
Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 7 11:25:40 2003 UTC (9 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.18: +3 -7
lines
Diff to previous 1.18 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22366, verified by myself.
Revision 1.18 / (download) - annotate - [select for diffs], Mon Feb 17 23:48:25 2003 UTC (10 years, 3 months ago) by perseant
Branch: MAIN
Changes since 1.17: +4 -3
lines
Diff to previous 1.17 (colored)
Add code to UBCify LFS. This is still behind "#ifdef LFS_UBC" for now (there are still some details to work out) but expect that to go away soon. To support these basic changes (creation of lfs_putpages, lfs_gop_write, mods to lfs_balloc) several other changes were made, to wit: * Create a writer daemon kernel thread whose purpose is to handle page writes for the pagedaemon, but which also takes over some of the functions of lfs_check(). This thread is started the first time an LFS is mounted. * Add a "flags" parameter to GOP_SIZE. Current values are GOP_SIZE_READ, meaning that the call should return the size of the in-core version of the file, and GOP_SIZE_WRITE, meaning that it should return the on-disk size. One of GOP_SIZE_READ or GOP_SIZE_WRITE must be specified. * Instead of using malloc(...M_WAITOK) for everything, reserve enough resources to get by and use malloc(...M_NOWAIT), using the reserves if necessary. Use the pool subsystem for structures small enough that this is feasible. This also obsoletes LFS_THROTTLE. And a few that are not strictly necessary: * Moves the LFS inode extensions off onto a separately allocated structure; getting closer to LFS as an LKM. "Welcome to 1.6O." * Unified GOP_ALLOC between FFS and LFS. * Update LFS copyright headers to correct values. * Actually cast to unsigned in lfs_shellsort, like the comment says. * Keep track of which segments were empty before the previous checkpoint; any segments that pass two checkpoints both dirty and empty can be summarily cleaned. Do this. Right now lfs_segclean still works, but this should be turned into an effectless compatibility syscall.
Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 20 08:40:20 2002 UTC (10 years, 10 months ago) by grant
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.16: +3 -3
lines
Diff to previous 1.16 (colored)
sweep of errx/warnx, remove unnecessary trailing \n
Revision 1.16 / (download) - annotate - [select for diffs], Mon Feb 19 23:22:46 2001 UTC (12 years, 3 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-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
Changes since 1.15: +8 -8
lines
Diff to previous 1.15 (colored)
convert to use getprogname()
Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 7 15:11:46 2000 UTC (12 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.14: +3 -3
lines
Diff to previous 1.14 (colored)
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 4 20:27:39 2000 UTC (12 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.13: +3 -2
lines
Diff to previous 1.13 (colored)
More #include <stdlib.h> string, etc. cleanup
Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 27 00:52:03 1998 UTC (14 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
netbsd-1-5-base,
netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
minoura-xpg4dl-base,
minoura-xpg4dl,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.12: +5 -4
lines
Diff to previous 1.12 (colored)
const poisoning.
Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 3 05:00:42 1998 UTC (15 years, 3 months ago) by perry
Branch: MAIN
Changes since 1.11: +6 -5
lines
Diff to previous 1.11 (colored)
change includes to fix compiler warning
Revision 1.11 / (download) - annotate - [select for diffs], Wed Oct 22 18:43:16 1997 UTC (15 years, 7 months ago) by fair
Branch: MAIN
Changes since 1.10: +3 -3
lines
Diff to previous 1.10 (colored)
Initialize "cp" to make gcc/sparc error go away: quotaon.c:222: warning: `cp' might be used uninitialized in this function
Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 17 12:40:10 1997 UTC (15 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.9: +5 -5
lines
Diff to previous 1.9 (colored)
WARNSify
Revision 1.9 / (download) - annotate - [select for diffs], Sat Jun 21 09:36:48 1997 UTC (15 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.8: +6 -4
lines
Diff to previous 1.8 (colored)
Display quota type in quotaoff verbose messages, and in warnings. From Joao Carlos Mendes Luis <jonny@gaia.coppe.ufrj.br> in [bin/2099]
Revision 1.8 / (download) - annotate - [select for diffs], Sat Sep 28 19:06:07 1996 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.7: +57 -39
lines
Diff to previous 1.7 (colored)
Misc cleanups.
Revision 1.7 / (download) - annotate - [select for diffs], Sat Mar 30 23:46:04 1996 UTC (17 years, 1 month ago) by mark
Branch: MAIN
CVS Tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Changes since 1.6: +4 -3
lines
Diff to previous 1.6 (colored)
Use an integer instead of a char to store the getopt() return value in order to match the prototype. Compare the getopt() return value with -1 instead of EOF.
Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 28 19:43:45 1995 UTC (17 years, 5 months ago) by jtc
Branch: MAIN
Changes since 1.5: +2 -2
lines
Diff to previous 1.5 (colored)
merge in changes from 1.1 release branch
Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 23 16:39:33 1994 UTC (18 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base
Branch point for: netbsd-1-1
Changes since 1.4: +2 -1
lines
Diff to previous 1.4 (colored)
add headers for prototypes.
Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 13 22:04:14 1994 UTC (18 years, 11 months ago) by mycroft
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.3: +7 -7
lines
Diff to previous 1.3 (colored)
Merge local changes.
Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 13 20:54:27 1994 UTC (18 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -2
lines
Diff to previous 1.2 (colored)
update for new fs includes
Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 1 17:57:07 1993 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +2 -1
lines
Diff to previous 1.1 (colored)
Add RCS identifiers.
Revision 1.1 / (download) - annotate - [select for diffs], Fri Apr 9 12:16:20 1993 UTC (20 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1,
netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9,
netbsd-0-8
added accton, edquota, flcopy, gettable, htable, iostat, quotaon, repquota, trpt, and trsp, per (currently alpha) patch 125.