Re: [PATCH v2] common/rc: add global mounted option for _scratch_remount

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



Hi Eryu,

----- Original Message -----
> From: "Eryu Guan" <guaneryu@xxxxxxxxx>
> To: "XiaoLi Feng" <xifeng@xxxxxxxxxx>
> Cc: fstests@xxxxxxxxxxxxxxx, smfrench@xxxxxxxxx
> 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@xxxxxxxxxx>
> > 
> > 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.

Thanks.

> 
> Thanks,
> Eryu
> 
> >      fi
> >  }
> >  
> > --
> > 2.18.1
> > 
> 



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux