for now i have an interesting problem.

start situation:
directory is at block 1.

next i save a file so as nextfreeblock i get 2.
next i write an entry in the directory (file is not yet written)
unfortunately the dir entry is to large to fit into block 1 together with the previous entry so it request a nextfreeblock to use and that gets 2 also
now i write the file now on writing it i do another nextfreeblock and get 3.
now i have wrong directory entry for the file as that now states 2 and not 3 as it should be.

hmm how to solve that:
1) update the directory entry after writing the file
2) write the file entry only after writing the file

Download: http://www.noeska.net/download/Virtu...temDirTest.zip MPL license