LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-14-2011, 08:42 PM   #1
doublemeat
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
Layered FUSE filesystems?


Can FUSE filesystems be layered/nested? (I would use the verb "stacked", but that might confuse the issue with kernel module file system stacking in the same process space ).

I've scoured the web an haven't been able to find an answer to this question. I've also tested emperically for the answer, with inconclusive results.

I have numerous use cases in mind for this. E.g.:
  • Mp3 tagging FS on top of ZFS-FUSE.
  • Union FS on top of NTFS-3G.
  • Caching FS on top of checksumming FS on top of compression FS on top of encryption FS on top of webdav FS.
And so on. (Yes I realize the last one would be a stretch in any scenario.) Or basically, ANY special-purpose FS on top of ZFS-FUSE, or NTFS-3G. (My particular interest is the former.)

I have tested this out - specifically, encfs on top of ZFS-FUSE. It didn't work. I don't recall the exact problems nor did I document the results, but the result was a very unhappy filesystem. (It did actually all mount without error if I remember correctly.) I tried many workarounds, and the end result was a non-functioning file system (I know that's vague; as is my memory).

So that got me thinking, is it even possible? Is FUSE even designed for this? And if it is, is it designed in such a way that layered filesystems are reliably abstracted from each other so that they don't care and can't know what the underlying FS is?

I do realize there would be performance penalties with these use cases, many non-exact alternatives, etc. So it would be nice to not receive use-case/alternatives lectures that (some) in the Linux community feel compelled to provide :-).
 
Old 06-14-2011, 09:01 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Yes, FUSE can be 'layered'. Encfs over sshfs is very popular, for example. If you are having problems with a particular configuration, document it clearly and report it to the upstream developer.
 
1 members found this post helpful.
Old 06-14-2011, 09:37 PM   #3
doublemeat
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the response!

Out of curiosity, do you (or does anyone) know of any intrinsic limitations to the number and/or types of filesystems layered this way? And on a more technical note, how "good" is the abstraction? (I could look at the code and/or dev docs but since I'm not an active programmer, that could take a long time to answer witwith no guarantee of an answer ;-).

I have more than one use case that could be satisfied by layering fuse fs'es, where latency and throughput are not critical. (But reliability crucial.)
 
Old 06-14-2011, 10:07 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
I'm not aware of any particular limitations. Each FUSE filesystem is at a different point in its development, so some are better performing / more stable / better supported than others. The more popular, the better, in general. Encfs and sshfs are heavily used, and highly reliable. I have several machine-years of use with them personally, and have not had any problems.

Also, take a look at the man page options for each FUSE filesystem you're planning to use. Some of the options were implemented to solve specific problems, use cases, and interactions that have been reported. Some of the man pages also have warnings about the immaturity of the code, and you may not want to trust those with your data just yet.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fusermount: fuse device not found, try 'modprobe fuse' first maestromani Linux - Newbie 1 10-21-2010 12:53 PM
IPTables Layered Chains jmoschetti45 Linux - Security 9 01-17-2010 05:35 PM
LXer: Automounting FUSE filesystems LXer Syndicated Linux News 0 03-05-2008 02:00 AM
FUSE works but fuse group does not exist? violagirl23 Linux - Software 3 01-21-2008 04:01 AM
layered firewalls Dark_Helmet Linux - Security 4 07-05-2003 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration