diff options
author | Petr Písař <ppisar@redhat.com> | 2011-01-06 17:59:27 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-10-04 22:10:32 +0200 |
commit | fef44fb2d924c6249a8aadfe7cf5e1093ebd2e43 (patch) | |
tree | c867d162f8c87e6961204401b0b338a03891930a /warnquota.c | |
parent | 803a300b63cc9065818354c1d11a8125dbbdb571 (diff) |
Make RPC block factor dynamic
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>
Diffstat (limited to 'warnquota.c')
0 files changed, 0 insertions, 0 deletions