svn commit: samba r17132 - in branches/SAMBA_3_0_23/source/smbd: .
jra at samba.org
jra at samba.org
Wed Jul 19 05:32:42 GMT 2006
Author: jra
Date: 2006-07-19 05:32:41 +0000 (Wed, 19 Jul 2006)
New Revision: 17132
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17132
Log:
Optimisation - when doing a stat open don't open the
file unless we really have to (ie. O_CREAT and file
doesn't exist).
Jeremy.
Modified:
branches/SAMBA_3_0_23/source/smbd/open.c
Changeset:
Modified: branches/SAMBA_3_0_23/source/smbd/open.c
===================================================================
--- branches/SAMBA_3_0_23/source/smbd/open.c 2006-07-19 05:32:12 UTC (rev 17131)
+++ branches/SAMBA_3_0_23/source/smbd/open.c 2006-07-19 05:32:41 UTC (rev 17132)
@@ -240,7 +240,7 @@
}
if ((access_mask & (FILE_READ_DATA|FILE_WRITE_DATA|FILE_APPEND_DATA|FILE_EXECUTE)) ||
- (local_flags & O_CREAT) ||
+ (!file_existed && (local_flags & O_CREAT)) ||
((local_flags & O_TRUNC) == O_TRUNC) ) {
/*
More information about the samba-cvs
mailing list