[Cluster-devel] [PATCH 1/5] gfs2_edit: Initialize metafds fully in savemetaopen

2011-09-06 Thread Andrew Price
Coverity showed that savemetaopen() can return a metafd without initializing the gzfd member. This isn't currently a problem as we only use gzfd when it is set but this patch initializes the metafd fully to avoid future problems. Signed-off-by: Andrew Price anpr...@redhat.com ---

[Cluster-devel] [PATCH 3/5] libgfs2: Remove dead code from gfs2_get_leaf

2011-09-06 Thread Andrew Price
The value of error is always 0 when this if statement is reached. This patch removes it. Signed-off-by: Andrew Price anpr...@redhat.com --- gfs2/libgfs2/fs_ops.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/gfs2/libgfs2/fs_ops.c b/gfs2/libgfs2/fs_ops.c index

[Cluster-devel] [PATCH 2/5] libgfs2: clean up some dead code in gfs2_writei

2011-09-06 Thread Andrew Price
This patch cleans up an error variable which was initialized to 0 and then never changed, and a 'fail' section which could be replaced by a return. It also removes the 'out' label which was only referenced from the dead if-statement in the 'fail' section. Signed-off-by: Andrew Price

[Cluster-devel] [PATCH 5/5] gfs2_edit: Fix segfault in find by resource group

2011-09-06 Thread Andrew Price
When using 'find' on block types which require searching by resource group, a segfault occurs in __gfs2_next_rg_meta due to rgd-bh being empty. This patch fixes the segfault by reading in the resource group data, thus populating rgd-bh, prior to the search. Signed-off-by: Andrew Price

[Cluster-devel] [PATCH 4/5] gfs_controld: Remove dead code from loop()

2011-09-06 Thread Andrew Price
This patch removes an if statement where the true branch is never taken. At this point in the code, poll_timeout could only be 500 or -1. Signed-off-by: Andrew Price anpr...@redhat.com --- group/gfs_controld/main.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git

Re: [Cluster-devel] [PATCH 4/5] gfs_controld: Remove dead code from loop()

2011-09-06 Thread Steven Whitehouse
Hi, Those all look good to me, Steve. On Tue, 2011-09-06 at 13:00 +0100, Andrew Price wrote: This patch removes an if statement where the true branch is never taken. At this point in the code, poll_timeout could only be 500 or -1. Signed-off-by: Andrew Price anpr...@redhat.com ---

Re: [Cluster-devel] [PATCH 4/5] gfs_controld: Remove dead code from loop()

2011-09-06 Thread David Teigland
On Tue, Sep 06, 2011 at 01:00:16PM +0100, Andrew Price wrote: This patch removes an if statement where the true branch is never taken. At this point in the code, poll_timeout could only be 500 or -1. Signed-off-by: Andrew Price anpr...@redhat.com --- group/gfs_controld/main.c |3 ---

[Cluster-devel] [PATCH 3/3] mkfs i18n:

2011-09-06 Thread Carlos Maiolino
Use rpmatch() function to get answer to yes-or-no questions during mkfs confirmation Signed-off-by: Carlos Maiolino cmaiol...@redhat.com --- gfs2/mkfs/main_mkfs.c | 30 ++ 1 files changed, 22 insertions(+), 8 deletions(-) diff --git a/gfs2/mkfs/main_mkfs.c

Re: [Cluster-devel] [PATCH 3/3] mkfs i18n:

2011-09-06 Thread Bob Peterson
Hi Carlos, - Original Message - | + do{ | + printf( _(\nAre you sure you want to proceed? [y/n])); | + ret = getline(line, len, stdin); | + res = rpmatch(line); I'd like to see the free(line); moved right here after rpmatch. Otherwise multiple iterations through the loop will leak

[Cluster-devel] [PATCH] rgmanager: Fix uninitialized variable [RHEL6]

2011-09-06 Thread Lon Hohberger
Resolves: rhbz#734730 Signed-off-by: Lon Hohberger l...@redhat.com --- rgmanager/src/daemons/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rgmanager/src/daemons/main.c b/rgmanager/src/daemons/main.c index 4e12c68..931d95e 100644 ---