public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* libmount, documentation
@ 2014-03-23  9:06 Werner Baumann
  2014-03-24  9:14 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Werner Baumann @ 2014-03-23  9:06 UTC (permalink / raw)
  To: util-linux

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libmount, documentation
  2014-03-23  9:06 libmount, documentation Werner Baumann
@ 2014-03-24  9:14 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2014-03-24  9:14 UTC (permalink / raw)
  To: Werner Baumann; +Cc: util-linux

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@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-24  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-23  9:06 libmount, documentation Werner Baumann
2014-03-24  9:14 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox