2010-03-11 21:32:50 +00:00
|
|
|
.TH BTRFS 8 "" "btrfs" "btrfs"
|
|
|
|
.\"
|
|
|
|
.\" Man page written by Goffredo Baroncelli <kreijack@inwind.it> (Feb 2010)
|
|
|
|
.\"
|
|
|
|
.SH NAME
|
|
|
|
btrfs \- control a btrfs filesystem
|
|
|
|
.SH SYNOPSIS
|
2011-04-26 08:02:44 +00:00
|
|
|
\fBbtrfs\fP \fBsubvolume snapshot\fP\fI [-r] <source> [<dest>/]<name>\fP
|
2010-03-11 21:32:50 +00:00
|
|
|
.PP
|
|
|
|
\fBbtrfs\fP \fBsubvolume delete\fP\fI <subvolume>\fP
|
|
|
|
.PP
|
|
|
|
\fBbtrfs\fP \fBsubvolume create\fP\fI [<dest>/]<name>\fP
|
|
|
|
.PP
|
2012-09-27 17:33:01 +00:00
|
|
|
\fBbtrfs\fP \fBsubvolume list\fP\fI [-aprts] [-g [+|-]value] [-c [+|-]value] [--rootid=rootid,gen,ogen,path] <path>\fP
|
2010-03-11 21:32:50 +00:00
|
|
|
.PP
|
|
|
|
\fBbtrfs\fP \fBsubvolume set-default\fP\fI <id> <path>\fP
|
|
|
|
.PP
|
2011-07-12 02:48:37 +00:00
|
|
|
\fBbtrfs\fP \fBsubvolume get-default\fP\fI <path>\fP
|
|
|
|
.PP
|
2011-12-16 08:46:48 +00:00
|
|
|
\fBbtrfs\fP \fBfilesystem defragment\fP -c[zlib|lzo] [-l \fIlen\fR] \
|
|
|
|
[-s \fIstart\fR] [-t \fIsize\fR] -[vf] <\fIfile\fR>|<\fIdir\fR> \
|
|
|
|
[<\fIfile\fR>|<\fIdir\fR>...]
|
|
|
|
.PP
|
2010-03-11 21:32:50 +00:00
|
|
|
\fBbtrfs\fP \fBfilesystem sync\fP\fI <path> \fP
|
|
|
|
.PP
|
2012-05-26 17:57:55 +00:00
|
|
|
\fBbtrfs\fP \fBfilesystem resize\fP\fI [devid:][+/\-]<size>[gkm]|[devid:]max <filesystem>\fP
|
2010-03-11 21:32:50 +00:00
|
|
|
.PP
|
2010-12-05 17:46:44 +00:00
|
|
|
\fBbtrfs\fP \fBfilesystem label\fP\fI <dev> [newlabel]\fP
|
|
|
|
.PP
|
Update/clean up btrfs help and man page V2
Hi all,
enclose you can find a patch which improves the help of the btrfs commands,
updates the INSTALL file and the btrfs (command) man page.
Regarding the help of the btrfs command:
- moved the "subvolume set-default" command in the "subvolume" commands group
- removed a wrong new line
- small tweak on the basis of Andreas suggestion
Regarding the btrfs command man page:
- renaming the command "device balance" in "filesystem balance" (thanks to
Andreas Phillipp to highlight that)
- adding the entry "subvolume find-new"
- document the switches of the command "filesystem defrag"
- document the <devid> facility of the command "filesystem resize"
- small tweak on the basis of Andreas suggestion
Regarding the INSTALL file, which was very old, I removed the reference of the
old btrfsctl utility and changed the examples using the btrfs command.
I removed the old (and now wrong) statement about the inability to delete a
subvolume/snapshot
Chris, you can pull the patch from the branch "help_cleanup" of the following
repository.
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git
(or you can browse the changes at
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git/?p=btrfs-
progs-unstable-all.git;a=summary)
The patch is very simple: only updates the man page, the INSTALL file and
moves/updates some lines in the help of btrfs command. Comments are welcome.
Regards
G.Baroncelli
INSTALL | 29 ++++++++++++++++++++---------
btrfs.c | 24 ++++++++++++------------
man/btrfs.8.in | 45 +++++++++++++++++++++++++--------------------
3 files changed, 57 insertions(+), 41 deletions(-)
all the block devices.
.TP
@@ -138,21 +143,21 @@ can expand the partition before enlarging the filesystem
and shrink the
partition after reducing the size of the filesystem.
.TP
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
+\fBfilesystem show\fR [<device>|<uuid>|<label>]\fR
+Show the btrfs filesystem with some additional info. If no argument is
+passed, \fBbtrfs\fR shows info of all the btrfs filesystems.
.TP
-\fBdevice balance\fR \fI<path>\fR
+\fBfilesystem balance\fR \fI<path>\fR
Balance the chunks of the filesystem identified by \fI<path>\fR
across the devices.
.TP
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice add\fR\fI <device> [<device>...] <path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.
.TP
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice delete\fR\fI <device> [<device>...] <path>\fR
Remove device(s) from a filesystem identified by \fI<path>\fR.
.PP
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-12-05 17:47:45 +00:00
|
|
|
\fBbtrfs\fP \fBsubvolume find-new\fP\fI <subvolume> <last_gen>\fP
|
2010-03-11 21:32:50 +00:00
|
|
|
.PP
|
Update/clean up btrfs help and man page V2
Hi all,
enclose you can find a patch which improves the help of the btrfs commands,
updates the INSTALL file and the btrfs (command) man page.
Regarding the help of the btrfs command:
- moved the "subvolume set-default" command in the "subvolume" commands group
- removed a wrong new line
- small tweak on the basis of Andreas suggestion
Regarding the btrfs command man page:
- renaming the command "device balance" in "filesystem balance" (thanks to
Andreas Phillipp to highlight that)
- adding the entry "subvolume find-new"
- document the switches of the command "filesystem defrag"
- document the <devid> facility of the command "filesystem resize"
- small tweak on the basis of Andreas suggestion
Regarding the INSTALL file, which was very old, I removed the reference of the
old btrfsctl utility and changed the examples using the btrfs command.
I removed the old (and now wrong) statement about the inability to delete a
subvolume/snapshot
Chris, you can pull the patch from the branch "help_cleanup" of the following
repository.
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git
(or you can browse the changes at
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git/?p=btrfs-
progs-unstable-all.git;a=summary)
The patch is very simple: only updates the man page, the INSTALL file and
moves/updates some lines in the help of btrfs command. Comments are welcome.
Regards
G.Baroncelli
INSTALL | 29 ++++++++++++++++++++---------
btrfs.c | 24 ++++++++++++------------
man/btrfs.8.in | 45 +++++++++++++++++++++++++--------------------
3 files changed, 57 insertions(+), 41 deletions(-)
all the block devices.
.TP
@@ -138,21 +143,21 @@ can expand the partition before enlarging the filesystem
and shrink the
partition after reducing the size of the filesystem.
.TP
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
+\fBfilesystem show\fR [<device>|<uuid>|<label>]\fR
+Show the btrfs filesystem with some additional info. If no argument is
+passed, \fBbtrfs\fR shows info of all the btrfs filesystems.
.TP
-\fBdevice balance\fR \fI<path>\fR
+\fBfilesystem balance\fR \fI<path>\fR
Balance the chunks of the filesystem identified by \fI<path>\fR
across the devices.
.TP
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice add\fR\fI <device> [<device>...] <path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.
.TP
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice delete\fR\fI <device> [<device>...] <path>\fR
Remove device(s) from a filesystem identified by \fI<path>\fR.
.PP
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-12-05 17:47:45 +00:00
|
|
|
\fBbtrfs\fP \fBfilesystem balance\fP\fI <path> \fP
|
2010-03-11 21:32:50 +00:00
|
|
|
.PP
|
2011-06-15 19:55:25 +00:00
|
|
|
\fBbtrfs\fP \fBdevice scan\fP\fI [--all-devices|<device> [<device>...]]\fP
|
2010-03-11 21:32:50 +00:00
|
|
|
.PP
|
2011-06-15 19:55:25 +00:00
|
|
|
\fBbtrfs\fP \fBdevice show\fP\fI [--all-devices|<uuid>|<label>]\fP
|
Update/clean up btrfs help and man page V2
Hi all,
enclose you can find a patch which improves the help of the btrfs commands,
updates the INSTALL file and the btrfs (command) man page.
Regarding the help of the btrfs command:
- moved the "subvolume set-default" command in the "subvolume" commands group
- removed a wrong new line
- small tweak on the basis of Andreas suggestion
Regarding the btrfs command man page:
- renaming the command "device balance" in "filesystem balance" (thanks to
Andreas Phillipp to highlight that)
- adding the entry "subvolume find-new"
- document the switches of the command "filesystem defrag"
- document the <devid> facility of the command "filesystem resize"
- small tweak on the basis of Andreas suggestion
Regarding the INSTALL file, which was very old, I removed the reference of the
old btrfsctl utility and changed the examples using the btrfs command.
I removed the old (and now wrong) statement about the inability to delete a
subvolume/snapshot
Chris, you can pull the patch from the branch "help_cleanup" of the following
repository.
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git
(or you can browse the changes at
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git/?p=btrfs-
progs-unstable-all.git;a=summary)
The patch is very simple: only updates the man page, the INSTALL file and
moves/updates some lines in the help of btrfs command. Comments are welcome.
Regards
G.Baroncelli
INSTALL | 29 ++++++++++++++++++++---------
btrfs.c | 24 ++++++++++++------------
man/btrfs.8.in | 45 +++++++++++++++++++++++++--------------------
3 files changed, 57 insertions(+), 41 deletions(-)
all the block devices.
.TP
@@ -138,21 +143,21 @@ can expand the partition before enlarging the filesystem
and shrink the
partition after reducing the size of the filesystem.
.TP
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
+\fBfilesystem show\fR [<device>|<uuid>|<label>]\fR
+Show the btrfs filesystem with some additional info. If no argument is
+passed, \fBbtrfs\fR shows info of all the btrfs filesystems.
.TP
-\fBdevice balance\fR \fI<path>\fR
+\fBfilesystem balance\fR \fI<path>\fR
Balance the chunks of the filesystem identified by \fI<path>\fR
across the devices.
.TP
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice add\fR\fI <device> [<device>...] <path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.
.TP
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice delete\fR\fI <device> [<device>...] <path>\fR
Remove device(s) from a filesystem identified by \fI<path>\fR.
.PP
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-12-05 17:47:45 +00:00
|
|
|
.PP
|
|
|
|
\fBbtrfs\fP \fBdevice add\fP\fI <device> [<device>...] <path> \fP
|
|
|
|
.PP
|
2011-07-18 12:37:25 +00:00
|
|
|
\fBbtrfs\fP \fBdevice delete\fP\fI <device> [<device>...] <path> \fP
|
|
|
|
.PP
|
|
|
|
\fBbtrfs\fP \fBscrub start\fP [-Bdqru] {\fI<path>\fP|\fI<device>\fP}
|
|
|
|
.PP
|
|
|
|
\fBbtrfs\fP \fBscrub cancel\fP {\fI<path>\fP|\fI<device>\fP}
|
|
|
|
.PP
|
|
|
|
\fBbtrfs\fP \fBscrub resume\fP [-Bdqru] {\fI<path>\fP|\fI<device>\fP}
|
|
|
|
.PP
|
|
|
|
\fBbtrfs\fP \fBscrub status\fP [-d] {\fI<path>\fP|\fI<device>\fP}
|
2010-03-11 21:32:50 +00:00
|
|
|
.PP
|
2011-07-08 10:25:11 +00:00
|
|
|
\fBbtrfs\fP \fBinspect-internal inode-resolve\fP [-v] \fI<inode>\fP \fI<path>\fP
|
|
|
|
.PP
|
|
|
|
\fBbtrfs\fP \fBinspect-internal logical-resolve\fP
|
|
|
|
[-Pv] \fI<logical>\fP \fI<path>\fP
|
|
|
|
.PP
|
2010-03-11 21:32:50 +00:00
|
|
|
\fBbtrfs\fP \fBhelp|\-\-help|\-h \fP\fI\fP
|
|
|
|
.PP
|
2011-01-23 15:31:07 +00:00
|
|
|
\fBbtrfs\fP \fB<command> \-\-help \fP\fI\fP
|
|
|
|
.PP
|
2010-03-11 21:32:50 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B btrfs
|
|
|
|
is used to control the filesystem and the files and directories stored. It is
|
|
|
|
the tool to create or destroy a snapshot or a subvolume for the
|
|
|
|
filesystem, to defrag a file or a directory, flush the data to the disk,
|
|
|
|
to resize the filesystem, to scan the device.
|
|
|
|
|
|
|
|
It is possible to abbreviate the commands unless the commands are ambiguous.
|
|
|
|
For example: it is possible to run
|
|
|
|
.I btrfs sub snaps
|
|
|
|
instead of
|
|
|
|
.I btrfs subvolume snapshot.
|
|
|
|
But
|
Update/clean up btrfs help and man page V2
Hi all,
enclose you can find a patch which improves the help of the btrfs commands,
updates the INSTALL file and the btrfs (command) man page.
Regarding the help of the btrfs command:
- moved the "subvolume set-default" command in the "subvolume" commands group
- removed a wrong new line
- small tweak on the basis of Andreas suggestion
Regarding the btrfs command man page:
- renaming the command "device balance" in "filesystem balance" (thanks to
Andreas Phillipp to highlight that)
- adding the entry "subvolume find-new"
- document the switches of the command "filesystem defrag"
- document the <devid> facility of the command "filesystem resize"
- small tweak on the basis of Andreas suggestion
Regarding the INSTALL file, which was very old, I removed the reference of the
old btrfsctl utility and changed the examples using the btrfs command.
I removed the old (and now wrong) statement about the inability to delete a
subvolume/snapshot
Chris, you can pull the patch from the branch "help_cleanup" of the following
repository.
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git
(or you can browse the changes at
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git/?p=btrfs-
progs-unstable-all.git;a=summary)
The patch is very simple: only updates the man page, the INSTALL file and
moves/updates some lines in the help of btrfs command. Comments are welcome.
Regards
G.Baroncelli
INSTALL | 29 ++++++++++++++++++++---------
btrfs.c | 24 ++++++++++++------------
man/btrfs.8.in | 45 +++++++++++++++++++++++++--------------------
3 files changed, 57 insertions(+), 41 deletions(-)
all the block devices.
.TP
@@ -138,21 +143,21 @@ can expand the partition before enlarging the filesystem
and shrink the
partition after reducing the size of the filesystem.
.TP
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
+\fBfilesystem show\fR [<device>|<uuid>|<label>]\fR
+Show the btrfs filesystem with some additional info. If no argument is
+passed, \fBbtrfs\fR shows info of all the btrfs filesystems.
.TP
-\fBdevice balance\fR \fI<path>\fR
+\fBfilesystem balance\fR \fI<path>\fR
Balance the chunks of the filesystem identified by \fI<path>\fR
across the devices.
.TP
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice add\fR\fI <device> [<device>...] <path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.
.TP
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice delete\fR\fI <device> [<device>...] <path>\fR
Remove device(s) from a filesystem identified by \fI<path>\fR.
.PP
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-12-05 17:47:45 +00:00
|
|
|
.I btrfs file s
|
2010-03-11 21:32:50 +00:00
|
|
|
is not allowed, because
|
Update/clean up btrfs help and man page V2
Hi all,
enclose you can find a patch which improves the help of the btrfs commands,
updates the INSTALL file and the btrfs (command) man page.
Regarding the help of the btrfs command:
- moved the "subvolume set-default" command in the "subvolume" commands group
- removed a wrong new line
- small tweak on the basis of Andreas suggestion
Regarding the btrfs command man page:
- renaming the command "device balance" in "filesystem balance" (thanks to
Andreas Phillipp to highlight that)
- adding the entry "subvolume find-new"
- document the switches of the command "filesystem defrag"
- document the <devid> facility of the command "filesystem resize"
- small tweak on the basis of Andreas suggestion
Regarding the INSTALL file, which was very old, I removed the reference of the
old btrfsctl utility and changed the examples using the btrfs command.
I removed the old (and now wrong) statement about the inability to delete a
subvolume/snapshot
Chris, you can pull the patch from the branch "help_cleanup" of the following
repository.
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git
(or you can browse the changes at
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git/?p=btrfs-
progs-unstable-all.git;a=summary)
The patch is very simple: only updates the man page, the INSTALL file and
moves/updates some lines in the help of btrfs command. Comments are welcome.
Regards
G.Baroncelli
INSTALL | 29 ++++++++++++++++++++---------
btrfs.c | 24 ++++++++++++------------
man/btrfs.8.in | 45 +++++++++++++++++++++++++--------------------
3 files changed, 57 insertions(+), 41 deletions(-)
all the block devices.
.TP
@@ -138,21 +143,21 @@ can expand the partition before enlarging the filesystem
and shrink the
partition after reducing the size of the filesystem.
.TP
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
+\fBfilesystem show\fR [<device>|<uuid>|<label>]\fR
+Show the btrfs filesystem with some additional info. If no argument is
+passed, \fBbtrfs\fR shows info of all the btrfs filesystems.
.TP
-\fBdevice balance\fR \fI<path>\fR
+\fBfilesystem balance\fR \fI<path>\fR
Balance the chunks of the filesystem identified by \fI<path>\fR
across the devices.
.TP
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice add\fR\fI <device> [<device>...] <path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.
.TP
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice delete\fR\fI <device> [<device>...] <path>\fR
Remove device(s) from a filesystem identified by \fI<path>\fR.
.PP
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-12-05 17:47:45 +00:00
|
|
|
.I file s
|
2010-03-11 21:32:50 +00:00
|
|
|
may be interpreted both as
|
Update/clean up btrfs help and man page V2
Hi all,
enclose you can find a patch which improves the help of the btrfs commands,
updates the INSTALL file and the btrfs (command) man page.
Regarding the help of the btrfs command:
- moved the "subvolume set-default" command in the "subvolume" commands group
- removed a wrong new line
- small tweak on the basis of Andreas suggestion
Regarding the btrfs command man page:
- renaming the command "device balance" in "filesystem balance" (thanks to
Andreas Phillipp to highlight that)
- adding the entry "subvolume find-new"
- document the switches of the command "filesystem defrag"
- document the <devid> facility of the command "filesystem resize"
- small tweak on the basis of Andreas suggestion
Regarding the INSTALL file, which was very old, I removed the reference of the
old btrfsctl utility and changed the examples using the btrfs command.
I removed the old (and now wrong) statement about the inability to delete a
subvolume/snapshot
Chris, you can pull the patch from the branch "help_cleanup" of the following
repository.
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git
(or you can browse the changes at
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git/?p=btrfs-
progs-unstable-all.git;a=summary)
The patch is very simple: only updates the man page, the INSTALL file and
moves/updates some lines in the help of btrfs command. Comments are welcome.
Regards
G.Baroncelli
INSTALL | 29 ++++++++++++++++++++---------
btrfs.c | 24 ++++++++++++------------
man/btrfs.8.in | 45 +++++++++++++++++++++++++--------------------
3 files changed, 57 insertions(+), 41 deletions(-)
all the block devices.
.TP
@@ -138,21 +143,21 @@ can expand the partition before enlarging the filesystem
and shrink the
partition after reducing the size of the filesystem.
.TP
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
+\fBfilesystem show\fR [<device>|<uuid>|<label>]\fR
+Show the btrfs filesystem with some additional info. If no argument is
+passed, \fBbtrfs\fR shows info of all the btrfs filesystems.
.TP
-\fBdevice balance\fR \fI<path>\fR
+\fBfilesystem balance\fR \fI<path>\fR
Balance the chunks of the filesystem identified by \fI<path>\fR
across the devices.
.TP
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice add\fR\fI <device> [<device>...] <path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.
.TP
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice delete\fR\fI <device> [<device>...] <path>\fR
Remove device(s) from a filesystem identified by \fI<path>\fR.
.PP
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-12-05 17:47:45 +00:00
|
|
|
.I filesystem show
|
2010-03-11 21:32:50 +00:00
|
|
|
and as
|
Update/clean up btrfs help and man page V2
Hi all,
enclose you can find a patch which improves the help of the btrfs commands,
updates the INSTALL file and the btrfs (command) man page.
Regarding the help of the btrfs command:
- moved the "subvolume set-default" command in the "subvolume" commands group
- removed a wrong new line
- small tweak on the basis of Andreas suggestion
Regarding the btrfs command man page:
- renaming the command "device balance" in "filesystem balance" (thanks to
Andreas Phillipp to highlight that)
- adding the entry "subvolume find-new"
- document the switches of the command "filesystem defrag"
- document the <devid> facility of the command "filesystem resize"
- small tweak on the basis of Andreas suggestion
Regarding the INSTALL file, which was very old, I removed the reference of the
old btrfsctl utility and changed the examples using the btrfs command.
I removed the old (and now wrong) statement about the inability to delete a
subvolume/snapshot
Chris, you can pull the patch from the branch "help_cleanup" of the following
repository.
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git
(or you can browse the changes at
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git/?p=btrfs-
progs-unstable-all.git;a=summary)
The patch is very simple: only updates the man page, the INSTALL file and
moves/updates some lines in the help of btrfs command. Comments are welcome.
Regards
G.Baroncelli
INSTALL | 29 ++++++++++++++++++++---------
btrfs.c | 24 ++++++++++++------------
man/btrfs.8.in | 45 +++++++++++++++++++++++++--------------------
3 files changed, 57 insertions(+), 41 deletions(-)
all the block devices.
.TP
@@ -138,21 +143,21 @@ can expand the partition before enlarging the filesystem
and shrink the
partition after reducing the size of the filesystem.
.TP
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
+\fBfilesystem show\fR [<device>|<uuid>|<label>]\fR
+Show the btrfs filesystem with some additional info. If no argument is
+passed, \fBbtrfs\fR shows info of all the btrfs filesystems.
.TP
-\fBdevice balance\fR \fI<path>\fR
+\fBfilesystem balance\fR \fI<path>\fR
Balance the chunks of the filesystem identified by \fI<path>\fR
across the devices.
.TP
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice add\fR\fI <device> [<device>...] <path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.
.TP
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice delete\fR\fI <device> [<device>...] <path>\fR
Remove device(s) from a filesystem identified by \fI<path>\fR.
.PP
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-12-05 17:47:45 +00:00
|
|
|
.I filesystem sync.
|
2010-03-11 21:32:50 +00:00
|
|
|
In this case
|
|
|
|
.I btrfs
|
2011-12-16 08:46:48 +00:00
|
|
|
returns filesystem sync
|
2010-03-11 21:32:50 +00:00
|
|
|
If a command is terminated by
|
|
|
|
.I --help
|
2011-01-23 15:31:07 +00:00
|
|
|
, the detailed help is showed. If the passed command matches more commands,
|
|
|
|
detailed help of all the matched commands is showed. For example
|
2010-03-11 21:32:50 +00:00
|
|
|
.I btrfs dev --help
|
|
|
|
shows the help of all
|
|
|
|
.I device*
|
2011-01-23 15:31:07 +00:00
|
|
|
commands.
|
2010-03-11 21:32:50 +00:00
|
|
|
|
|
|
|
.SH COMMANDS
|
|
|
|
.TP
|
|
|
|
|
2011-04-26 08:02:44 +00:00
|
|
|
\fBsubvolume snapshot\fR\fI [-r] <source> [<dest>/]<name>\fR
|
|
|
|
Create a writable/readonly snapshot of the subvolume \fI<source>\fR with the
|
|
|
|
name \fI<name>\fR in the \fI<dest>\fR directory. If \fI<source>\fR is not a
|
|
|
|
subvolume, \fBbtrfs\fR returns an error. If \fI-r\fR is given, the snapshot
|
|
|
|
will be readonly.
|
2010-03-11 21:32:50 +00:00
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBsubvolume delete\fR\fI <subvolume>\fR
|
|
|
|
Delete the subvolume \fI<subvolume>\fR. If \fI<subvolume>\fR is not a
|
|
|
|
subvolume, \fBbtrfs\fR returns an error.
|
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBsubvolume create\fR\fI [<dest>/]<name>\fR
|
|
|
|
Create a subvolume in \fI<dest>\fR (or in the current directory if
|
|
|
|
\fI<dest>\fR is omitted).
|
|
|
|
.TP
|
|
|
|
|
2012-09-27 17:33:01 +00:00
|
|
|
\fBsubvolume list\fR\fI [-aprts][-g [+|-]value] [-c [+|-]value] [--sort=gen,ogen,rootid,path] <path>\fR
|
Btrfs-progs: introduce -g -c --sort options into btrfs subvol list command
This patch introduces '-g' '-c' '--sort' options
The option '-g' can help you filter the subvolumes by the generation, you may
use it just like:
btrfs subvol list -g +/-value <path>
'+' means the generation of the subvolumes should >= the value you specified.
'-' means the generation should <= the value
If you don't input either '+' nor '-', this command will list the subvolumes
that their generation equals to the value.
However if you want to find gengeration between value1 and value2
you may use the above like:
btrfs sub list -g -value1 -g +value2 <path>
The option '-c' can help you filter the subvolumes by the ogeneration, you may
use it just like:
btrfs subvol list -c +/-value <path>
The usage is the same to '-g'
You might want to list subvolumes in order of some items, such as root id, gen
and so on, you can use '--sort'. Now you can sort the subvolumes by root id,
gen, ogen and path.
For example:
If you want to list subvolumes in order of rootid, you can use the option like
that:
btrfs sub list --sort=+/-rooid <path>
Here, '+' means the result is sorted by ascending order. '-' is by descending
order. If you don't specify either '+' nor '-', the result is sorted by
default - ascending order.
If you want to combine sort items, you do it like that:
btrfs sub list --sort=-rootid,+path,ogen,gen <path>
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
2012-09-19 09:21:51 +00:00
|
|
|
.RS
|
2010-03-11 21:32:50 +00:00
|
|
|
List the subvolumes present in the filesystem \fI<path>\fR. For every
|
2011-07-02 22:26:40 +00:00
|
|
|
subvolume the following information is shown by default.
|
|
|
|
ID <ID> top level <ID> path <path>
|
|
|
|
where path is the relative path of the subvolume to the \fItop level\fR
|
|
|
|
subvolume.
|
Btrfs-progs: introduce -g -c --sort options into btrfs subvol list command
This patch introduces '-g' '-c' '--sort' options
The option '-g' can help you filter the subvolumes by the generation, you may
use it just like:
btrfs subvol list -g +/-value <path>
'+' means the generation of the subvolumes should >= the value you specified.
'-' means the generation should <= the value
If you don't input either '+' nor '-', this command will list the subvolumes
that their generation equals to the value.
However if you want to find gengeration between value1 and value2
you may use the above like:
btrfs sub list -g -value1 -g +value2 <path>
The option '-c' can help you filter the subvolumes by the ogeneration, you may
use it just like:
btrfs subvol list -c +/-value <path>
The usage is the same to '-g'
You might want to list subvolumes in order of some items, such as root id, gen
and so on, you can use '--sort'. Now you can sort the subvolumes by root id,
gen, ogen and path.
For example:
If you want to list subvolumes in order of rootid, you can use the option like
that:
btrfs sub list --sort=+/-rooid <path>
Here, '+' means the result is sorted by ascending order. '-' is by descending
order. If you don't specify either '+' nor '-', the result is sorted by
default - ascending order.
If you want to combine sort items, you do it like that:
btrfs sub list --sort=-rootid,+path,ogen,gen <path>
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
2012-09-19 09:21:51 +00:00
|
|
|
|
2011-07-02 22:26:40 +00:00
|
|
|
The subvolume's ID may be used by the \fBsubvolume set-default\fR command, or
|
|
|
|
at mount time via the \fIsubvol=\fR option.
|
|
|
|
If \fI-p\fR is given, then \fIparent <ID>\fR is added to the output between ID
|
|
|
|
and top level. The parent's ID may be used at mount time via the
|
|
|
|
\fIsubvolrootid=\fR option.
|
Btrfs-progs: introduce -g -c --sort options into btrfs subvol list command
This patch introduces '-g' '-c' '--sort' options
The option '-g' can help you filter the subvolumes by the generation, you may
use it just like:
btrfs subvol list -g +/-value <path>
'+' means the generation of the subvolumes should >= the value you specified.
'-' means the generation should <= the value
If you don't input either '+' nor '-', this command will list the subvolumes
that their generation equals to the value.
However if you want to find gengeration between value1 and value2
you may use the above like:
btrfs sub list -g -value1 -g +value2 <path>
The option '-c' can help you filter the subvolumes by the ogeneration, you may
use it just like:
btrfs subvol list -c +/-value <path>
The usage is the same to '-g'
You might want to list subvolumes in order of some items, such as root id, gen
and so on, you can use '--sort'. Now you can sort the subvolumes by root id,
gen, ogen and path.
For example:
If you want to list subvolumes in order of rootid, you can use the option like
that:
btrfs sub list --sort=+/-rooid <path>
Here, '+' means the result is sorted by ascending order. '-' is by descending
order. If you don't specify either '+' nor '-', the result is sorted by
default - ascending order.
If you want to combine sort items, you do it like that:
btrfs sub list --sort=-rootid,+path,ogen,gen <path>
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
2012-09-19 09:21:51 +00:00
|
|
|
|
2012-09-20 11:04:22 +00:00
|
|
|
\fB-t\fP print the result as a table.
|
|
|
|
|
2012-09-27 17:25:00 +00:00
|
|
|
\fB-a\fP print all the subvolumes in the filesystem.
|
|
|
|
|
Btrfs-progs: introduce -g -c --sort options into btrfs subvol list command
This patch introduces '-g' '-c' '--sort' options
The option '-g' can help you filter the subvolumes by the generation, you may
use it just like:
btrfs subvol list -g +/-value <path>
'+' means the generation of the subvolumes should >= the value you specified.
'-' means the generation should <= the value
If you don't input either '+' nor '-', this command will list the subvolumes
that their generation equals to the value.
However if you want to find gengeration between value1 and value2
you may use the above like:
btrfs sub list -g -value1 -g +value2 <path>
The option '-c' can help you filter the subvolumes by the ogeneration, you may
use it just like:
btrfs subvol list -c +/-value <path>
The usage is the same to '-g'
You might want to list subvolumes in order of some items, such as root id, gen
and so on, you can use '--sort'. Now you can sort the subvolumes by root id,
gen, ogen and path.
For example:
If you want to list subvolumes in order of rootid, you can use the option like
that:
btrfs sub list --sort=+/-rooid <path>
Here, '+' means the result is sorted by ascending order. '-' is by descending
order. If you don't specify either '+' nor '-', the result is sorted by
default - ascending order.
If you want to combine sort items, you do it like that:
btrfs sub list --sort=-rootid,+path,ogen,gen <path>
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
2012-09-19 09:21:51 +00:00
|
|
|
\fB-r\fP only readonly subvolumes in the filesystem wille be listed.
|
|
|
|
|
|
|
|
\fB-s\fP only snapshot subvolumes in the filesystem will be listed.
|
|
|
|
|
|
|
|
\fB-g [+|-]value\fP
|
|
|
|
list subvolumes in the filesystem that its generation is
|
|
|
|
>=, <= or = value. '+' means >= value, '-' means <= value, If there is
|
|
|
|
neither '+' nor '-', it means = value.
|
|
|
|
|
|
|
|
\fB-c [+|-]value\fP
|
|
|
|
list subvolumes in the filesystem that its ogeneration is
|
|
|
|
>=, <= or = value. The usage is the same to '-g' option.
|
|
|
|
|
|
|
|
\fB--sort=gen,ogen,path,rootid\fP
|
|
|
|
list subvolumes in order by specified items.
|
|
|
|
you can add '+' or '-' in front of each items, '+' means ascending,'-'
|
|
|
|
means descending. The default is ascending.
|
|
|
|
|
|
|
|
for \fB--sort\fP you can combine some items together by ',', just like
|
|
|
|
\f--sort=+ogen,-gen,path,rootid\fR.
|
|
|
|
.RE
|
2010-03-11 21:32:50 +00:00
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBsubvolume set-default\fR\fI <id> <path>\fR
|
|
|
|
Set the subvolume of the filesystem \fI<path>\fR which is mounted as
|
2011-01-23 15:31:07 +00:00
|
|
|
\fIdefault\fR. The subvolume is identified by \fI<id>\fR, which
|
2010-03-11 21:32:50 +00:00
|
|
|
is returned by the \fBsubvolume list\fR command.
|
|
|
|
.TP
|
|
|
|
|
2011-07-12 02:48:37 +00:00
|
|
|
\fBsubvolume get-default\fR\fI <path>\fR
|
|
|
|
Get the default subvolume of the filesystem \fI<path>\fR. The output format
|
|
|
|
is similar to \fBsubvolume list\fR command.
|
|
|
|
.TP
|
|
|
|
|
2011-12-16 08:46:48 +00:00
|
|
|
\fBfilesystem defragment\fP -c[zlib|lzo] [-l \fIlen\fR] [-s \fIstart\fR] \
|
|
|
|
[-t \fIsize\fR] -[vf] <\fIfile\fR>|<\fIdir\fR> [<\fIfile\fR>|<\fIdir\fR>...]
|
2010-11-18 03:49:56 +00:00
|
|
|
|
2011-01-23 15:31:07 +00:00
|
|
|
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.
|
|
|
|
|
2011-12-16 08:46:48 +00:00
|
|
|
The start position and the number of bytes to defragment can be specified by
|
|
|
|
\fIstart\fR and \fIlen\fR. Any extent bigger than threshold will be
|
|
|
|
considered already defragged. Use 0 to take the kernel default, and use 1 to
|
|
|
|
say every single extent must be rewritten. You can also turn on compression in
|
|
|
|
defragment operations.
|
2010-11-18 03:49:56 +00:00
|
|
|
|
2011-01-23 15:31:07 +00:00
|
|
|
\fB-v\fP be verbose
|
|
|
|
|
|
|
|
\fB-c\fP compress file contents while defragmenting
|
|
|
|
|
|
|
|
\fB-f\fP flush filesystem after defragmenting
|
|
|
|
|
|
|
|
\fB-s start\fP defragment only from byte \fIstart\fR onward
|
|
|
|
|
|
|
|
\fB-l len\fP defragment only up to \fIlen\fR bytes
|
|
|
|
|
|
|
|
\fB-t size\fP defragment only files at least \fIsize\fR bytes big
|
|
|
|
|
2011-12-16 08:46:48 +00:00
|
|
|
NOTE: defragmenting with kernels up to 2.6.37 will unlink COW-ed copies of data,
|
|
|
|
don't use it if you use snapshots, have de-duplicated your data or made
|
|
|
|
copies with \fBcp --reflink\fP.
|
2012-04-30 23:54:08 +00:00
|
|
|
.TP
|
|
|
|
|
Update/clean up btrfs help and man page V2
Hi all,
enclose you can find a patch which improves the help of the btrfs commands,
updates the INSTALL file and the btrfs (command) man page.
Regarding the help of the btrfs command:
- moved the "subvolume set-default" command in the "subvolume" commands group
- removed a wrong new line
- small tweak on the basis of Andreas suggestion
Regarding the btrfs command man page:
- renaming the command "device balance" in "filesystem balance" (thanks to
Andreas Phillipp to highlight that)
- adding the entry "subvolume find-new"
- document the switches of the command "filesystem defrag"
- document the <devid> facility of the command "filesystem resize"
- small tweak on the basis of Andreas suggestion
Regarding the INSTALL file, which was very old, I removed the reference of the
old btrfsctl utility and changed the examples using the btrfs command.
I removed the old (and now wrong) statement about the inability to delete a
subvolume/snapshot
Chris, you can pull the patch from the branch "help_cleanup" of the following
repository.
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git
(or you can browse the changes at
http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git/?p=btrfs-
progs-unstable-all.git;a=summary)
The patch is very simple: only updates the man page, the INSTALL file and
moves/updates some lines in the help of btrfs command. Comments are welcome.
Regards
G.Baroncelli
INSTALL | 29 ++++++++++++++++++++---------
btrfs.c | 24 ++++++++++++------------
man/btrfs.8.in | 45 +++++++++++++++++++++++++--------------------
3 files changed, 57 insertions(+), 41 deletions(-)
all the block devices.
.TP
@@ -138,21 +143,21 @@ can expand the partition before enlarging the filesystem
and shrink the
partition after reducing the size of the filesystem.
.TP
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
+\fBfilesystem show\fR [<device>|<uuid>|<label>]\fR
+Show the btrfs filesystem with some additional info. If no argument is
+passed, \fBbtrfs\fR shows info of all the btrfs filesystems.
.TP
-\fBdevice balance\fR \fI<path>\fR
+\fBfilesystem balance\fR \fI<path>\fR
Balance the chunks of the filesystem identified by \fI<path>\fR
across the devices.
.TP
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice add\fR\fI <device> [<device>...] <path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.
.TP
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
+\fBdevice delete\fR\fI <device> [<device>...] <path>\fR
Remove device(s) from a filesystem identified by \fI<path>\fR.
.PP
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-12-05 17:47:45 +00:00
|
|
|
\fBsubvolume find-new\fR\fI <subvolume> <last_gen>\fR
|
|
|
|
List the recently modified files in a subvolume, after \fI<last_gen>\fR ID.
|
2010-03-11 21:32:50 +00:00
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBfilesystem sync\fR\fI <path> \fR
|
|
|
|
Force a sync for the filesystem identified by \fI<path>\fR.
|
|
|
|
.TP
|
|
|
|
|
|
|
|
.\"
|
|
|
|
.\" Some wording are extracted by the resize2fs man page
|
|
|
|
.\"
|
|
|
|
|
2012-05-26 17:57:55 +00:00
|
|
|
\fBfilesystem resize\fR\fI [devid:][+/\-]<size>[gkm]|[devid:]max <path>\fR
|
|
|
|
Resize a filesystem identified by \fI<path>\fR for the underlying device
|
|
|
|
\fIdevid\fR. The \fIdevid\fR can be found with \fBbtrfs filesystem show\fR and
|
|
|
|
defaults to 1 if not specified.
|
2010-03-11 21:32:50 +00:00
|
|
|
The \fI<size>\fR parameter specifies the new size of the filesystem.
|
|
|
|
If the prefix \fI+\fR or \fI\-\fR is present the size is increased or decreased
|
|
|
|
by the quantity \fI<size>\fR.
|
|
|
|
If no units are specified, the unit of the \fI<size>\fR parameter defaults to
|
|
|
|
bytes. Optionally, the size parameter may be suffixed by one of the following
|
2011-12-16 08:46:48 +00:00
|
|
|
units designators: 'K', 'M', or 'G', kilobytes, megabytes, or gigabytes,
|
2010-03-11 21:32:50 +00:00
|
|
|
respectively.
|
|
|
|
|
|
|
|
If 'max' is passed, the filesystem will occupy all available space on the
|
2012-05-26 17:57:55 +00:00
|
|
|
device \fIdevid\fR.
|
2010-03-11 21:32:50 +00:00
|
|
|
|
|
|
|
The \fBresize\fR command \fBdoes not\fR manipulate the size of underlying
|
|
|
|
partition. If you wish to enlarge/reduce a filesystem, you must make sure you
|
|
|
|
can expand the partition before enlarging the filesystem and shrink the
|
2012-05-26 17:57:55 +00:00
|
|
|
partition after reducing the size of the filesystem. This can done using
|
|
|
|
\fBfdisk(8)\fR or \fBparted(8)\fR to delete the existing partition and recreate
|
|
|
|
it with the new desired size. When recreating the partition make sure to use
|
|
|
|
the same starting disk cylinder as before.
|
2010-03-11 21:32:50 +00:00
|
|
|
.TP
|
|
|
|
|
2011-12-16 08:46:48 +00:00
|
|
|
\fBfilesystem label\fP\fI <dev> [newlabel]\fP
|
2010-12-05 17:46:44 +00:00
|
|
|
Show or update the label of a filesystem. \fI<dev>\fR is used to identify the
|
|
|
|
filesystem.
|
|
|
|
If a \fInewlabel\fR optional argument is passed, the label is changed. The
|
2011-12-16 08:46:48 +00:00
|
|
|
following constraints exist for a label:
|
2010-12-05 17:46:44 +00:00
|
|
|
.IP
|
2011-12-16 08:46:48 +00:00
|
|
|
- the maximum allowable length shall be less or equal than 256 chars
|
2010-12-05 17:46:44 +00:00
|
|
|
.IP
|
|
|
|
- the label shall not contain the '/' or '\\' characters.
|
|
|
|
|
|
|
|
NOTE: Currently there are the following limitations:
|
|
|
|
.IP
|
|
|
|
- the filesystem has to be unmounted
|
|
|
|
.IP
|
|
|
|
- the filesystem should not have more than one device.
|
|
|
|
.TP
|
|
|
|
|
2011-06-15 19:55:25 +00:00
|
|
|
\fBfilesystem show\fR [--all-devices|<uuid>|<label>]\fR
|
|
|
|
Show the btrfs filesystem with some additional info. If no \fIUUID\fP or
|
|
|
|
\fIlabel\fP is passed, \fBbtrfs\fR show info of all the btrfs filesystem.
|
|
|
|
If \fB--all-devices\fP is passed, all the devices under /dev are scanned;
|
|
|
|
otherwise the devices list is extracted from the /proc/partitions file.
|
2010-03-11 21:32:50 +00:00
|
|
|
.TP
|
|
|
|
|
2011-12-16 08:46:48 +00:00
|
|
|
\fBfilesystem balance\fR \fI<path>\fR
|
2010-03-11 21:32:50 +00:00
|
|
|
Balance the chunks of the filesystem identified by \fI<path>\fR
|
|
|
|
across the devices.
|
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
|
|
|
|
Add device(s) to the filesystem identified by \fI<path>\fR.
|
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
|
|
|
|
Remove device(s) from a filesystem identified by \fI<path>\fR.
|
2011-06-15 19:55:25 +00:00
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBdevice scan\fR \fI[--all-devices|<device> [<device>...]\fR
|
|
|
|
If one or more devices are passed, these are scanned for a btrfs filesystem.
|
|
|
|
If no devices are passed, \fBbtrfs\fR scans all the block devices listed
|
|
|
|
in the /proc/partitions file.
|
|
|
|
Finally, if \fB--all-devices\fP is passed, all the devices under /dev are
|
|
|
|
scanned.
|
|
|
|
.TP
|
2010-03-11 21:32:50 +00:00
|
|
|
|
2011-07-18 12:37:25 +00:00
|
|
|
\fBscrub start\fP [-Bdqru] {\fI<path>\fP|\fI<device>\fP}
|
|
|
|
Start a scrub on all devices of the filesystem identified by \fI<path>\fR or on
|
|
|
|
a single \fI<device>\fR. Without options, scrub is started as a background
|
|
|
|
process. Progress can be obtained with the \fBscrub status\fR command. Scrubbing
|
|
|
|
involves reading all data from all disks and verifying checksums. Errors are
|
|
|
|
corrected along the way if possible.
|
|
|
|
.RS
|
|
|
|
|
|
|
|
\fIOptions\fR
|
|
|
|
.IP -B 5
|
|
|
|
Do not background and print scrub statistics when finished.
|
|
|
|
.IP -d 5
|
|
|
|
Print separate statistics for each device of the filesystem (-B only).
|
|
|
|
.IP -q 5
|
|
|
|
Quiet. Omit error messages and statistics.
|
|
|
|
.IP -r 5
|
|
|
|
Read only mode. Do not attempt to correct anything.
|
|
|
|
.IP -u 5
|
|
|
|
Scrub unused space as well. (NOT IMPLEMENTED)
|
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBscrub cancel\fP {\fI<path>\fP|\fI<device>\fP}
|
|
|
|
If a scrub is running on the filesystem identified by \fI<path>\fR, cancel it.
|
|
|
|
Progress is saved in the scrub progress file and scrubbing can be resumed later
|
|
|
|
using the \fBscrub resume\fR command.
|
|
|
|
If a \fI<device>\fR is given, the corresponding filesystem is found and
|
|
|
|
\fBscrub cancel\fP behaves as if it was called on that filesystem.
|
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBscrub resume\fP [-Bdqru] {\fI<path>\fP|\fI<device>\fP}
|
|
|
|
Resume a canceled or interrupted scrub cycle on the filesystem identified by
|
|
|
|
\fI<path>\fR or on a given \fI<device>\fR. Does not start a new scrub if the
|
|
|
|
last scrub finished successfully.
|
|
|
|
.RS
|
|
|
|
|
|
|
|
\fIOptions\fR
|
|
|
|
.TP
|
|
|
|
see \fBscrub start\fP.
|
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBscrub status\fP [-d] {\fI<path>\fP|\fI<device>\fP}
|
|
|
|
Show status of a running scrub for the filesystem identified by \fI<path>\fR or
|
|
|
|
for the specified \fI<device>\fR.
|
|
|
|
If no scrub is running, show statistics of the last finished or canceled scrub
|
|
|
|
for that filesystem or device.
|
|
|
|
.RS
|
|
|
|
|
|
|
|
\fIOptions\fR
|
|
|
|
.IP -d 5
|
|
|
|
Print separate statistics for each device of the filesystem.
|
|
|
|
.RE
|
2011-07-08 10:25:11 +00:00
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBinspect-internal inode-resolve\fP [-v] \fI<inode>\fP \fI<path>\fP
|
|
|
|
Resolves an <inode> in subvolume <path> to all filesystem paths.
|
|
|
|
.RS
|
|
|
|
|
|
|
|
\fIOptions\fR
|
|
|
|
.IP -v 5
|
|
|
|
verbose mode. print count of returned paths and ioctl() return value
|
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
|
|
|
|
\fBinspect-internal logical-resolve\fP [-Pv] \fI<logical>\fP \fI<path>\fP
|
|
|
|
Resolves a <logical> address in the filesystem mounted at <path> to all inodes.
|
|
|
|
By default, each inode is then resolved to a file system path (similar to the
|
|
|
|
\fBinode-resolve\fP subcommand).
|
|
|
|
.RS
|
|
|
|
|
|
|
|
\fIOptions\fR
|
|
|
|
.IP -P 5
|
|
|
|
skip the path resolving and print the inodes instead
|
|
|
|
.IP -v 5
|
|
|
|
verbose mode. print count of returned paths and all ioctl() return values
|
|
|
|
.RE
|
2011-07-18 12:37:25 +00:00
|
|
|
|
2010-03-11 21:32:50 +00:00
|
|
|
.SH EXIT STATUS
|
|
|
|
\fBbtrfs\fR returns a zero exist status if it succeeds. Non zero is returned in
|
|
|
|
case of failure.
|
|
|
|
|
|
|
|
.SH AVAILABILITY
|
|
|
|
.B btrfs
|
|
|
|
is part of btrfs-progs. Btrfs filesystem is currently under heavy development,
|
|
|
|
and not suitable for any uses other than benchmarking and review.
|
|
|
|
Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for
|
|
|
|
further details.
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR mkfs.btrfs (8)
|