Change in vdsm[master]: [WIP] Initial DRBD implementation

Federico Simoncelli fsimonce at redhat.com
Wed Sep 14 09:27:47 UTC 2011


Federico Simoncelli has posted comments on this change.

Change subject: [WIP] Initial DRBD implementation
......................................................................


Patch Set 1: (2 inline comments)

....................................................
File vdsm/storage/drbd.py
Line 84:         return "%016X" % (random.randint(0, DRBD_MAXUUID),)
I can't use a regular uuid, drbd uses an unsigned long long int as uuid.

random.seed([x])

Initialize the basic random number generator. Optional argument x can be any hashable object. If x is omitted or None, current system time is used; ***current system time is also used to initialize the generator when the module is first imported.***

Line 109:             uuid = cls.readUUID(device)
I actually expect it to fail. But yes it's racefull.

--
To view, visit http://gerrit.usersys.redhat.com/923
To unsubscribe, visit http://gerrit.usersys.redhat.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I33bb867ba6c7cfca54d31334554cb37db11aeeea
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi at redhat.com>


More information about the vdsm-patches mailing list