rbd: only update values on snap_info success
authorAlex Elder <elder@inktank.com>
Thu, 25 Apr 2013 20:09:41 +0000 (15:09 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:28 +0000 (21:19 -0700)
commitacb1b6caf179d405ebd1dddefe916ccbb9b90298
tree3262411979f2d9d283ee6b8efbf0d0a6a44d4685
parentc86f86e9e75e77e4d51ded9edbad30834ff606f7
rbd: only update values on snap_info success

Change rbd_dev_v2_snap_info() so it only ever sets values of the
size and features parameters if looking up the snapshot name was
successful.

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