home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12947 < prev    next >
Encoding:
Text File  |  1992-07-30  |  2.4 KB  |  54 lines

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