From: Davidlohr Bueso Date: Wed, 13 Jul 2011 04:05:31 +0000 (-0400) Subject: minix: remove fs state X-Git-Tag: v2.20-rc1~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ca43386bd75023a5e340d6b20733a955e62bb8d;p=thirdparty%2Futil-linux.git minix: remove fs state For v3 minix superblocks the state flag (s_state) has been removed, so drop it from the structure in accordance with the kernel's representation. Reported-by: Sami Kerola Signed-off-by: Davidlohr Bueso --- diff --git a/disk-utils/minix.h b/disk-utils/minix.h index fc1d1c05e9..a13a2a4fcb 100644 --- a/disk-utils/minix.h +++ b/disk-utils/minix.h @@ -62,7 +62,6 @@ struct minix3_super_block { u16 s_pad2; u16 s_blocksize; u8 s_disk_version; - u16 s_state; }; #define BLOCK_SIZE_BITS 10 diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c index 916dd1702c..06d087e262 100644 --- a/disk-utils/mkfs.minix.c +++ b/disk-utils/mkfs.minix.c @@ -160,11 +160,8 @@ static void check_mount(void) { static void super_set_state(void) { switch (fs_version) { - case 3: - Super3.s_state |= MINIX_VALID_FS; - Super3.s_state &= ~MINIX_ERROR_FS; - break; - default: + case 1: + case 2: Super.s_state |= MINIX_VALID_FS; Super.s_state &= ~MINIX_ERROR_FS; break;