Apple Xsan 1.1 User Manual
Page 118

118
Appendix B
Using the Command Line
Examples
Count the extents in file
datafile
:
$ snfsdefrag -c datafile
List the extents:
$ snfsdefrag -e datafile
Defragment the file
datafile
:
$ snfsdefrag datafile
Defragment the file datafile only if it has more than two extents:
$ snfsdefrag -m 2 datafile
Defragment every file in the directory
/datafolder
(or any directory within
/datafolder
) that has more than one extent:
$ snfsdefrag -r datafolder
Recover unused pre-allocated disk space assigned to every file in directory
/datafolder
:
$ snfsdefrag -rp datafolder
-r [target]
Operate recursively to defragment all files in all directories within
the specified target directory.
-s
Allocate new extents on block boundaries.
-v
Display all available information and status during
defragmentation.
Parameter
Description