Hi All,
I wish to delete(on reboot) all the files & folders which are newly
created on a specific session.
I have thought the following views to do it.
1). Using wininit or winbatch to rename the file to NUL, so that the
files are deleted automatically on reboot.
2). To open a handle of each created file with delete on close tag and
not closing these handles until the system is restarted.
3) I should maintain a linked list and on SHUTDOWN delete all the newly
created file.
I think the third method is the best but it will not work if the user
does power off instead of proper shutdown, same problem may come in the
second case. In the first case a user can change the entry of wininit
to disable deletion. Doesn’t windows provide a tag for new created
files which indicates that the files should be deleted on shutdown or
on restart.
Do you need to worry about registry changes?
Do you need to worry about existing files that are
modified?
If what you want to do is return the machine back to a
certain state on boot, I’d recommend licensing some
“snapshot” technology from some of the folks on this
list.
On boot you would simply go back to the desired
checkpoint (if there is one) and then create a new
checkpoint that you will return to on the next boot.
I believe that this type of technology is disk sector
based, so it would take care of everything including
reg stuff.
It may also be possible to do this with file
redirection. I’m investigating this currently.
Randy
— “Lalit S. Rana” wrote:
> Hi All,
>
> I wish to delete(on reboot) all the files & folders
> which are newly
>
> created on a specific session.
>
> I have thought the following views to do it.
> 1). Using wininit or winbatch to rename the file to
> NUL, so that the
>
> files are deleted automatically on reboot.
> 2). To open a handle of each created file with
> delete on close tag and
>
> not closing these handles until the system is
> restarted.
> 3) I should maintain a linked list and on SHUTDOWN
> delete all the newly
>
> created file.
>
> I think the third method is the best but it will not
> work if the user
>
> does power off instead of proper shutdown, same
> problem may come in the
>
> second case. In the first case a user can change the
> entry of wininit
>
> to disable deletion. Doesn’t windows provide a tag
> for new created
>
> files which indicates that the files should be
> deleted on shutdown or
>
> on restart.
>
> —
> 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! Calendar - Free online calendar with sync to Outlook™.
http://calendar.yahoo.com
Dear Randy,
Thanks for advice, but I want to develop the utility myself.
Regards
Lalit
In that case I’ll give you some thoughts about another
way you might think about implementing this. I
haven’t implemented anything like this, so take it for
what it’s worth 
The idea is that you would copy and redirect on disk
sector writes.
When a write comes through, you notice what sector it
is destined for. You then copy the data of the
original sector to a sector that you have in your own
private sector cache and redirect all subsequent
requests to the original sector to your private
sector.
This means that none of your original sectors have
changed. On reboot the machine is back to it’s
original state.
I’m sure there are issues with this I haven’t thought
of, therefore my suggestion about buying something
that already works and is tested 
Also, if you are planning on building and selling a
product based on this, I’d investigate what patents
there are in this area. No fun building a product and
then finding out you can’t distribute it where you
want. Centurian Tech. (Drive Shield) and DeepFreeze
USA (DeepFreeze) do this type of stuff and might be a
place to start looking.
Like I said before, this also may be possible with
file redirection, but I know people have been able to
implement the sector type outlined above.
Good luck,
Randy
— “Lalit S. Rana” wrote:
> Dear Randy,
> Thanks for advice, but I want to develop the utility
> myself.
> Regards
> Lalit
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook™.
http://calendar.yahoo.com
Hi Randy ,
For implementing your idea i think i need to build a upper disk filter
driver. How
can I make my private cache.
Regards,
Lalit
“Randy Cook” wrote in message news:xxxxx@ntfsd…
>
> In that case I’ll give you some thoughts about another
> way you might think about implementing this. I
> haven’t implemented anything like this, so take it for
> what it’s worth 
>
> The idea is that you would copy and redirect on disk
> sector writes.
>
> When a write comes through, you notice what sector it
> is destined for. You then copy the data of the
> original sector to a sector that you have in your own
> private sector cache and redirect all subsequent
> requests to the original sector to your private
> sector.
>
> This means that none of your original sectors have
> changed. On reboot the machine is back to it’s
> original state.
>
> I’m sure there are issues with this I haven’t thought
> of, therefore my suggestion about buying something
> that already works and is tested 
>
> Also, if you are planning on building and selling a
> product based on this, I’d investigate what patents
> there are in this area. No fun building a product and
> then finding out you can’t distribute it where you
> want. Centurian Tech. (Drive Shield) and DeepFreeze
> USA (DeepFreeze) do this type of stuff and might be a
> place to start looking.
>
> Like I said before, this also may be possible with
> file redirection, but I know people have been able to
> implement the sector type outlined above.
>
> Good luck,
>
> Randy
>
> — “Lalit S. Rana” wrote:
> > Dear Randy,
> > Thanks for advice, but I want to develop the utility
> > myself.
> > Regards
> > Lalit
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook™.
> http://calendar.yahoo.com
>
>
>
You can do this using snapshot technology. Just run from the snapshot
after booting.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Lalit S. Rana
Sent: Sunday, June 22, 2003 10:21 AM
To: File Systems Developers
Subject: [ntfsd] Re: Created Files deletion on restart
Hi Randy ,
For implementing your idea i think i need to build a upper disk filter
driver. How
can I make my private cache.
Regards,
Lalit
“Randy Cook” wrote in message news:xxxxx@ntfsd…
>
> In that case I’ll give you some thoughts about another
> way you might think about implementing this. I
> haven’t implemented anything like this, so take it for
> what it’s worth 
>
> The idea is that you would copy and redirect on disk
> sector writes.
>
> When a write comes through, you notice what sector it
> is destined for. You then copy the data of the
> original sector to a sector that you have in your own
> private sector cache and redirect all subsequent
> requests to the original sector to your private
> sector.
>
> This means that none of your original sectors have
> changed. On reboot the machine is back to it’s
> original state.
>
> I’m sure there are issues with this I haven’t thought
> of, therefore my suggestion about buying something
> that already works and is tested 
>
> Also, if you are planning on building and selling a
> product based on this, I’d investigate what patents
> there are in this area. No fun building a product and
> then finding out you can’t distribute it where you
> want. Centurian Tech. (Drive Shield) and DeepFreeze
> USA (DeepFreeze) do this type of stuff and might be a
> place to start looking.
>
> Like I said before, this also may be possible with
> file redirection, but I know people have been able to
> implement the sector type outlined above.
>
> Good luck,
>
> Randy
>
> — “Lalit S. Rana” wrote:
> > Dear Randy,
> > Thanks for advice, but I want to develop the utility
> > myself.
> > Regards
> > Lalit
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook™.
> http://calendar.yahoo.com
>
>
>
—
You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
I don’t know.
But if I was looking at it, I’d start by seeing if I
could allocate a file, determine what sectors it uses,
and use those for the cache. If you could get this to
work it would be nice because you could size your
cache as needed simply by increasing or decreasing the
size of your file.
You’d need to make sure the file didn’t move around
underneath you, or if it did that you could compensate
for it.
Randy
— “Lalit S. Rana” wrote:
> Hi Randy ,
> For implementing your idea i think i need to build a
> upper disk filter
> driver. How
> can I make my private cache.
> Regards,
> Lalit
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com