rejetto forum

How should HFS behave on shutdown?

bacter · 6 · 5377

0 Members and 1 Guest are viewing this topic.

Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
In the german board has rised up the following problem/question:
http://www.rejetto.com/forum/index.php?topic=6940.msg1043044#msg1043044

Fact: It is supposed that the option Menu -> start/exit -> Auto-save VFS on exit is activated.

When a user shuts down Windows directly or with help of a shutdownmanager or using windows-shutdown.exe in programmed tasks, hfs does nos save the vfs, as the program is not finished in the regular way (as with hfs.exe -q or exit), the task is simply killed.

This means, that recent modifications of de vfs (added files or folders) and download- counters etc. are then not saved.

I don't know if this behaviour is a question of windows (killing processes when shutting down), or if this is, as Wasserfloh says, a bug of hfs (if windows or shutdown sends a quit signal/request to hfs ?).


your computer has no brain - use your own !


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
it is a bug. a very annoying one, hunting HFS since ever.
i made some efforts for a different shutdown handling, for next build. cross fingers.


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
Maybe a solution would be to have a menu option to auto save the vfs every x mins.  That way if such a shutdown event occurs, all changes to the vfs will not be lost.

Edit:
Option is already available in menu.  I forgot about it :)
Maybe some have it disabled.
« Last Edit: May 11, 2009, 01:15:35 PM by maverick »
maverick


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
we already have that option :)
menu > vfs > auto save...
but AFAIcan recall, it didn't solve the problem with corrupted files.
if anyone here is able to reproduce the problem, we can test if the new build solves it or not.


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
rejetto, the test is simple:

add a file to root.

If you use a simple batch file with

Code: [Select]
C:\WINDOWS\system32\shutdown.exe -s

or shut down windows with start -> shutdown

then, when you restart the pc the file is not in root.

If you use 'exit' from hfs-menu or cmd: hfs.exe -q, the file is there.


----
I don't now if delphi pascal has a function equivalente to the C- function onexit() wher this routine can be called.
« Last Edit: May 11, 2009, 01:04:14 PM by bacter »
your computer has no brain - use your own !


Offline MarkV

  • Tireless poster
  • ****
    • Posts: 764
    • View Profile
it is a bug. a very annoying one, hunting HFS since ever.
i made some efforts for a different shutdown handling, for next build. cross fingers.
Different shutdown handling... Maybe this could even solve the NT4 shutdown problem. Fingers crossed.
http://worldipv6launch.org - The world is different now.