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.
This commit is contained in:
Ben Gras 2005-06-28 11:58:17 +00:00
parent db2d114d06
commit 850d6611eb
2 changed files with 3 additions and 3 deletions

View file

@ -469,7 +469,7 @@ life: life.c
login: login.c
$(CCLD) -o $@ $?
@install -S 4kw $@
install -S 4kw $@
look: look.c
$(CCLD) -o $@ $?

View file

@ -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. */