Skip to content

Add option for lazy unmount - #459

Open
itomsawyer wants to merge 2 commits into
hanwen:masterfrom
itomsawyer:lazy_unmount
Open

Add option for lazy unmount#459
itomsawyer wants to merge 2 commits into
hanwen:masterfrom
itomsawyer:lazy_unmount

Conversation

@itomsawyer

Copy link
Copy Markdown

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 thread fuse/mount_linux.go
Comment on lines +192 to +195
args := []string{"-u", mountPoint}
if opts.LazyUnmount {
args = append(args, "-z")
}

@marius-enlock marius-enlock Apr 25, 2024

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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