diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-08-01 10:11:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:15:18 -0500 |
commit | 7b52d77eb5b43787bb95298575bcd0f5f1ed7602 (patch) | |
tree | 001f6ca2dd39476f89f3572b71facb8ff4835b4f | |
parent | 326e963a894a348c46e58226db2ce1852c319811 (diff) | |
download | samba-7b52d77eb5b43787bb95298575bcd0f5f1ed7602.tar.gz samba-7b52d77eb5b43787bb95298575bcd0f5f1ed7602.tar.xz 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)
-rw-r--r-- | source4/ntvfs/posix/pvfs_flush.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_flush.c b/source4/ntvfs/posix/pvfs_flush.c index 2e64dc983d0..0f5a07071b8 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); } |