FS/XFS testing framework
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: Christoph Hellwig <hch@lst.de>, zlang@kernel.org
Cc: Yuezhang.Mo@sony.com, fstests@vger.kernel.org
Subject: Re: [PATCH] Revert "generic/730: add _require_scratch_shutdown"
Date: Fri, 25 Jul 2025 13:28:22 +0800	[thread overview]
Message-ID: <7183ed09-df4e-4a52-b34c-3cfa88be4ab4@oracle.com> (raw)
In-Reply-To: <20250724072514.3313006-1-hch@lst.de>

On 24/7/25 15:25, Christoph Hellwig wrote:
> This reverts commit 68c9ac2ad74ba31c02275fcbb11d1cf90f0435b1.
> 
> The test does not actually use the xfs_io shutdown functionality,
> and it does not use the scatch device.  Adding this checks causes
> it to fail for setups that do not use SCRATCH_DEV at all.
> 

The test runs on the scsi_debug device but verifies whether the
file system type supports shutdown via the scratch device.

Since mainline Btrfs doesn't support shutdown yet, we see:

---------------------------------
generic/730 3s ... [not run] btrfs does not support shutdown
Ran: generic/730
---------------------------------

With the revert applied, the test case incorrectly runs
and fails on Btrfs.

---------------------------------
generic/730 3s ... - output mismatch (see 
/Volumes/work/ws/fstests/results//generic/730.out.bad)
     --- tests/generic/730.out	2025-07-01 17:41:30.991699629 +0800
     +++ /Volumes/work/ws/fstests/results//generic/730.out.bad 
2025-07-25 13:20:55.690043813 +0800
     @@ -1,2 +1 @@
      QA output created by 730
     -cat: -: Input/output error
     ...
     (Run 'diff -u /Volumes/work/ws/fstests/tests/generic/730.out 
/Volumes/work/ws/fstests/results//generic/730.out.bad'  to see the 
entire diff)
Ran: generic/730
---------------------------------

Thanks.


> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>   tests/generic/730 | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/tests/generic/730 b/tests/generic/730
> index 6b5d319675f7..6251980e33e1 100755
> --- a/tests/generic/730
> +++ b/tests/generic/730
> @@ -29,7 +29,6 @@ _require_scsi_debug
>   size=$(_small_fs_size_mb 256)
>   SCSI_DEBUG_DEV=`_get_scsi_debug_dev 512 512 0 $size`
>   test -b "$SCSI_DEBUG_DEV" || _notrun "Failed to initialize scsi debug device"
> -SCRATCH_DEV=$SCSI_DEBUG_DEV _require_scratch_shutdown
>   echo "SCSI debug device $SCSI_DEBUG_DEV" >>$seqres.full
>   
>   run_check _mkfs_dev $SCSI_DEBUG_DEV


  reply	other threads:[~2025-07-25  5:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-24  7:25 [PATCH] Revert "generic/730: add _require_scratch_shutdown" Christoph Hellwig
2025-07-25  5:28 ` Anand Jain [this message]
2025-07-25 13:37 ` Zorro Lang
2025-07-29  7:42   ` 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=7183ed09-df4e-4a52-b34c-3cfa88be4ab4@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=Yuezhang.Mo@sony.com \
    --cc=fstests@vger.kernel.org \
    --cc=hch@lst.de \
    --cc=zlang@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox