parent
b65f337637
commit
1d03f1695d
|
@ -89,6 +89,14 @@ type MountConfig struct {
|
||||||
// the value of ChildInodeEntry.EntryExpiration is ignored by the kernel, and
|
// the value of ChildInodeEntry.EntryExpiration is ignored by the kernel, and
|
||||||
// entries will be cached for an arbitrarily long time.
|
// entries will be cached for an arbitrarily long time.
|
||||||
EnableVnodeCaching bool
|
EnableVnodeCaching bool
|
||||||
|
|
||||||
|
// Additional key=value options to pass unadulterated to the underlying mount
|
||||||
|
// command. See `man 8 mount`, the fuse documentation, etc. for
|
||||||
|
// system-specific information.
|
||||||
|
//
|
||||||
|
// For expert use only! May invalidate other guarantees made in the
|
||||||
|
// documentation for this package.
|
||||||
|
Options map[string]string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert to mount options to be passed to package bazilfuse.
|
// Convert to mount options to be passed to package bazilfuse.
|
||||||
|
@ -123,6 +131,11 @@ func (c *MountConfig) bazilfuseOptions() (opts []bazilfuse.MountOption) {
|
||||||
opts = append(opts, bazilfuse.SetOption("noappledouble", ""))
|
opts = append(opts, bazilfuse.SetOption("noappledouble", ""))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Last but not least: other user-supplied options.
|
||||||
|
for k, v := range c.Options {
|
||||||
|
opts = append(opts, bazilfuse.SetOption(k, v))
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue