commit | c53d589337e9a211413484a604c76072e8474dc0 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Thu Oct 25 23:34:42 2012 -0500 |
committer | Alex Elder <elder@inktank.com> | Thu Nov 01 07:55:42 2012 -0500 |
tree | bd9718b7d7648e80f64e09d6ee483d262815b340 | |
parent | bd4ba6554dcbae652b8b27a44f5a7795c9f3178a [diff] |
rbd: define rbd_dev_{create,destroy}() helpers Encapsulate the creation/initialization and destruction of rbd device structures. The rbd_client and the rbd_spec structures provided on creation hold references whose ownership is transferred to the new rbd_device structure. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>