Age | Commit message (Collapse) | Author |
|
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Otherwise tool never updates quota because old mtime always <= new.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
When user doesn't edit the file with limits / grace times, there is no
need to overwrite the values in quota files. Maybe admin really wanted
to cancel the operation by not writing the file.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Error handling didn't properly free quota structures allocated for a
user when editing of limits failed for some reason. We also didn't bail
out when editing of grace times failed. Fix the problems by jumping to a
proper label.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Reopen the file with grace times - editor may have written the file into
a new inode and thus we cannot read the contents through the old fd.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Reflect what was done before and try to mimic it
Remove ChangeLog, now autogenerated for dist target
Remove confusing gettext README and try to add new approach for translations
[JK: Fixed build without RPC support]
Signed-off-by: Tomáš Chvátal <tchvatal@suse.cz>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
We reopened temporary file with editted quota limits in O_RDONLY mode after
user has edited the limits. This is problematic when edquota is called to
edit more users because then we cannot write limits for the next user to
the file. So reopen the file O_RDWR mode.
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>
|
|
Testing revealed that it's not easy to set even individual grace times
over RPC protocol. Since the usage of it is limited, just disallow that.
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)
|
|
|
|
* fixed possible segfault when unpriviledged user run edquota (Matthew Boyle)
|
|
Changed the defaults so that tools now use NFSv4 pathnames without leading / by default (Jan Kara)
|
|
|
|
Added option to repquota(8) to print grace in better parsable format (Jan Kara)
|
|
Added option to always resolve even numeric names (Jan Kara)
Corrected a few typos in manpaged (Jan Kara, Justin Pryzby)
|
|
Quota(1) has now -f option to specify a list of filesystems (Jan Kara)
|
|
local-only flag was specified. Hence we don't block if NFS is down. (Jan Kara)
|
|
|
|
|
|
|
|
Fixed warnquota formatting (Jan Kara)
Added -s option (smart choice of units) to warnquota (Jan Kara)
Updated documentation of quotactl call (Jan Kara)
|
|
repquota(8) (Jan Kara, Paul Szabo)
|
|
|
|
(Jan Kara)
|
|
* quota(1) now doesn't report failure to connect to rpc.rquotad server when -Q specified (Jan Kara)
* add quota(1) option -l (report only local filesystems) (Jan Kara)
* warnquota(8) now also mails specified member of the group about violation of the group quotas
when -g option is specified (Jan Kara)
* added options by which user can specify whether repquota(8) should translate names in
big chunks by scanning all users or individually. Added automagic detection using nsswitch.conf
which behaviour should lead to faster translating. (Jan Kara)
|
|
Rewritten detection of kernel version.
Added support for generic interface for both quota formats in kernel.
|
|
|
|
Implemented new mountpoint scanning.
Implemented caching for scanning in old quota format.
Implemented automatic choice of appropriate units in repquota, quota.
|
|
Grace times are now set when limits are set and usage is over limit.
Added LARGEFILE flag to CFLAGS.
|
|
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.
|
|
EOF -> -1 (Michael Meskes)
|
|
Fixed small bug in repquota (User vs Group).
Some XFS updates.
Fixed problems with devfs and relative paths.
|
|
|