]> git.proxmox.com Git - mirror_lxc.git/commit
parse.c: don't print error message on callback rv > 0
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 18 Oct 2013 15:31:27 +0000 (10:31 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 18 Oct 2013 16:27:42 +0000 (11:27 -0500)
commit8daccdb4d07d135f65516f095bb63e2bc988f208
treee716c12477612e19584a997c33aa0ac31e13175b
parent6e7e54d902c7d8bb791fdc26303908a94c18be1f
parse.c: don't print error message on callback rv > 0

A callback return value < 0 means there was an error, so print
out an error message.  But a rv > 0 is used by the mount_unknown_fs
functions to say "we found the one we want, stop here."

Document this, and only print an error message if rv < 0.  Otherwise,

lxc-create -B lvm --fstype ext3 -t ubuntu -n u1

will print an (innocuous) error message about being unable to parse
the config value 'ext3'.

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