mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
sockets: Remove statfs and 2nd stat from dump process
The statfs is not required, we now check for fd being a socket with S_IFSOCK. The 2nd stat is just not needed, the caller provides stat info. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -7,6 +7,16 @@
|
||||
#include "list.h"
|
||||
#include "image.h"
|
||||
|
||||
struct fd_parms {
|
||||
unsigned long fd_name;
|
||||
unsigned long pos;
|
||||
unsigned int flags;
|
||||
unsigned int type;
|
||||
struct stat stat;
|
||||
u32 id;
|
||||
pid_t pid;
|
||||
};
|
||||
|
||||
enum fdinfo_states {
|
||||
FD_STATE_PREP, /* Create unix sockets */
|
||||
FD_STATE_CREATE, /* Create and send fd */
|
||||
|
Reference in New Issue
Block a user