From: pschwan Date: Fri, 8 Nov 2002 02:10:58 +0000 (+0000) Subject: Dramatically increase the randomness of MDC UUIDs X-Git-Tag: 0.5.17~48 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=4125ef2c55c885e0bcbc2dc34fc48128155010e1;p=fs%2Flustre-release.git Dramatically increase the randomness of MDC UUIDs --- diff --git a/lustre/utils/lconf b/lustre/utils/lconf index 3399248..d87af22 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -1002,7 +1002,8 @@ class MDC(Module): host = socket.gethostname() self.name = 'MDC_%s' % (self.mds.name) - self.uuid = '%s_%05x_UUID' % (self.name , int(random.random() * 100000)) + self.uuid = '%s_%05x_%05x' % (self.name, int(random.random() * 1048576), + int(random.random() * 1048576)) self.lookup_server(self.mds.uuid) self.add_module('lustre/mdc', 'mdc')