Linux XFS filesystem development
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Anthony Iliopoulos <ailiop@suse.com>
Cc: Eryu Guan <guaneryu@gmail.com>,
	fstests@vger.kernel.org, linux-xfs@vger.kernel.org
Subject: Re: [PATCH] xfs/126: make blocktrash work reliably on attrleaf blocks
Date: Tue, 21 Apr 2020 08:26:37 -0700	[thread overview]
Message-ID: <20200421152637.GX6742@magnolia> (raw)
In-Reply-To: <20200421113643.24224-2-ailiop@suse.com>

On Tue, Apr 21, 2020 at 01:36:43PM +0200, Anthony Iliopoulos wrote:
> Running xfs/126 sometimes fails due to output mismatch. Due to the
> randomized nature of the test, periodically the selected bits are not
> relevant to the test, or the selected bits are not flipped. Supply an
> offset that is close to the start of the metadata block, so that the
> test will reliably corrupt the header.
> 
> Suggested-by: Darrick J. Wong <darrick.wong@oracle.com>
> Link: https://lore.kernel.org/linux-xfs/20200116160323.GC2149943@magnolia
> Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>

Seems fine to me...
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>

--D

> ---
>  tests/xfs/126 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/xfs/126 b/tests/xfs/126
> index 4f9f8cf9..d01338c9 100755
> --- a/tests/xfs/126
> +++ b/tests/xfs/126
> @@ -72,7 +72,7 @@ echo "+ corrupt xattr"
>  loff=1
>  while true; do
>  	_scratch_xfs_db -x -c "inode ${inode}" -c "ablock ${loff}" -c "stack" | grep -q 'file attr block is unmapped' && break
> -	_scratch_xfs_db -x -c "inode ${inode}" -c "ablock ${loff}" -c "stack" -c "blocktrash -x 32 -y $((blksz * 8)) -z ${FUZZ_ARGS}" >> $seqres.full
> +	_scratch_xfs_db -x -c "inode ${inode}" -c "ablock ${loff}" -c "stack" -c "blocktrash -o 4 -x 32 -y $((blksz * 8)) -z ${FUZZ_ARGS}" >> $seqres.full
>  	loff="$((loff + 1))"
>  done
>  
> -- 
> 2.26.2
> 

      reply	other threads:[~2020-04-21 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 11:36 [PATCH] xfs/126: make blocktrash work reliably on attrleaf blocks Anthony Iliopoulos
2020-04-21 15:26 ` Darrick J. Wong [this message]

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=20200421152637.GX6742@magnolia \
    --to=darrick.wong@oracle.com \
    --cc=ailiop@suse.com \
    --cc=fstests@vger.kernel.org \
    --cc=guaneryu@gmail.com \
    --cc=linux-xfs@vger.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