diff options
author | Steve French <sfrench@us.ibm.com> | 2005-07-21 18:20:28 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-07-21 18:20:28 -0400 |
commit | eda3c029899cbf435d76fea43b7e1404439ccec9 (patch) | |
tree | 334ad2504575c4c22247e62c4add3bb2cb54f502 /fs/cifs/cifssmb.c | |
parent | 076fb01e8238b7e5d68ba0d729c0ff7716d1d8ec (diff) |
[CIFS] Add compat with SFU (part 2)
Creating FIFOs to non-Unix servers (with cifs mounts for which sfu option
was specified) now works.
Signed-off-by: Steve French (sfrench@us.ibm.com)
Thanks to Martin Koeppe for his assistance
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 56d79fd90679..fbe651858c88 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -738,7 +738,13 @@ openRetry: | |||
738 | } | 738 | } |
739 | pSMB->DesiredAccess = cpu_to_le32(access_flags); | 739 | pSMB->DesiredAccess = cpu_to_le32(access_flags); |
740 | pSMB->AllocationSize = 0; | 740 | pSMB->AllocationSize = 0; |
741 | pSMB->FileAttributes = cpu_to_le32(ATTR_NORMAL); | 741 | /* set file as system file if special file such |
742 | as fifo and server expecting SFU style and | ||
743 | no Unix extensions */ | ||
744 | if(create_options & CREATE_OPTION_SPECIAL) | ||
745 | pSMB->FileAttributes = cpu_to_le32(ATTR_SYSTEM); | ||
746 | else | ||
747 | pSMB->FileAttributes = cpu_to_le32(ATTR_NORMAL); | ||
742 | /* XP does not handle ATTR_POSIX_SEMANTICS */ | 748 | /* XP does not handle ATTR_POSIX_SEMANTICS */ |
743 | /* but it helps speed up case sensitive checks for other | 749 | /* but it helps speed up case sensitive checks for other |
744 | servers such as Samba */ | 750 | servers such as Samba */ |
@@ -752,7 +758,7 @@ openRetry: | |||
752 | being created */ | 758 | being created */ |
753 | pSMB->ShareAccess = cpu_to_le32(FILE_SHARE_ALL); | 759 | pSMB->ShareAccess = cpu_to_le32(FILE_SHARE_ALL); |
754 | pSMB->CreateDisposition = cpu_to_le32(openDisposition); | 760 | pSMB->CreateDisposition = cpu_to_le32(openDisposition); |
755 | pSMB->CreateOptions = cpu_to_le32(create_options); | 761 | pSMB->CreateOptions = cpu_to_le32(create_options & CREATE_OPTIONS_MASK); |
756 | /* BB Expirement with various impersonation levels and verify */ | 762 | /* BB Expirement with various impersonation levels and verify */ |
757 | pSMB->ImpersonationLevel = cpu_to_le32(SECURITY_IMPERSONATION); | 763 | pSMB->ImpersonationLevel = cpu_to_le32(SECURITY_IMPERSONATION); |
758 | pSMB->SecurityFlags = | 764 | pSMB->SecurityFlags = |