Skip to content
Commit a725f65e authored by Alex Elder's avatar Alex Elder
Browse files

rbd: encapsulate argument parsing for rbd_add()



Move the code that parses the arguments provided to rbd_add() (which
are supplied via /sys/bus/rbd/add) into a separate function.

Also rename the "mon_dev_name" variable in rbd_add() to be
"mon_addrs".   The variable represents a list of one or more
comma-separated monitor IP addresses, each with an optional port
number.  I think "mon_addrs" captures that notion a little better.

Signed-off-by: default avatarAlex Elder <elder@dreamhost.com>
parent 27cc2594
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment