1 02/21/84 disk_stat_print
2
3 Syntax: disk_stat_print path -control_args
4
5
6 Function: prints the disk_stat segment that is created by the sweep
7 command. Optional control arguments cause the information to be
8 presented in a variety of ways, to facilitate analysis of disk usage
9 patterns. By default, a header is printed, followed by one line for
10 each directory in the disk_stat segment, and a totals line.
11
12
13 Arguments:
14 path
15 is the pathname of the disk_stat file to be printed. If path is not
16 given, the disk_stat segment in the working directory is assumed.
17
18
19 Control arguments:
20 -level N, -lev N
21 summarizes each subtree that begins at level N; prints no lines with
22 level numbers greater than N where N is an integer from 0 to 16.
23 The effect of this argument is to make the output appear as if no
24 directories with quotas existed below level N in the hierarchy since
25 the directories below level N have their usage figures included in
26 those of whatever level N directory they are inferior to.
27
28
29 The default value for N is 16, causing all directories in disk_stat
30 to be printed individually. The root's level is 0. A directory is
31 said to be below level N if its level number is greater than N. A
32 value of 2 for N causes the disk usage of each project to be
33 displayed in a single line; a value of 3 causes the usage of each
34 user to be displayed provided that the user directories have
35 quotas.
36
37
38 -logical_volume, -lv
39 prints the name of the logical volume on which segments contained in
40 each directory reside and prints the usage figures for each logical
41 volume. An extra column is printed in the directory line, giving
42 the logical volume index lvix. This is merely the line number in
43 the table of logical volume totals that is printed after the regular
44 totals lines. An lvix of 0 indicates that the subtree summarized by
45 the line contains segments that reside on more than one logical
46 volume; an lvix of -1 indicates a logical volume not known to the
47 system.
48
49
50 -subtotal, -stt
51 prints subtotal lines giving the totals for each subtree. Each time
52 a directory is encountered whose level number is less than that of
53 the preceding directory, one or more subtotal lines are printed.
54 This argument causes the maximum amount of subtotal information to
55 be printed. Some users may find the resulting output too cluttered
56 to be easily read. To produce less information, but in an easier to
57 read format, see the -level control argument.
58 -total, -tt
59 does not print a line for each directory; rather prints a totals
60 line plus any other lines specified by other arguments.
61
62
63 Notes: The first date printed in the header is the date of the last
64 billing. It is filled in by charge_disk if the disk_stat file is the
65 one used by the daily disk accounting job. This date is 0 in files
66 created separately e.g. for use in disk usage analysis.
67
68 Although the output of disk_stat_print is designed to be printed on a
69 line printer using the file_output and dprint commands, it can be
70 printed on a terminal if the carriage is wide enough. Each line
71 consists of approximately 10 characters followed by a pathname.
72 Pathnames can be up to 168 characters long but are typically less
73 than 50 characters long.