From: "Darrick J. Wong" <djwong@kernel.org>
To: Luca Di Maio <luca.dimaio1@gmail.com>
Cc: fstests@vger.kernel.org, hch@infradead.org
Subject: Re: [PATCH v4] xfs: test reproducible builds
Date: Tue, 16 Dec 2025 16:15:50 -0800 [thread overview]
Message-ID: <20251217001550.GI7716@frogsfrogsfrogs> (raw)
In-Reply-To: <20251216080233.2324849-1-luca.dimaio1@gmail.com>
On Tue, Dec 16, 2025 at 09:02:33AM +0100, Luca Di Maio wrote:
> With the addition of the `-p` populate option, SOURCE_DATE_EPOCH and
> DETERMINISTIC_SEED support, it is possible to create fully reproducible
> pre-populated filesystems. We should test them here.
>
> v1 -> v2:
> - Changed test group from parent to mkfs
> - Fixed PROTO_DIR to point to a new dir
> - Populate PROTO_DIR with relevant file types
> - Move from md5sum to sha256sum
> v2 -> v3
> - Properly check if mkfs.xfs supports SOURCE_DATE_EPOCH and
> DETERMINISTIC_SEED
> - use fsstress program to generate the PROTO_DIR content
> - simplify test output
> v3 -> v4
> - Add _cleanup function
>
> Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
> ---
> tests/xfs/841 | 171 ++++++++++++++++++++++++++++++++++++++++++++++
> tests/xfs/841.out | 3 +
> 2 files changed, 174 insertions(+)
> create mode 100755 tests/xfs/841
> create mode 100644 tests/xfs/841.out
>
> diff --git a/tests/xfs/841 b/tests/xfs/841
> new file mode 100755
> index 00000000..a75f5879
> --- /dev/null
> +++ b/tests/xfs/841
> @@ -0,0 +1,171 @@
> +#! /bin/bash
> +# SPDX-License-Identifier: GPL-2.0
> +# Copyright (c) 2025 Chainguard, Inc. All Rights Reserved.
> +#
> +# FS QA Test No. 841
> +#
> +# Test that XFS filesystems created with reproducibility options produce
> +# identical images across multiple runs. This verifies that the combination
> +# of SOURCE_DATE_EPOCH, DETERMINISTIC_SEED, and -m uuid= options result in
> +# bit-for-bit reproducible filesystem images.
> +
> +. ./common/preamble
> +_begin_fstest auto quick mkfs
> +
> +# Image file settings
> +IMG_SIZE="512M"
> +IMG_FILE="$TEST_DIR/xfs_reproducible_test.img"
> +PROTO_DIR="$TEST_DIR/proto"
> +
> +# Fixed values for reproducibility
> +FIXED_UUID="12345678-1234-1234-1234-123456789abc"
> +FIXED_EPOCH="1234567890"
> +
> +_cleanup() {
> + rm -r -f "$PROTO_DIR" "$IMG_FILE"
> +}
The start of this function needs to copy the code from the _cleanup
function in common/preable, as Dave said elsewhere. Otherwise this
looks ok to me.
--D
next prev parent reply other threads:[~2025-12-17 0:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-16 8:02 [PATCH v4] xfs: test reproducible builds Luca Di Maio
2025-12-16 8:05 ` Christoph Hellwig
2025-12-17 0:15 ` Darrick J. Wong [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-12-15 19:33 Luca Di Maio
2025-12-15 22:57 ` Dave Chinner
2025-12-16 5:19 ` Christoph Hellwig
2025-12-16 21:33 ` Dave Chinner
2025-12-16 21:43 ` Dave Chinner
2025-12-17 11:05 ` Luca Di Maio
2025-12-16 5:18 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251217001550.GI7716@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=hch@infradead.org \
--cc=luca.dimaio1@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.