Skip Menu |

This queue is for tickets about the Quota CPAN distribution.

Report information
The Basics
Id: 36702
Status: resolved
Priority: 0/
Queue: Quota

People
Owner: Nobody in particular
Requestors: quercus.aeternam [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.6.2
Fixed in: (no value)



Subject: Setting quota limits fails with large values (1TB+)
A hard limit of 9223372035833804800 (close to LONG_MAX) is set (as reported by both quota and quota.pm) if 1126512640 is passed in. This is on a system reported as using IFACE_GENERIC. Using command line tools, this value is properly set. Quota::setqlim($dev,$gid,100010*1024,1100110*1024,0,0,0,1); I attempted changing the qvalue from an unsigned int to an unsigned long long, but that had no effect. Any thoughts?
Sorry for the long response time (working on too many projects at the same time...) In release Quota-1.6.3 I've changed the module to use "long" and "u_int64_t" internally for handling limits. For Perl executables which support 64-bit wide integers (e.g. x86-64), setting and querying values beyond 2^32 should work now. For 32-bit perl executables the main problem is on side of the perl interpreter, since those cannot represent such large values as an integer. So the only way would be to create separate interfaces (e.g. "setqlim64") which either split the values in high/low part or pass them as strings.