]> git.ipfire.org Git - people/arne_f/kernel.git/commit
cifs: fallback to older infolevels on findfirst queryinfo retry
authorSteve French <stfrench@microsoft.com>
Fri, 19 Oct 2018 06:58:22 +0000 (01:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:07:52 +0000 (09:07 +0200)
commit1cc5afab74995c0d5bec1a920733c5f5e22dca55
treea1306888920ded5aa759c858c81c838b3cea4c86
parent3fbf4c0a856f64dca5127c12e7a24d38bd9ea4b7
cifs: fallback to older infolevels on findfirst queryinfo retry

[ Upstream commit 3b7960caceafdfc2cdfe2850487f8d091eb41144 ]

In cases where queryinfo fails, we have cases in cifs (vers=1.0)
where with backupuid mounts we retry the query info with findfirst.
This doesn't work to some NetApp servers which don't support
WindowsXP (and later) infolevel 261 (SMB_FIND_FILE_ID_FULL_DIR_INFO)
so in this case use other info levels (in this case it will usually
be level 257, SMB_FIND_FILE_DIRECTORY_INFO).

(Also fixes some indentation)

See kernel bugzilla 201435

Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/inode.c