summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2014-11-26Add release scriptJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2014-11-26Release quota-tools 4.02Jan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2014-11-26Remove KERN_KNOWN_QUOTA_VERSIONJan Kara
This define is unused and using it would be a bad idea (kernel quota version doesn't mean anything useful anymore). Remove it. Signed-off-by: Jan Kara <jack@suse.cz>
2014-11-26Skip NFS mounts without rquotad RPC service silentlyPetr Písař
If NFS server does uses quotas, then it's high chance the RCP rquotad service is not running at all. Then listing quotas for such NFS mount point results into a warning about "connection refused". This warning can be obtrusive if a host has mounted various mixture of NFS exports with and without quotas. This patch recognizes this special error state (after performing a query to a client without running rquotad) and considers such server as having quotas disabled. This silents the warning effectively. JK: Some coding style fixes, treat also rpc_set_quota() this way. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2014-10-01Fix handling of space and inode valuesJan Kara
Commit 0214512479e0 (Properly handle signed space and inode values) broke parsing of pure numbers in str2number() so that it would always complain about "Integer overflow while interpreting decimal unit". Fix condition checking for overflow. Also number2str() was buggy and wouldn't guess proper units for negative numbers. Signed-off-by: Jan Kara <jack@suse.cz>
2014-07-24Update polish translationJakub Bogusz
Signed-off-by: Jakub Bogusz <qboosh@pld-linux.org> Signed-off-by: Jan Kara <jack@suse.cz>
2014-05-01warnquota: Use LDAP for looking up CC value as wellJan Kara
When LDAP is configured do not lookup only 'TO' field in LDAP but also a 'CC' field. Signed-off-by: Jan Kara <jack@suse.cz>
2014-05-01Prevent from grace period overflow in RPC transportPetr Písař
The RPC transports grace time as unsigned int, but the value stored there and retrivedd from is treated as singed difference against current time. This leads to overflow after expiring the grace time which is presented as an enourmously large grace time instead of "none" in the quota(1) output. There also possible an overflow when the time difference is still bigger than an int can represent. This first issue is solved by explicit type cast to/from int32_t, the second issue is fixes by limiting the value into int32_t range. <https://sourceforge.net/p/linuxquota/bugs/115/> Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2014-05-01Do not document location of quotaon and quotaoffPetr Písař
quotaon(8) manual page lists location of quotaon and quotaoff tools as /usr/sbin. However configure option --enable-rootsbin allows to relocte the executable into /sbin redendering the manual wrong. This patch removes the path from the manual page, so it's valid in both cases. Signed-off-by: Petr Písař <ppisar@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
2014-05-01Properly handle signed space and inode valuesJan Kara
For cluster filesystems, kernel can sometimes return negative values of used space or inodes (because counters are not completely synchronized across the cluster). Make quota tools properly print these. Signed-off-by: Jan Kara <jack@suse.cz>
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>