Re: libmount, documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 23, 2014 at 10:06:33AM +0100, Werner Baumann wrote:
> 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.

> 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

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux