aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@dreamhost.com>2011-12-05 13:41:28 -0500
committerSage Weil <sage@inktank.com>2012-07-30 21:15:39 -0400
commit93a24e084d67ba2fcb9a4c289135825b623ec864 (patch)
tree1c78adc4abbce1a7fc377dc78149cd912e35a29b /drivers
parenta51aa0c042fa39946dd017d5f91a073300a71577 (diff)
rbd: set image size when header is updated
The image may have been resized. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com> Reviewed-by: Alex Elder <elder@inktank.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/rbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 9c3a1db49ac4..a6bbda2e5eb8 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -1746,6 +1746,7 @@ static int __rbd_refresh_header(struct rbd_device *rbd_dev)
1746 kfree(rbd_dev->header.snap_names); 1746 kfree(rbd_dev->header.snap_names);
1747 kfree(rbd_dev->header.snapc); 1747 kfree(rbd_dev->header.snapc);
1748 1748
1749 rbd_dev->header.image_size = h.image_size;
1749 rbd_dev->header.total_snaps = h.total_snaps; 1750 rbd_dev->header.total_snaps = h.total_snaps;
1750 rbd_dev->header.snapc = h.snapc; 1751 rbd_dev->header.snapc = h.snapc;
1751 rbd_dev->header.snap_names = h.snap_names; 1752 rbd_dev->header.snap_names = h.snap_names;