fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] common/rc: skip atime related tests on CIFS
@ 2018-05-22  3:23 XiaoLi Feng
  2018-05-27 12:50 ` Eryu Guan
  0 siblings, 1 reply; 6+ messages in thread
From: XiaoLi Feng @ 2018-05-22  3:23 UTC (permalink / raw)
  To: fstests; +Cc: linux-cifs, xiaoli feng

From: xiaoli feng <xifeng@redhat.com>

The atime related mount options have no effect on cifs mounts
now or in the future. So skip these tests on CIFS.

Signed-off-by: xiaoli feng <xifeng@redhat.com>
---
 common/rc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/rc b/common/rc
index ffe5323..d3af55f 100644
--- a/common/rc
+++ b/common/rc
@@ -3244,6 +3244,8 @@ _require_atime()
 	_exclude_scratch_mount_option "noatime"
 	if [ "$FSTYP" == "nfs" ]; then
 		_notrun "atime related mount options have no effect on NFS"
+	elif [ "$FSTYP" == "cifs" ]; then
+		_notrun "atime related mount options have no effect on CIFS"
 	fi
 }
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] common/rc: skip atime related tests on CIFS
  2018-05-22  3:23 [PATCH] common/rc: skip atime related tests on CIFS XiaoLi Feng
@ 2018-05-27 12:50 ` Eryu Guan
  2018-05-28  6:40   ` Xiaoli Feng
  0 siblings, 1 reply; 6+ messages in thread
From: Eryu Guan @ 2018-05-27 12:50 UTC (permalink / raw)
  To: XiaoLi Feng; +Cc: fstests, linux-cifs

On Tue, May 22, 2018 at 11:23:56AM +0800, Xiaoli Feng wrote:
> From: xiaoli feng <xifeng@redhat.com>
> 
> The atime related mount options have no effect on cifs mounts
> now or in the future. So skip these tests on CIFS.
> 
> Signed-off-by: xiaoli feng <xifeng@redhat.com>

Looks fine to me. But I really need an ACK from cifs folks.

> ---
>  common/rc | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/common/rc b/common/rc
> index ffe5323..d3af55f 100644
> --- a/common/rc
> +++ b/common/rc
> @@ -3244,6 +3244,8 @@ _require_atime()
>  	_exclude_scratch_mount_option "noatime"
>  	if [ "$FSTYP" == "nfs" ]; then
>  		_notrun "atime related mount options have no effect on NFS"
> +	elif [ "$FSTYP" == "cifs" ]; then
> +		_notrun "atime related mount options have no effect on CIFS"

Or just change the check to a case-switch on $FSTYP?

Thanks,
Eryu

>  	fi
>  }
>  
> -- 
> 1.8.3.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] common/rc: skip atime related tests on CIFS
  2018-05-27 12:50 ` Eryu Guan
@ 2018-05-28  6:40   ` Xiaoli Feng
  2018-05-28 23:26     ` Ronnie Sahlberg
  0 siblings, 1 reply; 6+ messages in thread
From: Xiaoli Feng @ 2018-05-28  6:40 UTC (permalink / raw)
  To: Eryu Guan, Leif Sahlberg; +Cc: fstests, linux-cifs


Add Ronnie to to list.

Hello Ronnie,
  what's the expected behavior from CIFS on atime/noatime? We want to skip the
atime related tests on cifs for xfstests just like nfs. But not sure if it's
correct. What do you think about it?

Thanks.

----- Original Message -----
> From: "Eryu Guan" <guaneryu@gmail.com>
> To: "XiaoLi Feng" <xifeng@redhat.com>
> Cc: fstests@vger.kernel.org, linux-cifs@vger.kernel.org
> Sent: Sunday, May 27, 2018 8:50:58 PM
> Subject: Re: [PATCH] common/rc: skip atime related tests on CIFS
> 
> On Tue, May 22, 2018 at 11:23:56AM +0800, Xiaoli Feng wrote:
> > From: xiaoli feng <xifeng@redhat.com>
> > 
> > The atime related mount options have no effect on cifs mounts
> > now or in the future. So skip these tests on CIFS.
> > 
> > Signed-off-by: xiaoli feng <xifeng@redhat.com>
> 
> Looks fine to me. But I really need an ACK from cifs folks.
> 
> > ---
> >  common/rc | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/common/rc b/common/rc
> > index ffe5323..d3af55f 100644
> > --- a/common/rc
> > +++ b/common/rc
> > @@ -3244,6 +3244,8 @@ _require_atime()
> >  	_exclude_scratch_mount_option "noatime"
> >  	if [ "$FSTYP" == "nfs" ]; then
> >  		_notrun "atime related mount options have no effect on NFS"
> > +	elif [ "$FSTYP" == "cifs" ]; then
> > +		_notrun "atime related mount options have no effect on CIFS"
> 
> Or just change the check to a case-switch on $FSTYP?

