1. 06 Apr, 2015 4 commits
  2. 03 Apr, 2015 3 commits
    • Andrey Vagin's avatar
      mount: restore cwd in open_mountpoint() · 9083f86a
      Andrey Vagin authored
      setns(fd, CLONE_NEWNS) resets cwd and root, so we need to
      restore them back.
      
      Without this patch stats-dump isn't saved in the work dir:
      -rw-r--r-- 1 root root 32 Apr  2 14:21 /stats-dump
      Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
      Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      9083f86a
    • Oleg Nesterov's avatar
      introduce --skip-mnt cli option · eb518936
      Oleg Nesterov authored
      Which obviously can be used to "ignore" the mounts we do not want or
      need to dump. The user should know what he does.
      
      Note: this patch changes parse_mountinfo() to check should_skip_mount().
      This is because imo we want to filter out the unwanted mounts asap, af
      if they do not exist. This increases the chances the dumping will fail
      if something else depends on this mount. Say, another mountpoint or an
      opened file.
      
      Perhaps it makes sense to teach should_skip_mount() to use fnmatch()
      and/or look at the optional "(fs|mnt)=" prefix to skip by fsname too.
      
      To me it would be better to force the user of this option to understand
      what it does. Say, if "dump" fails because the child mount can't find
      the skipped parent, he should add another --skip-mnt option or do not
      dump. Otherwise, if we do this automagically the user can probably be
      surpised, he might even miss the fact that we skip more than he asked.
      Signed-off-by: 's avatarOleg Nesterov <oleg@redhat.com>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      eb518936
    • Oleg Nesterov's avatar
      pass "bool for_dump" argument down to collect_mntinfo() and parse_mountinfo() · 9fee3dc8
      Oleg Nesterov authored
      Preparation.
      
      1. Add the new "bool for_dump" arg to collect/parse_mntinfo().
      
      2. Introduce "struct collect_mntns_arg" to pass the additional
         "bool for_dump" field to collect_mntinfo() and change it to
         pass this boolean to collect_mntinfo()->parse_mountinfo() path.
      
      3. Change other callers of collect_mntinfo() to pass "false".
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      9fee3dc8
  3. 02 Apr, 2015 7 commits
  4. 01 Apr, 2015 3 commits
  5. 31 Mar, 2015 4 commits
  6. 30 Mar, 2015 6 commits
  7. 27 Mar, 2015 8 commits
  8. 26 Mar, 2015 4 commits
  9. 25 Mar, 2015 1 commit