file redirector and system restore

I need to write a file/directory redirector. I looked at the simrep example in wdk.
I was wondering how system restore on a volume say c: will work if simrep
redirects a folder say c:\MyFolder to d:\Myfolder while system restore is
enabled - (a) only for c: (b) for both c: and d:?

My understanding is that since system restore works below file system
(at volume level), I will have consistency problems. Is my understanding
correct? If yes is there any solution to handle system restore other
than disabling it?

Thank you for your help.

Can anybody point me to any document which explains how system restore (and its drivers) works? I need to learn if system restore does direct disk sector access without going through the file system. Thank you.

Cool.2k7,

These days, system restore works mostly at volume level, though there are a
few products that do it at file level also.

The basic underlying technology is called snap shotting. Please google on
microsoft volume shadow service (VSS) to get an idea of how this is
implemented.

Now coming to your initial question (in email 1)

[Cool.2k7]My understanding is that since system restore works below file
system
(at volume level)

[AB] Correct

[Cool.2k7] I will have consistency problems. Is my understanding correct? If
yes is there any solution to handle system restore other than disabling it?

[AB] disabling it might not be a good idea. What is the typical use case of
a system restore? It is that the user consciously wants/has to go back to a
state which lies in a point in time. In that case, why would you want to
give him back files which are from (his POV) a time in future?

If I understand this correctly, you are trying to give him a scenario where
his corrupt windows OS is restored, but he also preserves this latest data
files. If that is the case, you have a FS filter which is aware that it is
migrating files from locationA to LocationB, so after restore completes you
resync, but this time sync location B with locationA.

However, I find it more of a usability issue, the user should never keep his
user files on the same drive as the OS.

On Tue, Mar 22, 2011 at 5:59 AM, wrote:

> Can anybody point me to any document which explains how system restore (and
> its drivers) works? I need to learn if system restore does direct disk
> sector access without going through the file system. Thank you.
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>



- amitr0

>need to learn if system restore does direct disk sector access without going through the file system.

From Vista up, it is really so.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com