]> git.ipfire.org Git - thirdparty/lxc.git/commit
Ignore any container with a name starting by '.' 768/head
authorCarlos Alberto Lopez Perez <clopez@igalia.com>
Fri, 29 Jan 2016 14:39:22 +0000 (15:39 +0100)
committerCarlos Alberto Lopez Perez <clopez@igalia.com>
Fri, 29 Jan 2016 14:39:22 +0000 (15:39 +0100)
commite4ebeab1cdf3ae4844c3a78d47d2aad5d9de9cbd
tree0b291e2119fc9cc7f11add09f5736c37c9eb53db
parent5c698360ffa991e52d504fef723c1f625aa9f6b2
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@igalia.com>
src/lxc/lxccontainer.c