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 option for lazy unmount #459

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

itomsawyer
Copy link

Refers to http://man.he.net/man1/fusermount

LazyMount allow go-fuse unmount works even if resource is still busy (opened by other user programs).

Comment on lines 192 to 195
args := []string{"-u", mountPoint}
if opts.LazyUnmount {
args = append(args, "-z")
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

	args := []string{"-u", mountPoint}
	if opts.LazyUnmount {
		args[0] = "-uz"
	}

Looks better to me as it avoids re-sizing the slice

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed

@marius-enlock
Copy link

I am also interested in this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants