summaryrefslogtreecommitdiff
path: root/quotaio.c
Commit message (Collapse)AuthorAgeFilesLines
* Aadd HPE XFS supportTinguely, Mark2018-05-091-1/+2
| | | | | | | | | | | | HPE XFS has a different superblock magic and type name to allow the community XFS and HPE XFS to coexist in the same linux kernel. This patch add HPE XFS support to the quota-tools so our customers can use it. Signed-off-by: Mark Tinguely <mark.tinguely@hpe.com> Signed-off-by: Jan Kara <jack@suse.cz>
* Use libc byteswapping routines not kernel onesCristian Rodríguez2013-12-021-1/+1
| | | | | macros/functions from endian.h are the proper, documented userspace interface to use.
* Add support for quotas on ext4 in system filesJan Kara2011-11-171-24/+26
| | | | | | | | 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>
* Check set limits fit into the range supported by RPC transportPetr Písař2011-10-041-0/+2
| | | | | | | | | | 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>
* Implement repquota for filesystems without quota filesJan Kara2011-05-051-17/+7
| | | | | | | | | | 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>
* Check whether set limits fit into the range supported by quota format.Jan Kara2011-01-061-0/+24
| | | | Signed-off-by: Jan Kara <jack@suse.cz>
* quota: Allow printing of mountpointJan Kara2010-09-141-0/+3
| | | | | | | | Add options for quota(1) to print mount point as a part of a filesystem identification and also do not print device a s part of a filesystem identification. Signed-off-by: Jan Kara <jack@suse.cz>
* * fix repquota to get latest quota info header (Jan Kara)jkar85722010-05-271-0/+9
|
* GFS2 implements the XFS interface for setting and reporting the quotajkar85722010-05-051-1/+2
| | | | information, and only allows state changes via remount. (Christoph Hellwig)
* * 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)
* Fixed error reporting when rpc format specified on command line (Jan Kara)jkar85722009-12-211-0/+3
| | | | Added missing files.
* 64-bit quota support.jkar85722009-12-141-18/+38
|
* * fix reference to rpc manpage (anonymous reporter)jkar85722008-12-171-3/+24
| | | | | | | * add EXT4 (not only EXT4DEV) to the list of supported filesystems (Mingming Cao) * fix setting of more than 31-bit block and inode limits (Gui Xiaohua) * fixed bug in error reporting when quota reading fails (Jan Kara) * added support for quota formats with hidden quota files (Jan Kara)
* Added options to enable pathname mangling for NFSv4 (Jan Kara)jkar85722007-08-231-0/+2
|
* Made possible to use quota rpc in mixed NFSv3 and NFSv4 environments -jkar85722007-08-231-0/+1
| | | | | quota(1) and similar tools now use paths without leading / for NFSv4 mounts (Jan Kara)
* * fixed XFS handling to work with loopback mounted devices (Jan Kara)jkar85722007-02-211-1/+1
| | | | | | * 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)
* Corrected some informal language in error messages (Jan Kara)jkar85722005-11-211-3/+3
| | | | Quota(1) has now -f option to specify a list of filesystems (Jan Kara)
* Updated polish translation. (Jakub Bogusz)jkar85722005-03-181-1/+1
| | | | Fixed some checks to work also with NFSV4. (Jan Kara)
* Updated version to 3.12jkar85722004-05-241-0/+2
| | | | | | Fixed a few memleaks Added two manpages Fixed problem with all-zero root structure
* Fixed bug with rpc.rquotad bad path processing.jkar85722002-05-031-1/+2
|
* * fixes in manpages (Arkadiusz Miskiewicz)jkar85722002-04-261-0/+4
| | | | | | | * fixed detection of libwrap in configure (Arkadiusz Miskiewicz) * added forgotten ROOTDIR to path to gettext catalogs (Arkadiusz Miskiewicz) * quotacheck uses newest format supported by kernel when creating new quota files (Jan Kara) * fixed bug in IO initialization when -F xfs was given (Jan Kara)
* Fixed bug in quota(1) return code.jkar85722002-03-271-53/+11
| | | | | Rewritten detection of kernel version. Added support for generic interface for both quota formats in kernel.
* Small formatting change in quotactl.2 (Nathan Scott)jkar85722002-03-011-5/+13
| | | | Make init_io() more paranoid about quota turned on in kernel (Jan Kara)
* Added support for conversion of files with wrong endianity (due to SuSE RPM bug)jkar85722001-11-081-4/+12
| | | | | Added check to format detection routine to detect bad file endianity edquota and setquota now set just grace times and flags => avoid races on live filesystem
* Fixed detection of RH 7.1 kernel not to make problems on older kernels.jkar85722001-09-261-1/+1
| | | | | Utilities now use shared locks when opening files read-only. Changed naming of Q_GETSTATS as they would be no longer in kernel.
* Fixed a few error messages.jkar85722001-08-151-5/+4
| | | | | | Implemented new mountpoint scanning. Implemented caching for scanning in old quota format. Implemented automatic choice of appropriate units in repquota, quota.
* Added mntopt.h to dependencies in Makefile.in.jkar85722001-05-021-20/+24
| | | | | | | | | | | 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.
* Updated manpages.jkar85722001-04-111-0/+2
| | | | | | Fixed small bug in repquota (User vs Group). Some XFS updates. Fixed problems with devfs and relative paths.
* Added EXT2DIRECT as configurable option.jkar85722001-04-051-4/+6
| | | | | Fixed bug in quotacheck -c option. Fixed bug in RPC implementation.
* Merged with RedHat patch - mainly documentation issuesjkar85722001-04-041-0/+1
| | | | | | Added some forgotten _() around strings. Added sponsoring notes Removed mandatory -F from quotacheck.
* Initial revisionjkar85722001-03-231-0/+238