restore the dropped bits of 1c1bb85ad2b6 and also implement the logic suggested at https://lists.linuxcontainers.org/pipermail/lxc-devel/2014-December/010985.html
restore the dropped bits of 1c1bb85ad2b6 and also implement the logic
suggested at
https://lists.linuxcontainers.org/pipermail/lxc-devel/2014-December/010985.html

Signed-off-by: S.Çağlar Onur <acf5ae661bb0a9f738c88a741b1d35ac69ab5408@10ur.org>
Acked-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

Pelagicore/lxc,ss1h2a3tw/lxc,QingweiPeterLan/cs188-lxc,ysbnim/lxc,hkjolhede/lxc,ioops/lxc,ecarrara/lxc,rldleblanc/lxc,ss1h2a3tw/lxc,bmoar/lxc,QingweiPeterLan/cs188-lxc,GreatFruitOmsk/lxc,raspberrypython/lxc,rowhit/lxc,akshaykarle/lxc,codebauss/lxc,lisongmin/lxc,christiaan/lxc,ioops/lxc,caglar10ur/lxc,LynxChaus/lxc,terceiro/lxc,LynxChaus/lxc,terceiro/lxc,regit/lxc,hfuCN/lxc,szaszg/lxc,major/lxc,cjwatson/lxc,DarknessBeforeDawn/lxc,jirislaby/lxc,armcc/lxc,Pelagicore/lxc,Ponce/lxc,Distrotech/lxc,ksperis/lxc,rowhit/lxc,lisongmin/lxc,virajs/lxc,lazy404/lxc,tych0/lxc,LynxChaus/lxc,raspberrypython/lxc,armcc/lxc,efiop/lxc,cjwatson/lxc,JohnPeacockMessageSystems/lxc,hkjolhede/lxc,ioops/lxc,tych0/lxc,efiop/lxc,aeris/lxc,JohnPeacockMessageSystems/lxc,sapun/lxc,Distrotech/lxc,bmoar/lxc,sapun/lxc,regit/lxc,regit/lxc,fwilson42/lxc,bmoar/lxc,jirislaby/lxc,rldleblanc/lxc,bostjan/lxc,virajs/lxc,thmo/lxc,Distrotech/lxc,rldleblanc/lxc,Ponce/lxc,GreatFruitOmsk/lxc,yubo/lxc,ysbnim/lxc,akshaykarle/lxc,yubo/lxc,cjwatson/lxc,federicobriata/lxc,hallyn/lxc,fwilson42/lxc,lisongmin/lxc,hkjolhede/lxc,sapun/lxc,JohnPeacockMessageSystems/lxc,major/lxc,major/lxc,hfuCN/lxc,ksperis/lxc,lazy404/lxc,rowhit/lxc,fwilson42/lxc,raspberrypython/lxc,thmo/lxc,codebauss/lxc,aeris/lxc,aeris/lxc,federicobriata/lxc,hallyn/lxc,DarknessBeforeDawn/lxc,yubo/lxc,Ponce/lxc,szaszg/lxc,ecarrara/lxc,caglar10ur/lxc,federicobriata/lxc,ss1h2a3tw/lxc,ecarrara/lxc,Pelagicore/lxc,DarknessBeforeDawn/lxc,virajs/lxc,QingweiPeterLan/cs188-lxc,hfuCN/lxc,codebauss/lxc,bostjan/lxc,efiop/lxc,caglar10ur/lxc,jirislaby/lxc,armcc/lxc,terceiro/lxc,hallyn/lxc,bostjan/lxc,GreatFruitOmsk/lxc,tych0/lxc,ksperis/lxc,szaszg/lxc,christiaan/lxc,christiaan/lxc,thmo/lxc,akshaykarle/lxc,lazy404/lxc,ysbnim/lxc