btrfs-progs: use kernel for mounted disk for show
authorAnand Jain <anand.jain@oracle.com>
Tue, 8 Oct 2013 03:41:38 +0000 (11:41 +0800)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:23:13 +0000 (08:23 -0400)
commit6c2c30ce03c0beba716b5a054b64c6bf62068cb6
tree5eafea2455b483a06e7b473b1cd63b84805ce4b7
parenta7131ad1241470829fd5b836ce6cb6c74cdbef45
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>
cmds-filesystem.c
man/btrfs.8.in
utils.h