Skip to content

Commit

Permalink
Allow passing arbitrary options to fusermount
Browse files Browse the repository at this point in the history
Extend the FUSE mount options to support passing a collection of textual
options that are directly passed to fusermount.

Fixes buildbarn/bb-clientd#6.
  • Loading branch information
jmmv committed Mar 22, 2023
1 parent 44790d8 commit 2c30848
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 75 deletions.
1 change: 1 addition & 0 deletions pkg/filesystem/virtual/configuration/fuse_mount_enabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (m *fuseMount) Expose(terminationGroup program.Group, rootDirectory virtual
FsName: m.fsName,
AllowOther: m.configuration.AllowOther,
DirectMount: m.configuration.DirectMount,
Options: m.configuration.Options,
})
if err != nil {
return util.StatusWrap(err, "Failed to create FUSE server")
Expand Down
160 changes: 85 additions & 75 deletions pkg/proto/configuration/filesystem/virtual/virtual.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/proto/configuration/filesystem/virtual/virtual.proto
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ message FUSEMountConfiguration {
//
// Recommended value: unset
map<string, string> linux_backing_dev_info_tunables = 9;

// List of options to pass directly to fusermount.
repeated string options = 10;
}

message NFSv4MountConfiguration {
Expand Down

0 comments on commit 2c30848

Please sign in to comment.