diff options
author | James Peach <jpeach@samba.org> | 2005-09-03 07:19:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:03:30 -0500 |
commit | 93954d6390370331731bda5fcf251dc0a796c744 (patch) | |
tree | 809cb1d0377237d21df08dbc7a25c56d9fbc175a /source3/smbd/aio.c | |
parent | 3c82e4cd444d34e0a0ca24fec2e70bad6d9ee6b4 (diff) | |
download | samba-93954d6390370331731bda5fcf251dc0a796c744.tar.gz samba-93954d6390370331731bda5fcf251dc0a796c744.tar.bz2 samba-93954d6390370331731bda5fcf251dc0a796c744.zip |
r9985: Move the all the strict sync logic into file_sync().
(This used to be commit cc680bbe22b8bfc5a1900f11c2cbaeca3a9f9922)
Diffstat (limited to 'source3/smbd/aio.c')
-rw-r--r-- | source3/smbd/aio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index d19706ff61..af1f172b92 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -475,9 +475,7 @@ Wanted %u bytes but only wrote %d\n", fsp->fsp_name, (unsigned int)numtowrite, ( } DEBUG(3,("handle_aio_write: fnum=%d num=%d wrote=%d\n", fsp->fnum, (int)numtowrite, (int)nwritten)); - if (lp_syncalways(SNUM(fsp->conn)) || write_through) { - sync_file(fsp->conn,fsp); - } + sync_file(fsp->conn,fsp, write_through); } show_msg(outbuf); |