[lxc-devel] [PATCH] use $LOCALSTATEDIR/lock/subsys/lxc-ubuntu$release as lock filename
Stéphane Graber
stgraber at ubuntu.com
Mon Dec 9 20:10:31 UTC 2013
On Sat, Dec 07, 2013 at 05:52:14PM -0500, S.Çağlar Onur wrote:
> Otherwise one cannot create two containers with different releases
> (let's say saucy [cached] and raring [not caced]) if both are not
> cached on the local filesystem already. The lock blocks cached
> one to move forward until not cached one finishes it's downloads.
>
> Fix that by seperating locks using release names
>
> Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
> ---
> templates/lxc-ubuntu.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in
> index 3dcc93a..d8ac22d 100644
> --- a/templates/lxc-ubuntu.in
> +++ b/templates/lxc-ubuntu.in
> @@ -369,7 +369,7 @@ install_ubuntu()
>
> return 0
>
> - ) 200>$LOCALSTATEDIR/lock/subsys/lxc-ubuntu
> + ) 200>$LOCALSTATEDIR/lock/subsys/lxc-ubuntu$release
>
> return $?
> }
> --
> 1.8.3.2
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/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: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20131209/6030bc92/attachment.pgp>
More information about the lxc-devel
mailing list