mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
irmap: add --irmap-scan-path option
This option allows users to specify their own irmap paths to scan in the event that they don't have a path in one of the hard coded hints. Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
d3be641acd
commit
4f2e4ab3be
8 changed files with 102 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ struct cg_root_opt {
|
|||
*/
|
||||
#define DEFAULT_GHOST_LIMIT (1 << 20)
|
||||
|
||||
struct irmap_path_opt {
|
||||
struct list_head node;
|
||||
char *path;
|
||||
};
|
||||
|
||||
struct cr_options {
|
||||
int final_state;
|
||||
char *show_dump_file;
|
||||
|
|
@ -87,6 +92,7 @@ struct cr_options {
|
|||
bool aufs; /* auto-deteced, not via cli */
|
||||
bool overlayfs;
|
||||
size_t ghost_limit;
|
||||
struct list_head irmap_scan_paths;
|
||||
};
|
||||
|
||||
extern struct cr_options opts;
|
||||
|
|
|
|||
|
|
@ -9,4 +9,5 @@ int irmap_predump_run(void);
|
|||
int check_open_handle(unsigned int s_dev, unsigned long i_ino,
|
||||
struct _FhEntry *f_handle);
|
||||
int irmap_load_cache(void);
|
||||
int irmap_scan_path_add(char *path);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue