common/rc: skip atime related tests on CIFS
PATCH 1/1 common/rc: skip atime related tests on CIFS
From: xiaoli feng <[email protected]>
The atime related mount options have no effect on cifs mounts now or in the future. So skip these tests on CIFS.
--- common/rc | 2 ++ 1 file changed, 2 insertions(+)
common/rc +2 -0
@@ -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 }
Signature · 1 line
1.8.3.1
Quoted 6 lines · Xiaoli Feng
From: xiaoli feng <[email protected]>
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 <[email protected]>
Looks fine to me. But I really need an ACK from cifs folks.
Quoted 9 lines
--- common/rc | 2 ++ 1 file changed, 2 insertions(+)common/rc +0
-0
common/rc _require_atime() · line 3248
Quoted 5 lines
common/rc +2
-0@@ -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
Quoted 10 lines
common/rc +0
-0fi }Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
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 -----
Quoted 20 lines
From: "Eryu Guan" <[email protected]>
To: "XiaoLi Feng" <[email protected]>
Cc: [email protected], [email protected]
Sent: Sunday, May 27, 2018 8:50:58 PM
Subject: Re: [PATCH] common/rc: skip atime related tests on CIFSQuoted 6 lines · Xiaoli Feng
From: xiaoli feng <[email protected]>
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 <[email protected]>Looks fine to me. But I really need an ACK from cifs folks.
Quoted 4 lines
--- common/rc | 2 ++ 1 file changed, 2 insertions(+)
Quoted 12 lines
common/rc _require_atime() · line 3248
Quoted 10 lines
common/rc +2
-0@@ -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!
Quoted 19 lines
Thanks,
EryuQuoted 10 lines
common/rc +0
-1fi } --1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
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 -----
Quoted 78 lines
From: "Xiaoli Feng" <[email protected]>
To: "Eryu Guan" <[email protected]>, "Leif Sahlberg" <[email protected]>
Cc: [email protected], [email protected]
Sent: Monday, 28 May, 2018 4:40:56 PM
Subject: Re: [PATCH] common/rc: skip atime related tests on CIFSAdd 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 -----
Quoted 20 lines
From: "Eryu Guan" <[email protected]>
To: "XiaoLi Feng" <[email protected]>
Cc: [email protected], [email protected]
Sent: Sunday, May 27, 2018 8:50:58 PM
Subject: Re: [PATCH] common/rc: skip atime related tests on CIFSQuoted 6 lines · Xiaoli Feng
From: xiaoli feng <[email protected]>
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 <[email protected]>Looks fine to me. But I really need an ACK from cifs folks.
Quoted 4 lines
--- common/rc | 2 ++ 1 file changed, 2 insertions(+)Quoted 12 lines
common/rc _require_atime() · line 3248
Quoted 10 lines
common/rc +2
-0@@ -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!Quoted 10 lines
Thanks,
EryuQuoted 6 lines
common/rc +0
-1fi } --1.8.3.1
Quoted 9 lines
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Thanks a lot, Ronnie.
----- Original Message -----
Quoted 102 lines
From: "Ronnie Sahlberg" <[email protected]>
To: "Xiaoli Feng" <[email protected]>
Cc: "Eryu Guan" <[email protected]>, [email protected], [email protected]
Sent: Tuesday, May 29, 2018 7:26:41 AM
Subject: Re: [PATCH] common/rc: skip atime related tests on CIFSHi 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 -----
Quoted 79 lines
From: "Xiaoli Feng" <[email protected]>
To: "Eryu Guan" <[email protected]>, "Leif Sahlberg" <[email protected]>
Cc: [email protected], [email protected]
Sent: Monday, 28 May, 2018 4:40:56 PM
Subject: Re: [PATCH] common/rc: skip atime related tests on CIFSAdd 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 -----
Quoted 20 lines
From: "Eryu Guan" <[email protected]>
To: "XiaoLi Feng" <[email protected]>
Cc: [email protected], [email protected]
Sent: Sunday, May 27, 2018 8:50:58 PM
Subject: Re: [PATCH] common/rc: skip atime related tests on CIFSQuoted 6 lines · Xiaoli Feng
From: xiaoli feng <[email protected]>
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 <[email protected]>Looks fine to me. But I really need an ACK from cifs folks.
Quoted 4 lines
--- common/rc | 2 ++ 1 file changed, 2 insertions(+)Quoted 12 lines
common/rc _require_atime() · line 3248
Quoted 10 lines
common/rc +2
-0@@ -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!Quoted 10 lines
Thanks,
EryuQuoted 6 lines
common/rc +0
-1fi } --1.8.3.1
Quoted 9 lines
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): CAH2r5msb92E2e7gePY01qBPP4fJ0CKcEsnKLdnL1Ms8cUaQ4sA@mail.gmail.com
Quoted 2 lines · Steve French
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
Quoted 103 lines · On Mon, May 28, 2018, 22:55 Ronnie Sahlberg <[email protected]> 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" <[email protected]>
> To: "Eryu Guan" <[email protected]>, "Leif Sahlberg" < [email protected]>
> Cc: [email protected], [email protected]
> 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" <[email protected]>
> > To: "XiaoLi Feng" <[email protected]>
> > Cc: [email protected], [email protected]
> > 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 <[email protected]>
> > >
> > > 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 <[email protected]>
> >
> > 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 [email protected]
> > > 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 [email protected]
> > 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 [email protected]
> 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html