Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e2…
Commit: e2c5e231eb9d6732235a073e2556993891b79e3f
Parent: 77ad746968784f1ede7d79f368ffbf01a7cd75cd
Author: Ryan O'Hara <rohara(a)redhat.com>
AuthorDate: Thu Feb 3 14:06:01 2011 -0600
Committer: Ryan O'Hara <rohara(a)redhat.com>
CommitterDate: Thu Feb 3 14:11:44 2011 -0600
fenced: update fenced man page with -q option
The new dbus code in fenced can be disabled with the -q command line
option. Add -q option to fenced man page.
Signed-off-by: Ryan O'Hara <rohara(a)redhat.com>
Reviewed-by: David Teigland <teigland(a)redhat.com>
---
fence/man/fenced.8 | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/fence/man/fenced.8 b/fence/man/fenced.8
index c3496fb..64f26e0 100644
--- a/fence/man/fenced.8
+++ b/fence/man/fenced.8
@@ -142,6 +142,9 @@ All nodes are in a clean state to start. Do no startup fencing.
.B \-s
Skip startup fencing of nodes with no defined fence methods.
.TP
+.B \-q
+Disable dbus signals.
+.TP
.BI \-j " secs"
Post-join fencing delay. Default 6.
.TP
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=0f…
Commit: 0f8d260207c686dd683da11b04868c483038a9ef
Parent: 4536bfb712dffa40a0e26910a8977babd902743e
Author: Ryan O'Hara <rohara(a)redhat.com>
AuthorDate: Thu Feb 3 14:06:01 2011 -0600
Committer: Ryan O'Hara <rohara(a)redhat.com>
CommitterDate: Thu Feb 3 14:06:01 2011 -0600
fenced: update fenced man page with -q option
The new dbus code in fenced can be disabled with the -q command line
option. Add -q option to fenced man page.
Signed-off-by: Ryan O'Hara <rohara(a)redhat.com>
Reviewed-by: David Teigland <teigland(a)redhat.com>
---
fence/man/fenced.8 | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/fence/man/fenced.8 b/fence/man/fenced.8
index c3496fb..64f26e0 100644
--- a/fence/man/fenced.8
+++ b/fence/man/fenced.8
@@ -142,6 +142,9 @@ All nodes are in a clean state to start. Do no startup fencing.
.B \-s
Skip startup fencing of nodes with no defined fence methods.
.TP
+.B \-q
+Disable dbus signals.
+.TP
.BI \-j " secs"
Post-join fencing delay. Default 6.
.TP
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=5c…
Commit: 5cb72e7ab6105f78af396a7e68d19ddaf3d06289
Parent: 04ed614339bb64003f3cc42af9994ff637313618
Author: Bob Peterson <rpeterso(a)redhat.com>
AuthorDate: Thu Feb 3 12:18:49 2011 -0600
Committer: Bob Peterson <rpeterso(a)redhat.com>
CommitterDate: Thu Feb 3 12:18:49 2011 -0600
gfs2_edit: fix segfault in set_bitmap when block is in rgrp
If you called libgfs2 function gfs2_set_bitmap to set a bit but
specified a block outside the data blocks, it would segfault.
rhbz#674843
---
gfs2/libgfs2/fs_bits.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gfs2/libgfs2/fs_bits.c b/gfs2/libgfs2/fs_bits.c
index 7409bed..38ef92c 100644
--- a/gfs2/libgfs2/fs_bits.c
+++ b/gfs2/libgfs2/fs_bits.c
@@ -168,7 +168,7 @@ int gfs2_set_bitmap(struct gfs2_sbd *sdp, uint64_t blkno, int state)
rgd = gfs2_blk2rgrpd(sdp, blkno);
- if(!rgd)
+ if(!rgd || blkno < rgd->ri.ri_data0)
return -1;
rgrp_block = (uint32_t)(blkno - rgd->ri.ri_data0);
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=04…
Commit: 04ed614339bb64003f3cc42af9994ff637313618
Parent: 8bad0161fb746d58889758d5d2b0e28ed8e3bcbc
Author: Steven Whitehouse <swhiteho(a)redhat.com>
AuthorDate: Wed Oct 27 10:47:34 2010 +0100
Committer: Bob Peterson <rpeterso(a)redhat.com>
CommitterDate: Thu Feb 3 11:59:04 2011 -0600
gfs2_edit: Fix bitmap editing function
The bitmap editing function wasn't reading in the rgrp, so that it
would fail with a NULL pointer dereference.
rhbz#674843
---
gfs2/edit/hexedit.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c
index c82ddae..abeed18 100644
--- a/gfs2/edit/hexedit.c
+++ b/gfs2/edit/hexedit.c
@@ -2557,28 +2557,28 @@ static void find_change_block_alloc(int *newval)
if (ablock == sbd.sb_addr)
printf("3 (the superblock is not in the bitmap)\n");
else {
- if (newval) {
- if (gfs2_set_bitmap(&sbd, ablock, *newval))
- printf("-1 (block invalid or part of an rgrp).\n");
- else
- printf("%d\n", *newval);
- } else {
- rgd = gfs2_blk2rgrpd(&sbd, ablock);
- if (rgd) {
- gfs2_rgrp_read(&sbd, rgd);
+ rgd = gfs2_blk2rgrpd(&sbd, ablock);
+ if (rgd) {
+ gfs2_rgrp_read(&sbd, rgd);
+ if (newval) {
+ if (gfs2_set_bitmap(&sbd, ablock, *newval))
+ printf("-1 (block invalid or part of an rgrp).\n");
+ else
+ printf("%d\n", *newval);
+ } else {
type = gfs2_get_bitmap(&sbd, ablock, rgd);
- gfs2_rgrp_relse(rgd);
if (type < 0) {
printf("-1 (block invalid or part of "
"an rgrp).\n");
exit(-1);
}
printf("%d (%s)\n", type, allocdesc[gfs1][type]);
- } else {
- gfs2_rgrp_free(&sbd.rglist);
- printf("-1 (block invalid or part of an rgrp).\n");
- exit(-1);
}
+ gfs2_rgrp_relse(rgd);
+ } else {
+ gfs2_rgrp_free(&sbd.rglist);
+ printf("-1 (block invalid or part of an rgrp).\n");
+ exit(-1);
}
}
gfs2_rgrp_free(&sbd.rglist);