fstests.vger.kernel.org archive mirror
 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 v2] common/rc: add global mounted option for _scratch_remount
Date: Sat, 6 Apr 2019 20:16:37 +0800	[thread overview]
Message-ID: <20190406121637.GI2824@desktop> (raw)
In-Reply-To: <1613847653.376782.1554195525189.JavaMail.zimbra@redhat.com>

On Tue, Apr 02, 2019 at 04:58:45AM -0400, Xiaoli Feng wrote:
> Hi Eryu,
> 
> ----- Original Message -----
> > From: "Eryu Guan" <guaneryu@gmail.com>
> > To: "XiaoLi Feng" <xifeng@redhat.com>
> > Cc: fstests@vger.kernel.org, smfrench@gmail.com
> > Sent: Monday, April 1, 2019 7:15:54 PM
> > Subject: Re: [PATCH v2] common/rc: add global mounted option for _scratch_remount
> > 
> > On Sun, Mar 31, 2019 at 08:31:30PM +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.
> > > ---
> > >  common/rc | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/common/rc b/common/rc
> > > index 1c42515f..ea1eaf6a 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
> > > +	mount $MOUNT_OPTIONS -o "remount,$opts" $SCRATCH_MNT
> > 
> > IMHO, your v1 patch looks better, just need to update overlay/035 to use
> > bare $MOUNT_PROG to do the first remount.
> 
> The v1 patch use "_try_scratch_mount "-o remount,$opts"". And actually it will
> call like this "mount -o $option -o remount $dev $mountpoint". But this remounting
> operation seems is different from "mount -o $option -o remount $mountpoint"(just use
> strace to check). One difference is that it won't check /etc/fstab. That's why I give
> up v1 patch. What do you think about it? If you consider we can ignore the difference.
> Then I will use v1 patch and modify overlay/035.

I think we could ignore that difference. All you need for CIFS to work
is the password information set in $MOUNT_OPTIONS when remounting, and
_try_scratch_mount takes other mount options, e.g. selinux context, to
remount as well, not just $MOUNT_OPTIONS.

Thanks,
Eryu

  reply	other threads:[~2019-04-06 12:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-31 12:31 [PATCH v2] common/rc: add global mounted option for _scratch_remount XiaoLi Feng
2019-04-01 11:15 ` Eryu Guan
2019-04-02  8:58   ` Xiaoli Feng
2019-04-06 12:16     ` Eryu Guan [this message]
2019-04-01 15:29 ` Steve French
2019-04-02  0:33   ` Steve French
2019-04-02  8:29     ` 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=20190406121637.GI2824@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).