From: David Disseldorp Date: Thu, 11 Apr 2024 06:32:33 +0000 (+1000) Subject: common/config: export TEST_DEV for mkfs.xfs X-Git-Tag: v2024.04.28^0 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b26d68da08e47e6508a96bee72b25823040ab67e;p=xfstests-dev.git 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 Reviewed-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig Signed-off-by: Zorro Lang --- diff --git a/common/config b/common/config index eac0710e..2114d936 100644 --- a/common/config +++ b/common/config @@ -920,6 +920,9 @@ else fi _canonicalize_devices +# mkfs.xfs checks for TEST_DEV before permitting < 300M filesystems. TEST_DIR +# and QA_CHECK_FS are also checked by mkfs.xfs, but already exported elsewhere. +export TEST_DEV # make sure this script returns success /bin/true