Whamcloud - gitweb
LU-11609 mke2fs: allow 64bit feature without extents 97/33897/2 v1.44.5.wc1
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 3 Nov 2018 09:10:22 +0000 (03:10 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 21 Jan 2019 04:26:25 +0000 (04:26 +0000)
commita2afee7659260924ca4224dd4eaf41474570cedb
treed338add91d0018c98169036842d73397d077ae79
parent0d87ac427e022ab98b84b63d2310f1d5e6401c40
LU-11609 mke2fs: allow 64bit feature without extents

The 64bit feature should be allowed without extents to for 32-bit
metadata_csum checksums to be stored in the group descriptor.
Change the extents check to check for more than 2^32 blocks instead
of the 64bit feature flag.  This also avoids warnings later if the
metadata_csum feature is enabled on a filesystem without 64bit.

Consolidate repeated 64bit feature checks into one check.

The fs_blocks_count value is always set when parse_fs_type() is
called, so no need to check if it is zero.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ie73ff0ed50cfed5d6a9596260c6b6dc32d3ebbe5
Reviewed-on: https://review.whamcloud.com/33897
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
misc/mke2fs.c