summaryrefslogtreecommitdiff
path: root/quota.c
AgeCommit message (Collapse)Author
2018-01-10Implement manual choice of output unitJan Kara
Add an optional argument to option -s allowing user to manually specify units used for outputting results. Signed-off-by: Jan Kara <jack@suse.cz>
2017-08-31quota: Return non-zero exit code when getting quota failsIan Chard
Make sure we return with non-zero exit code when getting quotas for some user fails. Signed-off-by: Ian Chard <flup@users.sf.net> Signed-off-by: Jan Kara <jack@suse.cz>
2017-02-09quota-tools: add missing newline to die() messagesTheodore Ts'o
Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Jan Kara <jack@suse.cz>
2016-03-31quota: Add project quota supportJan Kara
Signed-off-by: Li Xi <lixi@ddn.com> Signed-off-by: Jan Kara <jack@suse.cz>
2016-03-30Use NGROUPS_MAX instead of NGROUPSTheodore Ts'o
NGRROUPS_MAX is what is defined by SuSv3; NGROUPS is not guaranteed by any standard, but is just an ancient BSD'ism. Since Android's bionic libc has the former but not the latter, let's use NGROUPS_MAX instead. Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Jan Kara <jack@suse.cz>
2014-12-02Create new autotools buildsystemTomáš Chvátal
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>
2013-03-13Fix various usage mistakesPetr Písař
quota: Fix long variant for -A option in usage repquota: Fix long variant for -c option in usage and manual repquota: Fix long variant for -C option in usage and manual repquota: Add -a, --all options to usage Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2012-02-29Typo fixes, message changes for easier i18nJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2011-05-16Make global symbols static as possiblePetr Pisar
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>
2011-01-11Make quota, setquota, and edquota recognize -h optionOndrej Vasik
Signed-off-by: Jan Kara <jack@suse.cz>
2010-09-14quota: Allow printing of mountpointJan Kara
Add options for quota(1) to print mount point as a part of a filesystem identification and also do not print device a s part of a filesystem identification. Signed-off-by: Jan Kara <jack@suse.cz>
2010-01-05* Rewritten configuration script to create config.h (Jan Kara)jkar8572
* Use /proc/mounts for mountpoint scanning (Jan Kara) * Removed use of reserved identifiers (Jan Kara)
2009-12-1464-bit quota support.jkar8572
2009-10-20Improved header of quota and repquota headers in case -s option is used.jkar8572
2008-04-21Format string fixes (Ladislav Michnovic)jkar8572
2007-09-18Updated manpages to explain --no-mixed-paths (Jan Kara)jkar8572
Changed the defaults so that tools now use NFSv4 pathnames without leading / by default (Jan Kara)
2007-08-23Added options to enable pathname mangling for NFSv4 (Jan Kara)jkar8572
2007-06-20Added -p option to quota(1).jkar8572
2007-03-26Include stdlib.h in quota.c (Mike Frysinger)jkar8572
2007-02-22Fix in option parsing of quota(1) for -A option.jkar8572
2007-02-22* added option -A to quota(1) to report all NFS mountpoints (Jan Kara)jkar8572
2006-05-13Changed option parsing to use long options (Jan Kara)jkar8572
Added option to always resolve even numeric names (Jan Kara) Corrected a few typos in manpaged (Jan Kara, Justin Pryzby)
2005-11-21Corrected some informal language in error messages (Jan Kara)jkar8572
Quota(1) has now -f option to specify a list of filesystems (Jan Kara)
2005-10-25Changed mountpoint scanning so that we don't even stat NFS mountpoints whenjkar8572
local-only flag was specified. Hence we don't block if NFS is down. (Jan Kara)
2005-09-13Fix handling of UID and GID - they are unsigned. (Matthew Kent)jkar8572
2005-07-19quota(1) now shows grace time even if hardlimit is reached (Jan Kara)jkar8572
Added option to quota(1) to not wrap lines when device name is long (Jan Kara)
2004-04-20Get maximal number of groups via sysconf() (Nathan Scott)jkar8572
2004-04-14Added batch mode of setquota(8) (Jan Kara)jkar8572
2003-02-14Added option to ignore autofs mountpoints to quota(1), quot(8) and ↵jkar8572
repquota(8) (Jan Kara, Paul Szabo)
2002-07-23* fixed quotacheck(8) to continue when old quota files were not found (Jan Kara)jkar8572
* 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)
2002-05-20Fixed printing of sign 'over soft quota' in quota(1)jkar8572
Fixed detection of XFS.
2002-04-08Small fixes in printing quota grace timesjkar8572
2002-03-27Fixed bug in quota(1) return code.jkar8572
Rewritten detection of kernel version. Added support for generic interface for both quota formats in kernel.
2002-03-05Fixed minor bug in printing grace times for quota(1) (Jan Kara)jkar8572
2001-08-15Fixed a few error messages.jkar8572
Implemented new mountpoint scanning. Implemented caching for scanning in old quota format. Implemented automatic choice of appropriate units in repquota, quota.
2001-07-17Updated format string in quota(1) to force spaces between numbers.jkar8572
2001-05-02Added mntopt.h to dependencies in Makefile.in.jkar8572
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.
2001-04-26Fixed underscore bug (Nathan Scott)jkar8572
EOF -> -1 (Michael Meskes)
2001-04-25Fixed some compile time bugs.jkar8572
2001-04-04Merged with RedHat patch - mainly documentation issuesjkar8572
Added some forgotten _() around strings. Added sponsoring notes Removed mandatory -F from quotacheck.
2001-03-23Initial revisionjkar8572