mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
sysctl: Make CTL_READ nonfatal
Some entries might be missing and that should not cause CRIU to stop dumping when we know the entries are safe to unuse. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
a1b2b10b93
commit
121e0b906f
@ -5,6 +5,7 @@ struct sysctl_req {
|
||||
char *name;
|
||||
void *arg;
|
||||
int type;
|
||||
int flags;
|
||||
};
|
||||
|
||||
extern int sysctl_op(struct sysctl_req *req, size_t nr_req, int op);
|
||||
@ -30,4 +31,9 @@ enum {
|
||||
#define CTL_LEN(t) ((t) >> CTL_SHIFT)
|
||||
#define CTL_TYPE(t) ((t) & ((1 << CTL_SHIFT) - 1))
|
||||
|
||||
/*
|
||||
* Some entries might be missing mark them as optional.
|
||||
*/
|
||||
#define CTL_FLAGS_OPTIONAL 1
|
||||
|
||||
#endif /* __CR_SYSCTL_H__ */
|
||||
|
1
net.c
1
net.c
@ -104,6 +104,7 @@ static int ipv4_conf_op(char *tgt, int *conf, int op, NetnsEntry **netns)
|
||||
req[ri].name = path[i];
|
||||
req[ri].arg = &conf[i];
|
||||
req[ri].type = CTL_32;
|
||||
req[ri].flags = 0;
|
||||
ri++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user