The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2085

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
get_config_console_logsize want console.buffer_size not c->autodev
From 548c71812526c2c7f5480ebefef0e2cdc736b71c Mon Sep 17 00:00:00 2001
From: duguhaotian <[email protected]>
Date: Tue, 16 Jan 2018 15:31:14 +0800
Subject: [PATCH] [console] return wrong console logsize

get_config_console_logsize want console.buffer_size not c->autodev
---
 src/lxc/confile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/confile.c b/src/lxc/confile.c
index 5bea71ae0..3deec58bf 100644
--- a/src/lxc/confile.c
+++ b/src/lxc/confile.c
@@ -3276,7 +3276,7 @@ static int get_config_console_buffer_size(const char 
*key, char *retv,
                                          int inlen, struct lxc_conf *c,
                                          void *data)
 {
-       return lxc_get_conf_uint64(c, retv, inlen, c->autodev);
+       return lxc_get_conf_uint64(c, retv, inlen, c->console.buffer_size);
 }
 
 static int get_config_console_buffer_logfile(const char *key, char *retv,
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to