From 850d6611eb0eabc2f9091e3bbd2e48ec4a653b94 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 28 Jun 2005 11:58:17 +0000 Subject: [PATCH] Removed max-inode check from mkfs because of 32-bit inode numbers in V3 FS. Tested by mkfs -i 200000, fsck, file system creating with 200000 inodes, fsck again. --- commands/simple/Makefile | 2 +- commands/simple/mkfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/simple/Makefile b/commands/simple/Makefile index f696d0c9e..25e87f5b2 100755 --- a/commands/simple/Makefile +++ b/commands/simple/Makefile @@ -469,7 +469,7 @@ life: life.c login: login.c $(CCLD) -o $@ $? - @install -S 4kw $@ + install -S 4kw $@ look: look.c $(CCLD) -o $@ $? diff --git a/commands/simple/mkfs.c b/commands/simple/mkfs.c index 705deda6d..a9bd9cbaf 100755 --- a/commands/simple/mkfs.c +++ b/commands/simple/mkfs.c @@ -301,13 +301,13 @@ char *argv[]; /* round up to fill inode block */ i += inodes_per_block - 1; i = i / inodes_per_block * inodes_per_block; - if (i > INODE_MAX) i = INODE_MAX; + if (i > INODE_MAX && fs_version < 3) i = INODE_MAX; } if (blocks < 5) pexit("Block count too small"); if (blocks > max_nrblocks) pexit("Block count too large"); if (i < 1) pexit("Inode count too small"); - if (i > INODE_MAX) pexit("Inode count too large"); + if (i > INODE_MAX && fs_version < 3) pexit("Inode count too large"); inodes = (ino_t) i; /* Make simple file system of the given size, using defaults. */