[lxc-devel] [lxc/lxc] 400d57: improve LXC_CMD_GET_CGROUP compatibility

Christian Brauner noreply at github.com
Fri May 15 17:14:27 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 400d579e69f5f41a14d9fd0617f0e4972ae53dcf
      https://github.com/lxc/lxc/commit/400d579e69f5f41a14d9fd0617f0e4972ae53dcf
  Author: Wolfgang Bumiller <w.bumiller at proxmox.com>
  Date:   2020-05-15 (Fri, 15 May 2020)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  improve LXC_CMD_GET_CGROUP compatibility

When a newer lxc library communicates with an older one
(such as running an lxc 4.0 lxc-freeze on a longer running
container which was started while lxc was still at version
3), the LXC_CMD_GET_LIMITING_CGROUP command is not
available, causing the remote to just close the socket.
Catch this and try the previous command instead.

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>


  Commit: 748166a39bd765b6fe9e25830d1f9ade8b8562ec
      https://github.com/lxc/lxc/commit/748166a39bd765b6fe9e25830d1f9ade8b8562ec
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-05-15 (Fri, 15 May 2020)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  Merge pull request #3414 from Blub/get-cgroup-path-compat

improve LXC_CMD_GET_CGROUP compatibility


Compare: https://github.com/lxc/lxc/compare/6b641ce4f0db...748166a39bd7


More information about the lxc-devel mailing list