Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ucbvax.ARPA Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!info-vax From: info-vax@ucbvax.ARPA Newsgroups: fa.info-vax Subject: DISKQUOTA file format Message-ID: <4148@ucbvax.ARPA> Date: Fri, 11-Jan-85 17:07:39 EST Article-I.D.: ucbvax.4148 Posted: Fri Jan 11 17:07:39 1985 Date-Received: Sat, 12-Jan-85 08:07:43 EST Sender: daemon@ucbvax.ARPA Organization: University of California at Berkeley Lines: 24 From: SRW69053%TIMEVX%CITHEX@lbl.arpa Received: from timevx by cithex with DECNET ; Fri, 11 Jan 85 14:03:19 PST X-ST-Return-Receipt-Requested: Date: Fri, 11 Jan 85 14:03:50 PST From: srw69053 (walton, stephen r.) @ timevx Message-Id: <850111140335.002@timevx> Subject: DISKQUOTA file format To: FRISBIE @ MIT-CBGVAX.ARPA cc: INFO-VAX @ SRI-CSL.ARPA (This is probably the 1000th reply to this topic.) The format of the QUOTA.SYS file's records is described in the I/O User's Guide, Volume 1, pages 2-31 thru 2-34 (VMS Version 3.n). The file itself can be accessed from high-level languages as a file with fixed-length 32-byte records; I have a small program for adaptive changing of people's quotas which reads the file as a Fortran direct-access file. This is easier than Macro, but has the disadvantage that the contents of QUOTA.SYS are only updated when the file is accessed by the IO$_ACPCONTROL function from MACRO-32. In other words, if you open QUOTA.SYS from a Fortran program, the data in it will be valid only as of the last time someone manipulated the quotas on that disk via either the DISKQUOTA utility or the SHOW QUOTA DCL command. I finnessed this problem by running DISKQUOTA just before my program with the command SHOW [*,*].