From: Alex Elder Date: Fri, 26 Oct 2012 04:34:41 +0000 (-0500) Subject: rbd: do all argument parsing in one place X-Git-Tag: v3.8-rc1~21^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ddebc0c6c518ae42c376151e34d9d4b84443ba5;p=pandora-kernel.git 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 Reviewed-by: Josh Durgin --- Reading git-diff-tree failed