]> git.proxmox.com Git - mirror_lxc.git/commit
setup_mount_entries: ignore mount failure if 'optional'
authorSerge Hallyn <serge.hallyn@canonical.com>
Mon, 28 Jan 2013 22:57:24 +0000 (16:57 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 28 Jan 2013 22:59:38 +0000 (17:59 -0500)
commit68c152ef7a2fe18f71cb73a4800501a7c008bf46
tree8e724b5dd838ee6a6b7608e00f9e0a2a0a559dfa
parent5e1e7aaf1e244405b813c0f9e20db2fc9e7f4d10
setup_mount_entries: ignore mount failure if 'optional'

If 'optional' is in the mount options, then avoid failure in
mount().

Experiments suggest we could just do this checking data at
mount_entry(), but that feels less proper than using
hasmntopt() against the mntent.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c