Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375607
b: refs/heads/master
c: 70cf49c
h: refs/heads/master
i:
  375605: 170a276
  375603: d11a4d5
  375599: abdb578
v: v3
  • Loading branch information
Alex Elder committed May 13, 2013
1 parent 7190319 commit fed1451
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b91f09f17b2a302f07022e2f766969e2536d71b3
refs/heads/master: 70cf49cfc7a4d1eb4aeea6cd128b88230be9d0b1
10 changes: 7 additions & 3 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3665,9 +3665,13 @@ static int rbd_dev_v2_parent_info(struct rbd_device *rbd_dev)
ceph_decode_64_safe(&p, end, parent_spec->snap_id, out_err);
ceph_decode_64_safe(&p, end, overlap, out_err);

rbd_dev->parent_overlap = overlap;
rbd_dev->parent_spec = parent_spec;
parent_spec = NULL; /* rbd_dev now owns this */
if (overlap) {
rbd_dev->parent_spec = parent_spec;
parent_spec = NULL; /* rbd_dev now owns this */
rbd_dev->parent_overlap = overlap;
} else {
rbd_warn(rbd_dev, "ignoring parent of clone with overlap 0\n");
}
out:
ret = 0;
out_err:
Expand Down

0 comments on commit fed1451

Please sign in to comment.