[lxc-devel] name for 'optional' mount option

Serge Hallyn serge.hallyn at canonical.com
Mon Jan 28 22:57:56 UTC 2013


Quoting Stéphane Graber (stgraber at ubuntu.com):
> On 01/28/2013 04:42 PM, Serge Hallyn wrote:
> > Hi,
> > 
> > I want to add support to setup_mount_entries() to ignore the failure to
> > mount an entry in /var/lib/lxc/container/fstab - i.e. if the mount src
> > or target does not exist.
> > 
> > the fstab manpage mentions 'optional' as a mount option in case the
> > fs is not known.  mountall extends that so that it also supports the
> > case where the target does not exist.  So we could re-use that.  Or we
> > could use a new mount option (I was thinking 'nofatal' until I found
> > 'optional').
> > 
> > Any preferences?  If not, I will go with optional.
> > 
> > thanks,
> > -serge
> 
> I think optional would make sense as it'd cover both the use case
> defined in the manpage and just extend it a bit to cover any mount failure.
> 
> nobootwait (mountall's magic option) doesn't make a lot of sense for
> lxc, considering that our code currently never waits anyway :)

Thanks, sent a quick works-for-me patch using 'optional'.

-serge




More information about the lxc-devel mailing list