1. 27 Feb, 2018 3 commits
    • console: dump ringbuffer to disk on container exit · 39c6cdb7
      Christian Brauner authored
      The console ringbuffer will be dumped to disk if the console log file is not
      rotated and it's size is not unlimited. In the former two cases we will have
      all data from the ringbuffer available anyway.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
    • confile: remove lxc.console.buffer.logfile · 23e0d9af
      Christian Brauner authored
      All of its functionality is now covered over by lxc.console.logfile.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
    • confile: add lxc.console.size · 861813e5
      Christian Brauner authored
      lxc.console.size regulates the size of the console log file. This is intended
      to replace lxc.console.buffer.logfile. The current semantics are:
      
      - if lxc.console.size is not set:
        - no limit is placed on the size of the log file
      - if lxc.console.size is set:
        - if lxc.console.rotate is set and the next write would exceed the limit:
          - write as much as possible into the old log file
          - rotate the log file
          - write as much as posible into the new log file
          - discard remaining bytes (scenario shouldn't be possible in normal
            circumstances)
        - if lxc.console.rotate is not set and the next write would exceed the limit:
          - keep overwriting the current log file
      
      To make the log file a mirror of the in-memory ringbuffer simply set:
      lxc.console.buffer.size == lxc.console.size.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
  2. 26 Feb, 2018 14 commits
  3. 25 Feb, 2018 3 commits
  4. 24 Feb, 2018 20 commits