cifs: smb1: Try failing back to SetFileInfo if SetPathInfo fails
authorRonnie Sahlberg <lsahlber@redhat.com>
Tue, 14 Jul 2020 22:18:05 +0000 (08:18 +1000)
committerSteve French <stfrench@microsoft.com>
Sun, 2 Aug 2020 23:00:25 +0000 (18:00 -0500)
commit8e408fc9fd48664495147a4213467d99a8922c9d
treef5965c8ff6de51a441c0912575d4340c1a64b63f
parenta3713ec3d775ff9da2e46f6652b23ff598c3ed36
cifs: smb1: Try failing back to SetFileInfo if SetPathInfo fails

RHBZ 1145308

Some very old server may not support SetPathInfo to adjust the timestamps
of directories. For these servers, try to open the directory and use SetFileInfo.

Minor correction to patch included that was
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Tested-by: Kenneth D'souza <kdsouza@redhat.com>
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/smb1ops.c