Skip to content

Commit 2c30848

Browse files
committed
Allow passing arbitrary options to fusermount
Extend the FUSE mount options to support passing a collection of textual options that are directly passed to fusermount. Fixes buildbarn/bb-clientd#6.
1 parent 44790d8 commit 2c30848

File tree

3 files changed

+89
-75
lines changed

3 files changed

+89
-75
lines changed

pkg/filesystem/virtual/configuration/fuse_mount_enabled.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func (m *fuseMount) Expose(terminationGroup program.Group, rootDirectory virtual
7272
FsName: m.fsName,
7373
AllowOther: m.configuration.AllowOther,
7474
DirectMount: m.configuration.DirectMount,
75+
Options: m.configuration.Options,
7576
})
7677
if err != nil {
7778
return util.StatusWrap(err, "Failed to create FUSE server")

pkg/proto/configuration/filesystem/virtual/virtual.pb.go

Lines changed: 85 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/proto/configuration/filesystem/virtual/virtual.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ message FUSEMountConfiguration {
133133
//
134134
// Recommended value: unset
135135
map<string, string> linux_backing_dev_info_tunables = 9;
136+
137+
// List of options to pass directly to fusermount.
138+
repeated string options = 10;
136139
}
137140

138141
message NFSv4MountConfiguration {

0 commit comments

Comments
 (0)