home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nntpd.lkg.dec.com!Nephi.Enet.DEC.Com!coar
- From: coar@Nephi.Enet.DEC.Com (Rodent of Unusual Size)
- Subject: Re: Can I change quota entries from DCL or a program?
- Message-ID: <1992Jul30.142611.104@nntpd.lkg.dec.com>
- Summary: Volume locking is *not* necessary to change quota
- Keywords: diskquota
- Sender: usenet@nntpd.lkg.dec.com (USENET News System)
- Organisation: Employed by (*NOT* speaker for) DEC, Boxborough, MA, U.S.A.
- Organization: Digital Equipment Corp.
- References: <9207291933.AA06009@genrad.com>
- Distribution: comp
- Date: Thu, 30 Jul 1992 15:14:32 GMT
- Lines: 38
-
-
- In article <9207291933.AA06009@genrad.com>, dongray@cdclu1.genrad.com (Derek Dongray) writes...
- >
- >In SYS$LIBRARY:LIB.MLB is a module $DQFDEF which gives the format records in
- >QUOTA.SYS. It's fairly easy then to write a program to examine/modify a disk
- >quota entry.
-
- The DQF$mumble definitions describe the fields in the block used with the
- $QIO interface. They are *not* documented as defining the format of the
- QUOTA.SYS file. That they do is coincidental and subject to change. The
- only supported mechanism for interfacing with the disk quota function is
- via the $QIO interface. Don't try to read or mung the QUOTA.SYS file
- directly; you'll get stale data back, and quite likely hose the file on a
- write.
-
- >1. To examine other users' quota entries requires read access to the QUOTA.SYS.
-
- True, although I don't think you need read access to see the values for
- your current UIC.
-
- >To change a quota entry, the program must lock the volume (FIB$C_LOCK_VOL) and
- >unlock when doen (FIB$C_UNLK_VOL); to do this requires either SYSPRV or being
- >the volume owner.
-
- This is not strictly correct. Quota limit values (quota or overdraft) may
- be changed without locking the volume. You only need to lock the volume
- if you're going to modify the *usage* value (as the DISK>REBUILD or
- ANALYZE /DISK_STRUCTURE /REPAIR commands do).
-
- >Name : Derek Dongray, Systems Manager, GenRad Ltd.
- >InterNet : Dongray@cdclu1.GenRad.com CompuServe : 70374,2745
-
- #ken :-)} Jeratol the Chaotic
-
- Coar@Nephi.Enet.DEC.Com | All opinions herein contained, stated or implied,
- Coar@DECUS.Org | are solely those of the author. And he's fullovem.
- Coar@Eisner.DECUS.Org | `... it was mine art, ... that made gape the pine
- Massachusetts, USA | and let thee out.' - Prospero (_The Tempest_)
-