]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/block/rbd.c
rbd: do all argument parsing in one place
authorAlex Elder <elder@inktank.com>
Fri, 26 Oct 2012 04:34:41 +0000 (23:34 -0500)
committerAlex Elder <elder@inktank.com>
Tue, 30 Oct 2012 13:34:29 +0000 (08:34 -0500)
commit0ddebc0c6c518ae42c376151e34d9d4b84443ba5
treec1e410f8b491832d0151967cb403638bee44c45d
parent78cea76e0580befaf561c6989f4fc985bc66c8f7
rbd: do all argument parsing in one place

This patch makes rbd_add_parse_args() be the single place all
argument parsing occurs for an image map request:
    - Move the ceph_parse_options() call into that function
    - Use local variables rather than parameters to hold the list
      of monitor addresses supplied
    - Rather than returning it, pass the snapshot name (and its
      length) back via parameters
    - Have the function return a ceph_options structure pointer

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c