diff options
author | Steve French <stfrench@microsoft.com> | 2025-07-15 06:16:19 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-07-18 20:12:02 +0300 |
commit | 8767cb3fbd514c4cf85b4f516ca30388e846f540 (patch) | |
tree | 704a38e579efbfb8cbd39fd3bc942fbaee5f7735 /scripts/gdb/linux/interrupts.py | |
parent | 83898e4a858387c88cd7456f713cb8fd49440cf9 (diff) | |
download | linux-8767cb3fbd514c4cf85b4f516ca30388e846f540.tar.xz |
Fix SMB311 posix special file creation to servers which do not advertise reparse support
Some servers (including Samba), support the SMB3.1.1 POSIX Extensions (which use reparse
points for handling special files) but do not properly advertise file system attribute
FILE_SUPPORTS_REPARSE_POINTS. Although we don't check for this attribute flag when
querying special file information, we do check it when creating special files which
causes them to fail unnecessarily. If we have negotiated SMB3.1.1 POSIX Extensions
with the server we can expect the server to support creating special files via
reparse points, and even if the server fails the operation due to really forbidding
creating special files, then it should be no problem and is more likely to return a
more accurate rc in any case (e.g. EACCES instead of EOPNOTSUPP).
Allow creating special files as long as the server supports either reparse points
or the SMB3.1.1 POSIX Extensions (note that if the "sfu" mount option is specified
it uses a different way of storing special files that does not rely on reparse points).
Cc: <stable@vger.kernel.org>
Fixes: 6c06be908ca19 ("cifs: Check if server supports reparse points before using them")
Acked-by: Ralph Boehme <slow@samba.org>
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions