summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-07-12 18:47:42 +0200
committerJeremy Allison <jra@samba.org>2012-07-12 21:28:19 +0200
commit622eb59eb472bbdb9fd985c4d8880d3a1c098cd7 (patch)
tree6b06f2299e75c5d4ef3edb52dfbd321a962129fe /source3/smbd
parent67e7e14e6231b420d34b9782cfac7901c2e28663 (diff)
downloadsamba-622eb59eb472bbdb9fd985c4d8880d3a1c098cd7.tar.gz
samba-622eb59eb472bbdb9fd985c4d8880d3a1c098cd7.tar.bz2
samba-622eb59eb472bbdb9fd985c4d8880d3a1c098cd7.zip
s3: Make us survive base-delaywrite with aio enabled
Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jul 12 21:28:19 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/aio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c
index ec68b90452..0ea5274420 100644
--- a/source3/smbd/aio.c
+++ b/source3/smbd/aio.c
@@ -733,6 +733,8 @@ static int handle_aio_write_complete(struct aio_extra *aio_ex, int errcode)
}
aio_ex->fsp->fh->pos = aio_ex->acb.aio_offset + nwritten;
+
+ mark_file_modified(aio_ex->fsp);
}
show_msg(outbuf);
@@ -821,6 +823,8 @@ static int handle_aio_smb2_write_complete(struct aio_extra *aio_ex, int errcode)
return errcode;
}
+ mark_file_modified(fsp);
+
tevent_req_done(subreq);
return errcode;
}