summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-04-27 13:42:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:32 -0500
commitec8b810a16e1f08ceb64486be7447e6cf703261d (patch)
tree16211b3911bef58cec7d7ee23f3cc4a7c733781d
parent11cadb6f4712bd01ad48e3e39e895c2a9e1bbc38 (diff)
downloadsamba-ec8b810a16e1f08ceb64486be7447e6cf703261d.tar.gz
samba-ec8b810a16e1f08ceb64486be7447e6cf703261d.tar.bz2
samba-ec8b810a16e1f08ceb64486be7447e6cf703261d.zip
r15293: Don't ever set O_SYNC on open unless "strict sync = yes".
This could be the cause of the perf. problem reported between 3.0.14a and 3.0.2x. Lufthansa has *wireless* on their flights to the USA now... (I'm in heaven ! :-). Jeremy. (This used to be commit dbc03125f2643f8ecff8e901cb23fa6408cce011)
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index edc5bc98b6..1c8716abda 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1308,7 +1308,7 @@ files_struct *open_file_ntcreate(connection_struct *conn,
*/
#if defined(O_SYNC)
- if (create_options & FILE_WRITE_THROUGH) {
+ if (lp_strict_sync(SNUM(conn)) && (create_options & FILE_WRITE_THROUGH)) {
flags2 |= O_SYNC;
}
#endif /* O_SYNC */