From: Philip Poten <philip@li...> - 2008-11-01 17:58:08
I am new to developing with fuse, and before I invest
too much time and effort, I'd like to know if there is a way
to create "overlay filesystems" (in lack of a better term)
In my imagination, it would work something like that:
setup (loading the module, starting the userland process)
would be done with giving certain paths as an argument, like
/home/user which already have content in them.
The module is not supposed to "hide" the contents of that
directory (like any mount would), but rather the module
"reserves" the right to intercept certain calls (it should
be possible to select which ones) but doesn't need to.
In other words, it should be possible to have something along
the lines of "if a process foobar writes to a certain path,
intercept and delegate to userland. If the same process only
wants to read, the underlying filesystem should do as it
Is this possible with fuse? If not, why not? (ie have people
already tried it, and if so, why didn't it work out?)
thanks for your time mates,
i hope i presented my problem clear enough ;)
btw: I know of the possibility to have fuse (when running
on linux) to "see through" the mounted directory to the old
contents, but thats clearly not what i want. First of all, it
is linux only (and might disappear), and second, I'd need to
re-implement every operation on the filesystem and put an
enormous drain on performance.
Kuh frisst Gras, Kuh scheisst auf's Gras, Gras hat Duenger, Gras waechst, Kuh
Die Zyklen des akademischen Diskurses.
From: Goswin von Brederlow <goswin-v-b@we...> - 2008-11-27 13:45:31
Philip Poten <philip@...> writes:
> btw: I know of the possibility to have fuse (when running
> on linux) to "see through" the mounted directory to the old
> contents, but thats clearly not what i want. First of all, it
> is linux only (and might disappear), and second, I'd need to
> re-implement every operation on the filesystem and put an
> enormous drain on performance.
the fuse example fs already has is all implemented. You just need to
add the parts you want to overload.
Alternatively there is inotify that might help.
Get latest updates about Open Source Projects, Conferences and News.