source: MondoRescue/branches/2.2.10/mondo/src/mondorestore/mondo-restore-EXT.h@ 2704

Last change on this file since 2704 was 2623, checked in by Bruno Cornec, 14 years ago

r3783@localhost: bruno | 2010-04-11 11:57:27 +0200

  • Use MINDI_CACHE for temp file communication between archive/restore
  • Remove some now useless globals in mondo
  • Remove function get_cfg_file_from_archive_or_bust and get_cfg_file_from_archive
  • Adds function get_cfg_file_from_initrd (Not finished)
  • Recovery doesn't work in that version atm (checkpoint version)
  • Property svn:keywords set to Id
File size: 2.9 KB
RevLine 
[1]1/* mondo-restore-EXT.h */
2
3#ifdef __FreeBSD__
4#define raid_device_record vinum_volume
5#endif
6
[128]7extern bool g_ISO_restore_mode; /* are we in Iso Mode? */
[1]8extern bool g_I_have_just_nuked;
9extern char *g_isodir_device;
10extern char *g_isodir_format;
11
[128]12extern char *g_filelist_full;
13extern char *g_biggielist_pot;
14extern char *g_filelist_potential;
15extern char *g_filelist_imagedevs;
16extern char *g_filelist_restthese;
17extern char *g_biggielist_restthese;
18extern char *g_imagedevs_restthese;
19extern char *g_mondo_home;
[1]20
21
[128]22extern void ask_about_these_imagedevs(char *, char *);
[1647]23extern int catchall_mode(struct mountlist_itself *,
[128]24 struct raidlist_itself *);
25extern void sort_mountlist_by_device(struct mountlist_itself *);
26extern void find_pathname_of_executable_preferably_in_RESTORING(char *,
27 char *,
28 char *);
[1647]29extern int interactive_mode(struct mountlist_itself *,
[128]30 struct raidlist_itself *);
[1647]31extern int nuke_mode(struct mountlist_itself *,
[128]32 struct raidlist_itself *);
[1647]33extern int compare_mode(struct mountlist_itself *,
[128]34 struct raidlist_itself *);
[1647]35extern int iso_mode(
[128]36 struct mountlist_itself *mountlist,
37 struct raidlist_itself *raidlist, bool nuke_me_please);
38extern int load_mountlist(struct mountlist_itself *, char *);
39extern int load_raidtab_into_raidlist(struct raidlist_itself *, char *);
[1647]40extern int restore_mode(struct mountlist_itself *,
[128]41 struct raidlist_itself *);
42extern int save_raidlist_to_raidtab(struct raidlist_itself *, char *);
43extern void process_raidtab_line(FILE *, struct raid_device_record *,
44 char *, char *);
[1647]45extern int restore_a_biggiefile_from_CD(long,
[128]46 struct s_node *);
[1647]47extern int restore_a_biggiefile_from_stream(char *,
[128]48 long, char *, long long,
49 struct s_node *);
50extern int restore_a_tarball_from_CD(char *, int, struct s_node *);
[1647]51extern int restore_a_tarball_from_stream(char *, int,
[128]52 struct s_node *, long long);
[1647]53extern int restore_all_biggiefiles_from_CD(
[128]54 struct s_node *);
[1647]55extern int restore_all_biggiefiles_from_stream(
[128]56 struct s_node *);
[1647]57extern int restore_all_tarballs_from_CD(
[128]58 struct s_node *);
[1647]59extern int restore_all_tarballs_from_stream(
[128]60 struct s_node *);
[1647]61extern int restore_everything(struct s_node *);
62extern int restore_to_live_filesystem();
[128]63extern void swap_mountlist_entries(struct mountlist_itself *, int, int);
64extern void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool);
65extern void sort_mountlist_by_device(struct mountlist_itself *);
[1]66extern void twenty_seconds_til_yikes(void);
[128]67extern int run_raw_mbr(bool offer_to_hack_scripts, char *bd);
68extern int save_mountlist_to_disk(struct mountlist_itself *, char *);
69extern void save_raidrec_to_file(struct raid_device_record *raidrec,
70 FILE * fout);
71extern int save_raidlist_to_raidtab(struct raidlist_itself *raidlist,
72 char *fname);
[1647]73extern int what_number_cd_is_this();
[1]74
75#ifdef __FreeBSD__
76#undef raid_device_record
77#endif
Note: See TracBrowser for help on using the repository browser.