Skip to content

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

@marius-enlock marius-enlock Apr 25, 2024

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.

2 participants