diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2020-07-15 00:18:05 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-08-03 01:00:25 +0200 |
commit | 8e408fc9fd48664495147a4213467d99a8922c9d (patch) | |
tree | f5965c8ff6de51a441c0912575d4340c1a64b63f /fs/cifs/cifsproto.h | |
parent | cifs`: handle ERRBaduid for SMB1 (diff) | |
download | linux-8e408fc9fd48664495147a4213467d99a8922c9d.tar.xz linux-8e408fc9fd48664495147a4213467d99a8922c9d.zip |
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>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index ed13be38a265..336feff99c93 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -345,7 +345,7 @@ extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon, extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon, const char *fileName, const FILE_BASIC_INFO *data, const struct nls_table *nls_codepage, - int remap_special_chars); + struct cifs_sb_info *cifs_sb); extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon, const FILE_BASIC_INFO *data, __u16 fid, __u32 pid_of_opener); |