Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251318
b: refs/heads/master
c: 9db4b3e
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed May 24, 2011
1 parent f0b1d33 commit b32fef1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45e3d3eeb6578e523e100622266945ecd71723bb
refs/heads/master: 9db4b3e32778400555d5cc6fb61d4058902d37f7
3 changes: 3 additions & 0 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,9 @@ static int __rbd_update_snaps(struct rbd_device *rbd_dev)
if (ret < 0)
return ret;

/* resized? */
set_capacity(rbd_dev->disk, h.image_size / 512ULL);

down_write(&rbd_dev->header.snap_rwsem);

snap_seq = rbd_dev->header.snapc->seq;
Expand Down

0 comments on commit b32fef1

Please sign in to comment.