History log of /netbsd/sys/ufs/ufs/ufs_quota2.c (Results 1 – 25 of 45)
Revision Date Author Comments
# d51593aa 22-Feb-2023 riastradh <riastradh@NetBSD.org>

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


# 051f0471 28-May-2022 andvar <andvar@NetBSD.org>

s/grabing/grabbing/ in comments.


# 7a06cada 15-Oct-2021 andvar <andvar@NetBSD.org>

fix typos in comments.


# 6f055a6d 05-Dec-2020 thorpej <thorpej@NetBSD.org>

Remove unnecessary inclusion of <sys/timevar.h>.


# 24c9a76a 01-Mar-2017 hannken <hannken@NetBSD.org>

Remove now redundant calls to fstrans_start()/fstrans_done().


# 613afde7 20-Nov-2016 riastradh <riastradh@NetBSD.org>

KASSERT(mutex_owner(...)) ---> KASSERT(mutex_owned(...))

Fixes part of PR kern/47114. Tested by code inspection.


# f61b6169 28-Mar-2015 maxv <maxv@NetBSD.org>

Remove the 'cred' argument from bread(). Remove a now unused var in
ffs_snapshot.c. Update the man page accordingly.

ok hannken@


# 30cc8b98 28-Jun-2014 dholland <dholland@NetBSD.org>

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

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.

show more ...


# b4a0d227 16-Mar-2014 uwe <uwe@NetBSD.org>

Shut up -Wuninitialized on sh3 with gcc 4.8


# d73ca53a 29-Jan-2014 bouyer <bouyer@NetBSD.org>

Patch from Edgar Fuß on tech-kern:
set grace time if lowering the limit cause the user/group to now be overquota.


# bcffe5db 20-Oct-2013 htodd <htodd@NetBSD.org>

Definining needswap where needed.


# cc2f3cd5 27-Sep-2012 bouyer <bouyer@NetBSD.org>

Fix quota2 list corruption issue when defaultquotas are 0 (deny any file
and block allocation).

When quota2_check() is called with an uid not yet in the list,
getinoquota2() will call quota2_q2eallo

Fix quota2 list corruption issue when defaultquotas are 0 (deny any file
and block allocation).

When quota2_check() is called with an uid not yet in the list,
getinoquota2() will call quota2_q2ealloc() to allocate a new entry for this
uid. quota2_q2ealloc() will remove an entry from the free list and
put it at the head of the corresponding hash list, and flush the block
containing the header if it's not the one also containing the allocated entry.
quota2_q2ealloc() then return the alocated entry and corresponding block
to caller (getinoquota2() here), which returns it to quota2_check().
quota2_check() then checks if the allocation can succeed, and returns and
error if not and calls brelse() on the buffer (because from his POW no
change was made to the entry), effectively discarding changes
to the entry that may have been made by quota2_q2ealloc().
Fix by always bwrite()ing the entry in quota2_q2ealloc(), and re-reading
the entry in caller.

show more ...


# e5409b53 13-Feb-2012 dholland <dholland@NetBSD.org>

Fix another problem with quota cursor iteration. ok riz


# 7c87fd90 05-Feb-2012 dholland <dholland@NetBSD.org>

Migrate one last leftover bit (used only by the kernel now) to
sys/ufs/ufs and remove the old quota headers and no-longer-used shared
code. Ok by releng.


# bd7570fc 01-Feb-2012 dholland <dholland@NetBSD.org>

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 matte

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.

show more ...


# 99640241 01-Feb-2012 dholland <dholland@NetBSD.org>

Fix problems in cursor iteration that came to light when iterating one
value at a time, instead of in bulk. Yeah, repquota should do bulk get,
but it doesn't yet.


# 5acd5a8b 29-Jan-2012 dholland <dholland@NetBSD.org>

Clean up quota2 cursoring, as promised earlier.


# f55aa32f 29-Jan-2012 dholland <dholland@NetBSD.org>

quota2_check_limit() is used in only one place, so don't stuff it in a
header file.


# 3066effb 29-Jan-2012 dholland <dholland@NetBSD.org>

Remove #if 0'd proplib-related code.


# f5c38285 29-Jan-2012 dholland <dholland@NetBSD.org>

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

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.

show more ...


# 6c788ef1 29-Jan-2012 dholland <dholland@NetBSD.org>

Add QUOTACTL_CURSORSKIPIDTYPE, QUOTACTL_CURSORATEND, QUOTACTL_CURSORREWIND.

This change requires a kernel version bump.


# 9ff2a109 29-Jan-2012 dholland <dholland@NetBSD.org>

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

This change requires a kernel version bump.


# b3481440 29-Jan-2012 dholland <dholland@NetBSD.org>

Fix a preexisting array overrun and a preexisting free twice exposed
by cleanup and testing.


# d039aaa8 29-Jan-2012 dholland <dholland@NetBSD.org>

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.


# dcf0a81f 29-Jan-2012 dholland <dholland@NetBSD.org>

Stop treating the default values specially in QUOTACTL_GETALL.

Note: this change requires a kernel version bump.


12