public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Dave Chinner <david@fromorbit.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH] generic/459: catch mount failure
Date: Fri, 9 Jul 2021 08:43:26 -0700	[thread overview]
Message-ID: <20210709154326.GE11571@locust> (raw)
In-Reply-To: <20210709061027.2282643-1-david@fromorbit.com>

On Fri, Jul 09, 2021 at 04:10:27PM +1000, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
> 
> Because if we don't, we freeze the root filesystem instead of
> $SCRATCH_MNT and it all goes downhill from there.
> 
> Signed-off-by: Dave Chinner <dchinner@redhat.com>

Heh, more mount failure whackamole. :(

Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D

> ---
>  tests/generic/459 | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/generic/459 b/tests/generic/459
> index 7fd7a6fa..e5e5e9ab 100755
> --- a/tests/generic/459
> +++ b/tests/generic/459
> @@ -77,7 +77,9 @@ _mkfs_dev /dev/mapper/$vgname-$lvname >>$seqres.full 2>&1
>  $LVM_PROG lvcreate  -k n -s $vgname/$lvname \
>  		    -n $snapname >>$seqres.full 2>&1
>  
> -_mount /dev/mapper/$vgname-$snapname $SCRATCH_MNT
> +# Catch mount failure so we don't blindly go an freeze the root filesystem
> +# instead of lvm volume.
> +_mount /dev/mapper/$vgname-$snapname $SCRATCH_MNT || _fail "mount failed"
>  
>  # Consume all space available in the volume and freeze to ensure everything
>  # required to make the fs consistent is flushed to disk.
> -- 
> 2.31.1
> 

      reply	other threads:[~2021-07-09 15:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09  6:10 [PATCH] generic/459: catch mount failure Dave Chinner
2021-07-09 15:43 ` 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=20210709154326.GE11571@locust \
    --to=djwong@kernel.org \
    --cc=david@fromorbit.com \
    --cc=fstests@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