btrfs-progs: Use common unit parser for btrfs device command
authorZhao Lei <zhaolei@cn.fujitsu.com>
Mon, 31 Aug 2015 11:03:43 +0000 (19:03 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 1 Sep 2015 12:01:59 +0000 (14:01 +0200)
commit4483673ba6cfe881b2d338905e166409f8fdfcb3
tree88b6f86a3cacb71d3469d4865ab376b63310d12f
parent656731013a626c859da0e1b80c31514ed4255f9c
btrfs-progs: Use common unit parser for btrfs device command

Move to use get_unit_mode_from_arg() for cmds-device.c,
to make "btrfs device usage"'s unit argument same with other
tools.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-device.c