Ok, I will change it on the next commit.
Thanks!

> 
> Thanks,
> Eryu
> 
> >  	fi
> >  }
> >  
> > --
> > 1.8.3.1
> > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe fstests" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] common/rc: skip atime related tests on CIFS
  2018-05-28  6:40   ` Xiaoli Feng
@ 2018-05-28 23:26     ` Ronnie Sahlberg
  2018-05-31  3:18       ` Xiaoli Feng
       [not found]       ` <CAH2r5msb92E2e7gePY01qBPP4fJ0CKcEsnKLdnL1Ms8cUaQ4sA@mail.gmail.com>
  0 siblings, 2 replies; 6+ messages in thread
From: Ronnie Sahlberg @ 2018-05-28 23:26 UTC (permalink / raw)
  To: Xiaoli Feng; +Cc: Eryu Guan, fstests, linux-cifs

Hi Xiaoli,

I think it is fine to skip the atime tests for CIFS.

The behaviour of atime/noatime for cifs is basically noatime always.
When we read from the server the server will update the atime independently of
cisf.ko but then any further reads that we do from cache will never push any updates
to the server.

Ronnie



----- Original Message -----
> From: "Xiaoli Feng" <xifeng@redhat.com>
> To: "Eryu Guan" <guaneryu@gmail.com>, "Leif Sahlberg" <lsahlber@redhat.com>
> Cc: fstests@vger.kernel.org, linux-cifs@vger.kernel.org
> Sent: Monday, 28 May, 2018 4:40:56 PM
> Subject: Re: [PATCH] common/rc: skip atime related tests on CIFS
> 
> 
> Add Ronnie to to list.
> 
> Hello Ronnie,
>   what's the expected behavior from CIFS on atime/noatime? We want to skip
>   the
> atime related tests on cifs for xfstests just like nfs. But not sure if it's
> correct. What do you think about it?
> 
> Thanks.
> 
> ----- Original Message -----
> > From: "Eryu Guan" <guaneryu@gmail.com>
> > To: "XiaoLi Feng" <xifeng@redhat.com>
> > Cc: fstests@vger.kernel.org, linux-cifs@vger.kernel.org
> > Sent: Sunday, May 27, 2018 8:50:58 PM
> > Subject: Re: [PATCH] common/rc: skip atime related tests on CIFS
> > 
> > On Tue, May 22, 2018 at 11:23:56AM +0800, Xiaoli Feng wrote:
> > > From: xiaoli feng <xifeng@redhat.com>
> > > 
> > > The atime related mount options have no effect on cifs mounts
> > > now or in the future. So skip these tests on CIFS.
> > > 
> > > Signed-off-by: xiaoli feng <xifeng@redhat.com>
> > 
> > Looks fine to me. But I really need an ACK from cifs folks.
> > 
> > > ---
> > >  common/rc | 2 ++
> > >  1 file changed, 2 insertions(+)
> > > 
> > > diff --git a/common/rc b/common/rc
> > > index ffe5323..d3af55f 100644
> > > --- a/common/rc
> > > +++ b/common/rc
> > > @@ -3244,6 +3244,8 @@ _require_atime()
> > >  	_exclude_scratch_mount_option "noatime"
> > >  	if [ "$FSTYP" == "nfs" ]; then
> > >  		_notrun "atime related mount options have no effect on NFS"
> > > +	elif [ "$FSTYP" == "cifs" ]; then
> > > +		_notrun "atime related mount options have no effect on CIFS"
> > 
> > Or just change the check to a case-switch on $FSTYP?
> 
> Ok, I will change it on the next commit.
> Thanks!
> 
> > 
> > Thanks,
> > Eryu
> > 
> > >  	fi
> > >  }
> > >  
> > > --
> > > 1.8.3.1
> > > 
> > > --
> > > To unsubscribe from this list: send the line "unsubscribe fstests" in
> > > the body of a message to majordomo@vger.kernel.org
> > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > --
> > To unsubscribe from this list: send the line "unsubscribe fstests" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] common/rc: skip atime related tests on CIFS
  2018-05-28 23:26     ` Ronnie Sahlberg
@ 2018-05-31  3:18       ` Xiaoli Feng
       [not found]       ` <CAH2r5msb92E2e7gePY01qBPP4fJ0CKcEsnKLdnL1Ms8cUaQ4sA@mail.gmail.com>
  1 sibling, 0 replies; 6+ messages in thread
From: Xiaoli Feng @ 2018-05-31  3:18 UTC (permalink / raw)
  To: Ronnie Sahlberg; +Cc: Eryu Guan, fstests, linux-cifs


Thanks a lot, Ronnie.

----- Original Message -----
> From: "Ronnie Sahlberg" <lsahlber@redhat.com>
> To: "Xiaoli Feng" <xifeng@redhat.com>
> Cc: "Eryu Guan" <guaneryu@gmail.com>, fstests@vger.kernel.org, linux-cifs@vger.kernel.org
> Sent: Tuesday, May 29, 2018 7:26:41 AM
> Subject: Re: [PATCH] common/rc: skip atime related tests on CIFS
> 
> Hi Xiaoli,
> 
> I think it is fine to skip the atime tests for CIFS.
> 
> The behaviour of atime/noatime for cifs is basically noatime always.
> When we read from the server the server will update the atime independently
> of
> cisf.ko but then any further reads that we do from cache will never push any
> updates
> to the server.
> 
> Ronnie
> 
> 
> 
> ----- Original Message -----
> > From: "Xiaoli Feng" <xifeng@redhat.com>
> > To: "Eryu Guan" <guaneryu@gmail.com>, "Leif Sahlberg" <lsahlber@redhat.com>
> > Cc: fstests@vger.kernel.org, linux-cifs@vger.kernel.org
> > Sent: Monday, 28 May, 2018 4:40:56 PM
> > Subject: Re: [PATCH] common/rc: skip atime related tests on CIFS
> > 
> > 
> > Add Ronnie to to list.
> > 
> > Hello Ronnie,
> >   what's the expected behavior from CIFS on atime/noatime? We want to skip
> >   the
> > atime related tests on cifs for xfstests just like nfs. But not sure if
> > it's
> > correct. What do you think about it?
> > 
> > Thanks.
> > 
> > ----- Original Message -----
> > > From: "Eryu Guan" <guaneryu@gmail.com>
> > > To: "XiaoLi Feng" <xifeng@redhat.com>
> > > Cc: fstests@vger.kernel.org, linux-cifs@vger.kernel.org
> > > Sent: Sunday, May 27, 2018 8:50:58 PM
> > > Subject: Re: [PATCH] common/rc: skip atime related tests on CIFS
> > > 
> > > On Tue, May 22, 2018 at 11:23:56AM +0800, Xiaoli Feng wrote:
> > > > From: xiaoli feng <xifeng@redhat.com>
> > > > 
> > > > The atime related mount options have no effect on cifs mounts
> > > > now or in the future. So skip these tests on CIFS.
> > > > 
> > > > Signed-off-by: xiaoli feng <xifeng@redhat.com>
> > > 
> > > Looks fine to me. But I really need an ACK from cifs folks.
> > > 
> > > > ---
> > > >  common/rc | 2 ++
> > > >  1 file changed, 2 insertions(+)
> > > > 
> > > > diff --git a/common/rc b/common/rc
> > > > index ffe5323..d3af55f 100644
> > > > --- a/common/rc
> > > > +++ b/common/rc
> > > > @@ -3244,6 +3244,8 @@ _require_atime()
> > > >  	_exclude_scratch_mount_option "noatime"
> > > >  	if [ "$FSTYP" == "nfs" ]; then
> > > >  		_notrun "atime related mount options have no effect on NFS"
> > > > +	elif [ "$FSTYP" == "cifs" ]; then
> > > > +		_notrun "atime related mount options have no effect on CIFS"
> > > 
> > > Or just change the check to a case-switch on $FSTYP?
> > 
> > Ok, I will change it on the next commit.
> > Thanks!
> > 
> > > 
> > > Thanks,
> > > Eryu
> > > 
> > > >  	fi
> > > >  }
> > > >  
> > > > --
> > > > 1.8.3.1
> > > > 
> > > > --
> > > > To unsubscribe from this list: send the line "unsubscribe fstests" in
> > > > the body of a message to majordomo@vger.kernel.org
> > > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > > --
> > > To unsubscribe from this list: send the line "unsubscribe fstests" in
> > > the body of a message to majordomo@vger.kernel.org
> > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe fstests" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] common/rc: skip atime related tests on CIFS
       [not found]       ` <CAH2r5msb92E2e7gePY01qBPP4fJ0CKcEsnKLdnL1Ms8cUaQ4sA@mail.gmail.com>
