Skip to contentSkip to conversation

libmount, documentation

DISCUSSION Werner Baumann 2 participants 2 messages Mar 23, 2014 – Mar 24, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw
Quoted 3 lines · Werner Baumann

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.

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