generic/423: statx mask of the reference file is different from the original file
authorCui Yue <cuiyue-fnst@cn.fujitsu.com>
Thu, 10 Jan 2019 03:14:59 +0000 (22:14 -0500)
committerEryu Guan <guaneryu@gmail.com>
Thu, 10 Jan 2019 08:11:27 +0000 (16:11 +0800)
commit50076fc291e3cdc9ea61ac06d66250f06e5b1c98
treee5353c55efc6e9d53ab8daac36230982b74327e0
parentf3a1213c2494a73a051100db99c83e1ccb050b8e
generic/423: statx mask of the reference file is different from the original file

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

Signed-off-by: Cui Yue <cuiyue-fnst@cn.fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/stat_test.c