Re: v2.29 plan: kill mtab

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

 



On Wed, Apr 13, 2016 at 10:58:28PM +0200, Ruediger Meier wrote:
> On Thursday 07 April 2016, Karel Zak wrote:
> > libmount supports three scenarios:
> >
> >  1) regular classic /etc/mtab
> >
> >  2) /etc/mtab symlink to /proc/self/mount -- in this case libmount
> > uses /proc/self/mountinfo and /run/mount/utab
> >
> >  The current default is to detect symlink and on-the-fly switch
> >  between 1) and 2).
> >
> >  3) --enable-libmount-force-mountinfo -- don't care about the symlink
> > and always use /proc/self/mountinfo. This is robust solution required
> > for example by systemd, because unfortunately sometimes people use
> > broken stuff (init scripts, tools, etc.) which removes the symlink.
> >
> >
> >  I'd like to make 3) default, the question is what with mtab code:
> >
> >     a) #ifdef all mtab code (and add --enable-libmount-support-mtab)
> >
> >     b) remove mtab support at all (because it's evil and horrible
> > code)
> >
> >  Comments?
> >
> >     Karel
> 
> 
> What about this first step:

I have applied another patch to disable mtab by default, a new 
configure option

    --enable-libmount-support-mtab 
    
is necessary to enable the original behavior.

    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