-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use of libmount #8883
Comments
I've seen all kinds of strange issues related to zfs mount since I started evaluating ZFS on Linux. Running external program to do mount/unmount just seems awful to me. |
Thanks for opening this issue. Yes, migrating to |
I'll look into some more details of libmount code in upstream util-linux first, and then try to move on to use it in ZoL if doable and makes sense. |
Closing. This issue has been addressed by #10294. |
System information
Describe the problem you're observing
lib/libzfs/libzfs_mount.c
in ZoL has this comment on fork/exec-ingmount(8)
andumount(8)
.After seeing #8833, moving on to use libmount instead of fork/exec-ing from pthread looks to be clearer solution. illumos and FreeBSD just invoke a syscall.
Looking at upstream util-linux,
mount(8)
andumount(8)
are based on libmount (i.e. best examples of how to use libmount).mount(2)
ormount.<type>
executable.In fact distros today do use libmount. libmount seems to have existed for the past 7-8 years, but I'm not sure if the API and its behavior have been consistent.
The text was updated successfully, but these errors were encountered: