Suppose the following scenario:
C -> Filter -> FS0
D -> Filter -> FS1
Filter and Filter are 2 instances of the same filter attached to
two different volumes.
If I set a stream context in Filter post-create, then redirect the
request to Filter by changing
FLT_IO_PARAMETER_BLOCK::TargetInstance, future I/O request will go
directly to Filter. This is not a problem IFF I get the same stream
context in Filter that I set in post-create in Filter. Is this
From my understanding this is not the case because contexts are
managed by file systems, and the file system instances are different?
If what I want is not possible, what do you recommend instead?
To give a bit of background. D is a virtual volume. I want D's
namespace to be a subset of C's namespace and my filter to work for
I/O done through D, but not for I/O done through C. That's why I want
to set a context at post-create through D, but as files will reside
and be accesed on the real drive, C, I must be able to determine that
I/O initially originated through C or D.