tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Richard Fairfield <rcf () ms ! washington ! edu>
To: tru64-unix-managers
Subject: SUMMARY: question about quotactl()
Date: Fri, 27 Jul 2001 16:30:05 +0000	[thread overview]
Message-ID: <102653652422108.tru64-unix-managers.marc@archive.invalid> (raw)


Chang-Hyeon Song of Compaq, and James Sainsbury reminded me that
this is done via direct rpc calls to the NFS server. J.A. Gutierrez
even supplied an example program.

Thanks for this excellent help and advice.


On Wed, 25 Jul 2001, Richard Fairfield wrote:

>
> 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@ms.washington.edu
>
>
>




:

On Wed, 25 Jul 2001, Richard Fairfield wrote:

>
> 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@ms.washington.edu
>
>
>



                 reply	other threads:[~2001-07-27 16:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox