1. 12 Nov, 2013 1 commit
    • fix multithreaded create() · 6c6892b5
      Dwight Engen authored
      We were calling save_config() twice within the create() flow, each
      from a different process. Depending on order of scheduling, sometimes
      the data from the first save_config() (which was just the stuff from
      LXC_DEFAULT_CONFIG) would overwrite the config we wanted (the full
      config), causing a truncated config file which would then cause lxc
      to segfault once it read it back in because no rootfs.path was set.
      
      This fixes it by only calling save_config() once in the create()
      flow. A rejected alternative was to call fsync(fileno(fout)) before
      the fclose in save_config.
      Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
      Acked-by: 's avatarS.Çağlar Onur <caglar@10ur.org>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
  2. 11 Nov, 2013 1 commit
  3. 08 Nov, 2013 4 commits
  4. 06 Nov, 2013 8 commits
  5. 05 Nov, 2013 4 commits
  6. 04 Nov, 2013 5 commits
  7. 01 Nov, 2013 4 commits
  8. 30 Oct, 2013 8 commits
  9. 29 Oct, 2013 4 commits
  10. 28 Oct, 2013 1 commit