>"Scott G. Miller" <[EMAIL PROTECTED]> >The other problem is that the windows filesystem gets somewhat ungainly >slow with large numbers of files in a directory. This should >be solved by having a tree structure. Implementing the DS in the >filesystem again is almost easy, except for the routing table. > > Scott
I wonder if the best thing for windows users would be to implement the datastore as a single unencrypted NTFS sparse file... Just append new files on the end, and zero out ranges to keep the actual disk usage under the user's limit, and store file offsets instead of filenames. This would solve the oversized directory and the (more serious, imho) file deletion problems nicely, and without the headache of managing used and unused ranges, fragmentation, etc. of a real file-system-in-a-file. The downsides would be: a) it only works on NTFS 5 formatted drives, which means it wouldn't work on Win9x or NT 3/4, and b) i don't think java has direct sparsefile support, so a trivial C module would have to be written to do the FSCTL_SET_SPARSE and FSCTL_SET_ZERO_DATA calls. does linux have equivalent functionality, or was the freenet 3 style big directory datastore not a problem there anyway? -- Benjamin Coates _______________________________________________ devl mailing list [EMAIL PROTECTED] http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
