]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbd: remove options args from rbd_add_parse_args()
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)
commitf28e565a1b15eef62618db4011d9e320089a4214
treeed4f44cbbc4736eb2f23d3b8f717a944c56056d2
parente5c35534042f4b5957a32bba651222c91247beba
rbd: remove options args from rbd_add_parse_args()

They "options" argument to rbd_add_parse_args() (and it's partner
options_size) is now only needed within the function, so there's no
need to have the caller allocate and pass the options buffer.  Just
allocate the options buffer within the function using dup_token().

Also distinguish between failures due to failed memory allocation
and failing because a required argument was missing.

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