[Ocfs2-users] evms patch
Rob Ostensen
lists+ocfs2-users at boxacle.net
Mon Apr 10 14:22:36 CDT 2006
I'm not sure how many people are using evms with ocfs2 but the latest release
of evms is hard-coded to check for ocfs2-tools version 1.1 I've patched it
locally to check for version 1.1 and higher if anyone is interested. I'm also
working on an init script and ebuild for gentoo, if anyone wants a copy.
Rob
diff -uprN evms-2.5.5/plugins/ocfs2/ocfs2.c
evms-2.5.5-fixed/plugins/ocfs2/ocfs2.c
--- evms-2.5.5/plugins/ocfs2/ocfs2.c 2006-02-20 10:24:09.000000000 -0600
+++ evms-2.5.5-fixed/plugins/ocfs2/ocfs2.c 2006-04-10
06:01:33.556918750 -0500
@@ -636,6 +636,7 @@ static int fsim_test_version(void)
int status;
int bytes_read;
int rc;
+ float ver_num;
LOG_ENTRY();
@@ -672,8 +673,9 @@ static int fsim_test_version(void)
LOG_DEBUG("Reading output from process %d on fd %d.\n", pidm, fds2
[0]);
bytes_read = read(fds2[0], buffer, 1024);
if (bytes_read > 0) {
- ver = strstr(buffer, "1.1");
- if (!ver) {
+ ver = strstr(buffer, "1.");
+ ver_num = atof(ver);
+ if (ver_num < 1.1) {
rc = EINVAL;
} else {
oc2_version = 2;
More information about the Ocfs2-users
mailing list