next up previous contents
Next: Usability Up: The directory hierarchy Previous: Installed packages subtree   Indice


Customize the tree and level-one depth

The virtual tree is designed to give the user the possibility to modify the file system hierarchy located just inside $ \texttt{AVAILABLE}$ and $ \texttt{INSTALL}$ base directories. To understand this concept, we have to tell something about PackageFS directory levels.

Ordinary package managers, provide packages browsing either by section or priority or both. Transposing this feature to the file system level, means organizing packages in subdirectories. The challenge consists in making the user able to choose how to build the directory hierarchy.

PackageFS implements this feature using directory levels. Even if the user builds the tree as he prefers, he creates the same amount of parent directories for each package entry. If, for instance, the user decides to browse packages by priority, he adds one more depth level to the tree. At the same time, browsing by sections and then by priorities, he adds other two levels. In any way the user modifies the tree, the packages paths will be placed all at the same depth level. This latter is identified as the level-one depth. Figure 5.5 displays this concept.

Options to set up in order to change hierarchy behavior are included in $ \texttt{/etc/lufsd.conf}$ or ~ $ \texttt{/.lufs/lufsd.conf}$ configuration files. In particular their initial values are:

Each of them adds one depth level to the virtual tree. PackageFS considers the values if they are greater than 0, and, if both satisfy this check the lower value gains precedence in the order. The default file system mounting can be observed in figure 5.2; the mounting by priority is shown in figure 5.4.

Figura 5.5: Directories levels.
\includegraphics{immagini/livelli.eps}


next up previous contents
Next: Usability Up: The directory hierarchy Previous: Installed packages subtree   Indice
2004-11-19