All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eryu Guan <guaneryu@gmail.com>
To: XiaoLi Feng <xifeng@redhat.com>
Cc: fstests@vger.kernel.org, smfrench@gmail.com
Subject: Re: [PATCH v3] common/rc: use _try_scratch_mount for scratch_remount
Date: Tue, 9 Apr 2019 09:50:11 +0800	[thread overview]
Message-ID: <20190409015011.GK2824@desktop> (raw)
In-Reply-To: <20190408023029.13135-1-xifeng@redhat.com>

On Mon, Apr 08, 2019 at 10:30:29AM +0800, Xiaoli Feng wrote:
> From: Xiaoli Feng <xifeng@redhat.com>
> 
> When call _scratch_remount for cifs , it always requires to input
> password. This will make generic/306 generic/452 failed because
> cifs remount failed.

You're missing Signed-off-by tag, would you please resend?

And many thanks to Steve French for helping test the patch! May I add
your Tested-by tag?

Thanks,
Eryu

> ---
>  common/rc         | 2 +-
>  tests/overlay/035 | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/common/rc b/common/rc
> index 1c42515f..6c262e32 100644
> --- a/common/rc
> +++ b/common/rc
> @@ -357,7 +357,7 @@ _scratch_remount()
>      local opts="$1"
>  
>      if test -n "$opts"; then
> -	mount -o "remount,$opts" $SCRATCH_MNT
> +	_try_scratch_mount "-o remount,$opts"
>      fi
>  }
>  
> diff --git a/tests/overlay/035 b/tests/overlay/035
> index f36c1e10..c0aae935 100755
> --- a/tests/overlay/035
> +++ b/tests/overlay/035
> @@ -55,7 +55,7 @@ mkdir -p $lowerdir1 $lowerdir2 $upperdir $workdir
>  $MOUNT_PROG -t overlay -o"lowerdir=$lowerdir2:$lowerdir1" \
>  			$OVL_BASE_SCRATCH_MNT $SCRATCH_MNT
>  touch $SCRATCH_MNT/foo 2>&1 | _filter_scratch
> -_scratch_remount rw 2>&1 | _filter_ro_mount
> +$MOUNT_PROG -o remount,rw $SCRATCH_MNT 2>&1 | _filter_ro_mount
>  $UMOUNT_PROG $SCRATCH_MNT
>  
>  # Make workdir immutable to prevent workdir re-create on mount
> -- 
> 2.18.1
> 

  reply	other threads:[~2019-04-09  1:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-08  2:30 [PATCH v3] common/rc: use _try_scratch_mount for scratch_remount XiaoLi Feng
2019-04-09  1:50 ` Eryu Guan [this message]
     [not found]   ` <CAH2r5mtbjLomReukHw8xO_mm8R0MgVBo7GzZWFxC8i+6X-JeeA@mail.gmail.com>
2019-04-09  2:05     ` Fwd: " Steve French
  -- strict thread matches above, loose matches on Subject: below --
2019-04-09  2:48 XiaoLi Feng

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=20190409015011.GK2824@desktop \
    --to=guaneryu@gmail.com \
    --cc=fstests@vger.kernel.org \
    --cc=smfrench@gmail.com \
    --cc=xifeng@redhat.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.