forked from Mirrors/btrfs-progs
btrfs-progs: doc: update defrag page
- update wording for -t - add optional argument to -c Signed-off-by: David Sterba <dsterba@suse.cz>master
parent
dedb1ebeee
commit
b681e2536e
|
@ -49,27 +49,32 @@ Defragment file data and/or directory metadata *online*.
|
||||||
If '-r' is passed, files in dir will be defragmented recursively.
|
If '-r' is passed, files in dir will be defragmented recursively.
|
||||||
The start position and the number of bytes to defragment can be specified by
|
The start position and the number of bytes to defragment can be specified by
|
||||||
start and len using '-s' and '-l' options below.
|
start and len using '-s' and '-l' options below.
|
||||||
Any extent bigger than threshold given by '-t' option, will be considered
|
Extents bigger than value given by '-t' will be skipped, otherwise this value
|
||||||
already defragged.
|
is used as a target extent size, but is only advisory and may not be reached
|
||||||
Use 0 to take the kernel default.
|
if the free space is too fragmented.
|
||||||
|
Use 0 to take the kernel default, which is 256kB but may change in the future.
|
||||||
You can also turn on compression in defragment operations.
|
You can also turn on compression in defragment operations.
|
||||||
+
|
+
|
||||||
`Options`
|
`Options`
|
||||||
+
|
+
|
||||||
-v::::
|
-v::::
|
||||||
be verbose
|
be verbose
|
||||||
-c::::
|
-c[<algo>]::::
|
||||||
compress file contents while defragmenting
|
compress file contents while defragmenting. Optional argument selects the compression
|
||||||
|
algorithm, 'zlib' (default) or 'lzo'. Currently it's not possible to select no
|
||||||
|
compression.
|
||||||
-r::::
|
-r::::
|
||||||
defragment files recursively
|
defragment files recursively in given directories
|
||||||
-f::::
|
-f::::
|
||||||
flush filesystem after defragmenting
|
flush data for each file before going to the next file. This will limit the amount
|
||||||
|
of dirty data to current file, otherwise the amount cumulates from several files
|
||||||
|
and may increase system load.
|
||||||
-s <start>[kKmMgGtTpPeE]::::
|
-s <start>[kKmMgGtTpPeE]::::
|
||||||
defragment only from byte <start> onward
|
defragment only from byte <start> onward
|
||||||
-l <len>[kKmMgGtTpPeE]::::
|
-l <len>[kKmMgGtTpPeE]::::
|
||||||
defragment only up to <len> bytes
|
defragment only up to <len> bytes
|
||||||
-t <size>[kKmMgGtTpPeE]::::
|
-t <size>[kKmMgGtTpPeE]::::
|
||||||
defragment only files at least <size> bytes big
|
target extent size, do not touch extents bigger than <size>
|
||||||
+
|
+
|
||||||
For <start>, <len>, <size> it is possible to append
|
For <start>, <len>, <size> it is possible to append
|
||||||
units designator: \'K', \'M', \'G', \'T', \'P', or \'E', which represent
|
units designator: \'K', \'M', \'G', \'T', \'P', or \'E', which represent
|
||||||
|
|
|
@ -1065,7 +1065,7 @@ static const char * const cmd_defrag_usage[] = {
|
||||||
"-f flush data to disk immediately after defragmenting",
|
"-f flush data to disk immediately after defragmenting",
|
||||||
"-s start defragment only from byte onward",
|
"-s start defragment only from byte onward",
|
||||||
"-l len defragment only up to len bytes",
|
"-l len defragment only up to len bytes",
|
||||||
"-t size minimal size of file to be considered for defragmenting",
|
"-t size target extent size hint",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue