]> Zhao Yanbai Git Server - minix.git/commitdiff
Truncate s_max_size at LONG_MAX, now that off_t is signed.
authorBen Gras <ben@minix3.org>
Fri, 12 Jan 2007 16:53:12 +0000 (16:53 +0000)
committerBen Gras <ben@minix3.org>
Fri, 12 Jan 2007 16:53:12 +0000 (16:53 +0000)
commands/simple/mkfs.c

index a36a6a580671b6e02214ed80a7455ad35935d22a..315212b85ebf9d3f5096c274fa97d9942236c7c8 100755 (executable)
@@ -35,8 +35,9 @@
 
 #undef EXTERN
 #define EXTERN                 /* get rid of EXTERN by making it null */
-#include "../../servers/mfs/type.h"
 #include "../../servers/mfs/super.h"
+#include "../../servers/mfs/type.h"
+#include "../../servers/mfs/inode.h"
 #include <minix/fslib.h>
 
 #ifndef max
@@ -493,7 +494,7 @@ ino_t inodes;
                sup->s_magic = SUPER_V3;
                sup->s_block_size = block_size;
                sup->s_disk_version = 0;
-#define MAX_MAX_SIZE   ((unsigned long) 0xffffffff)
+#define MAX_MAX_SIZE   ((unsigned long) LONG_MAX)
                if(MAX_MAX_SIZE/block_size < zo) {
                        sup->s_max_size = MAX_MAX_SIZE;
                }