Skip to contentSkip to conversation

Use a bigger nodestr in ocfs2_dismount_volume

PATCH New Goldwyn Rodrigues 1 participant 1 message Aug 30, 2013 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use a bigger nodestr in ocfs2_dismount_volume

While printing 32-bit node numbers, an 8-byte string is not enough. Increase the size of the string to 12 chars.

This got left out in 49fa8140e487b492da24c76ac3cccad0a0ae63e4

---
 fs/ocfs2/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/super.c +1 -1
index 121da2d..d4e81e4 100644
@@ -1924,7 +1924,7 @@ static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err)
 {
 	int tmp, hangup_needed = 0;
 	struct ocfs2_super *osb = NULL;
-	char nodestr[8];
+	char nodestr[12];
 
 	trace_ocfs2_dismount_volume(sb);
 
Signature · 1 line
Goldwyn