All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] Use bigger nodestr to accomodate 32-bit node numbers
@ 2013-08-28  4:15 Goldwyn Rodrigues
  2013-08-29  9:52 ` Jeff Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Goldwyn Rodrigues @ 2013-08-28  4:15 UTC (permalink / raw)
  To: ocfs2-devel

While using pacemaker/corosync, the node numbers are generated using
IP address as opposed to serial node number generation. This may
not fit in a 8-byte string. Use a bigger string to print the 
complete node number.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
--- 
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 854d809..bc947e0 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -1022,7 +1022,7 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)
 	struct inode *inode = NULL;
 	struct ocfs2_super *osb = NULL;
 	struct buffer_head *bh = NULL;
-	char nodestr[8];
+	char nodestr[12];
 	struct ocfs2_blockcheck_stats stats;
 
 	trace_ocfs2_fill_super(sb, data, silent);

-- 
Goldwyn

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-29 19:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-28  4:15 [Ocfs2-devel] [PATCH] Use bigger nodestr to accomodate 32-bit node numbers Goldwyn Rodrigues
2013-08-29  9:52 ` Jeff Liu
2013-08-29 12:15   ` Goldwyn Rodrigues
2013-08-29 19:26     ` Andrew Morton

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.