* [PATCH] generic/423: statx mask of the reference file is different from the original file
@ 2019-01-10 3:14 Cui Yue
2019-01-10 8:35 ` Eryu Guan
0 siblings, 1 reply; 4+ messages in thread
From: Cui Yue @ 2019-01-10 3:14 UTC (permalink / raw)
To: fstests; +Cc: Cui Yue
When running xfstests generic/423 to test system call statx() on hard link files of NFS, it fails.
error message:
[!] attr 'stx_mask' differs from ref file, 7ff != e0
The values of parameter "mask" between the original file and the reference file are different.
One is STATX_ALL;
The other is STATX_ATIME | STATX_BTIME | STATX_CTIME | STATX_MTIME.
Modify the function get_reference() to pass the "mask" in,
and change STATX_ATIME | STATX_BTIME | STATX_CTIME | STATX_MTIME to "mask".
---
src/stat_test.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/stat_test.c b/src/stat_test.c
index 94c20d6..95cfdc4 100644
--- a/src/stat_test.c
+++ b/src/stat_test.c
@@ -290,7 +290,7 @@ static void set_origin_timestamp(const char *arg)
/*
* Get reference stats from a file.
*/
-static void get_reference(const char *file)
+static void get_reference(const char *file, unsigned int mask)
{
int ret;
@@ -298,9 +298,7 @@ static void get_reference(const char *file)
bad_arg("ref= requires a filename\n");
memset(&ref, 0xfb, sizeof(ref));
- ret = xfstests_statx(AT_FDCWD, file, AT_SYMLINK_NOFOLLOW,
- STATX_ATIME | STATX_BTIME | STATX_CTIME | STATX_MTIME,
- &ref);
+ ret = xfstests_statx(AT_FDCWD, file, AT_SYMLINK_NOFOLLOW, mask, &ref);
switch (ret) {
case 0:
ref_set = true;
@@ -751,7 +749,7 @@ int main(int argc, char **argv)
if (strncmp("ref=", arg, 4) == 0) {
/* ref=<file> - set reference stats from file */
- get_reference(arg + 4);
+ get_reference(arg + 4, mask);
continue;
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] generic/423: statx mask of the reference file is different from the original file
2019-01-10 3:14 [PATCH] generic/423: statx mask of the reference file is different from the original file Cui Yue
@ 2019-01-10 8:35 ` Eryu Guan
2019-01-11 2:58 ` Eryu Guan
0 siblings, 1 reply; 4+ messages in thread
From: Eryu Guan @ 2019-01-10 8:35 UTC (permalink / raw)
To: Cui Yue; +Cc: fstests
On Wed, Jan 09, 2019 at 10:14:59PM -0500, Cui Yue wrote:
> When running xfstests generic/423 to test system call statx() on hard link files of NFS, it fails.
> error message:
> [!] attr 'stx_mask' differs from ref file, 7ff != e0
>
> The values of parameter "mask" between the original file and the reference file are different.
> One is STATX_ALL;
> The other is STATX_ATIME | STATX_BTIME | STATX_CTIME | STATX_MTIME.
>
> Modify the function get_reference() to pass the "mask" in,
> and change STATX_ATIME | STATX_BTIME | STATX_CTIME | STATX_MTIME to "mask".
Thanks for the fix! Patch looks fine to me, but please follow the kernel
rules for submitting patches in the future. The commit log has too long
lines and you're missing Signed-off-by tag. I'll do the update at commit
time, no need to resend.
Thanks,
Eryu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] generic/423: statx mask of the reference file is different from the original file
2019-01-10 8:35 ` Eryu Guan
@ 2019-01-11 2:58 ` Eryu Guan
2019-01-11 5:32 ` Cui, Yue
0 siblings, 1 reply; 4+ messages in thread
From: Eryu Guan @ 2019-01-11 2:58 UTC (permalink / raw)
To: Cui Yue; +Cc: fstests
On Thu, Jan 10, 2019 at 04:35:49PM +0800, Eryu Guan wrote:
> On Wed, Jan 09, 2019 at 10:14:59PM -0500, Cui Yue wrote:
> > When running xfstests generic/423 to test system call statx() on hard link files of NFS, it fails.
> > error message:
> > [!] attr 'stx_mask' differs from ref file, 7ff != e0
> >
> > The values of parameter "mask" between the original file and the reference file are different.
> > One is STATX_ALL;
> > The other is STATX_ATIME | STATX_BTIME | STATX_CTIME | STATX_MTIME.
> >
> > Modify the function get_reference() to pass the "mask" in,
> > and change STATX_ATIME | STATX_BTIME | STATX_CTIME | STATX_MTIME to "mask".
>
> Thanks for the fix! Patch looks fine to me, but please follow the kernel
> rules for submitting patches in the future. The commit log has too long
> lines and you're missing Signed-off-by tag. I'll do the update at commit
As remindered by Darrick (thanks Darrick!), I need an explicit SOB tag
from you. Could You please either resend the patch with proper SOB tag
or provide the SOB tag by replying this thread?
Thanks,
Eryu
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] generic/423: statx mask of the reference file is different from the original file
2019-01-11 2:58 ` Eryu Guan
@ 2019-01-11 5:32 ` Cui, Yue
0 siblings, 0 replies; 4+ messages in thread
From: Cui, Yue @ 2019-01-11 5:32 UTC (permalink / raw)
To: Eryu Guan; +Cc: fstests@vger.kernel.org
Signed-off-by: Cui Yue <cuiyue-fnst@cn.fujitsu.com
Thanks a lot
Cui Yue
>
> -----Original Message-----
> From: Eryu Guan [mailto:guaneryu@gmail.com]
> Sent: Friday, January 11, 2019 10:58 AM
> To: Cui, Yue/崔 悦 <cuiyue-fnst@cn.fujitsu.com>
> Cc: fstests@vger.kernel.org
> Subject: Re: [PATCH] generic/423: statx mask of the reference file is different
> from the original file
>
> On Thu, Jan 10, 2019 at 04:35:49PM +0800, Eryu Guan wrote:
> > On Wed, Jan 09, 2019 at 10:14:59PM -0500, Cui Yue wrote:
> > > When running xfstests generic/423 to test system call statx() on hard link
> files of NFS, it fails.
> > > error message:
> > > [!] attr 'stx_mask' differs from ref file, 7ff != e0
> > >
> > > The values of parameter "mask" between the original file and the reference
> file are different.
> > > One is STATX_ALL;
> > > The other is STATX_ATIME | STATX_BTIME | STATX_CTIME | STATX_MTIME.
> > >
> > > Modify the function get_reference() to pass the "mask" in, and
> > > change STATX_ATIME | STATX_BTIME | STATX_CTIME | STATX_MTIME to
> "mask".
> >
> > Thanks for the fix! Patch looks fine to me, but please follow the
> > kernel rules for submitting patches in the future. The commit log has
> > too long lines and you're missing Signed-off-by tag. I'll do the
> > update at commit
>
> As remindered by Darrick (thanks Darrick!), I need an explicit SOB tag from you.
> Could You please either resend the patch with proper SOB tag or provide the
> SOB tag by replying this thread?
>
> Thanks,
> Eryu
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-01-11 5:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-10 3:14 [PATCH] generic/423: statx mask of the reference file is different from the original file Cui Yue
2019-01-10 8:35 ` Eryu Guan
2019-01-11 2:58 ` Eryu Guan
2019-01-11 5:32 ` Cui, Yue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox