mod_rdep(): Write path and name of clone to file
mod_rdep(): Write path and name of clone to file

If we currently create clone-snapshots via lxc-clone only the plain total
number of the containers it serves as a base-container is written to the file
"lxc-snapshots". This commit modifies mod_rdep() so it will store the paths and
names to the containers that are clone-snapshots (similar to the "lxc_rdepends"
file for the clones). **Users which still have containers that have a non-empty
(with a number > 0 as an entry) "lxc-snapshots" file in the old format are not
affected by this change. It will be used until all old clones have been
deleted!** For all others, the "lxc_snapshots" file placed under the original
container now looks like this:

      /var/lib/lxc
      bb
      /var/lib/lxc
      cc
      /opt
      dd

This is an example of a container that provides the base for three
clone-snapshots bb, cc, and dd. Where bb and cc both are placed in the usual
path for privileged containers and dd is placed in a custom path.

- Add additional argument to function that takes in the clone-snapshotted
  lxc_container.
- Have mod_rdep() write the path and name of the clone-snapshotted container the
  file lxc_snapshots of the original container.
- If a clone-snapshot gets deleted the corresponding line in the file
  lxc_snapshot of the original container will be deleted and the file updated
  via mmap() + memmove() + munmap().
- Adapt has_fs_snapshots().
- **If an lxc-snapshot file in the old format is found we'll keep using it.**

Signed-off-by: Christian Brauner <94aca18939fc64aa4df96ea8cb026da8a2e1541a@gmail.com>
Acked-by: Serge E. Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>

ss1h2a3tw/lxc,terceiro/lxc,cjwatson/lxc,bmoar/lxc,bmoar/lxc,cjwatson/lxc,armcc/lxc,ss1h2a3tw/lxc,federicobriata/lxc,szaszg/lxc,aeris/lxc,ksperis/lxc,ksperis/lxc,caglar10ur/lxc,fwilson42/lxc,GreatFruitOmsk/lxc,ysbnim/lxc,thmo/lxc,hallyn/lxc,yubo/lxc,lisongmin/lxc,thmo/lxc,QingweiPeterLan/cs188-lxc,lisongmin/lxc,QingweiPeterLan/cs188-lxc,bostjan/lxc,yubo/lxc,QingweiPeterLan/cs188-lxc,terceiro/lxc,federicobriata/lxc,bostjan/lxc,yubo/lxc,szaszg/lxc,Distrotech/lxc,tych0/lxc,armcc/lxc,aeris/lxc,akshaykarle/lxc,hallyn/lxc,hfuCN/lxc,ioops/lxc,LynxChaus/lxc,rowhit/lxc,ksperis/lxc,ysbnim/lxc,hallyn/lxc,LynxChaus/lxc,Ponce/lxc,GreatFruitOmsk/lxc,federicobriata/lxc,bmoar/lxc,akshaykarle/lxc,fwilson42/lxc,ss1h2a3tw/lxc,hfuCN/lxc,Distrotech/lxc,rowhit/lxc,akshaykarle/lxc,DarknessBeforeDawn/lxc,aeris/lxc,hfuCN/lxc,armcc/lxc,rowhit/lxc,lisongmin/lxc,caglar10ur/lxc,caglar10ur/lxc,thmo/lxc,ysbnim/lxc,szaszg/lxc,ioops/lxc,tych0/lxc,GreatFruitOmsk/lxc,tych0/lxc,cjwatson/lxc,LynxChaus/lxc,bostjan/lxc,ioops/lxc,Ponce/lxc,terceiro/lxc,fwilson42/lxc,Distrotech/lxc,DarknessBeforeDawn/lxc,Ponce/lxc,DarknessBeforeDawn/lxc