]> www.infradead.org Git - users/willy/xarray.git/commitdiff
cifs: Update SFU comments about fifos and sockets
authorPali Rohár <pali@kernel.org>
Sun, 15 Sep 2024 19:45:45 +0000 (21:45 +0200)
committerSteve French <stfrench@microsoft.com>
Tue, 17 Sep 2024 01:10:37 +0000 (20:10 -0500)
In SFU mode, activated by -o sfu mount option is now also support for
creating new fifos and sockets.

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

index 39b625d7e0d005ebbbb38c4d45bf49f6a97bc307..54a164fee9cf25fc863d261303f4c4f3c895808b 100644 (file)
@@ -1076,8 +1076,8 @@ OldOpenRetry:
        pSMB->OpenFlags |= cpu_to_le16(REQ_MORE_INFO);
        pSMB->Mode = cpu_to_le16(access_flags_to_smbopen_mode(access_flags));
        pSMB->Mode |= cpu_to_le16(0x40); /* deny none */
-       /* set file as system file if special file such
-          as fifo and server expecting SFU style and
+       /* set file as system file if special file such as fifo,
+        * socket, char or block and server expecting SFU style and
           no Unix extensions */
 
        if (create_options & CREATE_OPTION_SPECIAL)
@@ -1193,8 +1193,8 @@ openRetry:
        req->AllocationSize = 0;
 
        /*
-        * Set file as system file if special file such as fifo and server
-        * expecting SFU style and no Unix extensions.
+        * Set file as system file if special file such as fifo, socket, char
+        * or block and server expecting SFU style and no Unix extensions.
         */
        if (create_options & CREATE_OPTION_SPECIAL)
                req->FileAttributes = cpu_to_le32(ATTR_SYSTEM);
index e1f2feb56f45f6ac10ab50875689638da6b7712e..e03c91a49650fd46cb84dc20b549574d05f9d168 100644 (file)
@@ -1078,7 +1078,7 @@ cifs_make_node(unsigned int xid, struct inode *inode,
        /*
         * Check if mounted with mount parm 'sfu' mount parm.
         * SFU emulation should work with all servers, but only
-        * supports block and char device (no socket & fifo),
+        * supports block and char device, socket & fifo,
         * and was used by default in earlier versions of Windows
         */
        if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL))
index 11452317b09028dc575b0913e3776a8327609b6f..c52291b1b17599d805a78fb8b2e81c750b18db18 100644 (file)
@@ -5193,7 +5193,7 @@ static int smb2_make_node(unsigned int xid, struct inode *inode,
        /*
         * Check if mounted with mount parm 'sfu' mount parm.
         * SFU emulation should work with all servers, but only
-        * supports block and char device (no socket & fifo),
+        * supports block and char device, socket & fifo,
         * and was used by default in earlier versions of Windows
         */
        if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) {