Conversation
2628298 to
91b1c17
Compare
|
Do you know a file system already using fuse3 (for testing)? |
|
@Mic92 Yes, I've tested it with I'll add that commit to this PR. |
Mic92
left a comment
There was a problem hiding this comment.
I can use the old sshfs as well as the new version in parallel.
|
@Mic92 Sorry for my late reply & thanks for testing it. If you don't mind I'll resolve the last TODOs (might have to wait until next week) and merge it after the branch off, since it isn't that important ATM and
I would've replaced sshfs 2.x with 3.x, because of the following note from the 2.10 release:
Is that ok or should I keep sshfs 2.x and add a new attribute for 3.x ( |
|
Seems fine to me. Thanks! |
|
I've just updated the PR (sorry for the delay, got a cold...). Now all files provided by libfuse 2 and 3 should come from libfuse 3 as recommended (just in case). I've also added But at least this way should be backwards compatible. If it looks ok I'd run some final tests and merge it. |
This includes fuse-common (fusePackages.fuse_3.common) as recommended by upstream. But while fuse(2) and fuse3 would normally depend on fuse-common we can't do that in nixpkgs while fuse-common is just another output from the fuse3 multiple-output derivation (i.e. this would result in a circular dependency). To avoid building fuse3 twice I decided it would be best to copy the shared files (i.e. the ones provided by fuse(2) and fuse3) from fuse-common to fuse (version 2) and avoid collision warnings by defining priorities. Now it should be possible to install an arbitrary combination of "fuse", "fuse3", and "fuse-common" without getting any collision warnings. The end result should be the same and all changes should be backwards compatible (assuming that mount.fuse from fuse3 is backwards compatible as stated by upstream [0] - if not this might break some /etc/fstab definitions but that should be very unlikely). My tests with sshfs (version 2 and 3) didn't show any problems. See NixOS#28409 for some additional information. [0]: https://github.com/libfuse/libfuse/releases/tag/fuse-3.0.0
This includes fuse-common (fusePackages.fuse_3.common) as recommended by upstream. But while fuse(2) and fuse3 would normally depend on fuse-common we can't do that in nixpkgs while fuse-common is just another output from the fuse3 multiple-output derivation (i.e. this would result in a circular dependency). To avoid building fuse3 twice I decided it would be best to copy the shared files (i.e. the ones provided by fuse(2) and fuse3) from fuse-common to fuse (version 2) and avoid collision warnings by defining priorities. Now it should be possible to install an arbitrary combination of "fuse", "fuse3", and "fuse-common" without getting any collision warnings. The end result should be the same and all changes should be backwards compatible (assuming that mount.fuse from fuse3 is backwards compatible as stated by upstream [0] - if not this might break some /etc/fstab definitions but that should be very unlikely). My tests with sshfs (version 2 and 3) didn't show any problems. See #28409 for some additional information. [0]: https://github.com/libfuse/libfuse/releases/tag/fuse-3.0.0 (cherry picked from commit 351f5fc)
Motivation for this change
Add
fuse3(libfuse 3.x). Any help is welcome 😄 - I'm not that familiar withlibfuse...TODO:
mount.fuseman page from libfuse 3 (TODO: define priority)libfuse-commonlike recommended (added but not really used as own package)?@mornfall would you like to maintain
libfuse3as well?Things done
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)