rbd: set the mapping size and features later
authorAlex Elder <elder@inktank.com>
Mon, 6 May 2013 14:51:29 +0000 (09:51 -0500)
committerAlex Elder <elder@inktank.com>
Wed, 8 May 2013 22:00:00 +0000 (17:00 -0500)
commitf35a4dee14c31dc00807f3bcd59cc7a6959f63d7
treef0919e92b27e9e9c556afa66e2ca69cdd601226c
parent51344a38ba2033be18a4ec23e318845caeccdc04
rbd: set the mapping size and features later

Defer setting the size and features fields of a mapped image until
after the Linux disk structure is set up.  Set the capacity of the
disk after that.

Rearrange the definition of rbd_image_header, separating the fields
that are set only once from those that can be updated.

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