1. 25 Mar, 2012 4 commits
    • Pavel Emelyanov's avatar
      files: Split fdinfo in two parts · 500468d4
      Pavel Emelyanov authored
      Make fdinfo_entry carry only the minimal info describing a file
      descriptor -- the fd value itself, the fd type (regular file, exe
      link, cwd, filemap and it will be pipes, sockets, inotifies, etc.)
      and the describing file ID.
      
      The mentioned ID will identify the type-d object, e.g. for regfiles
      this ID is already generated with file-ids.c code.
      
      The other part of this structure describes a regfile (i.e. a file
      opened with open syscall). I put this new entry at the end of the
      fdinfo_entry just to make the patching simpler. Soon this entry
      will be dumped into its own file.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      500468d4
    • Pavel Emelyanov's avatar
      fdinfo: Sanitize types in fdinfo_entry · 159d3bdf
      Pavel Emelyanov authored
      The namelen is u16, to cover the PATH_MAX u8 is not enough.
      The pos is u64, since file offset is that long indeed.
      The id is u32 as per previous patch.
      
      Fix printf-s respectively.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      159d3bdf
    • Pavel Emelyanov's avatar
      files: Sanitize fd logging · af57e42e
      Pavel Emelyanov authored
      Don't print namelen (it's useless) and type (the code being patched
      works with FDINFO_REG only).
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      af57e42e
    • Pavel Emelyanov's avatar
      file-ids: Enlighten ID generation and storage · c92c9e23
      Pavel Emelyanov authored
      The unique id is 32 bit and consists only of the subid value. This
      is _really_ enough. The genid part is just a hint for the tree-search
      algirythm to avoid unneeded sys_kcmp calls.
      
      Plus, generate IDs for special files. This will make it easier to
      move the regfiles into into separate files (see the respective patch
      for details).
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      c92c9e23
  2. 24 Mar, 2012 11 commits
  3. 23 Mar, 2012 4 commits
  4. 22 Mar, 2012 11 commits
  5. 21 Mar, 2012 10 commits