@ 2018-06-07  5:39         ` Eryu Guan
  0 siblings, 0 replies; 6+ messages in thread
From: Eryu Guan @ 2018-06-07  5:39 UTC (permalink / raw)
  To: Steve French, Ronnie Sahlberg; +Cc: Xiaoli Feng, fstests, linux-cifs

On Mon, May 28, 2018 at 11:11:02PM -0500, Steve French wrote:
> Agreed but I do want to follow up with Ronnie on loosely related question of
> how cifs and NFS and similar filesystems parse no op mount options like noatime

I take this as an ACK then, please let me know if you didn't really mean
that :)

Thank you both for review!

Eryu

> 
> On Mon, May 28, 2018, 22:55 Ronnie Sahlberg <lsahlber@redhat.com> wrote:
> 
>     Hi Xiaoli,
> 
>     I think it is fine to skip the atime tests for CIFS.
> 
>     The behaviour of atime/noatime for cifs is basically noatime always.
>     When we read from the server the server will update the atime independently
>     of
>     cisf.ko but then any further reads that we do from cache will never push
>     any updates
>     to the server.
> 
>     Ronnie
> 
>     ----- Original Message -----
>     > From: "Xiaoli Feng" <xifeng@redhat.com>
>     > To: "Eryu Guan" <guaneryu@gmail.com>, "Leif Sahlberg" <
>     lsahlber@redhat.com>
>     > Cc: fstests@vger.kernel.org, linux-cifs@vger.kernel.org
>     > Sent: Monday, 28 May, 2018 4:40:56 PM
>     > Subject: Re: [PATCH] common/rc: skip atime related tests on CIFS
>     >
>     > Add Ronnie to to list.
>     >
>     > Hello Ronnie,
>     >   what's the expected behavior from CIFS on atime/noatime? We want to
>     skip
>     >   the
>     > atime related tests on cifs for xfstests just like nfs. But not sure if
>     it's
>     > correct. What do you think about it?
>     >
>     > Thanks.
>     >
>     > ----- Original Message -----
>     > > From: "Eryu Guan" <guaneryu@gmail.com>
>     > > To: "XiaoLi Feng" <xifeng@redhat.com>
>     > > Cc: fstests@vger.kernel.org, linux-cifs@vger.kernel.org
>     > > Sent: Sunday, May 27, 2018 8:50:58 PM
>     > > Subject: Re: [PATCH] common/rc: skip atime related tests on CIFS
>     > >
>     > > On Tue, May 22, 2018 at 11:23:56AM +0800, Xiaoli Feng wrote:
>     > > > From: xiaoli feng <xifeng@redhat.com>
>     > > >
>     > > > The atime related mount options have no effect on cifs mounts
>     > > > now or in the future. So skip these tests on CIFS.
>     > > >
>     > > > Signed-off-by: xiaoli feng <xifeng@redhat.com>
>     > >
>     > > Looks fine to me. But I really need an ACK from cifs folks.
>     > >
>     > > > ---
>     > > >  common/rc | 2 ++
>     > > >  1 file changed, 2 insertions(+)
>     > > >
>     > > > diff --git a/common/rc b/common/rc
>     > > > index ffe5323..d3af55f 100644
>     > > > --- a/common/rc
>     > > > +++ b/common/rc
>     > > > @@ -3244,6 +3244,8 @@ _require_atime()
>     > > >   _exclude_scratch_mount_option "noatime"
>     > > >   if [ "$FSTYP" == "nfs" ]; then
>     > > >           _notrun "atime related mount options have no effect on NFS"
>     > > > + elif [ "$FSTYP" == "cifs" ]; then
>     > > > +         _notrun "atime related mount options have no effect on
>     CIFS"
>     > >
>     > > Or just change the check to a case-switch on $FSTYP?
>     >
>     > Ok, I will change it on the next commit.
>     > Thanks!
>     >
>     > >
>     > > Thanks,
>     > > Eryu
>     > >
>     > > >   fi
>     > > >  }
>     > > > 
>     > > > --
>     > > > 1.8.3.1
>     > > >
>     > > > --
>     > > > To unsubscribe from this list: send the line "unsubscribe fstests" in
>     > > > the body of a message to majordomo@vger.kernel.org
>     > > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>     > > --
>     > > To unsubscribe from this list: send the line "unsubscribe fstests" in
>     > > the body of a message to majordomo@vger.kernel.org
>     > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>     > >
>     > --
>     > To unsubscribe from this list: send the line "unsubscribe fstests" in
>     > the body of a message to majordomo@vger.kernel.org
>     > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>     >
>     --
>     To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
>     the body of a message to majordomo@vger.kernel.org
>     More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-07  5:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-22  3:23 [PATCH] common/rc: skip atime related tests on CIFS XiaoLi Feng
2018-05-27 12:50 ` Eryu Guan
2018-05-28  6:40   ` Xiaoli Feng
2018-05-28 23:26     ` Ronnie Sahlberg
2018-05-31  3:18       ` Xiaoli Feng
     [not found]       ` <CAH2r5msb92E2e7gePY01qBPP4fJ0CKcEsnKLdnL1Ms8cUaQ4sA@mail.gmail.com>
2018-06-07  5:39         ` Eryu Guan

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).