MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Problem with system restore and mldonkey config files

 
Post new topic   Reply to topic    MLDonkey Forum Index -> Windows
View previous topic :: View next topic  
Author Message
Camarade_Tux
skilled


Joined: 14 Nov 2003
Posts: 340
Location: Paris

PostPosted: Sun Oct 15, 2006 8:32 am    Post subject: Problem with system restore and mldonkey config files Reply with quote

Hi everybody,

Last week while I was using a computer at my father's office which has mldonkey runnning as a service (remember, windows) I thought I could speed it up a bit.
Nothing to remove or disabled (the computer has SQL Server on it. Crying or Very sad ), let's defragment.

Analysis : 200 000 files on the computer and it seems tons of fragmented files are coming from system restore. Why lose time defragmenting them ?
Clean manager -> clean all system restore points except the last one.
Analysis again : 50 000 files. Shocked
I then browsed to system restore's directory and saw the kept restore point was full of old mldonkey config files. I mean really full of : probably 90% of the files were coming from mldonkey! Confused

</mylife>
---------


I don't know how mldonkey manages its config files and backups but I know some things about windows's system restore : put a file in recycle bin, delete it, it will appear in your latest restore point! Surprised

I just found this page on msdn.

A few quotations:

Quote:
This kernel level filter driver monitors file system operations, and, for select file types and operations, quickly interrupts an operation (for example, DELETE FILE) and copies or moves the original file before the operation is complete. The file changes are entered into a log, and the file copies and logs are stored in an archive on the drive or partition where the original file resided.



Quote:
To achieve the desired behavior after a restore, application developers should answer the following:
...
Are user-editable files, or intended personal data files (for example, .pdf, .xls, .htm) named in such a way that they will not be monitored as included extension types? For example, have you named a file extension .ini that a user can modify as a personal data file? If so, this will impede the perception of your product's performance, as well as cause the user to lose work as a result of a restore. (See the Monitored File Extensions list in the System Restore section of the Platform SDK.)
...



Quote:
Not Restored
...
Items listed in both Filesnottobackup and KeysnottoRestore (hklm->system->controlset001->control->backuprestore->filesnottobackup and keysnottorestore)
...

These values are REG_MULTI_SZ, their names are only descriptions and their data are exclusions, such as "%SystemRoot%\system32\NtmsData\*
" (no quotation marks in the registry).


I think mldonkey should check for this key and add it if not present.
I'll add it by hand soon and see by myself how things change.
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Sun Oct 15, 2006 10:37 am    Post subject: Re: Problem with system restore and mldonkey config files Reply with quote

Camarade_Tux wrote:
I think mldonkey should check for this key and add it if not present.

I asked that some months ago already, but again, this is only possible if
there exists a Ocaml lib to access the windows registry. Without this would
be nearly impossible, but adding your infos to
http://mldonkey.sourceforge.net/WindowsSpecificAnnoyances
would definetely help other users.
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
Camarade_Tux
skilled


Joined: 14 Nov 2003
Posts: 340
Location: Paris

PostPosted: Sun Oct 15, 2006 11:10 am    Post subject: Reply with quote

Nearly forgot about that wiki page. Rolling Eyes


I did my test and it did not work. The cause seems to be that mlnet.exe is in a subdirectory of the path I wrote;
Quote:
/s specifies that the file affects all subdirectories of the specified path.

(from http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/75814.mspx?mfr=true)

I'll reboot and check again.
Back to top
View user's profile Send private message
Camarade_Tux
skilled


Joined: 14 Nov 2003
Posts: 340
Location: Paris

PostPosted: Sun Oct 15, 2006 11:23 am    Post subject: Reply with quote

Thinking about that, I can make a small windowless app mldonkey could call in order to achieve some task only needed under windows.
It should be really quick for me to code. Wink

And btw, I'll try to make an updated installer during my holidays.
(and maybe another one to compile mldonkey... Cool )
Back to top
View user's profile Send private message
pango
Sage


Joined: 31 Oct 2002
Posts: 2436

PostPosted: Sun Oct 15, 2006 7:46 pm    Post subject: Reply with quote

Well, what can I say...
Thank you Microsoft for caring about mldonkey's state files Smile

(Now I understand better why restore points do not always work as expected, and sometimes make things worse: they're built on a heap of weak heuristics... The days of hacks like long filenames tunneling aren't over!)
Back to top
View user's profile Send private message
Camarade_Tux
skilled


Joined: 14 Nov 2003
Posts: 340
Location: Paris

PostPosted: Sun Oct 15, 2006 8:31 pm    Post subject: Reply with quote

Quote:
Now I understand better why restore points do not always work as expected

You must be lucky, I've never seen any of them work correctly. Very Happy


And some bad news : I've tried to add the registry setting by hand and it doesn't seem to have changed anything.
Maybe that it will only take effect with next restore point. Not to forget it, my latest RP here is 161, I won't see this computer again until next week-end but I doubt anything will have changed.
I'll probably ask MS directly. Confused

At least, I've learned how to make a new sort of virus for windows : create and delete billions of 0-byte ini files. Rolling Eyes
Back to top
View user's profile Send private message
Camarade_Tux
skilled


Joined: 14 Nov 2003
Posts: 340
Location: Paris

PostPosted: Fri Nov 03, 2006 7:58 am    Post subject: Reply with quote

Had forgotten about that subject : I can confirm their registry key does not work.

Maybe that a virus modified the registry in order to prevent system files from being saved and that SP2 disabled this key! Twisted Evil

How did they come with the idea of including the whole drive for restore ? protest

WinXP whdat




PS: I never thought this forum could have so many smileys! occasion5 headbang
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Windows All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sourceforge.net Logo