Skip to content

Commit 3740884

Browse files
palismfrench
authored andcommitted
cifs: Update SFU comments about fifos and sockets
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 41d3f25 commit 3740884

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

fs/smb/client/cifssmb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,8 +1076,8 @@ SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
10761076
pSMB->OpenFlags |= cpu_to_le16(REQ_MORE_INFO);
10771077
pSMB->Mode = cpu_to_le16(access_flags_to_smbopen_mode(access_flags));
10781078
pSMB->Mode |= cpu_to_le16(0x40); /* deny none */
1079-
/* set file as system file if special file such
1080-
as fifo and server expecting SFU style and
1079+
/* set file as system file if special file such as fifo,
1080+
* socket, char or block and server expecting SFU style and
10811081
no Unix extensions */
10821082

10831083
if (create_options & CREATE_OPTION_SPECIAL)
@@ -1193,8 +1193,8 @@ CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock,
11931193
req->AllocationSize = 0;
11941194

11951195
/*
1196-
* Set file as system file if special file such as fifo and server
1197-
* expecting SFU style and no Unix extensions.
1196+
* Set file as system file if special file such as fifo, socket, char
1197+
* or block and server expecting SFU style and no Unix extensions.
11981198
*/
11991199
if (create_options & CREATE_OPTION_SPECIAL)
12001200
req->FileAttributes = cpu_to_le32(ATTR_SYSTEM);

fs/smb/client/smb1ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ cifs_make_node(unsigned int xid, struct inode *inode,
10781078
/*
10791079
* Check if mounted with mount parm 'sfu' mount parm.
10801080
* SFU emulation should work with all servers, but only
1081-
* supports block and char device (no socket & fifo),
1081+
* supports block and char device, socket & fifo,
10821082
* and was used by default in earlier versions of Windows
10831083
*/
10841084
if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL))

fs/smb/client/smb2ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5193,7 +5193,7 @@ static int smb2_make_node(unsigned int xid, struct inode *inode,
51935193
/*
51945194
* Check if mounted with mount parm 'sfu' mount parm.
51955195
* SFU emulation should work with all servers, but only
5196-
* supports block and char device (no socket & fifo),
5196+
* supports block and char device, socket & fifo,
51975197
* and was used by default in earlier versions of Windows
51985198
*/
51995199
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) {

0 commit comments

Comments
 (0)