2014-11-30 03:06:54 +00:00
|
|
|
package fuse
|
|
|
|
|
2016-04-07 19:19:05 +00:00
|
|
|
func localVolume(conf *mountConfig) error {
|
2014-11-30 03:06:54 +00:00
|
|
|
conf.options["local"] = ""
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func volumeName(name string) MountOption {
|
2016-04-07 19:19:05 +00:00
|
|
|
return func(conf *mountConfig) error {
|
2014-11-30 03:06:54 +00:00
|
|
|
conf.options["volname"] = name
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2016-07-20 14:08:34 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|