commit | 4e891e0af0f0011c90067373c46d7228568ec079 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Tue Jul 10 20:30:10 2012 -0500 |
committer | Sage Weil <sage@inktank.com> | Mon Jul 30 18:21:45 2012 -0700 |
tree | 8697591dc252aef8bce4a349c5f254995f8d3677 | |
parent | 6139919133377652992a5fe134e22abce3e9c25e [diff] |
rbd: have __rbd_add_snap_dev() return a pointer It's not obvious whether the snapshot pointer whose address is provided to __rbd_add_snap_dev() will be assigned by that function. Change it to return the snapshot, or a pointer-coded errno in the event of a failure. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>