2016-10-31 16:50:02 +01:00
|
|
|
package fuse
|
|
|
|
|
|
|
|
func localVolume(conf *mountConfig) error {
|
|
|
|
conf.options["local"] = ""
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func volumeName(name string) MountOption {
|
|
|
|
return func(conf *mountConfig) error {
|
|
|
|
conf.options["volname"] = name
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func daemonTimeout(name string) MountOption {
|
|
|
|
return func(conf *mountConfig) error {
|
|
|
|
conf.options["daemon_timeout"] = name
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func noAppleXattr(conf *mountConfig) error {
|
|
|
|
conf.options["noapplexattr"] = ""
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func noAppleDouble(conf *mountConfig) error {
|
|
|
|
conf.options["noappledouble"] = ""
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func exclCreate(conf *mountConfig) error {
|
|
|
|
conf.options["excl_create"] = ""
|
|
|
|
return nil
|
|
|
|
}
|
2019-12-28 14:32:48 +01:00
|
|
|
|
|
|
|
func noBrowse(conf *mountConfig) error {
|
|
|
|
conf.options["nobrowse"] = ""
|
|
|
|
return nil
|
|
|
|
}
|