How to know whether quota is enabled or not.

How to know whether quota is enabled or not.

Post by jens_c_niel.. » Tue, 29 Feb 2000 04:00:00



Is there a command or function, that can give an
answer whether quota is enabled or not for a given
user on a given fileset ?

We tried using the quotactl function with the
command set to Q_GETQUOTA and commandtype being
USRQOUTA.
According to the man page, it says that the
function would fail, if quota is not enabled and
thus would return -1.
However the function returns 0 regardless and the
data block returned always contains the quota
limits as it would do if quota is enabled.

Any help in this matter would be highly
appreciated.

Thanks in advance,

Best Regards,

Jens C. Nielsen

Sent via Deja.com http://www.deja.com/
Before you buy.