All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Amit Uttamchandani <amit.uttam@gmail.com>
Cc: util-linux@vger.kernel.org
Subject: Re: Return status of mnt_context_mount when helper is used
Date: Thu, 20 Sep 2012 12:12:59 +0200	[thread overview]
Message-ID: <20120920101259.GD16499@x2.net.home> (raw)
In-Reply-To: <20120919221427.GA25659@amit-debian.lg.local>

On Wed, Sep 19, 2012 at 03:14:27PM -0700, Amit Uttamchandani wrote:
> On Wed, Sep 19, 2012 at 12:06:38PM +0200, Karel Zak wrote:
> 
> [snip]
> 
> > 
> > docs:
> > 
> >  * mnt_context_get_status:
> >  * @cxt: mount context
> >  *
> >  * Global libmount status.
> >  *
> >  * The real exit code of the mount.type helper has to be tested
> >  * by  mnt_context_get_helper_status(). The mnt_context_get_status()
> >  * only inform that exec() has been successful.
> > 
> 
> I guess this was implemented after util-linux-2.20.1 since the docs in
> that version does not mention it. Also, it is not implemented in the
> code.
> 
> What would you recommend as a work around?

Hmm... the status from mount.<type> is stored in cxt->helper_status,
but this variable is nowhere exported in v2.20.

> Should I statically link
> libmount and bundle it with the application?

Yes, or update to 2.21.2 or v2.22 :-)

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

      reply	other threads:[~2012-09-20 10:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-18 23:08 Return status of mnt_context_mount when helper is used Amit
2012-09-19 10:06 ` Karel Zak
2012-09-19 22:14   ` Amit Uttamchandani
2012-09-20 10:12     ` 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=20120920101259.GD16499@x2.net.home \
    --to=kzak@redhat.com \
    --cc=amit.uttam@gmail.com \
    --cc=util-linux@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.