Age | Commit message (Collapse) | Author |
|
|
|
|
|
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>
|
|
Add an optional argument to option -s allowing user to manually specify
units used for outputting results.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Except for really ancient kernels XFS quota interface is always
available when quota is compiled in. In recent kernels it is also usable
for other filesystems than XFS. So always add XFS quota format as usable
if we have non-ancient kernel.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
quotactl Q_XFS_GETQSTAT is able to report whether only accounting or
also quota enforcement is turned on. This works for XFS and GFS2 for
ages and since kernel 4.1 also for other filesystems. Use this quotactl
when it is supported and report more details in verbose mode.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
if '/etc/projid' dose not exist,@project_file will
be NULL pointer, fclose will cause coredump, add
check in endprent().
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
The support for project quota in generic code is simple. We just need
functions to convert project ID to project name and back (we follow what
xfsprogs do in that regard), add detection whether project quota is
enabled for the filesystem, and increase number of quota types. We also
have to update various checks to count with project quotas.
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
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>
|
|
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>
|
|
The checking of filesystem type in verification whether a filesystem
has quotas has been sporadically causing us problems with new filesystems
or so. The checking isn't actually very useful because in (rather unlikely)
worst case if some filesystem has valid quota options but uses quota system
which quota-tools do not understand, we try to work with quota files and
the header check fails. So it's not a big deal.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Fix quotaon to work correctly with XFS filesystems (Jan Kara)
|
|
EFAULT or reads garbage from NULL address (which makes SELinux spit warnings).
(Jan Kara)
|
|
a GFS2 filesystem has quotas enabled. (Christoph Hellwig)
|
|
information, and only allows state changes via remount. (Christoph Hellwig)
|
|
|
|
* Use /proc/mounts for mountpoint scanning (Jan Kara)
* Removed use of reserved identifiers (Jan Kara)
|
|
Added missing files.
|
|
|
|
|
|
(Jan Kara)
|
|
* 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 allow_severity and deny_severity variables for older versions of libwrap (Martin Jacobs)
Added MPFS to the list of supported filesystems (Dave Boone)
Configure script now correctly reports checking of libwrap (Jan Kara)
|
|
Fix LDAP scripts to use VISUAL instead of EDITOR (Michael Meskes)
|
|
|
|
* 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)
|
|
Added option to always resolve even numeric names (Jan Kara)
Corrected a few typos in manpaged (Jan Kara, Justin Pryzby)
|
|
Quota(1) has now -f option to specify a list of filesystems (Jan Kara)
|
|
local-only flag was specified. Hence we don't block if NFS is down. (Jan Kara)
|
|
|
|
Added support for specification of LABEL= and UUID= on command line. (Jan Kara)
|
|
Fixed some checks to work also with NFSV4. (Jan Kara)
|
|
Added NFSv4 quota type (Jan Kara)
Added forgotten file quotagrpadmins to CVS (Jan Kara)
|
|
|
|
|
|
|
|
|
|
|
|
quotacheck(8) does not count quota files (Jan Kara)
|