OSDN Git Service

smb3: fill in statfs fsid and correct namelen
authorSteve French <stfrench@microsoft.com>
Mon, 25 Jun 2018 04:18:52 +0000 (23:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:29:41 +0000 (09:29 +0200)
commitfb35368feb7f5712f9a929b4d49b67999dd16e45
treed63908e794770bb1a9147d9d025c57e7d2c393f5
parent107d9ee2e080cb038a819a4f41784013bc6c9b60
smb3: fill in statfs fsid and correct namelen

commit 21ba3845b59c733a79ed4fe1c4f3732e7ece9df7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/cifsfs.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h