[PATCH] nilfs-utils: fix incorrect initial inode count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There was a slip-up on the mkfs.nilfs2 program.  Even though the
initial number of inodes is two (i.e. root directory plus .nilfs),
lscp reports that it's three.  Unbelievable, but real.

This patch belatedly fixes that fundamental mistake.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@xxxxxxxxxxxxx>
---
 sbin/mkfs/mkfs.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/sbin/mkfs/mkfs.c b/sbin/mkfs/mkfs.c
index 092edfd..0eeb859 100644
--- a/sbin/mkfs/mkfs.c
+++ b/sbin/mkfs/mkfs.c
@@ -150,8 +150,7 @@ static void parse_options(int argc, char *argv[]);
 static const unsigned group_desc_blocks_per_group = 1;
 static const unsigned bitmap_blocks_per_group = 1;
 static const unsigned nr_initial_segments = 2; /* initial segment + next */
-static const unsigned nr_initial_inodes = 3;  /* root directory + .sketch +
-						 .nilfs */
+static const unsigned nr_initial_inodes = 2;  /* root directory + .nilfs */
 static const __u64 first_cno = 1; /* Number of the first checkpoint */
 
 /* Segment layout information (per partial segment) */
-- 
1.7.3.5

--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux