Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309319
b: refs/heads/master
c: 5ba3dac
h: refs/heads/master
i:
  309317: 4c626de
  309315: c5c2913
  309311: ed54160
v: v3
  • Loading branch information
Philipp Reisner committed May 9, 2012
1 parent 5ba3ff9 commit 09b12ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 7b4e4d31268cbd885782bf3eee8027c852c9d191
refs/heads/master: 5ba3dac52126699e541ac3ee37aad890ca835fc1
6 changes: 5 additions & 1 deletion trunk/drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,11 @@ int drbd_gen_and_send_sync_uuid(struct drbd_conf *mdev)

D_ASSERT(mdev->state.disk == D_UP_TO_DATE);

uuid = mdev->ldev->md.uuid[UI_BITMAP] + UUID_NEW_BM_OFFSET;
uuid = mdev->ldev->md.uuid[UI_BITMAP];
if (uuid && uuid != UUID_JUST_CREATED)
uuid = uuid + UUID_NEW_BM_OFFSET;
else
get_random_bytes(&uuid, sizeof(u64));
drbd_uuid_set(mdev, UI_BITMAP, uuid);
drbd_print_uuids(mdev, "updated sync UUID");
drbd_md_sync(mdev);
Expand Down

0 comments on commit 09b12ce

Please sign in to comment.