]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
mkfs: use xfs_rtfile_initialize_blocks
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Oct 2024 00:03:34 +0000 (17:03 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 31 Oct 2024 22:45:05 +0000 (15:45 -0700)
commit7bb9a55fea7ba8de17a80848ee9b9d41f8e9324a
tree915925435437bdbbe933fa800387b3adc685a1d2
parent47e42101759e2f5c91cc48253e36cf7f12514170
mkfs: use xfs_rtfile_initialize_blocks

Use the new libxfs helper for initializing the rtbitmap/summary files
for rtgroup-enabled file systems.  Also skip the zeroing of the blocks
for rtgroup file systems as we'll overwrite every block instantly.

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