]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkfs.minix: The s_blocksize field of the MinixV3 superblock must be
authorMaurizio Lombardi <m.lombardi85@gmail.com>
Mon, 21 Nov 2011 19:00:48 +0000 (20:00 +0100)
committerMaurizio Lombardi <m.lombardi85@gmail.com>
Mon, 21 Nov 2011 19:00:48 +0000 (20:00 +0100)
initialized with a valid block size, not the total number of blocks
of the device!

disk-utils/mkfs.minix.c

index 502c42069713eda311ce71282725a83243cfe64a..5817837ce9b1a967905da20186cfed8bd9c21cb5 100644 (file)
@@ -490,7 +490,7 @@ static void setup_tables(void) {
 
        if (fs_version == 3) {
                Super3.s_log_zone_size = 0;
-               Super3.s_blocksize = BLOCKS;
+               Super3.s_blocksize = MINIX_BLOCK_SIZE;
        }
        else {
                Super.s_log_zone_size = 0;