|
Zbigniew Jędrzejewski-Szmek |
436654 |
From 3f712cd14c3af1ba2d177f5aa72ee63df9a41d0f Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
From: Umut Tezduyar Lindskog <umut.tezduyar@axis.com>
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
Date: Fri, 22 May 2015 16:02:09 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
Subject: [PATCH] nspawn: be verbose about interface names
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
Allowed interface name is relatively small. Lets not make
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
users go in to the source code to figure out what happened.
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
--machine=debian-tree conflicts with
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
--machine=debian-tree2
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
ex: Failed to add new veth \
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
interfaces (host0, vb-debian-tree): File exists
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
(cherry picked from commit 637aa8a36ce21e0c83466d9b91ee1bfad2404d1c)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
src/nspawn/nspawn.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
index 500936387f..646edea700 100644
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
--- a/src/nspawn/nspawn.c
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+++ b/src/nspawn/nspawn.c
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
@@ -2627,7 +2627,7 @@ static int setup_veth(pid_t pid, char iface_name[IFNAMSIZ], int *ifi) {
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
r = sd_rtnl_call(rtnl, m, 0, NULL);
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
if (r < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
- return log_error_errno(r, "Failed to add new veth interfaces: %m");
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+ return log_error_errno(r, "Failed to add new veth interfaces (host0, %s): %m", iface_name);
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
i = (int) if_nametoindex(iface_name);
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
if (i <= 0)
|