[lxc-devel] [lxc/lxc] 9d3480: cgroups: simple variable reordering

Stéphane Graber noreply at github.com
Wed Feb 24 15:36:26 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 9d3480dab480ec52538da591f4788acf2d6437ff
      https://github.com/lxc/lxc/commit/9d3480dab480ec52538da591f4788acf2d6437ff
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  cgroups: simple variable reordering

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


  Commit: 38fa7e479cea516d2cf303bbe8f3a8f88ea2a3c9
      https://github.com/lxc/lxc/commit/38fa7e479cea516d2cf303bbe8f3a8f88ea2a3c9
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/Makefile.am
    M src/lxc/cgroups/cgfsng.c
    A src/lxc/error_utils.h
    M src/lxc/macro.h
    M src/lxc/memory_utils.h

  Log Message:
  -----------
  error_utils: move error helper to separate header

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


  Commit: 5dc24a8c2886464a6844f64f419f1352dc78fbbe
      https://github.com/lxc/lxc/commit/5dc24a8c2886464a6844f64f419f1352dc78fbbe
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: tweak return values

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


  Commit: 7924f36a15cb3b198e6299ed541c2011d73d3098
      https://github.com/lxc/lxc/commit/7924f36a15cb3b198e6299ed541c2011d73d3098
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/error_utils.h

  Log Message:
  -----------
  error_utils: copy over Lennart's IN_SET()

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


  Commit: f740bc634347adaca6d31e3f4b6327ad93cfe8af
      https://github.com/lxc/lxc/commit/f740bc634347adaca6d31e3f4b6327ad93cfe8af
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/attach.c
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  cgroups: make use of ERRNO_IS_NOT_SUPPORTED()

This will hopefully prevent backwards compatibility fallback errors.

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


  Commit: 8dfcf0df6c14dbf31c92a66e42faeba98f03609d
      https://github.com/lxc/lxc/commit/8dfcf0df6c14dbf31c92a66e42faeba98f03609d
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  cgroups: handle fallback gracefully

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


  Commit: ac5eacc62e3e9a33972cce40e693db2fb7f5e5c3
      https://github.com/lxc/lxc/commit/ac5eacc62e3e9a33972cce40e693db2fb7f5e5c3
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: fix alignment for lxc_cmd_get_cgroup_ctx()

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


  Commit: bce2970f8071dcd2f0db71a8a94f1243073464db
      https://github.com/lxc/lxc/commit/bce2970f8071dcd2f0db71a8a94f1243073464db
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/commands.c
    M src/lxc/commands.h

  Log Message:
  -----------
  commands: simplify lxc_cmd_get_cgroup_ctx()

Instead of allowing individual hierarchy fd retrieval through
lxc_cmd_get_cgroup_ctx() let's add a dedicated method instead.

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


  Commit: a9b642ee5c63ebdabe6ed89ac4201dced32be0b8
      https://github.com/lxc/lxc/commit/a9b642ee5c63ebdabe6ed89ac4201dced32be0b8
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cgroups/cgroup.h
    M src/lxc/commands.c
    M src/lxc/commands.h
    M src/lxc/criu.c

  Log Message:
  -----------
  commands: s/_LIMITING_/_LIMIT_/g and s/_limiting_/_limit_/g

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


  Commit: c206ac24b3d974d9b9f2e07d415dbf851179afa2
      https://github.com/lxc/lxc/commit/c206ac24b3d974d9b9f2e07d415dbf851179afa2
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

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

  Log Message:
  -----------
  commands: add LXC_CMD_GET_CGROUP_FD and LXC_CMD_GET_LIMIT_CGROUP_FD

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


  Commit: 61983e15d2842997142c0df9b5eef80796686c94
      https://github.com/lxc/lxc/commit/61983e15d2842997142c0df9b5eef80796686c94
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cgroups/cgroup.h

  Log Message:
  -----------
  cgroups: s/cgroup_layout/layout/g

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


  Commit: 28c738ebe09db759b4f75be349da00ef11ec3532
      https://github.com/lxc/lxc/commit/28c738ebe09db759b4f75be349da00ef11ec3532
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: set rsp.ret to 0 for lxc_cmd_get_cgroup_ctx_callback()

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


  Commit: 53be29113c069625ed83d87832a7cf3afb91be5f
      https://github.com/lxc/lxc/commit/53be29113c069625ed83d87832a7cf3afb91be5f
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/file_utils.c

  Log Message:
  -----------
  file_utils: actually open the file for reading

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


  Commit: 124b60ec3e4253341a39b2385aa559453f0cbfa9
      https://github.com/lxc/lxc/commit/124b60ec3e4253341a39b2385aa559453f0cbfa9
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: extend rsp_one_fd() to also handle additional data

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


  Commit: abb6f6572c6dd48efb4e76af6f9ba7ede3db528d
      https://github.com/lxc/lxc/commit/abb6f6572c6dd48efb4e76af6f9ba7ede3db528d
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cgroups/cgroup.h
    M src/lxc/commands.c
    M src/lxc/commands.h

  Log Message:
  -----------
  commands: add LXC_CMD_GET_CGROUP_FD and LXC_CMD_GET_LIMIT_CGROUP_FD

and port cgroup_get() and cgroup_set(). This means no more useless cgroup
driver initialization on ever get or set.

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


  Commit: 7e85a2c423464568039d7c9ce41b07e8955f9abe
      https://github.com/lxc/lxc/commit/7e85a2c423464568039d7c9ce41b07e8955f9abe
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

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

  Log Message:
  -----------
  commands: s/LXC_CMD_CONSOLE/LXC_CMD_GET_TTY_FD/g

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


  Commit: 2ed90529b4b83057b068b4a029b0d1e43dc4978a
      https://github.com/lxc/lxc/commit/2ed90529b4b83057b068b4a029b0d1e43dc4978a
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2021-02-24 (Wed, 24 Feb 2021)

  Changed paths:
    M src/lxc/Makefile.am
    M src/lxc/attach.c
    M src/lxc/cgroups/cgfsng.c
    M src/lxc/cgroups/cgroup.h
    M src/lxc/commands.c
    M src/lxc/commands.h
    M src/lxc/criu.c
    A src/lxc/error_utils.h
    M src/lxc/file_utils.c
    M src/lxc/lxccontainer.c
    M src/lxc/macro.h
    M src/lxc/memory_utils.h
    M src/lxc/terminal.c

  Log Message:
  -----------
  Merge pull request #3694 from brauner/2021-02-24/fixes_2

commands: rework and add LXC_CMD_GET_CGROUP_FD and LXC_CMD_GET_LIMIT_CGROUP_FD


Compare: https://github.com/lxc/lxc/compare/5dc90afd4931...2ed90529b4b8


More information about the lxc-devel mailing list