summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-01 10:11:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:15:18 -0500
commit7b52d77eb5b43787bb95298575bcd0f5f1ed7602 (patch)
tree001f6ca2dd39476f89f3572b71facb8ff4835b4f /source4/ntvfs/posix
parent326e963a894a348c46e58226db2ce1852c319811 (diff)
downloadsamba-7b52d77eb5b43787bb95298575bcd0f5f1ed7602.tar.gz
samba-7b52d77eb5b43787bb95298575bcd0f5f1ed7602.tar.bz2
samba-7b52d77eb5b43787bb95298575bcd0f5f1ed7602.zip
r17359: http://www.cs.wisc.edu/~cao/cs739/draft-leach-cifs-v1-spec-01.txt
says that with the 0xffff fid all files only for the given pid should be flushed Does samba3 handle this correct? metze (This used to be commit 7cf6eae23bf5b944ce6e419105d6cf195b368319)
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_flush.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_flush.c b/source4/ntvfs/posix/pvfs_flush.c
index 2e64dc983d..0f5a07071b 100644
--- a/source4/ntvfs/posix/pvfs_flush.c
+++ b/source4/ntvfs/posix/pvfs_flush.c
@@ -62,8 +62,13 @@ NTSTATUS pvfs_flush(struct ntvfs_module_context *ntvfs,
return NT_STATUS_OK;
}
- /* they are asking to flush all open files */
+ /*
+ * they are asking to flush all open files
+ * for the given SMBPID
+ */
for (f=pvfs->files.list;f;f=f->next) {
+ if (f->smbpid != req->smbpid) continue;
+
pvfs_flush_file(pvfs, f);
}