More on IO_REPARSE and TATUS_REPARSE

The only reason one would use STATUS_REPARSE and IO_REPARSE is to change
the FSD context from one FSD volume to another.

If you are already in the context of the FSD volume that you are
interested in, there is no reason, whatsoever, to return STATUS_REPARSE.
It gains you nothing. All you need to do is to change the file path in
the file object to the new location and pass the request down the lower
FSD device.

REPARSE will ask the OS to build a new request in another FSD volume
context.

Does this makes sense? Did I explain this properly?

Jamey Kirby
StorageCraft, inc.
www.storagecraft.com
xxxxx@storagecraft.com

Hello,
But there are some problems. Can I use STATUS_REPASE to redirect to
write a file? For example: I open an original file in Notepad, and I
modify some content of this file by NOTEPAD. But when I save this file, I
don’t want to make any change of the original file, so I make a copy of
the original file, and I want to let Notepad write that backup file. The
problem is how I can let Notepad redirect to write the backup file. And I
try to use STATUS_REPASE in IRP_WRITE. But it failed to do that. And I
found the backup file and the original file both have no changed.:frowning:
Please Help. Thanks in advance.

No.
Reparse is only valid on the create call.
You need a copy-on-write implementation.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of SuperMi
Sent: Tuesday, February 26, 2002 11:54 AM
To: File Systems Developers
Subject: [ntfsd] Re: More on IO_REPARSE and TATUS_REPARSE

Hello,
But there are some problems. Can I use STATUS_REPASE to redirect to
write a file? For example: I open an original file in Notepad, and I
modify some content of this file by NOTEPAD. But when I save this file,
I don’t want to make any change of the original file, so I make a copy
of the original file, and I want to let Notepad write that backup file.
The problem is how I can let Notepad redirect to write the backup file.
And I try to use STATUS_REPASE in IRP_WRITE. But it failed to do that.
And I found the backup file and the original file both have no
changed.:frowning:
Please Help. Thanks in advance.


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%

Is there anywhere where I can get a hold of some sample/example code for
using the IO_REPARSE/STATUS_REPARSE commands so that I can get a better
understanding of how to make use of these two functions?

-----Original Message-----
From: Jamey Kirby
To: File Systems Developers
Sent: 2/27/02 5:27 AM
Subject: [ntfsd] Re: More on IO_REPARSE and TATUS_REPARSE

No.
Reparse is only valid on the create call.
You need a copy-on-write implementation.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of SuperMi
Sent: Tuesday, February 26, 2002 11:54 AM
To: File Systems Developers
Subject: [ntfsd] Re: More on IO_REPARSE and TATUS_REPARSE

Hello,
But there are some problems. Can I use STATUS_REPASE to redirect to
write a file? For example: I open an original file in Notepad, and I
modify some content of this file by NOTEPAD. But when I save this file,
I don’t want to make any change of the original file, so I make a copy
of the original file, and I want to let Notepad write that backup file.
The problem is how I can let Notepad redirect to write the backup file.
And I try to use STATUS_REPASE in IRP_WRITE. But it failed to do that.
And I found the backup file and the original file both have no
changed.:frowning:
Please Help. Thanks in advance.


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntfsd as: xxxxx@nus.edu.sg
To unsubscribe send a blank email to %%email.unsub%%

There are some example applications for creating junction points, such
as the one at sysinternals. Then install filemon and generate some mount
points, etc.

Pete

Peter Scott
xxxxx@KernelDrivers.com
http://www.KernelDrivers.com

>-----Original Message-----
>From: xxxxx@lists.osr.com [mailto:bounce-ntfsd-
>xxxxx@lists.osr.com] On Behalf Of Loh Lik Yong Winston
>Sent: Wednesday, February 27, 2002 2:42 AM
>To: File Systems Developers
>Subject: [ntfsd] Re: More on IO_REPARSE and TATUS_REPARSE
>
>Is there anywhere where I can get a hold of some sample/example code
for
>using the IO_REPARSE/STATUS_REPARSE commands so that I can get a
better
>understanding of how to make use of these two functions?
>
>-----Original Message-----
>From: Jamey Kirby
>To: File Systems Developers
>Sent: 2/27/02 5:27 AM
>Subject: [ntfsd] Re: More on IO_REPARSE and TATUS_REPARSE
>
>No.
>Reparse is only valid on the create call.
>You need a copy-on-write implementation.
>
>
>-----Original Message-----
>From: xxxxx@lists.osr.com
>[mailto:xxxxx@lists.osr.com] On Behalf Of SuperMi
>Sent: Tuesday, February 26, 2002 11:54 AM
>To: File Systems Developers
>Subject: [ntfsd] Re: More on IO_REPARSE and TATUS_REPARSE
>
>
>Hello,
> But there are some problems. Can I use STATUS_REPASE to redirect
to
>write a file? For example: I open an original file in Notepad, and I
>modify some content of this file by NOTEPAD. But when I save this
file,
>I don’t want to make any change of the original file, so I make a copy
>of the original file, and I want to let Notepad write that backup
file.
>The problem is how I can let Notepad redirect to write the backup
file.
>And I try to use STATUS_REPASE in IRP_WRITE. But it failed to do that.
>And I found the backup file and the original file both have no
>changed.:frowning:
> Please Help. Thanks in advance.
>
>—
>You are currently subscribed to ntfsd as: xxxxx@storagecraft.com To
>unsubscribe send a blank email to %%email.unsub%%
>
>
>—
>You are currently subscribed to ntfsd as: xxxxx@nus.edu.sg
>To unsubscribe send a blank email to %%email.unsub%%
>
>—
>You are currently subscribed to ntfsd as: xxxxx@KernelDrivers.com
>To unsubscribe send a blank email to %%email.unsub%%