Age | Commit message (Collapse) | Author |
|
Commit b8ab76ad19e3c284ac14bd0450662bfc41719e03 creating split_nfs_mount()
forgot to remove zeroing of pathname character. That lead to broken reporting
quotas for NFSv3 mount points.
Thanks to anonymous reporter for spotting this.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
E.g. setquota -r root $((2**32)) 1000 10 10 /mnt/nfs/12tb
clamped the values into 32 bits and RPC server got 0 soft block limit.
This fixes simalar bug spotted in 8a4dc3612c6c170c05e5eef68dd3555baeb341c1
(Check whether set limits fit into the range supported by quota format.)
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
There are some calls (e.g. getpwnam(3)) that can lead to dlopening
other libraries that could jump to symbol with name clashing to one of
global quota symbols. (e.g. Name server switch plug-in nss_db calls
dirname(3) that's already defined in edquota.c and tht can cause
segmentation fault.)
Although it's not possible to solve all these problems, making as much
as possible global objects and functions static is the best thing we
can do to avoid name space polution.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
NFS handles server names with colons (usually IPv6 addresses) by encapsulating
them in brackets. Handle this properly.
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)
|
|
|
|
quota(1) and similar tools now use paths without leading / for NFSv4
mounts (Jan Kara)
|
|
|
|
used when it should be (Jan Kara)
|
|
Fixed reporting of quotas on NFS filesystem without quotas
|
|
Disabled setquota by default in config and daemon. (Jan Kara)
|
|
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.
|
|
|
|
quota will be forced).
|
|
|