3 xfs_spaceman \- show free space information about an XFS filesystem
15 reports and controls free space usage in an XFS filesystem.
20 commands may be run interactively (the default) or as arguments on
21 the command line. Multiple
23 arguments may be given. The commands are run in the sequence given,
24 then the program exits.
28 .BI "freesp [ \-dgrs ] [-a agno]... [ \-b | \-e bsize | \-h bsize | \-m factor ]"
31 shows a histogram of all free space extents in the filesystem.
32 The command takes the following options:
38 Collect free space information from this allocation group.
39 This option can be specified multiple times to collect from multiple groups.
43 This argument establishes that the histogram bin sizes are successive powers of two.
44 This is the default, and is mutually exclusive with the
45 .BR "-e" ", " "-h" ", and " "-m" " options."
49 Print debugging information such as the raw free space extent information.
53 Print the free space block and extent counts for each AG.
57 Set all histogram bin sizes to a specific value.
58 This option is mutually exclusive with the
59 .BR "-b" ", " "-h" ", and " "-m" " options."
63 Create a histogram bin with a lower bound of this value.
64 The upper bound of this bin will be one less than the lower bound of the
65 next highest histogram bin.
66 This option can be given multiple times to control the exact bin sizes.
67 This option is mutually exclusive with the
68 .BR "-b" ", " "-e" ", and " "-m" " options."
72 Create each histogram bin with a size that is this many times the size
73 of the prvious bin created.
74 This option is mutually exclusive with the
75 .BR "-b" ", " "-e" ", and " "-h" " options."
79 Query the realtime device for free space information.
83 Display a summary of the free space information found.
88 Displays selected geometry information about the filesystem.
89 The opened file must be a mount point of a XFS filesystem.
90 The output will have the same format that
92 prints when querying a filesystem.
94 .BR "help [ " command " ]"
95 Display a brief description of one or all commands.
97 .BI "prealloc [ \-u id ] [ \-g id ] [ -p id ] [ \-m minlen ] [ \-s ]"
98 Removes speculative preallocation.
100 .BR "-u" ", " "-g" ", or " "-p"
101 options are given, this command acts on all files.
102 The command takes the following options:
108 Clear all speculative preallocations for files with this user id.
109 This option can be given in combination with the
115 Clear all speculative preallocations for files with this group id.
116 This option can be given in combination with the
122 Clear all speculative preallocations for files with this project id.
123 This option can be given in combination with the
129 Ignore all files smaller than this size.
130 Units can be supplied for this argument.
134 Wait for removal to complete.
139 Display a list of all open files.
145 .BI "trim ( \-a agno | \-f | " "offset" " " "length" " ) [ -m minlen ]"
146 Instructs the underlying storage device to release all storage that may
147 be backing free space in the filesystem.
148 The command takes the following options:
150 .BR -a ", " -f ", or the "
158 Trim free space extents in the given allocation group.
159 This option is mutually exclusive with the
160 .BR "-f" " option and the "
161 .IR "offset" "/" "length" " options."
165 Trim all free space in the filesystem.
166 This option is mutually exclusive with the
167 .BR "-a" " option and the "
168 .IR "offset" "/" "length" " options."
171 .IR "option" ", " "length"
172 Trim all free space within the physical range defined by the
176 from this filesystem.
177 Units can be appended to these arguments.
178 This option is mutually exclusive with the
179 .BR "-a" " and " "-f" " options."
183 Do not trim free space extents shorter than this length.
184 Units can be appended to this argument.