]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: improve log extent validation
authorDarrick J. Wong <djwong@kernel.org>
Wed, 18 May 2022 02:48:13 +0000 (22:48 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 18 May 2022 02:48:13 +0000 (22:48 -0400)
commit93a199f21dd12fdef4cbcb6821e58e2c301727e2
tree5394670ce2dba4d8b7e51b82b101d5557a1b0136
parent1b580a773a65eb9b2fe7f777dd6900c0d6e9a7b3
mkfs: improve log extent validation

Use the standard libxfs fsblock verifiers to check the start and end of
the internal log.  The current code does not catch the case of a
(segmented) fsblock that is beyond agf_blocks but not so large to change
the agno part of the segmented fsblock.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_api_defs.h
mkfs/xfs_mkfs.c