]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Set FATTR4_WORD0_TYPE for . and .. entries
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 16 Jun 2017 16:06:59 +0000 (12:06 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 13 Jul 2017 19:58:03 +0000 (15:58 -0400)
commit0918de9fc7c85506ff9cd08c44fb707cfc8a6787
tree8b9f18b91cde6c5fcbc308787c1a1265adf7df39
parent2b9b6a7412f479ac76d53423a7f8c4fa87c5f1e0
NFS: Set FATTR4_WORD0_TYPE for . and .. entries

The current code worked okay for getdents(), but getdents64() expects
the d_type field to get filled out properly in the stat structure.
Setting this field fixes xfstests generic/401.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c