[comp.os.vms] Diskquota vs. DIRECTORY/SIZE

MCGUIRE@GRIN2.BITNET (07/23/87)

> Date:         Tue, 21 Jul 87 23:03:22 EDT
> From:         "TIM M. LEE" <SY$LEE@cuchem.chem.columbia.edu>
> Subject:      Diskquota vs. Directory /by_owner /grand /size
>
> I have the following problem which is that there is a difference between
> diskquota and "dir /by_owner /size /grand".

Try DIR/BY_OWNER/SIZE=ALL/GRAND.  The ALL modifier causes Directory to
report blocks allocated, as well as blocks in use.  Use the allocated
figure when counting beans.

Each file costs at least one block of disk quota allocated in the file
INDEXF.SYS.  Directory doesn't add these in because you didn't include
[000000] in the command, and anyway, it wouldn't know which blocks in
INDEXF.SYS are owned by which people.  On a well-structured disk, it's
often exactly one block per file.  So, in the bottom line reported by
Directory, add the number of files to the number of blocks allocated to get
a more accurate figure.

Finally, the root directory is often left out by people counting beans.  I
use the command:
  $ DIR/BY=user/SIZE=ALL/GRAND disk:[user...],disk:[000000]user.dir
Then I add the number of files to the number of blocks.  It matches the
disk quota exactly, about 90% of the time.