options_darwin.go 664 B

1234567891011121314151617181920212223242526272829303132333435
  1. package fuse
  2. func localVolume(conf *mountConfig) error {
  3. conf.options["local"] = ""
  4. return nil
  5. }
  6. func volumeName(name string) MountOption {
  7. return func(conf *mountConfig) error {
  8. conf.options["volname"] = name
  9. return nil
  10. }
  11. }
  12. func daemonTimeout(name string) MountOption {
  13. return func(conf *mountConfig) error {
  14. conf.options["daemon_timeout"] = name
  15. return nil
  16. }
  17. }
  18. func noAppleXattr(conf *mountConfig) error {
  19. conf.options["noapplexattr"] = ""
  20. return nil
  21. }
  22. func noAppleDouble(conf *mountConfig) error {
  23. conf.options["noappledouble"] = ""
  24. return nil
  25. }
  26. func exclCreate(conf *mountConfig) error {
  27. conf.options["excl_create"] = ""
  28. return nil
  29. }