btrfs-progs: Fix device scan to interpret its argument properly
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Fri, 11 Mar 2016 00:26:13 +0000 (09:26 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Mar 2016 12:42:47 +0000 (13:42 +0100)
commit1ff2823225a677c114f78c61a3e79573e52a26b0
treecda6b1c42cafcf4cbedb60e5696454e283437223
parent3ee935e4dd23a97de31a07e36b32871730801e05
btrfs-progs: Fix device scan to interpret its argument properly

Fix the following bug.

  ================================
  # btrfs device scan -- /dev/sdb
  ERROR: not a block device: --
  ================================

It should work as follow.

  ================================
  # ./btrfs device scan -- /dev/sdb
  Scanning for Btrfs filesystems in '/dev/sdb'
  ================================

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-device.c