-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace FUSE's direct_mount option with mount_method
When enabling direct_mount, go-fuse attempts to create a FUSE mount directly, using the mount(2) system call. If that fails, it falls back to using the fusermount utility. What's annoying is that this causes any errors returned by mount(2) to be suppressed. go-fuse solved this by adding a DirectMountStrict option, which disables the fallback behaviour. This change exposes go-fuse's DirectMountStrict feature. Instead of adding a separate boolean flag for it, we promote the existing direct_mount configuration option to an enumeration named mount_method. This means that if your configuration previously contained: directMount: true, You need to replace it with either one of the lines below, depending on whether you want to still fall back to calling fusermount: mountMethod: 'DIRECT', mountMethod: 'DIRECT_AND_FUSERMOUNT', Fixes: #156
- Loading branch information
1 parent
b7b3bc4
commit d03d5e3
Showing
3 changed files
with
250 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.