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:
Tycho Andersen 2015-09-16 07:27:00 +03:00 committed by Pavel Emelyanov
parent d3be641acd
commit 4f2e4ab3be
8 changed files with 102 additions and 0 deletions

View file

@ -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;

View file

@ -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