[CIFS] work around bug in Samba server handling for posix open
commit64cc2c63694a03393985ffc8b178e72f52dd8a06
authorSteve French <sfrench@us.ibm.com>
Wed, 4 Mar 2009 19:54:08 +0000 (4 19:54 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 12 Mar 2009 01:36:21 +0000 (12 01:36 +0000)
tree819161cd3f6b4268b5ff21dfb0c427496134fef5
parent276a74a4835ad86d6da42f3a084b060afc5656e8
[CIFS] work around bug in Samba server handling for posix open

Samba server (version 3.3.1 and earlier, and 3.2.8 and earlier) incorrectly
required the O_CREAT flag on posix open (even when a file was not being
created).  This disables posix open (create is still ok) after the first
attempt returns EINVAL (and logs an error, once, recommending that they
update their server).

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/CHANGES
fs/cifs/cifsglob.h
fs/cifs/file.c