[lxc-devel] [PATCH] fix lockpath removal in Python lxc-ls

Stéphane Graber stgraber at ubuntu.com
Thu Jan 28 10:38:10 UTC 2016


On Mon, Jan 11, 2016 at 02:43:42PM +0100, Christian Brauner wrote:
> The lock path for lxc is not
> 
> 	RUNTIME_PATH/lock/lxc
> 
> but rather
> 
> 	RUNTIME_PATH/lxc/lock
> 
> Signed-off-by: Christian Brauner <christian.brauner at mailbox.org>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  src/lxc/lxc-ls.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in
> index dc2b2ba..b83ee73 100755
> --- a/src/lxc/lxc-ls.in
> +++ b/src/lxc/lxc-ls.in
> @@ -392,7 +392,7 @@ def get_containers(fd=None, base="/", root=False):
>                  else:
>                      def clear_lock():
>                          try:
> -                            lock_path = "%s/lock/lxc/%s/%s" % (RUNTIME_PATH,
> +                            lock_path = "%s/lxc/lock/%s/%s" % (RUNTIME_PATH,
>                                                                 path,
>                                                                 entry['name'])
>                              if os.path.exists(lock_path):
> -- 
> 2.7.0
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160128/0e9ea19e/attachment.sig>


More information about the lxc-devel mailing list