FS Filter handle Reparse Point

What shall I do inside IRP_MJ_CREATE handler to allow
a file with reparse point to be opened?

Thanks a lot,
Jack


Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

Hi Jack,

Well, the answer will depend upon what you are trying to accomplish
here. Were I trying to open a file to read the contents of the reparse
point, I would use IoCreateFileSpecifyDeviceObjectHint and pass in the
FILE_OPEN_REPARSE_POINT in the create options field.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

Looking forward to seeing you at the Next OSR File Systems Class October
18, 2004 in Silicon Valley!

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jack Chen
Sent: Tuesday, June 22, 2004 12:23 PM
To: ntfsd redirect
Subject: [ntfsd] FS Filter handle Reparse Point

What shall I do inside IRP_MJ_CREATE handler to allow
a file with reparse point to be opened?

Thanks a lot,
Jack


Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail


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

Thanks, Tony.
Unfortunately I’m using Windows 2000 so I cannot use
IoCreateFileSpecifyDeviceObjectHint.
I tried using ZwCreateFile to open the file again with
FILE_OPEN_REPARSE_POINT when reparse point was found,
and it returns STATUS_SUCCESS. But the file still
cannot be opened.
Do I need do something with the file handler I got
from ZwCreateFile?
Can I find from somewhere some sample code doing
similar task?

Thanks again,
Jack

— Tony Mason wrote:
> Hi Jack,
>
> Well, the answer will depend upon what you are
> trying to accomplish
> here. Were I trying to open a file to read the
> contents of the reparse
> point, I would use
> IoCreateFileSpecifyDeviceObjectHint and pass in the
> FILE_OPEN_REPARSE_POINT in the create options field.
>
> Regards,
>
> Tony
>
> Tony Mason
> Consulting Partner
> OSR Open Systems Resources, Inc.
> http://www.osr.com
>
> Looking forward to seeing you at the Next OSR File
> Systems Class October
> 18, 2004 in Silicon Valley!
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> Jack Chen
> Sent: Tuesday, June 22, 2004 12:23 PM
> To: ntfsd redirect
> Subject: [ntfsd] FS Filter handle Reparse Point
>
> What shall I do inside IRP_MJ_CREATE handler to
> allow
> a file with reparse point to be opened?
>
> Thanks a lot,
> Jack
>
>
>
>
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
>
> —
> 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:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>


Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

Hi Jack,

Now I’m confused. You say “… It returns STATUS_SUCCESS.” And then
you say “But the file still cannot be opened.”

These two statements are contradictory - if you get STATUS_SUCCESS, the
file is opened. Are you having a problem with a SUBSEQUENT call? If
so, this is a different problem.

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 Jack Chen
Sent: Tuesday, June 22, 2004 2:19 PM
To: ntfsd redirect
Subject: RE: [ntfsd] FS Filter handle Reparse Point

Thanks, Tony.
Unfortunately I’m using Windows 2000 so I cannot use
IoCreateFileSpecifyDeviceObjectHint.
I tried using ZwCreateFile to open the file again with
FILE_OPEN_REPARSE_POINT when reparse point was found, and it returns
STATUS_SUCCESS. But the file still cannot be opened.
Do I need do something with the file handler I got from ZwCreateFile?
Can I find from somewhere some sample code doing similar task?

Thanks again,
Jack

— Tony Mason wrote:
> Hi Jack,
>
> Well, the answer will depend upon what you are trying to accomplish
> here. Were I trying to open a file to read the contents of the
> reparse point, I would use IoCreateFileSpecifyDeviceObjectHint and
> pass in the FILE_OPEN_REPARSE_POINT in the create options field.
>
> Regards,
>
> Tony
>
> Tony Mason
> Consulting Partner
> OSR Open Systems Resources, Inc.
> http://www.osr.com
>
> Looking forward to seeing you at the Next OSR File Systems Class
> October 18, 2004 in Silicon Valley!
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Jack Chen
> Sent: Tuesday, June 22, 2004 12:23 PM
> To: ntfsd redirect
> Subject: [ntfsd] FS Filter handle Reparse Point
>
> What shall I do inside IRP_MJ_CREATE handler to allow a file with
> reparse point to be opened?
>
> Thanks a lot,
> Jack
>
>
>
>
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
>
> —
> 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:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>


Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail


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 I mean the file cannot be opened is, when I
double click the file with the reparse point in
Windows Explorer, it cannot be opened. Same as without
the filter.

What I did inside the filter is I call ZwCreateFile to
open the same file again in IRP_MJ_CREATE handler.
Windbg shows in my filter the ZwCreateFile returns
STATUS_SUCCESS.

Thanks,
Jack

