[lxc-devel] [lxc/lxc] 124614: lxccontainer: add lxc_config_item_is_supported()

GitHub noreply at github.com
Wed May 3 22:35:29 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 12461428889932e8918553a111bbedaf8fce2db6
      https://github.com/lxc/lxc/commit/12461428889932e8918553a111bbedaf8fce2db6
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-03 (Wed, 03 May 2017)

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

  Log Message:
  -----------
  lxccontainer: add lxc_config_item_is_supported()

This adds lxc_config_item_is_supported() as API extension. It allows to check
whether a given config item (e.g. lxc.autodev) is supported by this LXC
instance. The function is useful in the following scenarios:
1. Users have compiled liblxc from source and have removed a config items from
   the corresponding struct in confile.c. (For example, embedded users might
   decide to gut a bunch of options that they cannot use.)
2. Callers that want to check for a specific configuration item independent of
   the version numbers exposed in our version.h header.

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


  Commit: add40e6270ae06cbdde6ad5c19daa51d05fa3c42
      https://github.com/lxc/lxc/commit/add40e6270ae06cbdde6ad5c19daa51d05fa3c42
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-05-03 (Wed, 03 May 2017)

  Changed paths:
    M src/tests/get_item.c

  Log Message:
  -----------
  test: add lxc_config_item_is_supported() tests

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


  Commit: 2a902a63c5a384f85b5826559589d7df253b15e9
      https://github.com/lxc/lxc/commit/2a902a63c5a384f85b5826559589d7df253b15e9
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2017-05-03 (Wed, 03 May 2017)

  Changed paths:
    M src/lxc/lxccontainer.c
    M src/lxc/lxccontainer.h
    M src/tests/get_item.c

  Log Message:
  -----------
  Merge pull request #1535 from brauner/2017-05-03/api_extension_lxc_is_supported_config_item

api extension: lxc_config_item_is_supported()


Compare: https://github.com/lxc/lxc/compare/2c0807c7c4ae...2a902a63c5a3


More information about the lxc-devel mailing list