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

options: introduce NoBrowse option for OSX #193

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 @@ -106,6 +106,14 @@ func NoAppleXattr() MountOption {
return noAppleXattr
}

// NoBrowse makes OSXFUSE mark the volume as non-browsable, so that
// Finder won't automatically browse it.
//
// OS X only. Others ignore this option.
func NoBrowse() MountOption {
return noBrowse
}

// ExclCreate causes O_EXCL flag to be set for only "truly" exclusive creates,
// i.e. create calls for which the initiator explicitly set the O_EXCL flag.
//
Expand Down
5 changes: 5 additions & 0 deletions options_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ func exclCreate(conf *mountConfig) error {
conf.options["excl_create"] = ""
return nil
}

func noBrowse(conf *mountConfig) error {
conf.options["nobrowse"] = ""
return nil
}
4 changes: 4 additions & 0 deletions options_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ func noAppleDouble(conf *mountConfig) error {
func exclCreate(conf *mountConfig) error {
return nil
}

func noBrowse(conf *mountConfig) error {
return nil
}
4 changes: 4 additions & 0 deletions options_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ func noAppleDouble(conf *mountConfig) error {
func exclCreate(conf *mountConfig) error {
return nil
}

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