rbd: don't use index in __rbd_add_snap_dev()
commitc8d184250d8a47b1a958affcffe3ffdd85644301
authorAlex Elder <elder@inktank.com>
Wed, 11 Jul 2012 01:30:11 +0000 (10 20:30 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:53 +0000 (1 14:30 -0500)
tree9ee8e260c00a8e798d6daef6d00001dd0793a0bb
parent02cdb02ceab1f3dd9ac2bc899fc51f0e0e744782
rbd: don't use index in __rbd_add_snap_dev()

Pass the snapshot id and snapshot size rather than an index
to __rbd_add_snap_dev() to specify values for a new snapshot.

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