path: root/man
diff options
authorLi Zefan <>2010-11-18 03:49:56 +0000
committerChris Mason <>2011-10-25 09:18:31 -0400
commita418b24318723c0a45fe1f1b76b9286baa36c537 (patch)
treec2a4138d73454235ca1757ed0a8df561f5cb615c /man
parentb8802ae3fa0c70d4cfc3287ed07479925973b0ac (diff)
Update for lzo support
[Btrfs-Progs][V2] Update for lzo support - Add incompat flag, otherwise btrfs-progs will report error when operating on btrfs filesystems mounted with lzo option. - Update man page. - Allow to turn on lzo compression for defrag operation: # btrfs filesystem defragment -c[zlib, lzo] <file> Note: "-c zlib" will fail, because that's how getopt() works for optional arguments. Signed-off-by: Li Zefan <> Signed-off-by: Chris Mason <>
Diffstat (limited to 'man')
1 files changed, 6 insertions, 4 deletions
diff --git a/man/ b/man/
index cba2de1f..1ffed135 100644
--- a/man/
+++ b/man/
@@ -15,12 +15,12 @@ btrfs \- control a btrfs filesystem
\fBbtrfs\fP \fBsubvolume set-default\fP\fI <id> <path>\fP
-\fBbtrfs\fP \fBfilesystem defragment\fP\fI [-vcf] [-s start] [-l len] [-t size] <file>|<dir> [<file>|<dir>...]\fP
\fBbtrfs\fP \fBfilesystem sync\fP\fI <path> \fP
\fBbtrfs\fP \fBfilesystem resize\fP\fI [+/\-]<size>[gkm]|max <filesystem>\fP
+\fBbtrfs\fP \fBfilesystem defrag\fP\fI [options] <file>|<dir> [<file>|<dir>...]\fP
\fBbtrfs\fP \fBdevice scan\fP\fI [<device> [<device>..]]\fP
\fBbtrfs\fP \fBdevice show\fP\fI <dev>|<label> [<dev>|<label>...]\fP
@@ -30,7 +30,6 @@ btrfs \- control a btrfs filesystem
\fBbtrfs\fP \fBdevice add\fP\fI <dev> [<dev>..] <path> \fP
\fBbtrfs\fP \fBdevice delete\fP\fI <dev> [<dev>..] <path> \fP]
\fBbtrfs\fP \fBhelp|\-\-help|\-h \fP\fI\fP
@@ -104,10 +103,13 @@ Set the subvolume of the filesystem \fI<path>\fR which is mounted as
is returned by the \fBsubvolume list\fR command.
-\fBfilesystem defragment\fP\fI [-vcf] [-s start] [-l len] [-t size] <file>|<dir> [<file>|<dir>...]\fR
+\fBfilesystem defragment\fP -c[zlib|lzo] [-l \fIlen\fR] [-s \fIstart\fR] [-t \fIsize\fR] -[vf] <\fIfile\fR>|<\fIdir\fR> [<\fIfile\fR>|<\fIdir\fR>...]
Defragment file data and/or directory metadata. To defragment all files in a
directory you have to specify each one on its own or use your shell wildcards.
+The start position and the number of bytes to deframention can be specified by \fIstart\fR and \fIlen\fR. Any extent bigger than \fIthresh\fR will be considered already defragged. Use 0 to take the kernel default, and use 1 to say eveery single extent must be rewritten. You can also turn on compression in defragment operations.
\fB-v\fP be verbose
\fB-c\fP compress file contents while defragmenting