diff options
author | Anand Jain <anand.jain@oracle.com> | 2013-10-08 11:41:38 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-10-16 08:23:13 -0400 |
commit | 6c2c30ce03c0beba716b5a054b64c6bf62068cb6 (patch) | |
tree | 5eafea2455b483a06e7b473b1cd63b84805ce4b7 /man | |
parent | a7131ad1241470829fd5b836ce6cb6c74cdbef45 (diff) |
btrfs-progs: use kernel for mounted disk for show
As of now btrfs filesystem show reads directly from
disks. So sometimes output can be stale, mainly when
user wants to cross verify their operation like,
label or device delete or add... etc. so this
patch will read from the kernel ioctl if it finds
that disk is mounted.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/btrfs.8.in | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/man/btrfs.8.in b/man/btrfs.8.in index de356b09..6cb3662e 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -25,7 +25,7 @@ btrfs \- control a btrfs filesystem .PP \fBbtrfs\fP \fBfilesystem df\fP\fI <path>\fP .PP -\fBbtrfs\fP \fBfilesystem show\fP [--all-devices|\fI<uuid>\fP|\fI<label>\fP]\fP +\fBbtrfs\fP \fBfilesystem show\fP [\fI--mounted\fP|\fI--all-devices\fP|\fI<uuid>\fP]\fP .PP \fBbtrfs\fP \fBfilesystem sync\fP\fI <path> \fP .PP @@ -51,7 +51,7 @@ btrfs \- control a btrfs filesystem .PP \fBbtrfs\fP \fBdevice delete\fP \fI<device>\fP [\fI<device>...\fP] \fI<path>\fP .PP -\fBbtrfs\fP \fBdevice scan\fP [--all-devices|\fI<device> \fP[\fI<device>...\fP] +\fBbtrfs\fP \fBdevice scan\fP [\fI--all-devices\fP|\fI<device> \P[\fI<device>...\fP] .PP \fBbtrfs\fP \fBdevice ready\fP\fI <device>\fP .PP @@ -256,9 +256,11 @@ Show information of a given subvolume in the \fI<path>\fR. Show space usage information for a mount point. .TP -\fBfilesystem show\fR [--all-devices|\fI<uuid>\fR|\fI<label>\fR]\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. +\fBfilesystem show\fR [\fI--mounted\fP|\fI--all-devices\fP|\fI<uuid>\fR]\fR +Show the btrfs filesystem with some additional info. If no option or \fIUUID\fP +is passed, \fBbtrfs\fR shows information of all the btrfs filesystem both mounted +and unmounted. +If \fB--mounted\fP is passed, it would probe btrfs kernel to list mounted btrfs filesystem(s); 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. .TP @@ -405,8 +407,8 @@ Remove device(s) from a filesystem identified by \fI<path>\fR. \fBdevice scan\fR [--all-devices|\fI<device> \fP[\fI<device>...\fP]\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. +If no devices are passed, \fBbtrfs\fR uses block devices containing btrfs +filesystem as listed by blkid. Finally, if \fB--all-devices\fP is passed, all the devices under /dev are scanned. .TP |