[haiku-development] Re: Package management - folder hierarchy

  • From: Oliver Tappe <zooey@xxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 11 Jan 2011 16:29:20 +0100

On 2011-01-11 at 16:03:11 [+0100], François Revol <revol@xxxxxxx> wrote:
> > However, since a mounted package-fs tree is immutable, we need to do
> > something in order to make it possible to write settings and data files. I
> > can see two possibilities to do so, one being to implement some kind of
> > union-fs which would be mounted on top of a package-fs tree and which 
> > would
> > copy-up all files that are opened for writing. The second approach is to
> > restructure the filesystem tree to facilitate mounting of package-fs while
> > still supporting writable settings and data files.
> > We do not have a union-fs implementation currently (and during my research
> > I've read educated comments about why those are surprisingly hard to get
> > "right"), so I started looking into the restructuring approach.
> 
> Just a quickie, as I don't feel like reading the whole yet...
> 
> Are you meaning to let applications write to their app folder ?

If by app folder you mean the package/bundle they live in: no. Neither the 
package file nor the mounted package tree is meant to be written to (the 
latter doesn't support writing at all).

> This should be forbidden anyway, and is not supposed to happen with a 
> multiuser setup.
> 
> Also, how does it scale with respect to queries ?

Dunno, since support for queries isn't implemented yet in package-fs.

cheers,
        Oliver

Other related posts: