Skip to content
Snippets Groups Projects
Commit f4fa27c1 authored by Andries Brouwer's avatar Andries Brouwer Committed by Linus Torvalds
Browse files

[PATCH] minix v3: fix superblock definition


Somehow we got the layout of the v3 superblock wrong, which causes crashes due
to overindexing of the buffer_head array in statfs on large fielsystems.

Cc: "Cedric Augonnet" <cedric.augonnet@gmail.com>
Cc: "Daniel Aragones" <danarag@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5085b607
No related branches found
No related tags found
No related merge requests found
...@@ -78,8 +78,7 @@ struct minix_super_block { ...@@ -78,8 +78,7 @@ struct minix_super_block {
* V3 minix super-block data on disk * V3 minix super-block data on disk
*/ */
struct minix3_super_block { struct minix3_super_block {
__u16 s_ninodes; __u32 s_ninodes;
__u16 s_nzones;
__u16 s_pad0; __u16 s_pad0;
__u16 s_imap_blocks; __u16 s_imap_blocks;
__u16 s_zmap_blocks; __u16 s_zmap_blocks;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment