summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make linuxquota install to the correct locationbaserock/genivi/morphJonathan Maw2013-02-281-0/+3
|
* Fix builds under linux-user-chrootJonathan Maw2013-02-281-2/+4
|
* Fix path for rpcgen to work properlyBen Brewer2012-11-161-0/+10
|
* warnquota: Use current locale as default charsetJan Kara2012-11-061-0/+9
| | | | | | | | 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>
* warnquota: Add MIME-Version headerJan Kara2012-11-061-0/+1
| | | | | | | 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>
* Release quota-tools 4.01v4.01Jan Kara2012-08-232-1/+5
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Fix compilation failure with --enable-bsd_behaviour=noJan Kara2012-08-201-1/+1
| | | | | | One variable declaration was missing when this config option was specified. Signed-off-by: Jan Kara <jack@suse.cz>
* quota: Fix reporting of NFS mountpointsJan Kara2012-08-201-1/+0
| | | | | | | | | | 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>
* Fix computation of dynamic rpc block sizeJan Kara2012-06-121-5/+5
| | | | | | | 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>
* repquota: Fix reporting for XFSJan Kara2012-06-081-2/+2
| | | | | | | | | | 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>
* edquota: Fix editting of more usersJan Kara2012-05-232-1/+6
| | | | | | | | | 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>
* Remove fixed limit on number of autofs mount pointsJan Kara2012-05-231-6/+18
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Updated ChangelogJan Kara2012-05-231-0/+17
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* quotacheck: Use 'subtract' instead of 'substract'Jan Kara2012-03-051-2/+2
|
* Update TODO items in the catalogueJan Kara2012-03-021-27/+0
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Further i18n fixesJan Kara2012-03-028-31/+31
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Add quota type names to message catalogueJan Kara2012-03-012-4/+6
| | | | | | Add gettext magic so that quota type names get to message catalogue. Signed-off-by: Jan Kara <jack@suse.cz>
* Typo fixes, message changes for easier i18nJan Kara2012-02-298-38/+40
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Created Czech translationPetr Písař2012-02-291-0/+3200
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Store PID of quota_nldPetr Písař2012-02-291-0/+80
| | | | | | | | | | 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>
* warnquota: Fix manpage formattingJan Kara2012-01-311-1/+1
| | | | | | Three dots in warnquota manpage shouldn't be in italics. Signed-off-by: Jan Kara <jack@suse.cz>
* warnoquota: Allow specifying of filesystems to checkJan Kara2012-01-313-9/+12
| | | | | | Allow user to specify filesystems to check with warnquota on command line. Signed-off-by: Jan Kara <jack@suse.cz>
* Add support for quotas on ext4 in system filesJan Kara2011-11-1713-319/+349
| | | | | | | | 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>
* quotaon: Remove duplicated check for hasquota()Jan Kara2011-11-161-4/+2
| | | | | | | We check hasquota() twice needlessly when changing quota state. Remove one of the checks. Signed-off-by: Jan Kara <jack@suse.cz>
* quotacheck: Fix warning about journaled quota for 3.0 and newer kernelsJan Kara2011-11-161-21/+34
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* edquota: Fix localication of time unitsJan Kara2011-10-202-5/+5
| | | | | | | 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>
* Rip out ALTFORMAT config optionJan Kara2011-10-202-111/+0
| | | | | | | | 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>
* Make RPC block factor dynamicPetr Písař2011-10-041-5/+28
| | | | | | | | | | | | | | | | 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>
* Check set limits fit into the range supported by RPC transportPetr Písař2011-10-043-0/+24
| | | | | | | | | | 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>
* Do not report missing utmp record to syslogPetr Písař2011-08-171-1/+6
| | | | | | | | | 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>
* Update version and changelogv4.00Jan Kara2011-08-172-3/+27
|
* get_qf_name() does not check quota file presencePetr Písař2011-07-141-2/+2
| | | | | | | | | | | 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>
* Report quotacheck failures by return codePetr Pisar2011-07-141-21/+36
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Make global symbols static as possiblePetr Pisar2011-05-1613-54/+54
| | | | | | | | | | | | | | 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-059-75/+104
| | | | | | | | | | 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>
* Initialize v2r1 ddquot padding in dumpPetr Pisar2011-04-081-0/+1
| | | | | | | | | 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>
* Fix ddquot buffer leakPetr Písař2011-03-141-0/+3
| | | | | | | | 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>
* Fix check in setgraces() in setquota.cPetr Pisar2011-03-141-1/+1
| | | | | | | The check was the other way around thus making setting of grace times impossible. Signed-off-by: Jan Kara <jack@suse.cz>
* Forbid grace time setting over RPCJan Kara2011-03-094-7/+11
| | | | | | | 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>
* Fix synopsis and properly report errors during remote grace period settingJan Kara2011-03-083-6/+11
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Do not use real domains in warnquota examplePetr Pisar2011-03-041-3/+3
| | | | | | | 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>
* Make RPC handle properly host names with colonsJan Kara2011-02-161-15/+33
| | | | | | | 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>
* Explain meaning of the second column in repquota outputJan Kara2011-02-161-5/+12
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Initialize vfsold block and inode value boundaries for new quota filePetr Pisar2011-02-161-0/+4
| | | | | | | | | | 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>
* setquota manpage typo fix (John Bradshaw)Jan Kara2011-02-161-1/+1
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* Implement quotacheck for GFS2Abhijith Das2011-02-043-21/+82
| | | | | | | | 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>
* Add quotasync toolAbhijith Das2011-02-012-3/+132
| | | | | | Add tool allowing to sync quotas for some / all filesystems. Signed-off-by: Jan Kara <jack@suse.cz>
* Correct --no-mixed-pathnames documentationPetr Pisar2011-02-013-4/+4
| | | | | | | 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>
* Allow admin to not strip quota binaries while installing themJan Kara2011-01-112-1/+12
| | | | | | Stripping binaries may cause problems during crosscompilation. Signed-off-by: Jan Kara <jack@suse.cz>
* Document --always-resolve at edquota and setquotaPetr Písař2011-01-112-0/+8
| | | | | | | This copy --always-resolve option description for quota(1) into edquota(8) and setquota(8) manuals. Signed-off-by: Jan Kara <jack@suse.cz>