aboutsummaryrefslogtreecommitdiff
path: root/fs/fs.c
diff options
context:
space:
mode:
authorSean Anderson2021-04-12 18:53:05 -0400
committerTom Rini2021-04-22 14:09:45 -0400
commit7194527b6a456abaa24198dc4b6c289905c4cffd (patch)
tree62f82f28a3807a864676356f7da6d030b9e9cdf5 /fs/fs.c
parentfe3a2808bb5f86c738d47a4158117e32c349db0d (diff)
cmd: fs: Use part_get_info_by_dev_and_name_or_num to parse partitions
This allows using dev#partlabel syntax. Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Diffstat (limited to 'fs/fs.c')
-rw-r--r--fs/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 900928c3945..b7936fd4cfb 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -385,8 +385,8 @@ int fs_set_blk_dev(const char *ifname, const char *dev_part_str, int fstype)
}
#endif
- part = blk_get_device_part_str(ifname, dev_part_str, &fs_dev_desc,
- &fs_partition, 1);
+ part = part_get_info_by_dev_and_name_or_num(ifname, dev_part_str, &fs_dev_desc,
+ &fs_partition, 1);
if (part < 0)
return -1;