> Why would I see a cached write twice for the same location
once with the network name (\machinename\test\a.txt) and other with the local
well no one says you cannot receive twice the same offset+length
write requests twice. It;s perfectly legal.
WriteFile(handle, buffer, 1024 bytes)
SetFilePointer (-1024 from current)
WriteFile(handle, buffer, 1024 bytes)
The FS or filter must handle it properly
L.
I’m thinking I need to write a sample program to help people understand
this - each mapping to a file creates a separate instance in which it
can be marked as dirty. Thus, you could see the same data written as
many times as there are mappings. The situation you described is
perfectly reasonable to me (each page table entry has a dirty bit in it.
There is one mapping that RDR controls, and a second that the local FSD
controls. Each of these is independent of the other and in the right
circumstances will create situations in which the same file data is
written twice.
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com http:</http:>