From b4c3cd0bbc68ca61b69cd58b1faadc995e2bf77c Mon Sep 17 00:00:00 2001 From: Anand Jain Date: Fri, 11 Oct 2013 19:52:53 +0800 Subject: btrfs-progs: device scan use BTRFS_SCAN_LBLKID by default with this patch, BTRFS_SCAN_LBLKID (which leverages lblkid to look for btrfs disks) would be the default scan method to look for the btrfs disks. And thus the output as seen in the latest btrfs fi show and btrfs fi show -m for the mounted disks will have the consistent disks path. (it was inconsistent (across disks) because btrfs dev scan provided a different path from the mount command eg. below) devid 1 size 1.98GiB used 435.00MiB path /dev/mapper/mpatha devid 2 size 2.00GiB used 415.00MiB path /dev/dm-1 Signed-off-by: Anand Jain Signed-off-by: David Sterba Signed-off-by: Chris Mason --- cmds-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds-device.c') diff --git a/cmds-device.c b/cmds-device.c index 7cfc3473..1315918c 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -189,7 +189,7 @@ static const char * const cmd_scan_dev_usage[] = { static int cmd_scan_dev(int argc, char **argv) { int i, fd, e; - int where = BTRFS_SCAN_PROC; + int where = BTRFS_SCAN_LBLKID; int devstart = 1; if( argc > 1 && !strcmp(argv[1],"--all-devices")){ -- cgit v1.2.3