Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add AutoXattr for auto_xattr on osxfuse #166

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ func Subtype(fstype string) MountOption {
}
}

// AutoXattr makes osxfuse automatically handle xattr operations using "._"
// prefixed files.
//
// OS X only. Others ignore this option.
func AutoXattr() MountOption {
return autoXattr
}

// LocalVolume sets the volume to be local (instead of network),
// changing the behavior of Finder, Spotlight, and such.
//
Expand Down
5 changes: 5 additions & 0 deletions options_darwin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package fuse

func autoXattr(conf *mountConfig) error {
conf.options["auto_xattr"] = ""
return nil
}

func localVolume(conf *mountConfig) error {
conf.options["local"] = ""
return nil
Expand Down
4 changes: 4 additions & 0 deletions options_freebsd.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package fuse

func autoXattr(conf *mountConfig) error {
return nil
}

func localVolume(conf *mountConfig) error {
return nil
}
Expand Down
4 changes: 4 additions & 0 deletions options_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package fuse

func autoXattr(conf *mountConfig) error {
return nil
}

func localVolume(conf *mountConfig) error {
return nil
}
Expand Down