Home   Info   DevZone   Wiki  
UsersWeb  |  MainWeb  |  InfoWeb  |  DevZoneWeb  |  SupportWeb
FileSystemProposal ] [ not logged in ] [ Web: Imported ] goto:  options
[ get info on or edit ] login or new user ] [ list of topics, hubs & nodes, or recent changes ]

This is a discussion concerning the directory structure of JOS running on a computer. It is assuming that the FileSystem is on one disk, or that the directories and files are appropriately mounted/linked, and that we don't care what the directory separator is.

System property "JOS.FS.Root" or some other string meaning the same thing will be used to determine the base directory. java.lang.System.getProperties().getProperty("JOS.FS.Root"); should return the base directory name.

Directory heirarchy: (directories are in _bold_)

Goals: -- MichaelFried


A couple things to counter:

  1. All system properties should be lowercase, like packages: JOS.FS.Root should be jos.fs.root.
  2. I'm not sure, but I remember hearing a lot of discussion about an OO file system, where everything is an object, not necessarily a file. Perhaps stored in a database like system? I definitely got the hint that the majority liked this idea, but I don't know what was said exactly.
  3. Unless someone can provide really good reasons for a text-based Registry, I say that we should use something stored in binary format. Here's why: I do think JOS is not going to be the fastest OS, but the most reliable. However, wherever we can make speed increases without many negatives, we should do it.

    As for how to implement a Binary registry, what about a tree structure. Create RegistryKey objects which have references to a "daughter" array of RegistryKey objects, OR a bit of information (String, Integer, Float, etc) instead. Implement serializable, and the Registry could be read and stored to disk very easily.

    There are some GREAT tips in the December 16th issue of the JDC Tech-Tips which discuss how to get good performance from this type of structure.

--MasonZhwiti


I just recently learned the differenc between Mac and PC file systems. I think the Mac file system (data forks) should be used. The data-fork itself could be in binary and the data-file could be an object. This style would work well with a database because you have your key and your object right there. --CavelleBenjamin


I worked a little on the structure of the JOS FS and think this would look good:

(1) on Main Drive but appears to not be on any drive, just part of the system root (make file management easier for many people seeing the system as sepreate from hteir programs and files)

--DigiGod


Content of these pages are owned and copyrighted by the poster.
Hosted by: