Age | Commit message (Collapse) | Author |
|
Signed-off-by: Julian Ospald <hasufell@gentoo.org>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
|
|
macros/functions from endian.h are the proper, documented userspace
interface to use.
|
|
Fix compilation warning about missing stat(3) prototype.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
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>
|
|
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>
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
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 forgot to add MIME-Version header to sent email when Content-type
etc. fields were set.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
One variable declaration was missing when this config option was specified.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Add gettext magic so that quota type names get to message catalogue.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
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>
|
|
Three dots in warnquota manpage shouldn't be in italics.
Signed-off-by: Jan Kara <jack@suse.cz>
|
|
Allow user to specify filesystems to check with warnquota on command line.
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>
|
|
We check hasquota() twice needlessly when changing quota state. Remove
one of the checks.
Signed-off-by: Jan Kara <jack@suse.cz>
|