]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: finobt mkfs support
authorBrian Foster <bfoster@redhat.com>
Mon, 26 May 2014 23:06:17 +0000 (09:06 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 26 May 2014 23:06:17 +0000 (09:06 +1000)
commitf49c4e8dc4b34a303c9c5779dfd5854417c04628
tree0e02f91383a49623f63dc09fe4df6188727e7e2c
parenta9f4ba98cc925e9fc0b013a4806614919a63fa64
mkfs: finobt mkfs support

Add the 'finobt' metadata option to mkfs to format an fs with free
inode btree support. If enabled, initialize the associated AGI
header fields and btree root block.

Also, do the initialization of the superblock version and feature
bits (including the new finobt flag) a bit earlier. These fields
must now be initialized prior to the use of XFS_PREALLOC_BLOCKS(),
as the latter returns a value that depends on whether a finobt root
btree block is reserved.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
mkfs/xfs_mkfs.c