[comp.os.vms] Opening QUOTA.SYS in C

youssef@NADC.ARPA (P. Youssef) (04/15/88)

try [D[D[Dary[D[D[D[DI use sh proc /quota and it works 
                                   

IMHW400@INDYVAX.BITNET (05/18/88)

> > Does anyone out there know how to open the file QUOTA.SYS for read access
> > only ? There MUST be a way, but I keep getting file access conflicts
> > stating it is already open for write by another user (probable the RMS
> > file system ?).
>
>Yes.  You have to use the correct file-sharing options.  Open it using your
>favorite language's equivalent of the DCL command:
>    $ OPEN/READ/SHARE=WRITE file [000000]QUOTA.SYS

Ordinarily, you don't really want to do that.  If quotas are currently enabled
on the disk in question, you will get stale data.  The quota mechanism caches
the data in memory to keep from beating up the disks so much, and they only
get written back every so often.  To get quota information with quotas enabled,
use the ACP interface described in the I/O books.  I can send code, if you
wish:  we do this nightly to snapshot disk usage for billing.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mark H. Wood    IMHW400@INDYVAX.BITNET   (317)274-0749 III U   U PPPP  U   U III
Indiana University - Purdue University at Indianapolis  I  U   U P   P U   U  I
799 West Michigan Street, ET 1023                       I  U   U PPPP  U   U  I
Indianapolis, IN  46202 USA                             I  U   U P     U   U  I
[@disclaimer@]                                         III  UUU  P      UUU  III