status_reparse for directory

Hello,

My minifilter wants to redirect a local directory to a remote directory by
return status_reparse when a MJ_CREATE comes to the local directory. Now
Explorer can list all content of the remote directory in the local folder.
The problem is that when I double click a file in the folder, it says access
denied. Another problem is that when I click a sub-folder, it still shows
its parent folder’s content. My another filter is working perfectly for
files with status_reparse.
Probably I am not familiar with how a directory is involved when a file is
opened.
Please point out any direction or any information I can find regarding
directory operations.

Thanks in advance,

Shangwu

Sounds like you return STATUS_REPARSE only when the directory itself is
opened. You need to return STATUS_REPARSE for all create requests that
contain your directory in the full path.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Tuesday, December 05, 2006 1:01 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] status_reparse for directory

Hello,

My minifilter wants to redirect a local directory to a remote directory by
return status_reparse when a MJ_CREATE comes to the local directory. Now
Explorer can list all content of the remote directory in the local folder.
The problem is that when I double click a file in the folder, it says access
denied. Another problem is that when I click a sub-folder, it still shows
its parent folder’s content. My another filter is working perfectly for
files with status_reparse.
Probably I am not familiar with how a directory is involved when a file is
opened.
Please point out any direction or any information I can find regarding
directory operations.

Thanks in advance,

Shangwu


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

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

Thanks Alexei for your response.
The local directory is a reparse point. So how can the filter return
STATUS_REPARSE for all requests that contain this directory in a full path?
For example, my target directory is c:\abc that links to another directory
c:\bcd. If a IRP_MJ_CREATE comes for c:\abc, my filter will be started for
it. But if a IRP_MJ_CREATE comes for c:\abc\a1\a.txt that represents
c:\bcd\a1\a.txt, what is the whole sequence? I know that this is like a
junction point from NTFS5. But I am not clear about the internal mechanism
to implement it.

“Alexei Jelvis” wrote in message news:xxxxx@ntfsd…
Sounds like you return STATUS_REPARSE only when the directory itself is
opened. You need to return STATUS_REPARSE for all create requests that
contain your directory in the full path.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Tuesday, December 05, 2006 1:01 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] status_reparse for directory

Hello,

My minifilter wants to redirect a local directory to a remote directory by
return status_reparse when a MJ_CREATE comes to the local directory. Now
Explorer can list all content of the remote directory in the local folder.
The problem is that when I double click a file in the folder, it says access
denied. Another problem is that when I click a sub-folder, it still shows
its parent folder’s content. My another filter is working perfectly for
files with status_reparse.
Probably I am not familiar with how a directory is involved when a file is
opened.
Please point out any direction or any information I can find regarding
directory operations.

Thanks in advance,

Shangwu


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

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

I understand that you check the path in IRP_MJ_CREATE and if it match the
directory name you return STATUS_REPARSE, is it correct? Then you can do the
same thing for all files/subdirectories, right?

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Tuesday, December 05, 2006 3:01 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] status_reparse for directory

Thanks Alexei for your response.
The local directory is a reparse point. So how can the filter return
STATUS_REPARSE for all requests that contain this directory in a full path?
For example, my target directory is c:\abc that links to another directory
c:\bcd. If a IRP_MJ_CREATE comes for c:\abc, my filter will be started for
it. But if a IRP_MJ_CREATE comes for c:\abc\a1\a.txt that represents
c:\bcd\a1\a.txt, what is the whole sequence? I know that this is like a
junction point from NTFS5. But I am not clear about the internal mechanism
to implement it.

“Alexei Jelvis” wrote in message news:xxxxx@ntfsd…
Sounds like you return STATUS_REPARSE only when the directory itself is
opened. You need to return STATUS_REPARSE for all create requests that
contain your directory in the full path.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Tuesday, December 05, 2006 1:01 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] status_reparse for directory

Hello,

My minifilter wants to redirect a local directory to a remote directory by
return status_reparse when a MJ_CREATE comes to the local directory. Now
Explorer can list all content of the remote directory in the local folder.
The problem is that when I double click a file in the folder, it says access
denied. Another problem is that when I click a sub-folder, it still shows
its parent folder’s content. My another filter is working perfectly for
files with status_reparse.
Probably I am not familiar with how a directory is involved when a file is
opened.
Please point out any direction or any information I can find regarding
directory operations.

