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>
This commit is contained in:
parent
a51aa0c042
commit
93a24e084d
1 changed files with 1 additions and 0 deletions
|
@ -1746,6 +1746,7 @@ static int __rbd_refresh_header(struct rbd_device *rbd_dev)
|
||||||
kfree(rbd_dev->header.snap_names);
|
kfree(rbd_dev->header.snap_names);
|
||||||
kfree(rbd_dev->header.snapc);
|
kfree(rbd_dev->header.snapc);
|
||||||
|
|
||||||
|
rbd_dev->header.image_size = h.image_size;
|
||||||
rbd_dev->header.total_snaps = h.total_snaps;
|
rbd_dev->header.total_snaps = h.total_snaps;
|
||||||
rbd_dev->header.snapc = h.snapc;
|
rbd_dev->header.snapc = h.snapc;
|
||||||
rbd_dev->header.snap_names = h.snap_names;
|
rbd_dev->header.snap_names = h.snap_names;
|
||||||
|
|
Loading…
Reference in a new issue