[prev in list] [next in list] [prev in thread] [next in thread]
List: fuse-devel
Subject: Re: [fuse-devel] Create multiple filesystems in same process
From: Shashaank Tulsyan <shashaanktulsyan () gmail ! com>
Date: 2009-08-18 12:39:33
Message-ID: 4A8A9E35.4090002 () gmail ! com
[Download RAW message or body]
Miklos Szeredi wrote:
> On Sun, 09 Aug 2009, Shashaank Tulsyan wrote:
>
>> Hi,
>> While calling fuse_main(...)
>> we pass a static instance fuse_operations. But this way we have only one
>> filesystem per process.
>> How can I have more than one instance of virtual filesystem (mounted at
>> different location ofcourse).
>> (These filesystems will in general have different contents.)
>>
>> Or the only way to have more than one filesystem is to have them each
>> filesystem in a separate process ?
>>
>
> No, it's possible to have multiple filesystems in a single process.
>
> The simplest is to create separate threads for each mount and call
> fuse_main() in each. This must be done using the '-f' option to
> prevent the first fuse_main() from forking into the background and
> destroying the other threads.
>
> Alternatively, you can use following functions, which actually make up
> the fuse_main() helper:
>
> fuse_parse_cmdline
> fuse_mount
> fuse_new
> fuse_daemonize
> fuse_set_signal_handlers
> fuse_loop[_mt]
> fuse_remove_signal_handlers
> fuse_unmount
> fuse_destroy
>
> (for details see lib/helper.c in the fuse source).
>
> Thanks,
> Miklos
>
>
Thanks
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
fuse-devel mailing list
fuse-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic