cifs: Implement is_network_name_deleted for SMB1
authorPali Rohár <pali@kernel.org>
Sat, 26 Oct 2024 18:55:47 +0000 (20:55 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 3 Apr 2025 01:01:14 +0000 (20:01 -0500)
commit28753e4304547a15b33f750fcfe1b1c7b6aa7ad7
treebf7e13a45f90ed5c1b818d526740a073f6537e64
parentf83e10a233059b74eaa2716e903b57464b3d3b0c
cifs: Implement is_network_name_deleted for SMB1

This change allows Linux SMB1 client to autoreconnect the share when it is
modified on server by admin operation which removes and re-adds it.

Implementation is reused from SMB2+ is_network_name_deleted callback. There
are just adjusted checks for error codes and access to struct smb_hdr.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb1ops.c