Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db577eb
)
Dramatically increase the randomness of MDC UUIDs
author
pschwan
<pschwan>
Fri, 8 Nov 2002 02:10:58 +0000
(
02:10
+0000)
committer
pschwan
<pschwan>
Fri, 8 Nov 2002 02:10:58 +0000
(
02:10
+0000)
lustre/utils/lconf
patch
|
blob
|
history
diff --git
a/lustre/utils/lconf
b/lustre/utils/lconf
index
3399248
..
d87af22
100755
(executable)
--- 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')