git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4efaab
)
s3: Make us survive base-delaywrite with aio enabled
author
Volker Lendecke
<vl@samba.org>
Thu, 12 Jul 2012 14:30:22 +0000
(16:30 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 18 Jul 2012 22:46:54 +0000
(15:46 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/aio.c
patch
|
blob
|
history
diff --git
a/source3/smbd/aio.c
b/source3/smbd/aio.c
index 5f9b5c0b1adac2ebe48728e5d61bbff6d2d02d80..9cb690d892f6f3ad51514e8a44d2e9d5f538704d 100644
(file)
--- a/
source3/smbd/aio.c
+++ b/
source3/smbd/aio.c
@@
-467,6
+467,8
@@
static void aio_pwrite_smb1_done(struct tevent_req *req)
/* Unlock now we're done. */
SMB_VFS_STRICT_UNLOCK(fsp->conn, fsp, &aio_ex->lock);
+ mark_file_modified(fsp);
+
if (fsp->aio_write_behind) {
if (nwritten != numtowrite) {
@@
-700,6
+702,8
@@
static void aio_pread_smb2_done(struct tevent_req *req)
/* Unlock now we're done. */
SMB_VFS_STRICT_UNLOCK(fsp->conn, fsp, &aio_ex->lock);
+ mark_file_modified(fsp);
+
/* Common error or success code processing for async or sync
read returns. */