DISKUSE

Operation Notes

You can use the DISKUSE command to report on disk space, in sectors, for a directory. Disk space allocated to directories themselv es (including accoun ts and MPE groups) is coun ted as part of the total n umber of sectors. The process' CWD is sho wn for all relativ e pathnames.

The number of componen ts in the pathname con trols the lev el of directories being reported. If a pathname has four componen ts, for example, /a/b/c/d , then only directories with four or more componen ts contribute to the output. This also applies to the use of wildcard componen t names. For example, /@/@/@/@ only counts directories with at least four componen ts in their pathname (absolute or relative, depending on ho w it was speci￿ed). MPE names follow the same form ula: @.@.@ reports only MPE-named directories one level below MPE groups. ( @.@ is the same since it is quali￿ed with the logon account name.)

Use

You must have traverse directory en tries (TD) and read directory en tries (RD) permissions to eac h directory contributing to the reported totals. TD access is needed to each directory componen t named in dir name. (Refer to the ALTSEC command in this chapter for additional information on directory permissions.)

Note that the MPE syn tax cannot specify a group.account. MPE syntax only permits dir.group.acct if dir is a valid MPE name; that is, all uppercase alphanumeric. (If group.account were speci￿ed, it would be interpreted as a ￿le called group.account.logon account.)

Directory errors can occur while DISKUSE is collecting ￿le space information. For example, if y ou lack traverse directory en tries (TD) access to one or more of the lower level directories, an error occurs.

If you specify ;TREE , you will only be able to see directories that y ou have TD and RD access to. DISKUSE stops on the ￿rst error encoun tered. This may result in no data (other than a header) displa yed, or in the case of wildcard names, some directories are seen (up to the directory where the error occurred). Even in the wildcard directory name case, once an error is encoun tered, DISKUSE terminates.

There are several ways to see all disk space used on the system:

2-60 MPE/iX Commands