— Tony Mason wrote:
> Hi Jack,
>
> Now I’m confused. You say “… It returns
> STATUS_SUCCESS.” And then
> you say “But the file still cannot be opened.”
>
> These two statements are contradictory - if you get
> STATUS_SUCCESS, the
> file is opened. Are you having a problem with a
> SUBSEQUENT call? If
> so, this is a different problem.
>
> 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
> Jack Chen
> Sent: Tuesday, June 22, 2004 2:19 PM
> To: ntfsd redirect
> Subject: RE: [ntfsd] FS Filter handle Reparse Point
>
> Thanks, Tony.
> Unfortunately I’m using Windows 2000 so I cannot use
> IoCreateFileSpecifyDeviceObjectHint.
> I tried using ZwCreateFile to open the file again
> with
> FILE_OPEN_REPARSE_POINT when reparse point was
> found, and it returns
> STATUS_SUCCESS. But the file still cannot be opened.
> Do I need do something with the file handler I got
> from ZwCreateFile?
> Can I find from somewhere some sample code doing
> similar task?
>
> Thanks again,
> Jack
>
> — Tony Mason wrote:
> > Hi Jack,
> >
> > Well, the answer will depend upon what you are
> trying to accomplish
> > here. Were I trying to open a file to read the
> contents of the
> > reparse point, I would use
> IoCreateFileSpecifyDeviceObjectHint and
> > pass in the FILE_OPEN_REPARSE_POINT in the create
> options field.
> >
> > Regards,
> >
> > Tony
> >
> > Tony Mason
> > Consulting Partner
> > OSR Open Systems Resources, Inc.
> > http://www.osr.com
> >
> > Looking forward to seeing you at the Next OSR File
> Systems Class
> > October 18, 2004 in Silicon Valley!
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf
> Of Jack Chen
> > Sent: Tuesday, June 22, 2004 12:23 PM
> > To: ntfsd redirect
> > Subject: [ntfsd] FS Filter handle Reparse Point
> >
> > What shall I do inside IRP_MJ_CREATE handler to
> allow a file with
> > reparse point to be opened?
> >
> > Thanks a lot,
> > Jack
> >
> >
> >
> >
> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> > http://promotions.yahoo.com/new_mail
> >
> > —
> > 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:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
>
>
>

> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
>
> —
> 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:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>

__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail

Hi Jack,

Uh, ok. This is a very confusing way to describe things - you really
should tell us what is happening at one particular layer, not mixing a
complex application behavior (Explorer) with the more fundamental layer
(filter).

It sounds to me like you are not handling the STATUS_REPARSE error
properly in your filter. Now we’re not talking about *your* create
operation, we are talking about the applications create operation - are
you intercepting the STAUS_REPARSE and handling it? If not, of course
this will act the same - you aren’t fixing it in your filter driver so
of course you will see the same error.

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 Jack Chen
Sent: Tuesday, June 22, 2004 3:29 PM
To: ntfsd redirect
Subject: RE: [ntfsd] FS Filter handle Reparse Point

What I mean the file cannot be opened is, when I double click the file
with the reparse point in Windows Explorer, it cannot be opened. Same as
without the filter.

What I did inside the filter is I call ZwCreateFile to open the same
file again in IRP_MJ_CREATE handler.
Windbg shows in my filter the ZwCreateFile returns STATUS_SUCCESS.

Thanks,
Jack

— Tony Mason wrote:
> Hi Jack,
>
> Now I’m confused. You say “… It returns STATUS_SUCCESS.” And then
> you say “But the file still cannot be opened.”
>
> These two statements are contradictory - if you get STATUS_SUCCESS,
> the file is opened. Are you having a problem with a SUBSEQUENT call?

> If so, this is a different problem.
>
> 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 Jack Chen
> Sent: Tuesday, June 22, 2004 2:19 PM
> To: ntfsd redirect
> Subject: RE: [ntfsd] FS Filter handle Reparse Point
>
> Thanks, Tony.
> Unfortunately I’m using Windows 2000 so I cannot use
> IoCreateFileSpecifyDeviceObjectHint.
> I tried using ZwCreateFile to open the file again with
> FILE_OPEN_REPARSE_POINT when reparse point was found, and it returns
> STATUS_SUCCESS. But the file still cannot be opened.
> Do I need do something with the file handler I got from ZwCreateFile?
> Can I find from somewhere some sample code doing similar task?
>
> Thanks again,
> Jack
>
> — Tony Mason wrote:
> > Hi Jack,
> >
> > Well, the answer will depend upon what you are
> trying to accomplish
> > here. Were I trying to open a file to read the
> contents of the
> > reparse point, I would use
> IoCreateFileSpecifyDeviceObjectHint and
> > pass in the FILE_OPEN_REPARSE_POINT in the create
> options field.
> >
> > Regards,
> >
> > Tony
> >
> > Tony Mason
> > Consulting Partner
> > OSR Open Systems Resources, Inc.
> > http://www.osr.com
> >
> > Looking forward to seeing you at the Next OSR File
> Systems Class
> > October 18, 2004 in Silicon Valley!
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf
> Of Jack Chen
> > Sent: Tuesday, June 22, 2004 12:23 PM
> > To: ntfsd redirect
> > Subject: [ntfsd] FS Filter handle Reparse Point
> >
> > What shall I do inside IRP_MJ_CREATE handler to
> allow a file with
> > reparse point to be opened?
> >
> > Thanks a lot,
> > Jack
> >
> >
> >
> >
> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> > http://promotions.yahoo.com/new_mail
> >
> > —
> > 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:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
>
>

> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
>
> —
> 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:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>

__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail


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

Thanks, Tony.
I think so too. I must handled STATUS_REPARSE error
wrong way. Do you have any sample to show how to
handle this STATUS_REPARSE error?

Jack

— Tony Mason wrote:
> Hi Jack,
>
> Uh, ok. This is a very confusing way to describe
> things - you really
> should tell us what is happening at one particular
> layer, not mixing a
> complex application behavior (Explorer) with the
> more fundamental layer
> (filter).
>
> It sounds to me like you are not handling the
> STATUS_REPARSE error
> properly in your filter. Now we’re not talking
> about your create
> operation, we are talking about the applications
> create operation - are
> you intercepting the STAUS_REPARSE and handling it?
> If not, of course
> this will act the same - you aren’t fixing it in
> your filter driver so
> of course you will see the same error.
>
> 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
> Jack Chen
> Sent: Tuesday, June 22, 2004 3:29 PM
> To: ntfsd redirect
> Subject: RE: [ntfsd] FS Filter handle Reparse Point
>
> What I mean the file cannot be opened is, when I
> double click the file
> with the reparse point in Windows Explorer, it
> cannot be opened. Same as
> without the filter.
>
> What I did inside the filter is I call ZwCreateFile
> to open the same
> file again in IRP_MJ_CREATE handler.
> Windbg shows in my filter the ZwCreateFile returns
> STATUS_SUCCESS.
>
> Thanks,
> Jack
>
> — Tony Mason wrote:
> > Hi Jack,
> >
> > Now I’m confused. You say “… It returns
> STATUS_SUCCESS.” And then
> > you say “But the file still cannot be opened.”
> >
> > These two statements are contradictory - if you
> get STATUS_SUCCESS,
> > the file is opened. Are you having a problem with
> a SUBSEQUENT call?
>
> > If so, this is a different problem.
> >
> > 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 Jack Chen
> > Sent: Tuesday, June 22, 2004 2:19 PM
> > To: ntfsd redirect
> > Subject: RE: [ntfsd] FS Filter handle Reparse
> Point
> >
> > Thanks, Tony.
> > Unfortunately I’m using Windows 2000 so I cannot
> use
> > IoCreateFileSpecifyDeviceObjectHint.
> > I tried using ZwCreateFile to open the file again
> with
> > FILE_OPEN_REPARSE_POINT when reparse point was
> found, and it returns
> > STATUS_SUCCESS. But the file still cannot be
> opened.
> > Do I need do something with the file handler I got
> from ZwCreateFile?
> > Can I find from somewhere some sample code doing
> similar task?
> >
> > Thanks again,
> > Jack
> >
> > — Tony Mason wrote:
> > > Hi Jack,
> > >
> > > Well, the answer will depend upon what you are
> > trying to accomplish
> > > here. Were I trying to open a file to read the
> > contents of the
> > > reparse point, I would use
> > IoCreateFileSpecifyDeviceObjectHint and
> > > pass in the FILE_OPEN_REPARSE_POINT in the
> create
> > options field.
> > >
> > > Regards,
> > >
> > > Tony
> > >
> > > Tony Mason
> > > Consulting Partner
> > > OSR Open Systems Resources, Inc.
> > > http://www.osr.com
> > >
> > > Looking forward to seeing you at the Next OSR
> File
> > Systems Class
> > > October 18, 2004 in Silicon Valley!
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf
> > Of Jack Chen
> > > Sent: Tuesday, June 22, 2004 12:23 PM
> > > To: ntfsd redirect
> > > Subject: [ntfsd] FS Filter handle Reparse Point
> > >
> > > What shall I do inside IRP_MJ_CREATE handler to
> > allow a file with
> > > reparse point to be opened?
> > >
> > > Thanks a lot,
> > > Jack
> > >
> > >
> > >
> > >
> > > Do you Yahoo!?
> > > Yahoo! Mail is new and improved - Check it out!
> > > http://promotions.yahoo.com/new_mail
> > >
> > > —
> > > 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:
> > > xxxxx@yahoo.com
> > > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> > >
> >
> >
> >
> >
> >

> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> > http://promotions.yahoo.com/new_mail
> >
> > —
> > 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
> >
>
=== message truncated ===

__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail