It means exactly what it says. You call with what you think is a user
cached I/O and the underlying file system decides - for its OWN reasons
- to treat this as a non-cached user I/O.
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gunko Andrey
Sent: Friday, September 08, 2006 6:50 AM
To: ntfsd redirect
Subject: RE: [ntfsd] Memory Mapped files to read
|If you search this forum you will find an example when the FSD decides
to
|not use the cache( e.g. RDR ).
And what does it means?
I have not opportunity to search this forum now because of traffic
exceed.
Please explain me the right technique to handle read/write requests.
Andrey Gunko
soft Xpansion GmbH & Co.KG
Programmer
Powered by eKnow-how
Konigsallee 45 D-44789 Bochum Tel: +49 234 2984171 Fax: +49 234
2984172 Internet: [www.maus-soft.com]
|-----Original Message-----
|From: xxxxx@lists.osr.com [mailto:bounce-261610-
|xxxxx@lists.osr.com] On Behalf Of Slava Imameyev
|Sent: Friday, September 08, 2006 3:31 PM
|To: Windows File Systems Devs Interest List
|Subject: Re:[ntfsd] Memory Mapped files to read
|
|> Are you about read/write operations with file created/opened with
|> FILE_NO_INTERMEDIATE_BUFFERING flag set?
|
|You are missing the point.
|This is an FSD decision from where to read data for a common
read/write.
|
|> If you search IRP_NOCACHE in IFS you’ll find:
|
|If you search this forum you will find an example when the FSD decides
to
|not use the cache( e.g. RDR ).
|
|> “IRP_NOCACHE - data for this I/O request should be read from the
actual
|> backing media and not from cache”
|
| If file is compressed the NTFS read/write data from the cache with the
|write through.
|
|–
| Slava Imameyev, xxxxx@hotmail.com
|
|
|“Gunko Andrey” wrote in message
news:xxxxx@ntfsd…
|> Are you about read/write operations with file created/opened with
|> FILE_NO_INTERMEDIATE_BUFFERING flag set? If so for those operations
|> IRP_NOCACHE flag set. For those files cache will never initialize.
|>
|> If you search IRP_NOCACHE in IFS you’ll find:
|> “IRP_NOCACHE - data for this I/O request should be read from the
actual
|> backing media and not from cache”
|>
|>
|> Andrey Gunko
|> soft Xpansion GmbH & Co.KG
|> Programmer
|> Powered by eKnow-how
|> Konigsallee 45 D-44789 Bochum Tel: +49 234 2984171 Fax: +49
234
|> 2984172 Internet: [www.maus-soft.com]
|>
|>
|> |-----Original Message-----
|> |From: xxxxx@lists.osr.com [mailto:bounce-261596-
|> |xxxxx@lists.osr.com] On Behalf Of Slava Imameyev
|> |Sent: Friday, September 08, 2006 1:42 PM
|> |To: Windows File Systems Devs Interest List
|> |Subject: Re:[ntfsd] Memory Mapped files to read
|> |
|> |
|> |> I think for third IRP_NOCACHE will set, or it doesn’t?
|> |
|> | No. This is an FSD decision to flush cache, purge pages and read
from a
|> |disk.
|> | I wrote - “without IRP_NOCACHE”!
|> |
|> |–
|> | Slava Imameyev, xxxxx@hotmail.com
|> |
|> |
|> |“Gunko Andrey” wrote in message
|> news:xxxxx@ntfsd…
|> |> |Imagine an FSD which does the following:
|> |> |
|> |> |- Receives the IRP_MJ_READ without IRP_PAGING and IRP_NOCACHE
flags
|> |> |- Calls MmFlushImageSection, then CcFlushCache, then
|> CcPurgeCacheSection
|> |> |that return success codes( this means- no user’s maps exist for
this
|> |data
|> |> |stream )
|> |> |- Read data directly from a disk without using the Cache.
|> |>
|> |> I think for third IRP_NOCACHE will set, or it doesn’t?
|> |>
|> |> Andrey Gunko
|> |> soft Xpansion GmbH & Co.KG
|> |> Programmer
|> |> Powered by eKnow-how
|> |> Konigsallee 45 D-44789 Bochum Tel: +49 234 2984171 Fax:
+49
|> 234
|> |> 2984172 Internet: [www.maus-soft.com]
|> |>
|> |>
|> |> |-----Original Message-----
|> |> |From: xxxxx@lists.osr.com [mailto:bounce-261592-
|> |> |xxxxx@lists.osr.com] On Behalf Of Slava Imameyev
|> |> |Sent: Friday, September 08, 2006 1:09 PM
|> |> |To: Windows File Systems Devs Interest List
|> |> |Subject: Re:[ntfsd] Memory Mapped files to read
|> |> |
|> |> |>Would you explain me?
|> |> |
|> |> |
|> |> |–
|> |> | Slava Imameyev, xxxxx@hotmail.com
|> |> |
|> |> |
|> |> |“Gunko Andrey” wrote in message
|> |> news:xxxxx@ntfsd…
|> |> |> But I’m not clear what is wrong with technique I wrote? Would
you
|> |> explain
|> |> |> me?
|> |> |>
|> |> |> Andrey Gunko
|> |> |> soft Xpansion GmbH & Co.KG
|> |> |> Programmer
|> |> |> Powered by eKnow-how
|> |> |> Konigsallee 45 D-44789 Bochum Tel: +49 234 2984171
Fax:
|+49
|> |> 234
|> |> |> 2984172 Internet: [www.maus-soft.com]
|> |> |>
|> |> |>
|> |> |> |-----Original Message-----
|> |> |> |From: xxxxx@lists.osr.com [mailto:bounce-261587-
|> |> |> |xxxxx@lists.osr.com] On Behalf Of Slava Imameyev
|> |> |> |Sent: Friday, September 08, 2006 12:25 PM
|> |> |> |To: Windows File Systems Devs Interest List
|> |> |> |Subject: Re:[ntfsd] Memory Mapped files to read
|> |> |> |
|> |> |> |> You are about file operations without cache? But for those
|> |> operations
|> |> |> |> IRP_NOCACHE flag will set. It’s not wrong.
|> |> |> |
|> |> |> |No. I wrote about the design of the FSD.
|> |> |> |
|> |> |> |There are 3 types of requests
|> |> |> |- Paging
|> |> |> |- NonCached
|> |> |> |- Other( simple user’s app read/write ).
|> |> |> |
|> |> |> | FSD may use the Cache Manager for the third type but may skip
it
|> for
|> |> |> some
|> |> |> |requests.
|> |> |> |
|> |> |> |–
|> |> |> | Slava Imameyev, xxxxx@hotmail.com
|> |> |> |
|> |> |> |
|> |> |> |“Gunko Andrey” wrote in message
|> |> |> news:xxxxx@ntfsd…
|> |> |> |> You are about file operations without cache? But for those
|> |> operations
|> |> |> |> IRP_NOCACHE flag will set. It’s not wrong.
|> |> |> |>
|> |> |> |> Andrey Gunko
|> |> |> |> soft Xpansion GmbH & Co.KG
|> |> |> |> Programmer
|> |> |> |> Powered by eKnow-how
|> |> |> |> Konigsallee 45 D-44789 Bochum Tel: +49 234 2984171
Fax:
|> |+49
|> |> |> 234
|> |> |> |> 2984172 Internet: [www.maus-soft.com]
|> |> |> |>
|> |> |> |>
|> |> |> |> |-----Original Message-----
|> |> |> |> |From: xxxxx@lists.osr.com
[mailto:bounce-261576-
|> |> |> |> |xxxxx@lists.osr.com] On Behalf Of Slava Imameyev
|> |> |> |> |Sent: Friday, September 08, 2006 12:02 PM
|> |> |> |> |To: Windows File Systems Devs Interest List
|> |> |> |> |Subject: Re:[ntfsd] Memory Mapped files to read
|> |> |> |> |
|> |> |> |> |> You must track all IRP_MJ_READ requests and perform
|decryption
|> |> only
|> |> |> if
|> |> |> |> |one
|> |> |> |> |> of the IRP_NOCACHE or IRP_PAGING_IO or
|> IRP_SYNCHRONOUS_PAGING_IO
|> |> |> flags
|> |> |> |> |set
|> |> |> |> |
|> |> |> |> |It is wrong to perform encryption/decryption in a filter
using
|> |this
|> |> |> |> |technique.
|> |> |> |> |One can do this only if one sure- the underlying FSD always
|uses
|> |> the
|> |> |> |> Cache
|> |> |> |> |or only memory mapped files are used by the FSD’s clients (
|i.e.
|> |> |> |> |applications and the system ).
|> |> |> |> |
|> |> |> |> |–
|> |> |> |> | Slava Imameyev, xxxxx@hotmail.com
|> |> |> |> |
|> |> |> |> |
|> |> |> |> |“Gunko Andrey” wrote in message
|> |> |> |> news:xxxxx@ntfsd…
|> |> |> |> |> You must track all IRP_MJ_READ requests and perform
|decryption
|> |> only
|> |> |> if
|> |> |> |> |one
|> |> |> |> |> of the IRP_NOCACHE or IRP_PAGING_IO or
|> IRP_SYNCHRONOUS_PAGING_IO
|> |> |> flags
|> |> |> |> |set
|> |> |> |> |> in Irp->Flags. It means that you’ll receive decrypted
memory
|> and
|> |> |> |> |encrypted
|> |> |> |> |> data on disk. If you do so you have no need to care about
|> memory
|> |> |> |mapped
|> |> |> |> |> files.
|> |> |> |> |>
|> |> |> |> |> Andrey Gunko
|> |> |> |> |> soft Xpansion GmbH & Co.KG
|> |> |> |> |> Programmer
|> |> |> |> |> Powered by eKnow-how
|> |> |> |> |> Konigsallee 45 D-44789 Bochum Tel: +49 234 2984171
|> Fax:
|> |> |+49
|> |> |> |> 234
|> |> |> |> |> 2984172 Internet: [www.maus-soft.com]
|> |> |> |> |>
|> |> |> |> |>
|> |> |> |> |> |-----Original Message-----
|> |> |> |> |> |From: xxxxx@lists.osr.com
|> [mailto:bounce-261561-
|> |> |> |> |> |xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
|> |> |> |> |> |Sent: Friday, September 08, 2006 10:12 AM
|> |> |> |> |> |To: Windows File Systems Devs Interest List
|> |> |> |> |> |Subject: [ntfsd] Memory Mapped files to read
|> |> |> |> |> |
|> |> |> |> |> |Hello Guru,
|> |> |> |> |> |
|> |> |> |> |> |When a program like notepad, uses Memory Mapped files to
|read
|> |> |> content
|> |> |> |> |> from
|> |> |> |> |> |a
|> |> |> |> |> |file, our mini filter should intercept those calls and
then
|> |> change
|> |> |> |the
|> |> |> |> |> |contents in memory that are received by notepad. Is it
|> possible
|> |> |> |yes/no
|> |> |> |> |if
|> |> |> |> |> |yes, then how?
|> |> |> |> |> |
|> |> |> |> |> |Thanks & Regards,
|> |> |> |> |> |Lokanadham R
|> |> |> |> |> |
|> |> |> |> |> |
|> |> |> |> |> |—
|> |> |> |> |> |Questions? First check the IFS FAQ at
|> |> |> |> |> |https://www.osronline.com/article.cfm?id=17
|> |> |> |> |> |
|> |> |> |> |> |You are currently subscribed to ntfsd as:
|> xxxxx@maus.donetsk.ua
|> |> |> |> |> |To unsubscribe send a blank email to leave-261561-
|> |> |> |xxxxx@lists.osr.com
|> |> |> |> |>
|> |> |> |> |>
|> |> |> |> |
|> |> |> |> |
|> |> |> |> |
|> |> |> |> |—
|> |> |> |> |Questions? First check the IFS FAQ at
|> |> |> |> |https://www.osronline.com/article.cfm?id=17
|> |> |> |> |
|> |> |> |> |You are currently subscribed to ntfsd as:
xxxxx@maus.donetsk.ua
|> |> |> |> |To unsubscribe send a blank email to leave-261576-
|> |> |xxxxx@lists.osr.com
|> |> |> |>
|> |> |> |>
|> |> |> |
|> |> |> |
|> |> |> |
|> |> |> |—
|> |> |> |Questions? First check the IFS FAQ at
|> |> |> |https://www.osronline.com/article.cfm?id=17
|> |> |> |
|> |> |> |You are currently subscribed to ntfsd as:
xxxxx@maus.donetsk.ua
|> |> |> |To unsubscribe send a blank email to leave-261587-
|> |xxxxx@lists.osr.com
|> |> |>
|> |> |>
|> |> |
|> |> |
|> |> |
|> |> |—
|> |> |Questions? First check the IFS FAQ at
|> |> |https://www.osronline.com/article.cfm?id=17
|> |> |
|> |> |You are currently subscribed to ntfsd as: xxxxx@maus.donetsk.ua
|> |> |To unsubscribe send a blank email to leave-261592-
|xxxxx@lists.osr.com
|> |>
|> |>
|> |
|> |
|> |
|> |—
|> |Questions? First check the IFS FAQ at
|> |https://www.osronline.com/article.cfm?id=17
|> |
|> |You are currently subscribed to ntfsd as: xxxxx@maus.donetsk.ua
|> |To unsubscribe send a blank email to
xxxxx@lists.osr.com
|>
|>
|
|
|
|—
|Questions? First check the IFS FAQ at
|https://www.osronline.com/article.cfm?id=17
|
|You are currently subscribed to ntfsd as: xxxxx@maus.donetsk.ua
|To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com