From 7b52d77eb5b43787bb95298575bcd0f5f1ed7602 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 1 Aug 2006 10:11:37 +0000 Subject: 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) --- source4/ntvfs/posix/pvfs_flush.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } -- cgit