smb3: fill in statfs fsid and correct namelen
authorSteve French <stfrench@microsoft.com>
Mon, 25 Jun 2018 04:18:52 +0000 (23:18 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Aug 2018 19:15:41 +0000 (14:15 -0500)
commit21ba3845b59c733a79ed4fe1c4f3732e7ece9df7
tree056f8500bf9e7eabdb4d233a11bc78d5fa16860e
parenta12d0c590cc7ae01892f06c5ad6d19580ecdd0de
smb3: fill in statfs fsid and correct namelen

Fil in the correct namelen (typically 255 not 4096) in the
statfs response and also fill in a reasonably unique fsid
(in this case taken from the volume id, and the creation time
of the volume).

In the case of the POSIX statfs all fields are now filled in,
and in the case of non-POSIX mounts, all fields are filled
in which can be.

Signed-off-by: Steve French <stfrench@gmail.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
fs/cifs/cifsfs.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h