Re: libmount: MNT_OMODE_FORCE usage

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

 



On Fri, Feb 06, 2015 at 03:55:21PM +0100, Fridolin Pokorny wrote:
> I have found out that libmount does not respect MNT_OMODE_FORCE mode.
> I don't see any usage in sources

 This is not true. It's used for example by MNT_OMODE_USER (mount by
 non-root user).

> and libmount does not respect this mode
> when calling library functions.

 I don't think so, the MNT_OMODE_FORCE flag is extension, no
 replacement to MNT_OMODE_{FSTAB,MTAB}.

 The default mount(8) behavior is not to read fstab if mount source and target
 are specified, this feature is possible to disable by 
 
    MNT_OMODE_FORCE | MNT_OMODE_FSTAB

 I guess you forgot to use MNT_OMODE_FSTAB (or/and MNT_OMODE_MTAB),
 alone MNT_OMODE_FORCE does not make sense.


    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