Commit 498af5e3 authored by Steve French's avatar Steve French Committed by Steve French

remove spurious logging of message on "create if file does not exist" case...

remove spurious logging of message on "create if file does not exist" case (without O_EXCL) when file exists
parent 0d7aad27
Version 0.89 Version 0.89
------------ ------------
Fix oops on write to dead tcp session. Fix oops on write to dead tcp session. Remove error log write for case when file open
O_CREAT but not O_EXCL
Version 0.88 Version 0.88
------------ ------------
......
...@@ -76,13 +76,14 @@ cifs_open(struct inode *inode, struct file *file) ...@@ -76,13 +76,14 @@ cifs_open(struct inode *inode, struct file *file)
FreeXid(xid); FreeXid(xid);
return rc; return rc;
} else { } else {
if(file->f_flags & O_EXCL)
cERROR(1,("could not find file instance for new file %p ",file)); cERROR(1,("could not find file instance for new file %p ",file));
} }
} }
full_path = build_path_from_dentry(file->f_dentry); full_path = build_path_from_dentry(file->f_dentry);
cFYI(1, (" inode = 0x%p file flags are %x for %s", inode, file->f_flags,full_path)); cFYI(1, (" inode = 0x%p file flags are 0x%x for %s", inode, file->f_flags,full_path));
if ((file->f_flags & O_ACCMODE) == O_RDONLY) if ((file->f_flags & O_ACCMODE) == O_RDONLY)
desiredAccess = GENERIC_READ; desiredAccess = GENERIC_READ;
else if ((file->f_flags & O_ACCMODE) == O_WRONLY) else if ((file->f_flags & O_ACCMODE) == O_WRONLY)
......
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