From: Christian Brauner Date: Tue, 5 Sep 2017 00:00:29 +0000 (+0200) Subject: conf: record idmap that gets written X-Git-Tag: lxc-2.0.9~48^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=567d76118c1e7ffedfd3606c8db65d31c373b731;p=thirdparty%2Flxc.git conf: record idmap that gets written This will serve us well in the future! Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 15142f066..352f0e82a 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2515,14 +2515,19 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid) lxc_map_ids_exec_wrapper, (void *)mapbuf); if (ret < 0) { - ERROR("new%cidmap failed to write mapping: %s", - u_or_g, cmd_output); + ERROR("new%cidmap failed to write mapping \"%s\": %s", + u_or_g, cmd_output, mapbuf); return -1; } + TRACE("new%cidmap wrote mapping \"%s\"", u_or_g, mapbuf); } else { ret = write_id_mapping(type, pid, mapbuf, pos - mapbuf); - if (ret < 0) + if (ret < 0) { + ERROR("Failed to write mapping \"%s\": %s", + cmd_output, mapbuf); return -1; + } + TRACE("Wrote mapping \"%s\"", mapbuf); } memset(mapbuf, 0, sizeof(mapbuf));