]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Recognize SFU char/block devices created by Windows NFS server on Windows Serve...
authorPali Rohár <pali@kernel.org>
Thu, 3 Oct 2024 19:39:03 +0000 (21:39 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 21 Nov 2024 16:44:29 +0000 (10:44 -0600)
commit0d6b0d2e38167f4a3aa177191e3a10a9c3681a0c
tree66569ae0e816f9347e75b377baff0977b1ae1e23
parentdb363b0a1d9e6b9dc556296f1b1007aeb496a8cf
cifs: Recognize SFU char/block devices created by Windows NFS server on Windows Server <<2012

Windows NFS server versions on Windows Server older than 2012 release use
for storing char and block devices modified SFU format, not compatible with
the original SFU. Windows NFS server on Windows Server 2012 and new
versions use different format (reparse points), not related to SFU-style.

SFU / SUA / Interix subsystem stores the major and major numbers as pair of
64-bit integer, but Windows NFS server stores as pair of 32-bit integers.

Which makes char and block devices between Windows NFS server <<2012 and
Windows SFU/SUA/Interix subsytem incompatible.

So improve Linux SMB client.

When SFU mode is enabled (mount option -o sfu is specified) then recognize
also these kind of char and block devices and its major and minor numbers,
which are used by Windows Server versions older than 2012.

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