I am developing a HSM driver that is using REPARSE points to trigger the restore of the files that were moved off line. All is working fine but I still see behaviour in Explorer that is unwanted.
The issue is that the file gets restored as soon as I hover over it or select it. I see that Explorer tries to open using READ_DATA permission. I already ignore a restore when there is a request only to read the attibutes etc.
Does any one have a suggestion on how to do this?
I am removing the data by truncating the file (would it make a difference if a make it a sparse file?)
It would be very nice if anyone could help me out here or has a good suggestion.
Yup, you’re restoring on create. Explorer issues a bunch of these
spuriously. You can try setting the offline bit, but it won’t stop
explorer from issuing creates. It may affect what access it requests
when it does. I never thought to try that. If that pares down the
number of unneccessary restores enough for you, that’ll be nice, but
otherwise you’re going to have to restore the data when it’s actually
read.
I am developing a HSM driver that is using REPARSE points to trigger the
restore of the files that were moved off line. All is working fine but I
still see behaviour in Explorer that is unwanted.
The issue is that the file gets restored as soon as I hover over it or
select it. I see that Explorer tries to open using READ_DATA permission.
I already ignore a restore when there is a request only to read the
attibutes etc.
Does any one have a suggestion on how to do this?
I am removing the data by truncating the file (would it make a
difference if a make it a sparse file?)
It would be very nice if anyone could help me out here or has a good
suggestion.
Best regards,
Wim Vervoorn
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit: http://www.osr.com/seminars
Even if you change it to restore onfirst read/write Explorer may still produce unwanted recalls. It is somewhat dependant on the file type. Executables tend to get recalled move often than files with lesser known extensions. Explorer will read the files to get properties (like version, etc.) when you right click. Search with explorer also may recall or skip offline files. When Windows 2000 came out explorer was trained to not do this but subesequent releases have degraded this somewhat.
Set the offline bit and recall on read/write (or acquire section) and you will be as good as it gets (without some help from the Explorer folks).
I believe recall on read is the standard model; of course those dratted
memory mapped files are a challenge
Cheers,
Lyndon
wrote in message news:xxxxx@ntfsd… > Hello, > > I am developing a HSM driver that is using REPARSE points to trigger the > restore of the files that were moved off line. All is working fine but I > still see behaviour in Explorer that is unwanted. > > The issue is that the file gets restored as soon as I hover over it or > select it. I see that Explorer tries to open using READ_DATA permission. I > already ignore a restore when there is a request only to read the > attibutes etc. > > Does any one have a suggestion on how to do this? > > I am removing the data by truncating the file (would it make a difference > if a make it a sparse file?) > > It would be very nice if anyone could help me out here or has a good > suggestion. > > Best regards, > > Wim Vervoorn >