libmount, documentation
I would like to use libmount in my mounthelper program (davfs2) to solve issues that arise when /etc/mtab is a symbolic link to /proc/mounts.
But I can't find any documentation of libmount that would allow me to use it. Is there any documentation?
Werner
Karel Zak
maintainerQuoted 3 lines · Werner Baumann
I would like to use libmount in my mounthelper program (davfs2) to solve issues that arise when
/etc/mtabis a symbolic link to/proc/mounts.
The best way is to probably to see mount.nfs from nfs-utils
http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=blob;f=utils/mount/mount_libmount.c
the code completely based on libmount, but core mount functionality is NFS specific.
Note that NFS requires special set of userspace options (libmount calls it "attributes"). It's anything you don't have to care about in standard mount helpers.
Quoted 2 lines
But I can't find any documentation of libmount that would allow me to use it. Is there any documentation?
https://www.kernel.org/pub/linux/utils/util-linux/v2.24/libmount-docs/index.html
If you will have any questions then ask me, I can also help you to review your helper program code.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com