Disabling write behind does not make the cached writes write through to
disk. In fact, if you disable write behind, you should see paging
writes *less* frequently because the lazy writer and modified page
writer aren’t flushing the file on your behalf as frequently.
Do you want to control when the data in the cache goes to disk, or do
you want all cache writes to be immediately reflected on disk? If yours
is the later case, you want to open the file with the FILE_WRITE_THROUGH
option.
Molly Brown
Microsoft Corporation
This posting is provided “AS IS” with no warranties and confers no
rights.
-----Original Message-----
From: xxxxx@charter.net [mailto:xxxxx@charter.net]
Sent: Friday, March 07, 2003 12:45 PM
To: File Systems Developers
Should a call to CcCopyWrite(), when the wait parameter is set to true,
immediatly call back into my write handler with a pagingIo? It seems
like it should.
I setup the cache on the first write:
CcInitializeCacheMap( IrpSp->FileObject,
(PCC_FILE_SIZES) &Fcb->Header.AllocationSize,
FALSE,
&FsData.CacheManagerCallbacks,
Fcb );
CcSetAdditionalCacheAttributes(IrpSp->FileObject, TRUE, TRUE);
then copy it to CC:
CcCopyWrite( IrpSp->FileObject,
&StartingOffset,
ByteCount,
Wait,
SystemBuffer);
But then, CC takes its sweet time calling back for a physical write. Am
I missing something? I really need delayed write to be disabled.
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com