commit | 05fd6f6f8c7b07e746d513e4cf862675b70aac59 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Wed Aug 29 17:11:07 2012 -0500 |
committer | Alex Elder <elder@inktank.com> | Mon Oct 01 14:30:52 2012 -0500 |
tree | 330b959abad9744b2c377daf803efd274973df1e | |
parent | 5ed1617731a1e9201c3541a9c05ce3ec73975589 [diff] |
rbd: read the header before registering device Read the rbd header information and call rbd_dev_set_mapping() earlier--before registering the block device or setting up the sysfs entries for the image. The sysfs entries provide users access to some information that's only available after doing the rbd header initialization, so this will make sure it's valid right away. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>