diff --git a/mounted_file_system.go b/mounted_file_system.go index 586ba13..c7df5e5 100644 --- a/mounted_file_system.go +++ b/mounted_file_system.go @@ -115,13 +115,20 @@ func (mfs *MountedFileSystem) mountAndServe( close(mfs.joinStatusAvailable) } +// Optional configuration accepted by Mount. +type MountConfig struct { +} + +// Convert to mount options to be passed to package bazilfuse. +func (c *MountConfig) bazilfuseOptions() []bazilfuse.MountOption + // Attempt to mount the supplied file system on the given directory. // mfs.WaitForReady() must be called to find out whether the mount was // successful. func Mount( dir string, fs FileSystem, - options ...bazilfuse.MountOption) (mfs *MountedFileSystem, err error) { + config *MountConfig) (mfs *MountedFileSystem, err error) { // Create a server object. server, err := newServer(fs) if err != nil { @@ -136,7 +143,7 @@ func Mount( } // Mount in the background. - go mfs.mountAndServe(server, options) + go mfs.mountAndServe(server, config.bazilfuseOptions()) return }