1. 13 Apr, 2012 3 commits
    • Pavel Emelyanov's avatar
      files: Support dumping/restoring of completely unlinked files · a1ccfb92
      Pavel Emelyanov authored
      Completely unlinked file is the one with n_link count being zero.
      Such files only allow to read their contents and carry with us.
      
      In order to dump this thing I introduce the "path remap" technology.
      For reg file a remapping entry is dumped which describes, that at
      restore stage before opening a regfile->path this path should be
      linked to some other name and then (after open) unlinked.
      
      For completely unlinked files the remap path would be a path to
      a "ghost" file, i.e. a file which is created only at the time of
      restore and which is removed completely at the end of it.
      
      Partially unlinked files (i.e. those having n_link != 0, but a
      path by which we see them in someone's fd is not accessible) should
      be handled in another way.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      a1ccfb92
    • Pavel Emelyanov's avatar
      util: Add fn for copying file from one fd to another · 14451ed3
      Pavel Emelyanov authored
      Will be required to dump completely unlinked files.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      14451ed3
    • Pavel Emelyanov's avatar
      sock: Add udp-lite sockets support · 09d95980
      Pavel Emelyanov authored
      This is trivial. Just copy-n-paste pieces from the udp dumping
      and restoring code. The zdtm test is also a compy of the _udp
      test with respecitve changes.
      
      Reuired for httpd, this one uses udplite sockets.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      09d95980
  2. 12 Apr, 2012 17 commits
  3. 11 Apr, 2012 10 commits
  4. 10 Apr, 2012 10 commits