1. 06 Feb, 2013 2 commits
    • Cyrill Gorcunov's avatar
      zdtm: Unlink link_remap files once dump complete · 96dd1d22
      Cyrill Gorcunov authored
      In case if only "dump" procedure is invoked we left service
      "link_remap.%d" file(s) on disk. This prevents next "dump"
      procedure of same test to fail because we hit the situation
      where same named "link_remap.%d" already exist.
      
      So, if test is passed with "-d" option we remove the link remap
      file at the end.
      
      Also with this patch we start passing --link-remap option
      only for tests which have "unlink_" prefix in name. This applies
      some limitation on how test could be named, thus maybe we need
      more flexible solution here.
      
      https://bugzilla.openvz.org/show_bug.cgi?id=2489Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      96dd1d22
    • Andrey Vagin's avatar
      dump: fix parsing of /proc/locks · 08837c63
      Andrey Vagin authored
      is_blocked should be determined for each line independently.
      
      For example:
      1: POSIX  ADVISORY  WRITE 1974 fd:01:392012 0 EOF
      2: POSIX  ADVISORY  WRITE 1974 fd:01:392011 0 EOF
      3: POSIX  ADVISORY  WRITE 1698 fd:01:1196619 0 EOF
      4: POSIX  ADVISORY  WRITE 1698 fd:01:1196620 0 EOF
      5: POSIX  ADVISORY  WRITE 1698 fd:01:1196621 0 EOF
      6: POSIX  ADVISORY  WRITE 1689 fd:01:1429204 0 EOF
      7: POSIX  ADVISORY  WRITE 1690 fd:01:1429202 0 EOF
      8: POSIX  ADVISORY  WRITE 1690 fd:01:1429201 0 0
      8: -> POSIX  ADVISORY  WRITE 1701 fd:01:1429201 0 0
      9: POSIX  ADVISORY  WRITE 1688 fd:01:1429206 0 EOF
      10: FLOCK  ADVISORY  WRITE 1694 fd:01:1196520 0 EOF
      11: POSIX  ADVISORY  WRITE 862 00:0f:12421 0 EOF
      12: POSIX  ADVISORY  WRITE 846 00:0f:12377 0 EOF
      13: FLOCK  ADVISORY  WRITE 821 00:0f:11378 0 EOF
      14: POSIX  ADVISORY  WRITE 459 00:0f:9826 0 EOF
      15: POSIX  ADVISORY  WRITE 511 00:0f:10413 0 EOF
      
      Without this patch crtools returns the error:
      (00.000613) Error (proc_parse.c:1089): Invalid file lock info!
      
      It's because is_blocked is set in "true" for the line 8 and
      it becomes "true" for the line 9.
      Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      08837c63
  2. 05 Feb, 2013 2 commits
  3. 29 Jan, 2013 3 commits
  4. 25 Jan, 2013 4 commits
  5. 24 Jan, 2013 5 commits
  6. 23 Jan, 2013 5 commits
  7. 22 Jan, 2013 7 commits
  8. 21 Jan, 2013 7 commits
  9. 18 Jan, 2013 5 commits