Explain in quota(1) manpage what 'blocks' in the output mean

Signed-off-by: Jan Kara <jack@suse.cz>
respect CFLAGS in linking command wrt #446281

Signed-off-by: Julian Ospald <hasufell@gentoo.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Properly handle signed space and inode values

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>
Do not document location of quotaon and quotaoff

quotaon(8) manual page lists location of quotaon and quotaoff tools as
/usr/sbin. However configure option --enable-rootsbin allows to
relocte the executable into /sbin redendering the manual wrong.

This patch removes the path from the manual page, so it's valid in
both cases.

Signed-off-by: Petr Písař <ppisar@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Prevent from grace period overflow in RPC transport

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>
warnquota: Use LDAP for looking up CC value as well

When LDAP is configured do not lookup only 'TO' field in LDAP but also a
'CC' field.

Signed-off-by: Jan Kara <jack@suse.cz>