History log of /netbsd/usr.sbin/quotaon/quotaon.c (Results 1 – 25 of 31)
Revision Date Author Comments
# dfeeae33 26-Apr-2022 hannken <hannken@NetBSD.org>

As the quota type comes from the kernel and is only valid when
quota is on get the type before quota_off and after quota_on.


# 4b41a04c 07-Apr-2012 christos <christos@NetBSD.org>

use getfsspecname()


# 40d87db9 30-Jan-2012 dholland <dholland@NetBSD.org>

Add quota_quotaon() and quota_quotaoff(). Use them in quotaon(8).


# a9179755 25-Jan-2012 dholland <dholland@NetBSD.org>

attribute noreturn -> __dead


# 14d305f3 30-Sep-2011 jym <jym@NetBSD.org>

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:
-

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@.

show more ...


# bec3b862 24-Mar-2011 bouyer <bouyer@NetBSD.org>

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 fil

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 ...)

show more ...


# 02cbca6d 06-Mar-2011 christos <christos@NetBSD.org>

use common utils


# 0367ea04 06-Mar-2011 bouyer <bouyer@NetBSD.org>

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

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.

show more ...


# 88c712c2 18-Apr-2009 lukem <lukem@NetBSD.org>

Fix -Wcast-qual issues


# 9c194566 21-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.


# 6bd1d6d4 21-Apr-2004 christos <christos@NetBSD.org>

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


# b635f565 05-Jan-2004 jmmv <jmmv@NetBSD.org>

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.


# 326b2259 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.


# b397c875 17-Feb-2003 perseant <perseant@NetBSD.org>

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_put

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.

show more ...


# eda9e509 20-Jul-2002 grant <grant@NetBSD.org>

sweep of errx/warnx, remove unnecessary trailing \n


# 25bdbb66 19-Feb-2001 cgd <cgd@NetBSD.org>

convert to use getprogname()


# bbef2fba 07-Jul-2000 itojun <itojun@NetBSD.org>

errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd


# 3ab02a87 04-Jul-2000 matt <matt@NetBSD.org>

More #include <stdlib.h> string, etc. cleanup


# 1f86e583 27-Jul-1998 mycroft <mycroft@NetBSD.org>

const poisoning.


# 75a6e035 03-Feb-1998 perry <perry@NetBSD.org>

change includes to fix compiler warning


# f23cf79e 22-Oct-1997 fair <fair@NetBSD.org>

Initialize "cp" to make gcc/sparc error go away:
quotaon.c:222: warning: `cp' might be used uninitialized in this function


# bffabae3 17-Oct-1997 lukem <lukem@NetBSD.org>

WARNSify


# 068fe25d 21-Jun-1997 lukem <lukem@NetBSD.org>

Display quota type in quotaoff verbose messages, and in warnings.
From Joao Carlos Mendes Luis <jonny@gaia.coppe.ufrj.br> in [bin/2099]


# 07461ac8 28-Sep-1996 christos <christos@NetBSD.org>

Misc cleanups.


# 630dc09e 30-Mar-1996 mark <mark@NetBSD.org>

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.


12