public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Werner Baumann <werner.baumann@onlinehome.de>
Cc: util-linux@vger.kernel.org
Subject: Re: libmount, documentation
Date: Mon, 24 Mar 2014 10:14:46 +0100	[thread overview]
Message-ID: <20140324091446.GA20416@x2.net.home> (raw)
In-Reply-To: <20140323100633.711b61f9@ginster.fritz.box>

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

      reply	other threads:[~2014-03-24  9:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-23  9:06 libmount, documentation Werner Baumann
2014-03-24  9:14 ` Karel Zak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140324091446.GA20416@x2.net.home \
    --to=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    --cc=werner.baumann@onlinehome.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox