rbd: set snapshot id in rbd_dev_probe_update_spec()
authorAlex Elder <elder@inktank.com>
Fri, 26 Apr 2013 04:15:08 +0000 (23:15 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:36 +0000 (21:19 -0700)
commite1d4213f090644b06aab6ea70e307ecf16182148
tree44abf593a29ff83f5cc1109acde21413268e7046
parent8b0241f85ab11c87075f9de0191acd8b546c6f6a
rbd: set snapshot id in rbd_dev_probe_update_spec()

Set the rbd spec's snapshot id for an image getting mapped in
rbd_dev_probe_update_spec() rather than rbd_dev_set_mapping().
This is the more logical place for that to happen (even though
it means we might look up the snapshot by name twice).

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