Age | Commit message (Collapse) | Author |
|
The RPC transports grace time as unsigned int, but the value stored
there and retrivedd from is treated as singed difference against current time.
This leads to overflow after expiring the grace time which is
presented as an enourmously large grace time instead of "none" in the
quota(1) output.
There also possible an overflow when the time difference is still
bigger than an int can represent.
This first issue is solved by explicit type cast to/from int32_t, the
second issue is fixes by limiting the value into int32_t range.
<https://sourceforge.net/p/linuxquota/bugs/115/>
Signed-off-by: Petr Písař <ppisar@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
The computation counted with block limits as being in bytes. But they are
in quota blocks. Fix the math.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Teach quota tools to handle quotas in system files on ext4. For this to work,
we slightly rework mount option parsing to allow distinguisting between
ext4 with classical quota files and ext4 with quotas in system files.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Former static factor (RPC_DQBLK_SIZE_BITS) had problem to carry values
bigger than hard-coded limit (2^(32 + RPC_DQBLK_SIZE_BITS) - 1).
This patch makes the factor dynamic. It selects best value to prevent
overflow (XDR has 32b variables, some file system support 64b quotas)
and to achieve highest possible precision.
The client site uses the factor carried via RPC correctly.
There is similar problem with setquota. This patch does not address it,
however it can be easily resused and fixed.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
* Use /proc/mounts for mountpoint scanning (Jan Kara)
* Removed use of reserved identifiers (Jan Kara)
|
|
* added noreturn attribute to die to avoid false warnings (Jan Kara)
|
|
(Jan Kara)
|
|
make much sense. (Jan Kara)
|
|
|
|
quota(1) and similar tools now use paths without leading / for NFSv4
mounts (Jan Kara)
|
|
|
|
Fixed a few memleaks
Added two manpages
Fixed problem with all-zero root structure
|
|
|
|
Fixed reporting of quotas on NFS filesystem without quotas
|
|
|
|
|
|
rpc.rquotad now doesn't need mountpoint to get quota.
|
|
operate
safe on live filesystem.
|
|
Implemented better host access handling (from nfsutils rquotad).
|
|
|
|
Implemented new mountpoint scanning.
Implemented caching for scanning in old quota format.
Implemented automatic choice of appropriate units in repquota, quota.
|
|
|
|
Fixed SEGFAULT bug in rquota_server (when quota init failed)
|
|
quota will be forced).
|
|
Fixed MNTTYPE_REISER to proper string.
sprintf->snprintf
Merged Marco's patch with errstr(), configurable BSD behaviour
Fixed bug in quota detection
IO code now opens file only RO if possible.
IO code now doesn't open file if not required.
Fixed bug in quotaon.
Updated all manpages.
|
|
|