summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2011-11-16quotacheck: Fix warning about journaled quota for 3.0 and newer kernelsJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2011-10-20edquota: Fix localication of time unitsJan Kara
Time units were localized when printing (e.g. individual grace times) to file for editing but were not localized when parsing them back. Fix it. Signed-off-by: Jan Kara <jack@suse.cz>
2011-10-20Rip out ALTFORMAT config optionJan Kara
The when ALTFORMAT=no is specified quota tools did not compile for three years at least and noone noticed. Thus I declare the code unused and remove it. Signed-off-by: Jan Kara <jack@suse.cz>
2011-10-04Make RPC block factor dynamicPetr Písař
Former static factor (RPC_DQBLK_SIZE_BITS) had problem to carry values bigger than hard-coded limit (2^(32 + RPC_DQBLK_SIZE_BITS) - 1). This patch makes the factor dynamic. It selects best value to prevent overflow (XDR has 32b variables, some file system support 64b quotas) and to achieve highest possible precision. The client site uses the factor carried via RPC correctly. There is similar problem with setquota. This patch does not address it, however it can be easily resused and fixed. Signed-off-by: Jan Kara <jack@suse.cz>
2011-10-04Check set limits fit into the range supported by RPC transportPetr Písař
E.g. setquota -r root $((2**32)) 1000 10 10 /mnt/nfs/12tb clamped the values into 32 bits and RPC server got 0 soft block limit. This fixes simalar bug spotted in 8a4dc3612c6c170c05e5eef68dd3555baeb341c1 (Check whether set limits fit into the range supported by quota format.) Signed-off-by: Jan Kara <jack@suse.cz>
2011-08-17Do not report missing utmp record to syslogPetr Písař
If no utmp record can be found there is obviously nobody to read error message about missing TTY in sytem log in real time. Moreover the log is usually illegible for normal user. So it's pointless to log this fact there for user's sake. warnquota can be used instead. Signed-off-by: Jan Kara <jack@suse.cz>
2011-08-17Update version and changelogJan Kara
2011-07-14get_qf_name() does not check quota file presencePetr Písař
Old error messsage stated a quota file does not exist despite fact get_qf_name() does not check the file existence. It constructs the file name only. This lead to misleading message when running initial `quotacheck -c' on extended file system mounted with usrquota option only. Signed-off-by: Jan Kara <jack@suse.cz>
2011-07-14Report quotacheck failures by return codePetr Pisar
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-05-05Implement repquota for filesystems without quota filesJan Kara
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>
2011-04-08Initialize v2r1 ddquot padding in dumpPetr Pisar
v2r1_mem2diskdqblk() that writes quota structure into memory block calls tree_entry_unused() to decide the structure is in use (and rewrites UID then). However tree_entry_unused() scan can be spoiled because padding is not initialized and contains random value. Signed-off-by: Jan Kara <jack@suse.cz>
2011-03-14Fix ddquot buffer leakPetr Písař
The ddquot buffer is used to tranfer data from/to file. All its data are copied from/to it, so it's not needed after return from qtree_read_dquot()/ qtree_write_dquot(). Signed-off-by: Jan Kara <jack@suse.cz>
2011-03-14Fix check in setgraces() in setquota.cPetr Pisar
The check was the other way around thus making setting of grace times impossible. Signed-off-by: Jan Kara <jack@suse.cz>
2011-03-09Forbid grace time setting over RPCJan Kara
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>
2011-03-08Fix synopsis and properly report errors during remote grace period settingJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2011-03-04Do not use real domains in warnquota examplePetr Pisar
Providing private domain names in default warnquota.conf can tend some users to reply. Owners of that domain could get mad. Signed-off-by: Jan Kara <jack@suse.cz>
2011-02-16Make RPC handle properly host names with colonsJan Kara
NFS handles server names with colons (usually IPv6 addresses) by encapsulating them in brackets. Handle this properly. Signed-off-by: Jan Kara <jack@suse.cz>
2011-02-16Explain meaning of the second column in repquota outputJan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2011-02-16Initialize vfsold block and inode value boundaries for new quota filePetr Pisar
Otherwise `quotackech -c -F vfsold' fails with `Trying to set quota usage out of range supported by quota format on...' because initial boundary is zero. Fixes SF bug #3176326. Signed-off-by: Jan Kara <jack@suse.cz>
2011-02-16setquota manpage typo fix (John Bradshaw)Jan Kara
Signed-off-by: Jan Kara <jack@suse.cz>
2011-02-04Implement quotacheck for GFS2Abhijith Das
Although GFS2 maintains quota as metadata, it sometimes might need to check quota usage (most notably when quota is enabled for the first time). So add support for GFS2 in quotacheck. Signed-off-by: Jan Kara <jack@suse.cz>
2011-02-01Add quotasync toolAbhijith Das
Add tool allowing to sync quotas for some / all filesystems. Signed-off-by: Jan Kara <jack@suse.cz>
2011-02-01Correct --no-mixed-pathnames documentationPetr Pisar
This option controls a leading slash, not a trailing one. The quota(1) page talks about quota, not about setquota. Signed-off-by: Jan Kara <jack@suse.cz>
2011-01-11Allow admin to not strip quota binaries while installing themJan Kara
Stripping binaries may cause problems during crosscompilation. Signed-off-by: Jan Kara <jack@suse.cz>
2011-01-11Document --always-resolve at edquota and setquotaPetr Písař
This copy --always-resolve option description for quota(1) into edquota(8) and setquota(8) manuals. Signed-off-by: Jan Kara <jack@suse.cz>
2011-01-11Comment example quotatab to silent warnquotaPetr Písař
Warnquota tried to stat possibly non-existing /dev/hda4. Signed-off-by: Jan Kara <jack@suse.cz>
2011-01-11Improve comments in warnquota.confOndrej Vasik
Signed-off-by: Jan Kara <jack@suse.cz>
2011-01-11Fix help text for quotaoffOndrej Vasik
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>
2011-01-11Fix --truncate-names descriptionJan Kara
The names are actually truncated to 9 characters, not 8. Signed-off-by: Jan Kara <jack@suse.cz>