commit | 8b0241f85ab11c87075f9de0191acd8b546c6f6a | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Thu Apr 25 23:15:08 2013 -0500 |
committer | Sage Weil <sage@inktank.com> | Wed May 01 21:19:35 2013 -0700 |
tree | 27c74b91be800ef974732473960bd4c3a7471c20 | |
parent | 5655c4d940ba8dd32250ab1e4ba3db785943a28e [diff] |
rbd: have snap_by_name() return a snapshot A function called snap_by_name() ought to just look up a snapshot by name. It does that, but then it assigns some stuff to the rbd device structure as well. Change the function to do just the lookup, and have the caller do the assignments that follow. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>