]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
minix: remove fs state
authorDavidlohr Bueso <dave@gnu.org>
Wed, 13 Jul 2011 04:05:31 +0000 (00:05 -0400)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Jul 2011 09:15:55 +0000 (11:15 +0200)
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 <kerolasa@iki.fi>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
disk-utils/minix.h
disk-utils/mkfs.minix.c

index fc1d1c05e94d3c24aa5798c6bba8ec339854ae1e..a13a2a4fcbf9a98780cdfe1e3a418e8fd363db9d 100644 (file)
@@ -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
index 916dd1702cb8068d808a1a6a477324121b8ebea3..06d087e26273109e6f3d947e6cda254dba18e0c1 100644 (file)
@@ -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;