All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Zorro Lang <zlang@kernel.org>, fstests@vger.kernel.org
Subject: Re: [PATCH 2/3] generic/081: don't hang when running on devices with protection information
Date: Mon, 18 Aug 2025 13:51:53 -0700	[thread overview]
Message-ID: <20250818205153.GE7952@frogsfrogsfrogs> (raw)
In-Reply-To: <20250818072724.1559133-3-hch@lst.de>

On Mon, Aug 18, 2025 at 09:27:17AM +0200, Christoph Hellwig wrote:
> The dm snapshot target does not work on devices with protection
> information, and the udevadm settle command simply hangs when lvcreate
> failed because of that.  Avoid that by doing a strategic _notrun when
> lvcreate fails.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Makes sense to me
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>

--D

> ---
>  tests/generic/081 | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/generic/081 b/tests/generic/081
> index 97928bf4a435..00280e9cff3b 100755
> --- a/tests/generic/081
> +++ b/tests/generic/081
> @@ -73,7 +73,8 @@ $LVM_PROG vgcreate -f $vgname $SCRATCH_DEV >>$seqres.full 2>&1 || \
>  	_notrun "LVM is too stupid for this device"
>  # We use yes pipe instead of 'lvcreate --yes' because old version of lvm
>  # (like 2.02.95 in RHEL6) don't support --yes option
> -yes | $LVM_PROG lvcreate -L ${lvsize}M -n $lvname $vgname >>$seqres.full 2>&1
> +yes | $LVM_PROG lvcreate -L ${lvsize}M -n $lvname $vgname >>$seqres.full 2>&1 \
> +	|| _notrun "Can't set up LVM"
>  _udev_wait /dev/mapper/$vgname-$lvname
>  
>  
> -- 
> 2.47.2
> 
> 

  reply	other threads:[~2025-08-18 20:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-18  7:27 fixes for running on devices with protetion information Christoph Hellwig
2025-08-18  7:27 ` [PATCH 1/3] dmthin: _notrun when dm-thin setup fails Christoph Hellwig
2025-08-18 20:51   ` Darrick J. Wong
2025-08-25 15:44     ` Zorro Lang
2025-08-26 13:22       ` Christoph Hellwig
2025-08-27 16:20         ` Zorro Lang
2025-08-18  7:27 ` [PATCH 2/3] generic/081: don't hang when running on devices with protection information Christoph Hellwig
2025-08-18 20:51   ` Darrick J. Wong [this message]
2025-08-18  7:27 ` [PATCH 3/3] generic/450: " Christoph Hellwig
2025-08-18 20:52   ` Darrick J. Wong

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=20250818205153.GE7952@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --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 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.