summaryrefslogtreecommitdiff
path: root/repquota.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement manual choice of output unitJan Kara2018-01-101-29/+38
| | | | | | | 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>
* repquota: use the same whitespace for quotaio_meta as quotaio_v2Theodore Ts'o2016-04-041-2/+3
| | | | | | | | | | If a quota implementation does not have a report function, such as quotaio_meta, print the same white spaces so that xfstests generic/235 doesn't fail. The extra white sapce makes it easier to read the output, and consistency is a good thing in any case. Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Jan Kara <jack@suse.cz>
* repquota: Add project quota supportJan Kara2016-03-311-4/+27
| | | | | Signed-off-by: Li Xi <lixi@ddn.com> Signed-off-by: Jan Kara <jack@suse.cz>
* repquota: -F option takes an argEric Sandeen2016-01-191-1/+1
| | | | | | | | | | Commit a5876145 added a new -O option which takes an argument, but in the process lost the argument specifier for "F". As a result, the use of "-F" segfaults when NULL is sent to name2fmt() instead of the provided argument. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
* Create new autotools buildsystemTomáš Chvátal2014-12-021-1/+1
| | | | | | | | | | | 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>
* Silent a set-but-not-used warning about sbflagsPetr Písař2013-10-291-5/+8
| | | | | | | | If XFS_ROOTHACK is not defined, sbflags gets set but never used. This patch declares the variable only if needed. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
* Add support for CVS and XML output formats to repquota(8)Jan Kara2013-10-031-18/+98
| | | | | | | | JK: Fixup localization and handling of multiple output filesystems / types. Signed-off-by: Jonathan Overholt <jonathan@overholt.org> Signed-off-by: Jan Kara <jack@suse.cz>
* Fix various usage mistakesPetr Písař2013-03-131-2/+3
| | | | | | | | | | 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>
* Further i18n fixesJan Kara2012-03-021-1/+1
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Make global symbols static as possiblePetr Pisar2011-05-161-5/+5
| | | | | | | | | | | | | | 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>
* Implement repquota for filesystems without quota filesJan Kara2011-05-051-2/+2
| | | | | | | | | | Some filesystem do not have quota files accessible from userspace. For these implementing ->scan_dquots() used by repquota is problematic. What we do is that we iterate over all users and ask for quota information for each of them. XFS already does this so make its code generic and use it for all filesystems using quotaio_meta.c - only OCFS2 these days. Signed-off-by: Jan Kara <jack@suse.cz>
* Fix --truncate-names descriptionJan Kara2011-01-111-1/+1
| | | | | | The names are actually truncated to 9 characters, not 8. Signed-off-by: Jan Kara <jack@suse.cz>
* * Rewritten configuration script to create config.h (Jan Kara)jkar85722010-01-051-0/+2
| | | | | * Use /proc/mounts for mountpoint scanning (Jan Kara) * Removed use of reserved identifiers (Jan Kara)
* Improved header of quota and repquota headers in case -s option is used.jkar85722009-10-201-1/+7
|
* Fix repquota(8) to work with quotas over 4TB (Jan Kara, Michael Meier)jkar85722008-05-151-1/+1
|
* Format string fixes (Ladislav Michnovic)jkar85722008-04-211-2/+2
|
* * fixed XFS handling to work with loopback mounted devices (Jan Kara)jkar85722007-02-211-2/+2
| | | | | | * fixed mountpoints scanning to make XFS -x delete command work (Jan Kara) * fixes of signed vs unsigned int issues (Jan Kara) * fixed a format string bug in reporting of raw grace times in repquota (Jan Kara)
* Fixed error handling in edquota(8) when creating tmp files (Jan Kara)jkar85722006-10-301-5/+23
| | | | Added option to repquota(8) to print grace in better parsable format (Jan Kara)
* Changed option parsing to use long options (Jan Kara)jkar85722006-05-131-2/+31
| | | | | Added option to always resolve even numeric names (Jan Kara) Corrected a few typos in manpaged (Jan Kara, Justin Pryzby)
* Corrected some informal language in error messages (Jan Kara)jkar85722005-11-211-1/+1
| | | | Quota(1) has now -f option to specify a list of filesystems (Jan Kara)
* Changed mountpoint scanning so that we don't even stat NFS mountpoints whenjkar85722005-10-251-2/+2
| | | | local-only flag was specified. Hence we don't block if NFS is down. (Jan Kara)
* Added option to ignore autofs mountpoints to quota(1), quot(8) and ↵jkar85722003-02-141-4/+8
| | | | repquota(8) (Jan Kara, Paul Szabo)
* repquota(8) handles duplicate entries in /etc/passwd better (Jan Kara)jkar85722002-12-091-9/+13
|
* * fixed quotacheck(8) to continue when old quota files were not found (Jan Kara)jkar85722002-07-231-3/+21
| | | | | | | | | | * 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)
* Small fixes in printing quota grace timesjkar85722002-04-081-2/+2
|
* Fixed bug in quota(1) return code.jkar85722002-03-271-7/+1
| | | | | Rewritten detection of kernel version. Added support for generic interface for both quota formats in kernel.
* Fixed minor bug in grace time printing (Jan Kara)jkar85722002-02-271-2/+2
| | | | Fixed quotaon behaviour with "too new" kernels (Jan Kara)
* Updated repquota not to show grace times when softlimit is not exceeded.jkar85722001-12-121-2/+8
|
* Added -n option (don't resolve names) to repquota (not tested)jkar85722001-11-051-3/+16
|
* repquota now buffers entries to be printed when resolving is needed (major ↵jkar85722001-09-251-3/+63
| | | | | | speedup). Workaround for bug in RH 7.1 kernel (Anders Blomdell)
* Fixed a few error messages.jkar85722001-08-151-12/+20
| | | | | | Implemented new mountpoint scanning. Implemented caching for scanning in old quota format. Implemented automatic choice of appropriate units in repquota, quota.
* Fixed quotacheck -aRu segfault on / (thanks to Arkadiusz)jkar85722001-05-141-1/+3
| | | | Fixed repquota - due to bug in merging patches names were always truncated.
* Fixed bug in quotacheck for new format.jkar85722001-05-111-25/+33
| | | | | Fixed bug in version() in quot (Nathan). Added -t (truncate names) option to repquota.
* Fixed infinity loop for XFS repquota.jkar85722001-05-041-4/+2
|
* Added mntopt.h to dependencies in Makefile.in.jkar85722001-05-021-9/+19
| | | | | | | | | | | 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.
* Fixed underscore bug (Nathan Scott)jkar85722001-04-261-2/+2
| | | | EOF -> -1 (Michael Meskes)
* Updated manpages.jkar85722001-04-111-3/+3
| | | | | | Fixed small bug in repquota (User vs Group). Some XFS updates. Fixed problems with devfs and relative paths.
* Added ; between grace times (just to be compatible with RedHat).jkar85722001-04-041-1/+1
|
* Merged with RedHat patch - mainly documentation issuesjkar85722001-04-041-6/+9
| | | | | | Added some forgotten _() around strings. Added sponsoring notes Removed mandatory -F from quotacheck.
* Initial revisionjkar85722001-03-231-0/+160