1. 30 Jan, 2015 23 commits
  2. 29 Jan, 2015 2 commits
  3. 21 Jan, 2015 1 commit
  4. 19 Dec, 2014 4 commits
  5. 05 Dec, 2014 1 commit
  6. 04 Dec, 2014 4 commits
  7. 03 Dec, 2014 2 commits
  8. 02 Dec, 2014 3 commits
    • Fix clone issues · 3858c11b
      KATOH Yasufumi authored
      This commit fixes two issues at the time of clone:
      * unnecessary directory is created when clone between overlayfs/aufs
      * clone failed when the end of rootfs path is not "/rootfs"
      Signed-off-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp>
      Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
    • overlayfs: overlayfs.v22 or higher needs workdir option · b73d3bbc
      KATOH Yasufumi authored
      This patch creates workdir as "olwork", and retry mount with workdir
      option when mount is failed.
      It is used to prepare files before atomically swithing with
      destination, and needs to be on the same filesystem as upperdir. It's
      OK for it to be empty.
      Signed-off-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • overlay and aufs clone_paths: be more robust · 1b49e7d0
      Serge Hallyn authored
      Currently when we clone a container, bdev_copy passes NULL as dst argument
      of bdev_init, then sees bdev->dest (as a result) is NULL, and sets
      bdev->dest to $lxcpath/$name/rootfs.  so $ops->clone_paths() can
      assume that "/rootfs" is at the end of the path.  The overlayfs and
      aufs clonepaths do assume that and index to endofstring-6 and append
      delta0.  Let's be more robust by actually finding the last / in
      the path.
      
      Then, instead of always setting oldbdev->dest to $lxcpath/$name/rootfs,
      set it to oldbdev->src.  Else dir_clonepaths fails when mounting src
      onto dest bc dest does not exist.  We could also fix that by creating
      bdev->dest if needed, but that addes an empty directory to the old
      container.
      
      This fixes 'lxc-clone -o x1 -n x2' if x1 has lxc.rootfs = /var/lib/lxc/x1/x
      and makes the overlayfs and aufs paths less fragile should something else
      change.
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>