File Caching

Hi,

I’m new to file system drivers.
I have some doubts on file caching.

If I need to store a file in system buffer(Cache) I think the file
should be opened with the flag IRP_NOCACHE not being set.How do I
issue a open call or read call from the user level informing the I/o
manager that this flag is not being set?Kindly provide little
information on File Caching.

Regards,
Gayu

Cached access is the default file access mode, so no special flag needs
to be set when the file is opened. If you want to open a file for
non-cached IO, also called unbuffered IO, you specify
FILE_FLAG_NO_BUFFERING in the dwFlagsAndAttributes parameter to
CreateFile().

Molly Brown
Microsoft Corporation

This posting is provided “AS IS” with no warranties and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of gayatri gayatri
Sent: Thursday, January 20, 2005 10:48 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] File Caching

Hi,

I’m new to file system drivers.
I have some doubts on file caching.

If I need to store a file in system buffer(Cache) I think the file
should be opened with the flag IRP_NOCACHE not being set.How do I issue
a open call or read call from the user level informing the I/o manager
that this flag is not being set?Kindly provide little information on
File Caching.

Regards,
Gayu


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com