[mod.computers.vax] quota.sys file

BITNET@UTHSCSA.BITNET (09/06/86)

I have a problem.  I would like to open the quota.sys file and read it to
generate reports.  I would also like to read it from a home grown accounts
creation system to determine which drive is least used.

At the present time we are running VMS V4.3.  With all of the reported problems
that 4.4 seems to have, I doubt if we will be upgrading anytime soon.  So any
routines that may be available from 4.4 are out.

If anyone has done this could you please send me some code fragments showing
the record description and any description algorithms that may be used.  I
would rather have something in 'C' or FORTRAN but anything will appreciated.


Thank You,

Mark Moore
MOORE@UTHSCSA.BITNET

JCV@CERNVM.BITNET (Jan C. Vorbrueggen) (09/07/86)

Mark,

instead of trying to read the quota file yourself (whose format might change,
who knows), why don't you use the appropriate ACP QIO calls? They are docu-
mented in the I/O user manual, part I. If you want, I can send you a MACRO
(yes, I know I can do anything with FORTRAN, but it's still easier in MACRO...)
routine, together with a FORTRAN programm that uses it (asks you for disk name
and UIC, prints all three quotas); you could modify it to look up a UIC in
RIGHTSLIST.DAT when you supply a username or general identifier.

About the second question, 'which disk is least used', what precisely do you
mean by that? Do you want to know which disk has most free blocks? Or which
disk does the least I/O operations? Or...?

--- Jan