Can FileObject be used to tell that two IRPs are targeting the same file?

Hi,

Can I use the “FileObject” in an IRP to tell that multiple IRPs are
actually targeting the same file?
In other words, if IRPs are for the same file, do they then have the
same “FileObject”?

If this doesn’t work, anything else that I could use besides the “fileName”?

Thanks ahead,
feng

FileObject->FsContext (after IRP_MJ_CREATE) is the normal technique for
doing so.

Regards,

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 feng
Sent: Tuesday, November 09, 2004 10:38 AM
To: ntfsd redirect
Subject: [ntfsd] Can FileObject be used to tell that two IRPs are
targeting the same file?

Hi,

Can I use the “FileObject” in an IRP to tell that multiple IRPs are
actually targeting the same file?
In other words, if IRPs are for the same file, do they then have the
same “FileObject”?

If this doesn’t work, anything else that I could use besides the
“fileName”?

Thanks ahead,
feng


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

What do you mean by “after MJ_CREATE”? If I’m intercepting MJ_CREATE, is
“FsContext” still valid and unique?

feng

Tony Mason wrote:

FileObject->FsContext (after IRP_MJ_CREATE) is the normal technique for
doing so.

Regards,

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 feng
Sent: Tuesday, November 09, 2004 10:38 AM
To: ntfsd redirect
Subject: [ntfsd] Can FileObject be used to tell that two IRPs are
targeting the same file?

Hi,

Can I use the “FileObject” in an IRP to tell that multiple IRPs are
actually targeting the same file?
In other words, if IRPs are for the same file, do they then have the
same “FileObject”?

If this doesn’t work, anything else that I could use besides the
“fileName”?

Thanks ahead,
feng


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


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

FsContext is not set up until after IRP_MJ_CREATE has been processed by
the underlying file system. Thus, you cannot use it until it has been
instantiated.

Regards,

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 feng
Sent: Tuesday, November 09, 2004 11:23 AM
To: ntfsd redirect
Subject: Re: [ntfsd] Can FileObject be used to tell that two IRPs are
targeting the same file?

What do you mean by “after MJ_CREATE”? If I’m intercepting MJ_CREATE, is

“FsContext” still valid and unique?

feng

Tony Mason wrote:

FileObject->FsContext (after IRP_MJ_CREATE) is the normal technique for
doing so.

Regards,

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 feng
Sent: Tuesday, November 09, 2004 10:38 AM
To: ntfsd redirect
Subject: [ntfsd] Can FileObject be used to tell that two IRPs are
targeting the same file?

Hi,

Can I use the “FileObject” in an IRP to tell that multiple IRPs are
actually targeting the same file?
In other words, if IRPs are for the same file, do they then have the
same “FileObject”?

If this doesn’t work, anything else that I could use besides the
“fileName”?

Thanks ahead,
feng


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


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
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