1 Upstream-Status: Inappropriate [Backport]
2 From 0a63a11c3d3bbb7e061daad28435b5eef91a947d Mon Sep 17 00:00:00 2001
3 From: Hubert Kario <kario@wit.edu.pl>
4 Date: Sun, 23 Jan 2011 15:31:07 +0000
5 Subject: [PATCH 04/15] update man page to new defragment command interface
9 btrfs filesystem defragment
11 command explanation. Add explanation of advanced parameters and notes
14 Add few notes about the
16 btrfs <command> --help
18 usage, fix related grammar.
20 Signed-off-by: Hubert Kario <kario@wit.edu.pl>
21 Signed-off-by: Chris Mason <chris.mason@oracle.com>
23 man/btrfs.8.in | 33 ++++++++++++++++++++++++++-------
24 1 files changed, 26 insertions(+), 7 deletions(-)
26 diff --git a/man/btrfs.8.in b/man/btrfs.8.in
27 index 26ef982..cba2de1 100644
30 @@ -15,7 +15,7 @@ btrfs \- control a btrfs filesystem
32 \fBbtrfs\fP \fBsubvolume set-default\fP\fI <id> <path>\fP
34 -\fBbtrfs\fP \fBfilesystem defrag\fP\fI <file>|<dir> [<file>|<dir>...]\fP
35 +\fBbtrfs\fP \fBfilesystem defragment\fP\fI [-vcf] [-s start] [-l len] [-t size] <file>|<dir> [<file>|<dir>...]\fP
37 \fBbtrfs\fP \fBfilesystem sync\fP\fI <path> \fP
39 @@ -34,6 +34,8 @@ btrfs \- control a btrfs filesystem
41 \fBbtrfs\fP \fBhelp|\-\-help|\-h \fP\fI\fP
43 +\fBbtrfs\fP \fB<command> \-\-help \fP\fI\fP
47 is used to control the filesystem and the files and directories stored. It is
48 @@ -60,12 +62,12 @@ returns an error.
50 If a command is terminated by
52 -, the relevant help is showed. If the passed command matches more commands,
53 -the help of all the matched commands are showed. For example
54 +, the detailed help is showed. If the passed command matches more commands,
55 +detailed help of all the matched commands is showed. For example
64 @@ -98,12 +100,29 @@ mount time via the \fIsubvol=\fR option.
66 \fBsubvolume set-default\fR\fI <id> <path>\fR
67 Set the subvolume of the filesystem \fI<path>\fR which is mounted as
68 -\fIdefault\fR. The subvolume is identified by \fB<id>\fR, which
69 +\fIdefault\fR. The subvolume is identified by \fI<id>\fR, which
70 is returned by the \fBsubvolume list\fR command.
73 -\fBfilesystem defragment\fP\fI <file>|<dir> [<file>|<dir>...]\fR
74 -Defragment files and/or directories.
75 +\fBfilesystem defragment\fP\fI [-vcf] [-s start] [-l len] [-t size] <file>|<dir> [<file>|<dir>...]\fR
76 +Defragment file data and/or directory metadata. To defragment all files in a
77 +directory you have to specify each one on its own or use your shell wildcards.
81 +\fB-c\fP compress file contents while defragmenting
83 +\fB-f\fP flush filesystem after defragmenting
85 +\fB-s start\fP defragment only from byte \fIstart\fR onward
87 +\fB-l len\fP defragment only up to \fIlen\fR bytes
89 +\fB-t size\fP defragment only files at least \fIsize\fR bytes big
91 +NOTE: defragmenting with kernels up to 2.6.37 will unlink COW-ed copies of data, don't
92 +use it if you use snapshots, have de-duplicated your data or made copies with
96 \fBdevice scan\fR \fI[<device> [<device>..]]\fR