[lxc-devel] [lxc/lxc] 28f3b1: confile: add lxc.console.buffer.size

GitHub noreply at github.com
Sat Nov 18 00:05:00 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 28f3b1cdbec39afc17843c12b018584e801fdf11
      https://github.com/lxc/lxc/commit/28f3b1cdbec39afc17843c12b018584e801fdf11
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-18 (Sat, 18 Nov 2017)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/commands.c
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/confile.c
    M src/lxc/console.c

  Log Message:
  -----------
  confile: add lxc.console.buffer.size

Determines the size of the ringbuffer.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 3a784510e314b3d161663c5240ff32532c349c2c
      https://github.com/lxc/lxc/commit/3a784510e314b3d161663c5240ff32532c349c2c
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-18 (Sat, 18 Nov 2017)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/commands.c
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/confile.c
    M src/lxc/console.c

  Log Message:
  -----------
  confile: add lxc.console.buffer.logfile

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: d91adfa6123ac2c884fac6dbe74c823cb4eafe5b
      https://github.com/lxc/lxc/commit/d91adfa6123ac2c884fac6dbe74c823cb4eafe5b
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-18 (Sat, 18 Nov 2017)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/conf.h
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: add lxc.console.rotate

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 5928191e83fdb99e45b830f0a7b95bd99eca1d4f
      https://github.com/lxc/lxc/commit/5928191e83fdb99e45b830f0a7b95bd99eca1d4f
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-18 (Sat, 18 Nov 2017)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: only set ringbuffer datalen when needed

If we do it unconditionally a request to only clear the ringbuffer and not read
or write anything will fail.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: a030916834aee82c34a015e9c24d8babe2f265c8
      https://github.com/lxc/lxc/commit/a030916834aee82c34a015e9c24d8babe2f265c8
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-18 (Sat, 18 Nov 2017)

  Changed paths:
    M src/lxc/console.c

  Log Message:
  -----------
  console: split console setup into logical parts

The lxc_console_create() function used to munge the ringbuffer setup and the
log file setup already. This made somewhat sense when we didn't have a separate
ringbuffer log file. Now it's just plain confusing. So split this into logical
helpers that future maintainers can understand:

- lxc_console_create_log_file()
- lxc_console_create_ringbuf(console);
- lxc_console_create_ringbuf_log_file(console);

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: cf685555b3817bfd0a69eefb7a08a3eec647bcc9
      https://github.com/lxc/lxc/commit/cf685555b3817bfd0a69eefb7a08a3eec647bcc9
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-18 (Sat, 18 Nov 2017)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: truncate console ringbuffer log file

When a "clear" request is sent to the console ringbuffer we should truncate the
console log file as well.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 966b9ecd95f5b6249ece8fdaae1610d10d17eec7
      https://github.com/lxc/lxc/commit/966b9ecd95f5b6249ece8fdaae1610d10d17eec7
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-18 (Sat, 18 Nov 2017)

  Changed paths:
    M src/lxc/commands.c
    M src/lxc/confile.c
    M src/lxc/console.c
    M src/lxc/console.h

  Log Message:
  -----------
  commands: rotate console log file

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 8a2404e982ddff78d41599a5ae47242c69c6776c
      https://github.com/lxc/lxc/commit/8a2404e982ddff78d41599a5ae47242c69c6776c
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-18 (Sat, 18 Nov 2017)

  Changed paths:
    M src/tests/console_log.c

  Log Message:
  -----------
  test: expand console log tests

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: c4e7852b3cb6bb746ebe8ea9e83b74cbe1557c97
      https://github.com/lxc/lxc/commit/c4e7852b3cb6bb746ebe8ea9e83b74cbe1557c97
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2017-11-17 (Fri, 17 Nov 2017)

  Changed paths:
    M doc/lxc.container.conf.sgml.in
    M src/lxc/commands.c
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/confile.c
    M src/lxc/console.c
    M src/lxc/console.h
    M src/tests/console_log.c

  Log Message:
  -----------
  Merge pull request #1925 from brauner/2017-11-14/console_config_keys

console: add lxc.console.buffer.size, lxc.console.buffer.logfile, lxc.console.rotate


Compare: https://github.com/lxc/lxc/compare/05e1745cc1e7...c4e7852b3cb6


More information about the lxc-devel mailing list