Thanks in advance,

Shangwu


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

You are currently subscribed to ntfsd as: xxxxx@vmware.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@vmware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I am not checking all path names in pre-create call back. The post-create
checks whether it is a link directory.

“Alexei Jelvis” wrote in message news:xxxxx@ntfsd…
I understand that you check the path in IRP_MJ_CREATE and if it match the
directory name you return STATUS_REPARSE, is it correct? Then you can do the
same thing for all files/subdirectories, right?

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Tuesday, December 05, 2006 3:01 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] status_reparse for directory

Thanks Alexei for your response.
The local directory is a reparse point. So how can the filter return
STATUS_REPARSE for all requests that contain this directory in a full path?
For example, my target directory is c:\abc that links to another directory
c:\bcd. If a IRP_MJ_CREATE comes for c:\abc, my filter will be started for
it. But if a IRP_MJ_CREATE comes for c:\abc\a1\a.txt that represents
c:\bcd\a1\a.txt, what is the whole sequence? I know that this is like a
junction point from NTFS5. But I am not clear about the internal mechanism
to implement it.

“Alexei Jelvis” wrote in message news:xxxxx@ntfsd…
Sounds like you return STATUS_REPARSE only when the directory itself is
opened. You need to return STATUS_REPARSE for all create requests that
contain your directory in the full path.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Tuesday, December 05, 2006 1:01 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] status_reparse for directory

Hello,

My minifilter wants to redirect a local directory to a remote directory by
return status_reparse when a MJ_CREATE comes to the local directory. Now
Explorer can list all content of the remote directory in the local folder.
The problem is that when I double click a file in the folder, it says access
denied. Another problem is that when I click a sub-folder, it still shows
its parent folder’s content. My another filter is working perfectly for
files with status_reparse.
Probably I am not familiar with how a directory is involved when a file is
opened.
Please point out any direction or any information I can find regarding
directory operations.

Thanks in advance,

Shangwu


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

You are currently subscribed to ntfsd as: xxxxx@vmware.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@vmware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Shangwu,

The bottom line - you need to make sure that STATUS_REPARSE is returned if
the path contains the directory in question. Since I don’t know how your
filter works I am not in position to suggest a solution that fits in your
design.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Wednesday, December 06, 2006 6:27 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] status_reparse for directory

I am not checking all path names in pre-create call back. The post-create
checks whether it is a link directory.

“Alexei Jelvis” wrote in message news:xxxxx@ntfsd…
I understand that you check the path in IRP_MJ_CREATE and if it match the
directory name you return STATUS_REPARSE, is it correct? Then you can do the
same thing for all files/subdirectories, right?

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Tuesday, December 05, 2006 3:01 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] status_reparse for directory

Thanks Alexei for your response.
The local directory is a reparse point. So how can the filter return
STATUS_REPARSE for all requests that contain this directory in a full path?
For example, my target directory is c:\abc that links to another directory
c:\bcd. If a IRP_MJ_CREATE comes for c:\abc, my filter will be started for
it. But if a IRP_MJ_CREATE comes for c:\abc\a1\a.txt that represents
c:\bcd\a1\a.txt, what is the whole sequence? I know that this is like a
junction point from NTFS5. But I am not clear about the internal mechanism
to implement it.

“Alexei Jelvis” wrote in message news:xxxxx@ntfsd…
Sounds like you return STATUS_REPARSE only when the directory itself is
opened. You need to return STATUS_REPARSE for all create requests that
contain your directory in the full path.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Tuesday, December 05, 2006 1:01 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] status_reparse for directory

Hello,

My minifilter wants to redirect a local directory to a remote directory by
return status_reparse when a MJ_CREATE comes to the local directory. Now
Explorer can list all content of the remote directory in the local folder.
The problem is that when I double click a file in the folder, it says access
denied. Another problem is that when I click a sub-folder, it still shows
its parent folder’s content. My another filter is working perfectly for
files with status_reparse.
Probably I am not familiar with how a directory is involved when a file is
opened.
Please point out any direction or any information I can find regarding
directory operations.

Thanks in advance,

Shangwu


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

You are currently subscribed to ntfsd as: xxxxx@vmware.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@vmware.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@vmware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com