question about quotactl()

From: Richard Fairfield <rcf_at_ms.washington.edu>
Date: Wed, 25 Jul 2001 11:53:45 -0700 (PDT)

Hello all:

I have several file systems mounted via NFS from a Network Appliances
Filer. User quotas are enabled on the Filer. I can see the quota limits
via the Tru64 UNIX quota(1) command. For example:

        Disk quotas for user rcf (uid 3921):
     Filesystem blocks quota limit grace files quota limit grace
         /user0 395080 512000 512000 2550 -1 -1

However, when I try to get the quota information via the quotactl(2)
system call it fails with error EOPNOTSUPP which, in this context,
means "The kernel has not been compiled with the QUOTA option".

I can understand that error message if the quotas were being on the
local UFS or ADVFS file system, but that is not the case here. I thought
that the quota(1) command (which works) would also use quotactl(2),
but a scan through truss output of the "quota rcf" command shows only
the following quotactl(2) call:

   quotactl("/", 0, 0, 0x00000000) Err#22 Invalid argument

So, I'm confused. How to I get NFS quota information from inside a
C program?

Thanks in advance for any and all help or suggestions,
Richard Fairfield
Math Sciences Computing Center
University of Washington
MSCC Departmental Telephone Number: 206-616-3636
My Office Telephone Number: 206-685-2303
Fax: 206-685-7419
rcf_at_ms.washington.edu
Received on Wed Jul 25 2001 - 18:55:18 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT