Re: Return status of mnt_context_mount when helper is used

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

 



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@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