summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-27respect CFLAGS in linking command wrt #446281Julian Ospald
Signed-off-by: Julian Ospald <hasufell@gentoo.org> Signed-off-by: Jan Kara <jack@suse.cz>
2014-04-24Explain in quota(1) manpage what 'blocks' in the output meanJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2013-12-02__cpu_to_le16 --> htole16Cristian Rodríguez
2013-12-02Use libc byteswapping routines not kernel onesCristian Rodríguez
macros/functions from endian.h are the proper, documented userspace interface to use.
2013-11-18quota_nld: Fix compilation warningJan Kara
Fix compilation warning about missing stat(3) prototype. Signed-off-by: Jan Kara <jack@suse.cz>
2013-11-18quota_nld: Fix usage of netlink multicast groupsJan Kara
quota_nld has used VFS_DQUOT netlink family id as an id of a multicast group to listen to. That is wrong - instead proper multicast group id should be looked up. To do that we need a support for this functionality in libnl so convert quota_nld to use libnl-3.0 and properly lookup multicast group id. Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-29Improve rpc.rquota(8) manual pagePetr Písař
This patch renames rquotad(8) to rpc.rquotad(8) to reflect the executable name. It also shows complete synopsis and documents --help option. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-29Add warnquota.conf(5) manual pagePetr Písař
Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-29Add quotatab(5) manual pagePetr Písař
Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-29Add quotagrpadmins(5) manual pagePetr Písař
Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-29Silent a set-but-not-used warning about sbflagsPetr Písař
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>
2013-10-03Add support for CVS and XML output formats to repquota(8)Jan Kara
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>
2013-08-14Remove installation of manpages into section 2Carsten Grohmann
There are no manpages in this section in quota tools anymore. So just remove the installation commands. Signed-off-by: Carsten Grohmann <cgrohmann@users.sf.net> Signed-off-by: Jan Kara <jack@suse.cz>
2013-06-21Close FILE handles on errorPetr Písař
Functions for reading quota specification in quotaops.c create new temporary FILE stream handle, they close it on successful return, but they forget to close it on unsuccessful return. That leads to memory leaks. This patch ensures that the handle gets closed in all cases. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-03-26Add AC_PREREQ to configure.inTheodore Ts'o
Debian will automatically switch between autoconf version 2.13 and modern autoconf based on the version number in the AC_PREREQ statement. Without the AC_PREREQ, debian's autoconf driver script will try to use autoconf 2.13, and the configure.in file uses autoconf macros which were introduced in the autoconf 2.50. So add an AC_PREREQ statement to make the right thing happen automatically. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> 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>
2013-03-13Correct quotasync exit codePetr Písař
This fixes `quotasync -h' exit code as well as it uses more portable EXIT_SUCCESS/EXIT_FAILURE values. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-03-13Complete quotasync usagePetr Písař
Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-03-13Add quotasync(1) manual pagePetr Písař
Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-02-04quotacheck: Make sure -d provides at least as much information as -vJan Kara
There was a couple of useful messages that were printed when -v was specified but not when -d was specified. Fix this. Signed-off-by: Jan Kara <jack@suse.cz>
2013-02-04Do not fiddle with quota files on XFS and GFSPetr Písař
XFS and GFS have no quota files. Skip unnecessary examination and rename of these files when running quotacheck. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-01-21Recognize units at inode limits by edquotaPetr Písař
With this patch, it's possible to specify inode values including decimal units in the editor run by edquota. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-01-21Recognize units at inode limits by setquotaPetr Písař
This patch allows to specify suffixes at inode limits on setquota command line and standard input. Decimal Units k, m, g, t are implemented. Numeric value without suffix is equivatent to single inodes as before. This is complementary functionality to `quota -s'. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-01-21Recognize units at block limits by edquotaPetr Písař
With this patch, it's possible to specify block values including binary units in the editor run by edquota. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-01-21Recognize block limit units on setquota standard inputPetr Písař
This patch adds support for binary suffixes on `setquota -b' input. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-01-21Recognize units at block limits by setquotaPetr Písař
This patch allows to specify suffixes at block limits on setquota command line. Binary units K, M, G, T are implemented. Numeric value without suffix is equivatent to kibibytes as before. This is complementary functionality to `quota -s'. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2013-01-21Fix compilation without RPC supportJan Kara
Commit 40e09a3b missed one place in conversion from mnt_type to me_type (as it is used only when RPC support is disabled). Fix that. Signed-off-by: Jan Kara <jack@suse.cz>
2013-01-21Make group warning message more officialPetr Písař
Signed-off-by: Jan Kara <jack@suse.cz>
2013-01-21Updated Czech translationPetr Písař
Signed-off-by: Jan Kara <jack@suse.cz>
2012-11-06warnquota: Use current locale as default charsetJan Kara
If charset in warnquota.conf is not specified, use charset from current locale as the charset of the warning email. This is to accomodate possible translations of messages via gettext. Signed-off-by: Jan Kara <jack@suse.cz>
2012-11-06warnquota: Add MIME-Version headerJan Kara
Warnquota forgot to add MIME-Version header to sent email when Content-type etc. fields were set. Signed-off-by: Jan Kara <jack@suse.cz>
2012-08-23Release quota-tools 4.01Jan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2012-08-20Fix compilation failure with --enable-bsd_behaviour=noJan Kara
One variable declaration was missing when this config option was specified. Signed-off-by: Jan Kara <jack@suse.cz>
2012-08-20quota: Fix reporting of NFS mountpointsJan Kara
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>
2012-06-12Fix computation of dynamic rpc block sizeJan Kara
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>
2012-06-08repquota: Fix reporting for XFSJan Kara
Conversion to generic quota scanning introduced a bug for XFS where we stopped scanning after quotactl reported first error. quotactl for XFS however reports ENOENT when it has nothing to report for a particular user / group and we shouldn't stop scanning after that. We tried to test for this but the test was wrong. Fix it. Signed-off-by: Jan Kara <jack@suse.cz>
2012-05-23edquota: Fix editting of more usersJan Kara
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>
2012-05-23Remove fixed limit on number of autofs mount pointsJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2012-05-23Updated ChangelogJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2012-03-05quotacheck: Use 'subtract' instead of 'substract'Jan Kara
2012-03-02Update TODO items in the catalogueJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2012-03-02Further i18n fixesJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2012-03-01Add quota type names to message catalogueJan Kara
Add gettext magic so that quota type names get to message catalogue. 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>
2012-02-29Created Czech translationPetr Písař
Signed-off-by: Jan Kara <jack@suse.cz>
2012-02-29Store PID of quota_nldPetr Písař
If quota_nld is run as daemon, daemon's PID will be stored into /var/run/${PROGNAME}.pid file and it will be deleted on receiving SIGTERM just before program termination. PID file is used by init scripts to find and kill forked daemon. Signed-off-by: Jan Kara <jack@suse.cz>
2012-01-31warnquota: Fix manpage formattingJan Kara
Three dots in warnquota manpage shouldn't be in italics. Signed-off-by: Jan Kara <jack@suse.cz>
2012-01-31warnoquota: Allow specifying of filesystems to checkJan Kara
Allow user to specify filesystems to check with warnquota on command line. Signed-off-by: Jan Kara <jack@suse.cz>
2011-11-17Add support for quotas on ext4 in system filesJan Kara
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>
2011-11-16quotaon: Remove duplicated check for hasquota()Jan Kara
We check hasquota() twice needlessly when changing quota state. Remove one of the checks. Signed-off-by: Jan Kara <jack@suse.cz>