[lxc-devel] [lxc/lxc] e4ebea: Ignore any container with a name starting by '.'

GitHub noreply at github.com
Fri Jan 29 16:16:37 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: e4ebeab1cdf3ae4844c3a78d47d2aad5d9de9cbd
      https://github.com/lxc/lxc/commit/e4ebeab1cdf3ae4844c3a78d47d2aad5d9de9cbd
  Author: Carlos Alberto Lopez Perez <clopez at igalia.com>
  Date:   2016-01-29 (Fri, 29 Jan 2016)

  Changed paths:
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  Ignore any container with a name starting by '.'

  * This are either '.', '..' or a hidden directory.
    And this names should not be used for a container
    in any case.

  * Before this patch, if you created a git repository under lxc.lxcpath (it
    can be useful to keep track of the configurations of your containers)

    Then, when you run lxc-ls you will get the following output:
   # lxc-ls
  .git      container1      container2    ....

    This is because there is a 'config' file inside the '.git' directory.
    It is where git stores the configuration of the repository.

    And the test lxc-ls does to check if a directory contains a container
    is just to check if the 'directory/config' file exists.

Signed-off-by: Carlos Alberto Lopez Perez <clopez at igalia.com>


  Commit: 49dce6ec6323e321d0c11fcc6e07b1cb095d946e
      https://github.com/lxc/lxc/commit/49dce6ec6323e321d0c11fcc6e07b1cb095d946e
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2016-01-29 (Fri, 29 Jan 2016)

  Changed paths:
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  Merge pull request #768 from clopez/ignore_git_directories

Ignore any container named '.git'


Compare: https://github.com/lxc/lxc/compare/5c698360ffa9...49dce6ec6323


More information about the lxc-devel mailing list