]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
common/config: export TEST_DEV for mkfs.xfs
authorDavid Disseldorp <ddiss@suse.de>
Thu, 11 Apr 2024 06:32:33 +0000 (16:32 +1000)
committerZorro Lang <zlang@kernel.org>
Sun, 28 Apr 2024 11:08:22 +0000 (19:08 +0800)
commitb26d68da08e47e6508a96bee72b25823040ab67e
tree096e302e8769b2d00d6f98e4f7f8858996256806
parent4706a3a1eebde964e910b351f8077cb52b8a5b0c
common/config: export TEST_DEV for mkfs.xfs

As of xfsprogs commit 6e0ed3d1 ("mkfs: stop allowing tiny filesystems")
attempts to create XFS filesystems sized under 300M fail, unless
TEST_DIR, TEST_DEV and QA_CHECK_FS environment variables are exported
(or a --unsupported mkfs parameter is provided).

TEST_DIR and QA_CHECK_FS are already exported, while TEST_DEV may only
be locally set if provided via e.g. configs/$HOSTNAME.config. Explicitly
export TEST_DEV to ensure that tests which call _scratch_mkfs_sized()
with an fssize under 300M run normally.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/config