[lxc-devel] lxc 0.7.4 does not mount anything

Cedric Le Goater legoater at free.fr
Mon Mar 14 08:33:54 UTC 2011


On 03/11/2011 11:06 PM, Daniel Lezcano wrote:
>> And we really, REALLY need to set default log level to
>> be at least warning instead of error, or else these
>> useful warnings goes nowhere.
> 
> Everybody ok with this change ?
> 
> extern int lxc_log_init(const char *file, const char *priority,
>                         const char *prefix, int quiet)
>  {
> -       int lxc_priority = LXC_LOG_PRIORITY_ERROR;
> +       int lxc_priority = LXC_LOG_PRIORITY_WARN;

here's a quick survey on the WARN messages :

src/lxc/stop.c:		WARN("failed to send answer to the peer");
src/lxc/console.c:		WARN("failed to set old terminal settings");
src/lxc/console.c:		WARN("console input disabled");
src/lxc/utils.c:		WARN("failed to unmount %s : %s", target, strerror(errno));
src/lxc/lxc_attach.c:		WARN("could not change directory to '%s'", curdir);
src/lxc/conf.c:			WARN("unexpected error for ioctl on '%s': %m",
src/lxc/conf.c:		WARN("failed to close directory");
src/lxc/conf.c:			WARN("failed to mount '%s'->'%s'",
src/lxc/conf.c:		WARN("failed to unmount '%s'", (char *)iterator->elem);
src/lxc/conf.c:		WARN("can't remove mountpoint '%s': %m", pivotdir);
src/lxc/conf.c:		WARN("rootfs specified but no console found at '%s'", path);
src/lxc/conf.c:		WARN("ignoring mount point '%s'", mntent->mnt_dir);
src/lxc/commands.c:		WARN("partial request, ignored");
src/lxc/state.c:		WARN("'%s' has stopped before sending its state", name);
src/lxc/state.c:		WARN("failed to send answer to the peer");
src/lxc/utmp.c:		WARN("'%s' not found", path);
src/lxc/start.c:		WARN("failed to open directory: %m");
src/lxc/start.c:		WARN("invalid pid for SIGCHLD");
src/lxc/start.c:		WARN("failed to send answer to the peer");
src/lxc/start.c:		WARN("failed to restore sigprocmask");
src/lxc/log.c:		WARN("truncated next event from %d to %zd bytes", n,
src/lxc/cgroup.c:		WARN("using deprecated ns_cgroup");

maybe a few of them should be ERROR messages. 


C.




More information about the lxc-devel mailing list