cmd_zfs: use common get_device_and_partition function
authorRob Herring <rob.herring@calxeda.com>
Thu, 23 Aug 2012 11:31:49 +0000 (11:31 +0000)
committerTom Rini <trini@ti.com>
Tue, 25 Sep 2012 21:49:17 +0000 (14:49 -0700)
commit412045704477a9b4d46b7e1fddbd53ec5dcde155
tree2be3c498fd374bbef140f8359d439fd18dffc3a4
parent475c7970c18526adb406f8bc648c44255b300225
cmd_zfs: use common get_device_and_partition function

Convert zfsload and zfsls to use common device and partition parsing
function. With the common function "dev:part" can come from the
environment and a '-' can be used in that case.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
common/cmd_zfs.c
fs/zfs/dev.c
include/zfs_common.h