rbd: defer setting disk capacity
authorAlex Elder <elder@inktank.com>
Fri, 26 Apr 2013 20:44:36 +0000 (15:44 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:48 +0000 (21:19 -0700)
commitb5156e76da01c23e14e962594553f1735b1db298
tree8d8340337d9cece10b521c89e0f712507623f311
parent129b79d4498581e52175ac5c3ef2168f616b0e5e
rbd: defer setting disk capacity

Don't set the disk capacity until right before we announce the
device as available for use.

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