2013-11-06 17:21:11 +04:00
|
|
|
#ifndef __CR_OPTIONS_H__
|
|
|
|
#define __CR_OPTIONS_H__
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "list.h"
|
|
|
|
|
|
|
|
struct script {
|
|
|
|
struct list_head node;
|
|
|
|
char *path;
|
2014-01-28 22:36:53 +04:00
|
|
|
int arg;
|
2013-11-06 17:21:11 +04:00
|
|
|
};
|
|
|
|
|
2014-01-28 22:36:53 +04:00
|
|
|
#define SCRIPT_RPC_NOTIFY (char *)0x1
|
|
|
|
|
2014-01-31 13:05:44 +04:00
|
|
|
/*
|
|
|
|
* CPU capability options.
|
|
|
|
*/
|
|
|
|
#define CPU_CAP_FPU (1u)
|
|
|
|
#define CPU_CAP_ALL (-1u)
|
|
|
|
|
2014-08-15 17:02:21 -05:00
|
|
|
struct cg_root_opt {
|
|
|
|
struct list_head node;
|
|
|
|
char *controller;
|
|
|
|
char *newroot;
|
|
|
|
};
|
|
|
|
|
2013-11-06 17:21:11 +04:00
|
|
|
struct cr_options {
|
|
|
|
int final_state;
|
|
|
|
char *show_dump_file;
|
2013-12-27 15:58:27 +04:00
|
|
|
char *show_fmt;
|
2013-11-06 17:21:11 +04:00
|
|
|
bool check_ms_kernel;
|
|
|
|
bool show_pages_content;
|
|
|
|
bool restore_detach;
|
|
|
|
bool ext_unix_sk;
|
|
|
|
bool shell_job;
|
|
|
|
bool handle_file_locks;
|
|
|
|
bool tcp_established_ok;
|
|
|
|
bool evasive_devices;
|
|
|
|
bool link_remap_ok;
|
|
|
|
unsigned int rst_namespaces_flags;
|
|
|
|
bool log_file_per_pid;
|
2014-06-30 20:30:44 +04:00
|
|
|
bool swrk_restore;
|
2013-11-06 17:21:11 +04:00
|
|
|
char *output;
|
|
|
|
char *root;
|
|
|
|
char *pidfile;
|
|
|
|
struct list_head veth_pairs;
|
|
|
|
struct list_head scripts;
|
2014-06-09 17:26:17 +04:00
|
|
|
struct list_head ext_mounts;
|
2013-12-19 21:35:00 +04:00
|
|
|
char *libdir;
|
2013-11-06 17:21:11 +04:00
|
|
|
bool use_page_server;
|
|
|
|
unsigned short ps_port;
|
|
|
|
char *addr;
|
|
|
|
bool track_mem;
|
|
|
|
char *img_parent;
|
2013-12-17 19:27:11 +04:00
|
|
|
bool auto_dedup;
|
2014-01-31 13:05:44 +04:00
|
|
|
unsigned int cpu_cap;
|
2014-03-06 14:56:03 +04:00
|
|
|
bool force_irmap;
|
2014-03-22 20:14:00 +04:00
|
|
|
char **exec_cmd;
|
2014-08-06 22:23:00 +04:00
|
|
|
bool manage_cgroups;
|
2014-08-15 17:02:21 -05:00
|
|
|
char *new_global_cg_root;
|
|
|
|
struct list_head new_cgroup_roots;
|
2013-11-06 17:21:11 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct cr_options opts;
|
|
|
|
|
|
|
|
extern void init_opts(void);
|
|
|
|
|
2013-11-15 14:04:45 +04:00
|
|
|
#endif /* __CR_OPTIONS_H__ */
|