From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796036652; b=iADnd8NBfF+UGIVO7ysHi4dObX5BzOmthw7eIXry9mwnZySiWWS8bzlU66340SfX9alV WMSOV9YTUaIcK6KlBhgZ8SfFO6F6NNUhzlqw/uSmJa2wD/jyNhINRfyVrG7i62YuU887v vBjcR8z9XfrNF5F4zrIpwn0/67DWHy5MJcyI9v0XA9SvbL3zEcK9lOI8O1esgiHqowhcS ca1Ta8Gmyw8sfCmAUNZ3pvVWlRRWO6R/z27/2twoVfH8MJb+y30lYOJ9kKZuTMFGyqOgS YcQp9gIGMCoSMzyihCihqZsrVPBNPD0qG63eL0KW16Y7vM3k7CpSryl7KdehZBDeHrA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796036652; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=W+FbVUTX6Sy70yIlbfzmYLSNaxFp3tUrie2vRfJerEw=; b=t0guhdU1KzCgsJFqOgpes+ZPK1j5YzCJDmWvMctFZmhWM9WZZhuK8HfmcwKXQtt36IgW TUZ6xx8na49hqm5qL4RtmlFrrfSXDjc4aR4iE5niGVma+gsbYcIoYb1HBIduBCBOPRa1O PYqrblMak4VwDTXcNdhMrAzf+THBWmKHzIW3s+BJBbC/ufV0YAeSQH+jaruuTF0UpiRJN SfWE4ZmsTHvFOnJm1ivdEjSr5T2qH7YrgBy4F9G1+02vF58TekzBwrsw9dVpE0tljg0TW QMdAAbcuhaaaOJZDD4YSi+Sie3tAacrG/6siTYua1tUSTqgpUl+trYNGONOK15FEBQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lfPcJ3rQ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 657E0606A33E; Mon, 30 Nov 2026 11:04:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lfPcJ3rQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 682541F0089A; Mon, 30 Nov 2026 11:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796036652; bh=W+FbVUTX6Sy70yIlbfzmYLSNaxFp3tUrie2vRfJerEw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lfPcJ3rQcf39Mpnr2H3cCcF7YNjwJgB/IqVR25kTFhs0dFusmfKXSGYlbPGujTYTl 1TDFRGaT3rNv52riYMV1LV870zjdtzY+p9QGmU09Os5dzr1k4QFO6Mlg7ovEhT5Wy/ QMbLCzcQPlkr7GUqSpLMDAK+i9vOMBzISact35+O/9TaKEkAJnKsiQLplBTmCkfjhU QS8zRXLXXF9wi2nlqY0raUbr3ag1+5eBof00jxlm6eLnvo7NOG/UoR1YFBLrZhba7X 55EIS7SsnAmRtbE6U8oD+YCQmlOh99Kevj9UJKi590wRRT9bLc4IIdz07s8B9gHFTn KNK0LZE5AAeDw== From: Anand Jain To: fstests@vger.kernel.org Cc: zlang@kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH v2 14/20] fstests: introduce _require_metadata_uuid() helper Date: Mon, 30 Nov 2026 19:03:16 +0800 Message-ID: <20261130-f_fsid-v2-14-c11fd1a5eaeb@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261130-f_fsid-v2-0-c11fd1a5eaeb@kernel.org> References: <20261130-f_fsid-v2-0-c11fd1a5eaeb@kernel.org> X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Add _require_metadata_uuid() to common/rc to check for the required userspace tools (xfs_admin and btrfstune) on XFS and Btrfs, and verify kernel metadata_uuid feature support on Btrfs before testing filesystem UUID changes. Reviewed-by: Zorro Lang Signed-off-by: Anand Jain --- common/rc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/common/rc b/common/rc index 5d28f6b3b780..1f58a15283cf 100644 --- a/common/rc +++ b/common/rc @@ -6582,6 +6582,24 @@ _require_unique_f_fsid() esac } +_require_metadata_uuid() +{ + case $FSTYP in + xfs) + # The xfs_admin utility is required to modify the filesystem UUID. + # Kernel support for metadata_uuid has been present since 4.16, so + # it is assumed to be available. + _require_command "$XFS_ADMIN_PROG" "xfs_admin" + ;; + btrfs) + _require_fs_sysfs_feature_attr metadata_uuid + _require_command "$BTRFS_TUNE_PROG" "btrfstune" + ;; + *) + _notrun "Require filesystem with metadata_uuid feature" + ;; + esac +} # Computes a percentage of the available space in a filesystem and # returns that quantity in MB. The percentage must not contain a percent -- 2.43.0