STABLE2 - groupd: ignore nolock gfs fix

David Teigland teigland@fedoraproject.org
Tue Aug 19 21:09:00 GMT 2008


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=58f17ffd05d7333ae45c6a3c21fc87e42bff85e5
Commit:        58f17ffd05d7333ae45c6a3c21fc87e42bff85e5
Parent:        f45d8f5c18f91c8284456b05235798cec90b8918
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Tue Aug 19 15:50:34 2008 -0500
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Tue Aug 19 15:55:28 2008 -0500

groupd: ignore nolock gfs fix

This commit was missing a call to close().

bz 315741

When starting up, we look for existing, "uncontrolled" gfs file systems
in the kernel (which would require the node to be rebooted.) This check
needs to ignore nolock fs's.

Signed-off-by: David Teigland <teigland@redhat.com>
---
 group/daemon/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/group/daemon/main.c b/group/daemon/main.c
index a32b47d..e02c925 100644
--- a/group/daemon/main.c
+++ b/group/daemon/main.c
@@ -114,6 +114,7 @@ static int ignore_gfs_nolock(char *sysfs_dir, char *table)
 	if (fd < 0)
 		return 1;
 
+	close(fd);
 	return 0;
 }
 



More information about the Cluster-cvs mailing list