| 1 | /* mondo-restore-EXT.h */
|
|---|
| 2 |
|
|---|
| 3 | #ifdef __FreeBSD__
|
|---|
| 4 | #define raid_device_record vinum_volume
|
|---|
| 5 | #endif
|
|---|
| 6 |
|
|---|
| 7 | extern bool g_sigpipe_caught;
|
|---|
| 8 | extern bool g_ISO_restore_mode; /* are we in Iso Mode? */
|
|---|
| 9 | extern bool g_I_have_just_nuked;
|
|---|
| 10 | extern char *g_tmpfs_mountpt;
|
|---|
| 11 | extern char *g_isodir_device;
|
|---|
| 12 | extern char *g_isodir_format;
|
|---|
| 13 |
|
|---|
| 14 | extern char *g_biggielist_txt;
|
|---|
| 15 | extern char *g_filelist_full;
|
|---|
| 16 | extern char *g_biggielist_pot;
|
|---|
| 17 | extern char *g_filelist_potential;
|
|---|
| 18 | extern char *g_filelist_imagedevs;
|
|---|
| 19 | extern char *g_filelist_restthese;
|
|---|
| 20 | extern char *g_biggielist_restthese;
|
|---|
| 21 | extern char *g_imagedevs_restthese;
|
|---|
| 22 | extern char *g_mondo_cfg_file;
|
|---|
| 23 | extern char *g_mountlist_fname;
|
|---|
| 24 | extern char *g_mondo_home;
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | extern void ask_about_these_imagedevs(char *, char *);
|
|---|
| 28 | extern int catchall_mode(struct mountlist_itself *,
|
|---|
| 29 | struct raidlist_itself *);
|
|---|
| 30 | extern void sort_mountlist_by_device(struct mountlist_itself *);
|
|---|
| 31 | extern void find_pathname_of_executable_preferably_in_RESTORING(char *,
|
|---|
| 32 | char *,
|
|---|
| 33 | char *);
|
|---|
| 34 | extern int interactive_mode(struct mountlist_itself *,
|
|---|
| 35 | struct raidlist_itself *);
|
|---|
| 36 | extern int nuke_mode(struct mountlist_itself *,
|
|---|
| 37 | struct raidlist_itself *);
|
|---|
| 38 | extern int compare_mode(struct mountlist_itself *,
|
|---|
| 39 | struct raidlist_itself *);
|
|---|
| 40 | extern int iso_mode(
|
|---|
| 41 | struct mountlist_itself *mountlist,
|
|---|
| 42 | struct raidlist_itself *raidlist, bool nuke_me_please);
|
|---|
| 43 | extern int load_mountlist(struct mountlist_itself *, char *);
|
|---|
| 44 | extern int load_raidtab_into_raidlist(struct raidlist_itself *, char *);
|
|---|
| 45 | extern int restore_mode(struct mountlist_itself *,
|
|---|
| 46 | struct raidlist_itself *);
|
|---|
| 47 | extern int save_raidlist_to_raidtab(struct raidlist_itself *, char *);
|
|---|
| 48 | extern void process_raidtab_line(FILE *, struct raid_device_record *,
|
|---|
| 49 | char *, char *);
|
|---|
| 50 | extern int restore_a_biggiefile_from_CD(long,
|
|---|
| 51 | struct s_node *);
|
|---|
| 52 | extern int restore_a_biggiefile_from_stream(char *,
|
|---|
| 53 | long, char *, long long,
|
|---|
| 54 | struct s_node *);
|
|---|
| 55 | extern int restore_a_tarball_from_CD(char *, int, struct s_node *);
|
|---|
| 56 | extern int restore_a_tarball_from_stream(char *, int,
|
|---|
| 57 | struct s_node *, long long);
|
|---|
| 58 | extern int restore_all_biggiefiles_from_CD(
|
|---|
| 59 | struct s_node *);
|
|---|
| 60 | extern int restore_all_biggiefiles_from_stream(
|
|---|
| 61 | struct s_node *);
|
|---|
| 62 | extern int restore_all_tarballs_from_CD(
|
|---|
| 63 | struct s_node *);
|
|---|
| 64 | extern int restore_all_tarballs_from_stream(
|
|---|
| 65 | struct s_node *);
|
|---|
| 66 | extern int restore_everything(struct s_node *);
|
|---|
| 67 | extern int restore_live_from_monitas_server(char *,
|
|---|
| 68 | char *, char *);
|
|---|
| 69 | extern int restore_to_live_filesystem();
|
|---|
| 70 | extern void swap_mountlist_entries(struct mountlist_itself *, int, int);
|
|---|
| 71 | extern void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool);
|
|---|
| 72 | extern void sort_mountlist_by_device(struct mountlist_itself *);
|
|---|
| 73 | extern void twenty_seconds_til_yikes(void);
|
|---|
| 74 | extern int run_raw_mbr(bool offer_to_hack_scripts, char *bd);
|
|---|
| 75 | extern int save_mountlist_to_disk(struct mountlist_itself *, char *);
|
|---|
| 76 | extern void save_raidrec_to_file(struct raid_device_record *raidrec,
|
|---|
| 77 | FILE * fout);
|
|---|
| 78 | extern int save_raidlist_to_raidtab(struct raidlist_itself *raidlist,
|
|---|
| 79 | char *fname);
|
|---|
| 80 | extern int what_number_cd_is_this();
|
|---|
| 81 |
|
|---|
| 82 | #ifdef __FreeBSD__
|
|---|
| 83 | #undef raid_device_record
|
|---|
| 84 | #endif
|
|---|