• 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
files.c 9.62 KB