Commit 409e5c00 authored by Steve French's avatar Steve French Committed by Steve French

Send NTCreateX with ATTR_POSIX if Linux/Unix extensions negotiated

with server.  This allows files that differ only in case and 
improves performance of file creation and file open to such servers
parent 082e21d6
Version 1.06
------------
Send NTCreateX with ATTR_POSIX if Linux/Unix extensions negotiated with server.
This allows files that differ only in case and improves performance of file
creation and file open to such servers.
Version 1.05
------------
fixes to cifs_readpages for fsx test case
Version 1.04
------------
Fix caching data integrity bug when extending file size especially when no
......
......@@ -562,8 +562,14 @@ CIFSSMBOpen(const int xid, struct cifsTconInfo *tcon,
}
pSMB->DesiredAccess = cpu_to_le32(access_flags);
pSMB->AllocationSize = 0;
pSMB->FileAttributes = ATTR_NORMAL; /* XP does not handle ATTR_POSIX_SEMANTICS */
/*if ((omode & S_IWUGO) == 0)
pSMB->FileAttributes = ATTR_NORMAL;
/* XP does not handle ATTR_POSIX_SEMANTICS */
/* but it helps speed up case sensitive checks for other
servers such as Samba */
if (tcon->ses->capabilities & CAP_UNIX)
pSMB->FileAttributes |= ATTR_POSIX_SEMANTICS;
/* if ((omode & S_IWUGO) == 0)
pSMB->FileAttributes |= ATTR_READONLY;*/
/* Above line causes problems due to vfs splitting create into two
pieces - need to set mode after file created not while it is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment