[RFC,14/14] btrfs-progs: enable verbose for btrfs device scan
diff mbox series

Message ID 1571652082-25982-15-git-send-email-anand.jain@oracle.com
State New
Headers show
  • btrfs-progs: global-verbose option
Related show

Commit Message

Anand Jain Oct. 21, 2019, 10:01 a.m. UTC
Enable verbose output for the device scan only through the global
verbose option.

For example:
./btrfs --verbose device scan
Scanning for Btrfs filesystems
registered: /dev/sda1
registered: /dev/sda2
registered: /dev/sda3
registered: /dev/sda5
registered: /dev/sda6

Signed-off-by: Anand Jain <anand.jain@oracle.com>
 cmds/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/cmds/device.c b/cmds/device.c
index b429a169cd5d..b38bf78a798e 100644
--- a/cmds/device.c
+++ b/cmds/device.c
@@ -354,7 +354,7 @@  static int cmd_device_scan(const struct cmd_struct *cmd, int argc, char **argv)
 		} else {
 			printf("Scanning for Btrfs filesystems\n");
-			ret = btrfs_scan_devices(false);
+			ret = btrfs_scan_devices(true);
 			error_on(ret, "error %d while scanning", ret);
 			ret = btrfs_register_all_devices();