[lxc-devel] [lxc/lxc] fe84a5: commands: non-functional changes

GitHub noreply at github.com
Wed Nov 8 22:20:26 UTC 2017


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

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: non-functional changes

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


  Commit: 191d43cca94ec7141c0f160715c1103dda969ec2
      https://github.com/lxc/lxc/commit/191d43cca94ec7141c0f160715c1103dda969ec2
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-07 (Tue, 07 Nov 2017)

  Changed paths:
    M src/lxc/commands.c
    M src/lxc/commands.h
    M src/lxc/lxccontainer.c
    M src/lxc/lxccontainer.h

  Log Message:
  -----------
  lxccontainer: add console_log() API extension

commands: add LXC_CMD_CONSOLE_LOG

Closes #1870.

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


  Commit: 69629c82436874e01a6eb50308a7657a298335d8
      https://github.com/lxc/lxc/commit/69629c82436874e01a6eb50308a7657a298335d8
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-07 (Tue, 07 Nov 2017)

  Changed paths:
    M src/lxc/console.c

  Log Message:
  -----------
  console: non-functional changes

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


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

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/console.c
    M src/lxc/start.c

  Log Message:
  -----------
  console: move ringbuffer into lxc_console_create()

This makes the whole setup more flexible.

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


  Commit: 40117d053194dafd05b24b361632d2f686ff639b
      https://github.com/lxc/lxc/commit/40117d053194dafd05b24b361632d2f686ff639b
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-07 (Tue, 07 Nov 2017)

  Changed paths:
    M src/lxc/console.c

  Log Message:
  -----------
  console: write ringbuffer to disk

When users request that the container keep a console ringbuffer we will not
continously write to the on-disk logfile as mirroring the contents of the
in-memory ringbuffer on-disk is costly and complicated. Instead, we dump the
ringbuffer contents on-disk when the container stops or fails to start. This
way users can still diagnose problems or retrieve the last contents of the
ringbuffer on-disk.

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


  Commit: 63b74cdaf799951309e17ef057dac73941090745
      https://github.com/lxc/lxc/commit/63b74cdaf799951309e17ef057dac73941090745
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-07 (Tue, 07 Nov 2017)

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

  Log Message:
  -----------
  console: add "write_logfile" to console_log struct

If a console log file was specified this flag indicates whether the contents of
the ringbuffer should be written to the logfile when a request is sent to the
ringbuffer.

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


  Commit: 33b4b4115f0d27b1f72c91c9c6f40a38ae4af910
      https://github.com/lxc/lxc/commit/33b4b4115f0d27b1f72c91c9c6f40a38ae4af910
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-11-07 (Tue, 07 Nov 2017)

  Changed paths:
    M src/lxc/console.c

  Log Message:
  -----------
  console: non-functional changes

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


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

  Changed paths:
    M .gitignore
    M src/tests/Makefile.am
    A src/tests/console_log.c

  Log Message:
  -----------
  tests: add tests for console_log()

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


  Commit: 5cc2545c5d4ce7f8a928ee61bfcfc2f73d3318a1
      https://github.com/lxc/lxc/commit/5cc2545c5d4ce7f8a928ee61bfcfc2f73d3318a1
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2017-11-08 (Wed, 08 Nov 2017)

  Changed paths:
    M .gitignore
    M src/lxc/commands.c
    M src/lxc/commands.h
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/console.c
    M src/lxc/console.h
    M src/lxc/lxccontainer.c
    M src/lxc/lxccontainer.h
    M src/lxc/start.c
    M src/tests/Makefile.am
    A src/tests/console_log.c

  Log Message:
  -----------
  Merge pull request #1871 from brauner/2017-10-21/api_extension_console_ringbuffer

API: add console ringbuffer extension


Compare: https://github.com/lxc/lxc/compare/29e4eb312313...5cc2545c5d4c


More information about the lxc-devel mailing list