fs/ocfs2/super.c: Use bigger nodestr to accomodate 32-bit node numbers
authorGoldwyn Rodrigues <rgoldwyn@suse.de>
Wed, 28 Aug 2013 23:35:21 +0000 (16:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Aug 2013 02:26:38 +0000 (19:26 -0700)
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>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/super.c

index 854d80955bf8e66ea088a879d9faaf9178781441..121da2dc3be841e579dd64fdea6bcfb89f5c121c 100644 (file)
@@ -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);