* [Cluster-devel] conga/ricci/modules/storage VG.cpp parted_wrap ...
@ 2007-06-19 21:48 rmccabe
0 siblings, 0 replies; only message in thread
From: rmccabe @ 2007-06-19 21:48 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-06-19 21:48:19
Modified files:
ricci/modules/storage: VG.cpp parted_wrapper.cpp
Log message:
Fix 239388: conga storage: default VG creation should be clustered if a cluster node
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/VG.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8.2.4&r2=1.8.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/parted_wrapper.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8.2.2&r2=1.8.2.3
--- conga/ricci/modules/storage/VG.cpp 2007/03/30 14:38:33 1.8.2.4
+++ conga/ricci/modules/storage/VG.cpp 2007/06/19 21:48:18 1.8.2.5
@@ -354,10 +354,15 @@
props.set(Variable("extent_size",
4 * 1024 * 1024 /* 4 MB */,
ext_sizes));
-
+
// clustered
- props.set(Variable("clustered", false, true));
-
+ bool use_clustered = false;
+ try {
+ LVM::check_locking();
+ use_clustered = true;
+ } catch ( ... ) { }
+ props.set(Variable("clustered", use_clustered, true));
+
// new sources
VG unused(VG_PREFIX);
for (list<counting_auto_ptr<BD> >::iterator iter = unused.sources.begin();
--- conga/ricci/modules/storage/parted_wrapper.cpp 2007/03/20 16:17:35 1.8.2.2
+++ conga/ricci/modules/storage/parted_wrapper.cpp 2007/06/19 21:48:18 1.8.2.3
@@ -680,7 +680,7 @@
else if (s[s.size()-2] == 'g')
multiplier = 1000 * 1000 * 1000;
else if (s[s.size()-2] == 't')
- multiplier = 1000 * 1000 * 1000 * 1000;
+ multiplier = (long long) 1000 * 1000 * 1000 * 1000;
}
return (long long) utils::to_float(s) * multiplier;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-19 21:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 21:48 [Cluster-devel] conga/ricci/modules/storage VG.cpp parted_wrap rmccabe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.