From: Robert Pengelly Date: Sun, 14 Sep 2025 23:17:54 +0000 (+0100) Subject: Don't offset inodes before initializing the filesystem X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=24bf8a0b8c1f22c11e844943b38c53fdac111c54;p=e2fsprogs.git Don't offset inodes before initializing the filesystem --- diff --git a/mke2fs.c b/mke2fs.c index 789b5c2..466fec0 100644 --- a/mke2fs.c +++ b/mke2fs.c @@ -659,7 +659,9 @@ int main (int argc, char **argv) { } - if ((nbinodes = nbblocks - EXT2_FIRST_INO - 1) < EXT2_FIRST_INO - 1) { + nbinodes = nbblocks; + + if (nbinodes < EXT2_FIRST_INO - 1) { nbinodes = EXT2_FIRST_INO - 1; }