Bug 4900 - Many problems with kernel NFS client (use FUSE?)
Summary: Many problems with kernel NFS client (use FUSE?)
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Local drive redirection (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Peter Åstrand
URL:
Keywords:
: 1893 (view as bug list)
Depends on:
Blocks: 5107 6076 2641
  Show dependency treegraph
 
Reported: 2013-11-15 13:52 CET by Pierre Ossman
Modified: 2022-05-06 12:52 CEST (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2013-11-15 13:52:11 CET
We should consider using FUSE for our local drives instead of the kernel's NFS client. This would make things a lot simpler since we wouldn't have to rely on mount being setuid and well behaved. Control over the client would also mean we could add features like better handling of disconnected sessions (no horrible hangs) and dynamic discovery of exported paths.

The big downside is requiring FUSE. On Linux this isn't a problem as it's been in the kernel since 2.6.14. Given our other requirements, every distribution that supports ThinLinc should have FUSE. We'll have to drop support for local drives on Solaris though, or keep the kernel method there.

There is also some more overhead with FUSE. But on the other hand, we have performance issue with unfsd already and having control of both the client and server could give us a better chance of solving those.
Comment 1 Pierre Ossman cendio 2013-11-15 13:53:13 CET
There is an existing implementation of NFS over FUSE that we can use as a base:

https://github.com/openunix/hsfs

I did a brief test and it mostly works. There are a few warts to fix, but I can browse the file tree and open files just fine.
Comment 2 Pierre Ossman cendio 2013-11-19 11:04:12 CET
Actually, Solaris doesn't have support for local drives right now (bug 630).
Comment 3 Pierre Ossman cendio 2014-01-28 16:35:20 CET
(In reply to comment #0)
> This would make things a lot simpler since we wouldn't have to rely on
> mount being setuid and well behaved.

This is incorrect. We ship our own setuid programs to handle the transition to root. But we could get rid of them with a FUSE based approach.
Comment 4 Peter Åstrand cendio 2016-11-30 16:19:19 CET
(In reply to comment #1)
> There is an existing implementation of NFS over FUSE that we can use as a base:
> 
> https://github.com/openunix/hsfs
> 
> I did a brief test and it mostly works. There are a few warts to fix, but I can
> browse the file tree and open files just fine.

The project above has not been updated for a long time, but this one also looks promising:

https://github.com/sahlberg/fuse-nfs
Comment 7 Pierre Ossman cendio 2022-05-06 12:52:49 CEST
*** Bug 1893 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.