ages ages
Specifies the breakdown of ages, as a set of comma-separated time
values. The values are in seconds, but as a convenience you can add
an H or D suffix to a number to get hours and days. For example,
"900,4H,7D" would produce a breakdown with 4 categories - files
accessed in the last 15 minutes, files accessed in the last four
hours, files accessed in the last week, and all other files.
expr expression
This lets you specify a boolean expression that will be evaluated for
each inode encountered, and if the expression is true, then the inode
will be selected and included in the various breakdowns of file usage.
The expression can contain "variables", which are merely the name of
an inode attribute enclosed in curly braces. For example, {size} is
evaluated as the size of the current inode. The valid inode attributes
that you can use in expressions are:
To produce a breakdown that includes all unique file sizes, specify "*" for the sizes value.
style style
Controls the style of output - the possible value for count are "readable"
(the default), "table" (colon-separated values suitable for processing
by programs), and "html".
1. Produce default file usage breakdowns for snapshot hourly.1 of volume vol0.
filestats volume vol0 snapshot hourly.1
2. Produce file usage breakdowns by monthly age values:
filestats volume vol0 snapshot hourly.1 ages "30D,60D,90D,120D,150D,180D"
3. Produce file usage breakdowns for inodes whose size is less than 100000 bytes and whose access time is less than a day old:
filestats volume vol0 snapshot hourly.1 expr "{size}<100000&&{atimeage}<86400)"
3. Produce a breakdown of the total number of files and their total size. You can control the set of ages and sizes that get used for this breakdown, with the "ages" and "sizes" arguments. The output also contains a breakdown of file usage by user-id and group-id.
filestats snapshot hourly.1 volume vol0