[lxc-devel] [lxc/master] [console] return wrong console logsize

duguhaotian on Github lxc-bot at linuxcontainers.org
Tue Jan 16 07:17:23 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 367 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180116/96358635/attachment.bin>
-------------- next part --------------
From 548c71812526c2c7f5480ebefef0e2cdc736b71c Mon Sep 17 00:00:00 2001
From: duguhaotian <duguhaotian at gmail.com>
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,


More information about the lxc-devel mailing list