1. 24 Oct, 2016 35 commits
  2. 17 Oct, 2016 1 commit
  3. 14 Oct, 2016 1 commit
  4. 13 Oct, 2016 3 commits
    • Tycho Andersen's avatar
      mnt: allow external slaves too · 876c3a3c
      Tycho Andersen authored
      In particular, if the thing in criu's namespace is also a slave of
      something in an external mount namespace (as it is in the tests), we won't
      see the master, just the external slave. However, this also counts as an
      "external master" because it is an external bind mount, just from something
      that was itself a slave.
      
      I'm not sure why the test broke, but it works on ubuntu 16.04 and fails on
      16.10, so I suppose something with the debugfs mount configuration has
      changed. I can look into it more if we're curious, but this patch fixes it
      and should probably go in anyway.
      
      Closes #223
      
      travis-ci: success for mnt: allow external slaves too
      Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
      876c3a3c
    • Andrei Vagin's avatar
      proc_parse: use the static buffer to parse mountinfo · fb4f28f0
      Andrei Vagin authored
      Currently a buffer is allocated on stack and its size is 1024.
      Usually we use our static buffer to read proc files and its
      size is 4096 (page size).
      
      I know that this patch doesn't fix this problem completly,
      it just does it less critical.
      
      https://github.com/opencontainers/runc/issues/1070
      travis-ci: success for proc_parse: use the static buffer to parse mountinfo
      Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
      fb4f28f0
    • Andrei Vagin's avatar
      zdtm: check pre-dump of shared memory · 11adfc34
      Andrei Vagin authored
      [root@fc24 criu]# python test/zdtm.py run -t zdtm/transition/shmem  --pre 3
      === Run 1/1 ================
      
      ======================== Run zdtm/transition/shmem in h ========================
      cc -g -O2 -Wall -Werror -fno-strict-aliasing  -iquote ../lib/arch/x86/include -I../lib   shmem.c ../lib/libzdtmtst.a ../lib/libzdtmtst.a -o shmem
      Start test
      ./shmem --pidfile=shmem.pid --outfile=shmem.out
      Run criu pre-dump
      Run criu pre-dump
      Run criu pre-dump
      Run criu dump
      Run criu restore
      Send the 15 signal to  33
      Wait for zdtm/transition/shmem(33) to die for 0.100000
      Test output: ================================
      15:12:25.444:    33: FAIL: shmem.c:70: checksum mismatch: ea71000 109c9000
      
      Cc: Eugene Batalov <eabatalov89@gmail.com>
      Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
      11adfc34