diff options
author | Venky Shankar <vshankar@redhat.com> | 2021-07-14 15:35:50 +0530 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2022-01-13 13:40:05 +0100 |
commit | 2d7c86a8f9cdce1408c4f3c69d94d007eff2f179 (patch) | |
tree | 1c2785fe6a1ddee2dffc46d2b3b067567b1dbf9c /drivers/block | |
parent | df0cc57e057f18e44dac8e6c18aba47ab53202f9 (diff) | |
download | linux-stable-2d7c86a8f9cdce1408c4f3c69d94d007eff2f179.tar.gz linux-stable-2d7c86a8f9cdce1408c4f3c69d94d007eff2f179.tar.bz2 linux-stable-2d7c86a8f9cdce1408c4f3c69d94d007eff2f179.zip |
libceph: generalize addr/ip parsing based on delimiter
... and remove hardcoded function name in ceph_parse_ips().
[ idryomov: delim parameter, drop CEPH_ADDR_PARSE_DEFAULT_DELIM ]
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rbd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 953fa134cd3d..909dbe6111bf 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -6497,7 +6497,8 @@ static int rbd_add_parse_args(const char *buf, pctx.opts->exclusive = RBD_EXCLUSIVE_DEFAULT; pctx.opts->trim = RBD_TRIM_DEFAULT; - ret = ceph_parse_mon_ips(mon_addrs, mon_addrs_size, pctx.copts, NULL); + ret = ceph_parse_mon_ips(mon_addrs, mon_addrs_size, pctx.copts, NULL, + ','); if (ret) goto out_err; |