summaryrefslogtreecommitdiff
path: root/cmd/zfs.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-29 15:25:44 -0700
committerSimon Glass <sjg@chromium.org>2016-03-14 15:34:50 -0600
commite35929e4a1ffe861f2f45e107986568c56c4f077 (patch)
tree931c9af5f622d4fb90bf932a911100bcd94c75c0 /cmd/zfs.c
parentebac37cfbfb32ea44704fe032fadd5cf334824b7 (diff)
dm: blk: Rename get_device_and_partition()
Rename this function to blk_get_device_part_str(). This is a better name because it makes it clear that the function returns a block device and parses a string. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'cmd/zfs.c')
-rw-r--r--cmd/zfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/zfs.c b/cmd/zfs.c
index 9076a8a6bbd..bb61afd80de 100644
--- a/cmd/zfs.c
+++ b/cmd/zfs.c
@@ -80,7 +80,7 @@ static int do_zfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
return 1;
}
- part = get_device_and_partition(argv[1], argv[2], &dev_desc, &info, 1);
+ part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1);
if (part < 0)
return 1;
@@ -145,7 +145,7 @@ static int do_zfs_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (argc == 4)
filename = argv[3];
- part = get_device_and_partition(argv[1], argv[2], &dev_desc, &info, 1);
+ part = blk_get_device_part_str(argv[1], argv[2], &dev_desc, &info, 1);
if (part < 0)
return 1;