[haiku-commits] Re: r40225 - haiku/trunk/src/add-ons/kernel/file_systems/packagefs

  • From: Oliver Tappe <zooey@xxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 12 Jan 2011 22:02:46 +0100

On 2011-01-12 at 21:28:36 [+0100], Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> 
> On 2011-01-12 at 21:11:14 [+0100], zooey@xxxxxxxxxxxxxxx wrote:
> > Author: zooey
> > Date: 2011-01-12 21:11:13 +0100 (Wed, 12 Jan 2011)
> > New Revision: 40225
> > Changeset: http://dev.haiku-os.org/changeset/40225
> > 
> > Modified:
> >    haiku/trunk/src/add-ons/kernel/file_systems/packagefs/Volume.cpp
> >    haiku/trunk/src/add-ons/kernel/file_systems/packagefs/kernel_interface.
> >    cp
> >    p
> > Log:
> > * added support to packagefs for picking up its volume name from the
> >   mount parameters - there doesn't seem to be a way for a filesystem
> >   to access the path to which it was mounted, is there?
> 
> Not in the mount() hook. Later vfs_entry_ref_to_path() could be used. Since
> mount points can be moved like any directory, the path isn't immutable,
> though.

Indeed - I surely didn't expect that to be possible ...

> Whatfor do you think of using it?

Before, if you mounted a packagefs, it showed in Tracker as 'Package FS' 
(i.e. always the same volume name for all mounted packagefs'), while in the 
shell it showed as the mountpoint's original name. I'd like to replicate the 
mountpoint's name as volume name, that's all.
Since the packagefs mountpoints would be part of PATH, I'd find it a bit 
weird if those paths would be named differently in Tracker.

Actually, I'm going to have the same problem in bindfs that I planned to 
implement tomorrow. Talking about that: do we have any documentation on 
filesystem layers (overlays)? How are they mounted in general and can they be 
mounted to a specific folder, too, or do they always overlay a complete other 
filesystem?

cheers,
        Oliver

Other related posts: