Changeset 1647 in MondoRescue for branches/2.2.5/mondo/src/mondorestore
- Timestamp:
- Sep 24, 2007, 3:24:45 AM (18 years ago)
- Location:
- branches/2.2.5/mondo/src/mondorestore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/mondorestore/mondo-restore-EXT.h
r1646 r1647 26 26 27 27 extern void ask_about_these_imagedevs(char *, char *); 28 extern int catchall_mode(struct s_bkpinfo *, structmountlist_itself *,28 extern int catchall_mode(struct mountlist_itself *, 29 29 struct raidlist_itself *); 30 30 extern void sort_mountlist_by_device(struct mountlist_itself *); … … 32 32 char *, 33 33 char *); 34 extern int interactive_mode(struct s_bkpinfo *, structmountlist_itself *,34 extern int interactive_mode(struct mountlist_itself *, 35 35 struct raidlist_itself *); 36 extern int nuke_mode(struct s_bkpinfo *, structmountlist_itself *,36 extern int nuke_mode(struct mountlist_itself *, 37 37 struct raidlist_itself *); 38 extern int compare_mode(struct s_bkpinfo *, structmountlist_itself *,38 extern int compare_mode(struct mountlist_itself *, 39 39 struct raidlist_itself *); 40 extern int iso_mode( struct s_bkpinfo *bkpinfo,40 extern int iso_mode( 41 41 struct mountlist_itself *mountlist, 42 42 struct raidlist_itself *raidlist, bool nuke_me_please); 43 43 extern int load_mountlist(struct mountlist_itself *, char *); 44 44 extern int load_raidtab_into_raidlist(struct raidlist_itself *, char *); 45 extern int restore_mode(struct s_bkpinfo *, structmountlist_itself *,45 extern int restore_mode(struct mountlist_itself *, 46 46 struct raidlist_itself *); 47 47 extern int save_raidlist_to_raidtab(struct raidlist_itself *, char *); 48 48 extern void process_raidtab_line(FILE *, struct raid_device_record *, 49 49 char *, char *); 50 extern int restore_a_biggiefile_from_CD( struct s_bkpinfo *,long,50 extern int restore_a_biggiefile_from_CD(long, 51 51 struct s_node *); 52 extern int restore_a_biggiefile_from_stream( struct s_bkpinfo *,char *,52 extern int restore_a_biggiefile_from_stream(char *, 53 53 long, char *, long long, 54 54 struct s_node *); 55 55 extern int restore_a_tarball_from_CD(char *, int, struct s_node *); 56 extern int restore_a_tarball_from_stream( struct s_bkpinfo *,char *, int,56 extern int restore_a_tarball_from_stream(char *, int, 57 57 struct s_node *, long long); 58 extern int restore_all_biggiefiles_from_CD( struct s_bkpinfo *,58 extern int restore_all_biggiefiles_from_CD( 59 59 struct s_node *); 60 extern int restore_all_biggiefiles_from_stream( struct s_bkpinfo *,60 extern int restore_all_biggiefiles_from_stream( 61 61 struct s_node *); 62 extern int restore_all_tarballs_from_CD( struct s_bkpinfo *,62 extern int restore_all_tarballs_from_CD( 63 63 struct s_node *); 64 extern int restore_all_tarballs_from_stream( struct s_bkpinfo *,64 extern int restore_all_tarballs_from_stream( 65 65 struct s_node *); 66 extern int restore_everything(struct s_ bkpinfo *, struct s_node *);67 extern int restore_live_from_monitas_server( struct s_bkpinfo *,char *,66 extern int restore_everything(struct s_node *); 67 extern int restore_live_from_monitas_server(char *, 68 68 char *, char *); 69 extern int restore_to_live_filesystem( struct s_bkpinfo *);69 extern int restore_to_live_filesystem(); 70 70 extern void swap_mountlist_entries(struct mountlist_itself *, int, int); 71 71 extern void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool); … … 78 78 extern int save_raidlist_to_raidtab(struct raidlist_itself *raidlist, 79 79 char *fname); 80 extern int what_number_cd_is_this( struct s_bkpinfo *);80 extern int what_number_cd_is_this(); 81 81 82 82 #ifdef __FreeBSD__ -
branches/2.2.5/mondo/src/mondorestore/mondo-restore.h
r128 r1647 8 8 9 9 void ask_about_these_imagedevs(char *, char *); 10 int catchall_mode(struct s_bkpinfo *, structmountlist_itself *,10 int catchall_mode(struct mountlist_itself *, 11 11 struct raidlist_itself *); 12 12 void find_pathname_of_executable_preferably_in_RESTORING(char *, char *, 13 13 char *); 14 int interactive_mode(struct s_bkpinfo *, structmountlist_itself *,14 int interactive_mode(struct mountlist_itself *, 15 15 struct raidlist_itself *); 16 int nuke_mode(struct s_bkpinfo *, structmountlist_itself *,16 int nuke_mode(struct mountlist_itself *, 17 17 struct raidlist_itself *); 18 int compare_mode(struct s_bkpinfo *, structmountlist_itself *,18 int compare_mode(struct mountlist_itself *, 19 19 struct raidlist_itself *); 20 int iso_mode(struct s_bkpinfo *bkpinfo, structmountlist_itself *mountlist,20 int iso_mode(struct mountlist_itself *mountlist, 21 21 struct raidlist_itself *raidlist, bool nuke_me_please); 22 int restore_mode(struct s_bkpinfo *, structmountlist_itself *,22 int restore_mode(struct mountlist_itself *, 23 23 struct raidlist_itself *); 24 int restore_a_biggiefile_from_CD( struct s_bkpinfo *,long, struct s_node *,24 int restore_a_biggiefile_from_CD(long, struct s_node *, 25 25 char *); 26 int restore_a_biggiefile_from_stream( struct s_bkpinfo *,char *, long,26 int restore_a_biggiefile_from_stream(char *, long, 27 27 char *, long long, struct s_node *, 28 28 int, char *); 29 29 int restore_a_tarball_from_CD(char *, long, struct s_node *); 30 int restore_a_tarball_from_stream( struct s_bkpinfo *,char *, long,30 int restore_a_tarball_from_stream(char *, long, 31 31 struct s_node *, long long, char *, 32 32 char *); 33 int restore_all_biggiefiles_from_CD(struct s_ bkpinfo *, struct s_node *);34 int restore_all_biggiefiles_from_stream( struct s_bkpinfo *,33 int restore_all_biggiefiles_from_CD(struct s_node *); 34 int restore_all_biggiefiles_from_stream( 35 35 struct s_node *); 36 int restore_all_tarballs_from_CD(struct s_ bkpinfo *, struct s_node *);37 int restore_all_tarballs_from_stream(struct s_ bkpinfo *, struct s_node *);38 int restore_everything(struct s_ bkpinfo *, struct s_node *);39 int restore_live_from_monitas_server( struct s_bkpinfo *,char *, char *,36 int restore_all_tarballs_from_CD(struct s_node *); 37 int restore_all_tarballs_from_stream(struct s_node *); 38 int restore_everything(struct s_node *); 39 int restore_live_from_monitas_server(char *, char *, 40 40 char *); 41 int restore_to_live_filesystem( struct s_bkpinfo *);41 int restore_to_live_filesystem(); 42 42 void swap_mountlist_entries(struct mountlist_itself *, int, int); 43 43 void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool); 44 44 void sort_mountlist_by_device(struct mountlist_itself *); 45 int what_number_cd_is_this( struct s_bkpinfo *);45 int what_number_cd_is_this(); -
branches/2.2.5/mondo/src/mondorestore/mondo-rstr-compare-EXT.h
r128 r1647 2 2 3 3 4 extern int compare_to_CD(struct s_bkpinfo *); 5 extern int compare_to_cdstream(struct s_bkpinfo *); 6 extern int compare_to_tape(struct s_bkpinfo *); 7 extern int compare_mode(struct s_bkpinfo *bkpinfo, 8 struct mountlist_itself *mountlist, 4 extern int compare_to_CD(); 5 extern int compare_to_cdstream(); 6 extern int compare_to_tape(); 7 extern int compare_mode(struct mountlist_itself *mountlist, 9 8 struct raidlist_itself *raidlist); -
branches/2.2.5/mondo/src/mondorestore/mondo-rstr-compare.h
r128 r1647 4 4 5 5 6 int compare_to_CD( struct s_bkpinfo *);7 int compare_to_cdstream( struct s_bkpinfo *);8 int compare_to_tape( struct s_bkpinfo *);6 int compare_to_CD(); 7 int compare_to_cdstream(); 8 int compare_to_tape(); 9 9 10 10 int 11 compare_mode(struct s_bkpinfo *bkpinfo, 12 struct mountlist_itself *mountlist, 11 compare_mode(struct mountlist_itself *mountlist, 13 12 struct raidlist_itself *raidlist); -
branches/2.2.5/mondo/src/mondorestore/mondo-rstr-newt.h
r1295 r1647 56 56 extern struct s_node *find_node_in_filelist(struct s_node *, 57 57 char *filename); 58 extern int what_number_cd_is_this( struct s_bkpinfo *);58 extern int what_number_cd_is_this(); 59 59 //extern void fatal_error (char *); 60 60 extern void sort_mountlist_by_device(struct mountlist_itself *); -
branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools-EXT.h
r1579 r1647 4 4 5 5 extern void free_MR_global_filenames(); 6 extern void get_cfg_file_from_archive_or_bust( struct s_bkpinfo *);6 extern void get_cfg_file_from_archive_or_bust(); 7 7 extern bool is_file_in_list(char *, char *, char *); /* needle, haystack, preamble */ 8 extern int iso_fiddly_bits( struct s_bkpinfo *bkpinfo,bool nuke_me_please);8 extern int iso_fiddly_bits(bool nuke_me_please); 9 9 extern void kill_petris(void); 10 extern int mount_cdrom( struct s_bkpinfo *bkpinfo);10 extern int mount_cdrom(); 11 11 extern int mount_all_devices(struct mountlist_itself *, bool); 12 12 extern void protect_against_braindead_sysadmins(void); 13 13 extern int read_cfg_file_into_bkpinfo(char *cfg_file, 14 struct s_bkpinfo *bkpinfo);15 struct s_node *process_filelist_and_biggielist( struct s_bkpinfo *);14 ); 15 struct s_node *process_filelist_and_biggielist(); 16 16 extern int backup_crucial_file(char *path_root, char *filename); 17 17 extern int run_boot_loader(bool); … … 24 24 extern void streamline_changes_file(char *, char *); 25 25 extern void set_signals(int on); 26 extern void setup_MR_global_filenames( struct s_bkpinfo *bkpinfo);26 extern void setup_MR_global_filenames(); 27 27 //extern void setup_signals(int); 28 28 extern void terminate_daemon(int); 29 29 extern void termination_in_progress(int); 30 30 extern int unmount_all_devices(struct mountlist_itself *); 31 extern int get_cfg_file_from_archive( struct s_bkpinfo *bkpinfo);31 extern int get_cfg_file_from_archive(); 32 32 extern int 33 extract_config_file_from_ramdisk( struct s_bkpinfo *bkpinfo,33 extract_config_file_from_ramdisk( 34 34 char *ramdisk_fname, 35 35 char *output_cfg_file, -
branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools.h
r1579 r1647 4 4 5 5 void free_global_filenames(); 6 void get_cfg_file_from_archive_or_bust( struct s_bkpinfo *);6 void get_cfg_file_from_archive_or_bust(); 7 7 bool is_file_in_list(char *, char *, char *); /* needle, haystack, preamble */ 8 int iso_fiddly_bits( struct s_bkpinfo *bkpinfo,bool nuke_me_please);8 int iso_fiddly_bits(bool nuke_me_please); 9 9 void kill_petris(void); 10 int mount_cdrom( struct s_bkpinfo *bkpinfo);10 int mount_cdrom(); 11 11 int mount_device(char *, char *, char *, bool); 12 12 int mount_all_devices(struct mountlist_itself *, bool); 13 13 void protect_against_braindead_sysadmins(void); 14 int read_cfg_file_into_bkpinfo(char *cfg_file, struct s_bkpinfo *bkpinfo);15 struct s_node *process_filelist_and_biggielist( struct s_bkpinfo *);14 int read_cfg_file_into_bkpinfo(char *cfg_file, ); 15 struct s_node *process_filelist_and_biggielist(); 16 16 int backup_crucial_file(char *path_root, char *filename); 17 17 … … 24 24 void streamline_changes_file(char *, char *); 25 25 void set_signals(int on); 26 void setup_global_filenames( struct s_bkpinfo *bkpinfo);26 void setup_global_filenames(); 27 27 //void setup_signals(int); 28 28 void twenty_seconds_til_yikes(void); … … 31 31 void termination_in_progress(int); 32 32 int unmount_all_devices(struct mountlist_itself *); 33 int get_cfg_file_from_archive( struct s_bkpinfo *bkpinfo);33 int get_cfg_file_from_archive(); 34 34 void ask_about_these_imagedevs(char *infname, char *outfname); -
branches/2.2.5/mondo/src/mondorestore/mr-externs.h
r684 r1647 16 16 extern bool ask_me_yes_or_no(char *); 17 17 extern char *calc_checksum_of_file(char *); 18 extern int closein_tape( struct s_bkpinfo *);18 extern int closein_tape(); 19 19 extern void close_evalcall_form(void); 20 20 extern char *call_program_and_get_last_line_of_output(char *); … … 51 51 extern void open_evalcall_form(char *); 52 52 extern void open_progress_form(char *, char *, char *, char *, long); 53 extern int openin_cdstream( struct s_bkpinfo *);54 extern int openin_tape( struct s_bkpinfo *);53 extern int openin_cdstream(); 54 extern int openin_tape(); 55 55 extern int partition_device(char *, int, int, char *, long); 56 56 extern int partition_device_with_fdisk(char *, int, int, char *, long); … … 61 61 extern bool popup_and_get_string(char *, char *, char *, int); 62 62 extern void setup_newt_stuff(void); 63 extern void reset_bkpinfo( struct s_bkpinfo *);63 extern void reset_bkpinfo(); 64 64 extern int read_cfg_var(char *, char *, char *); 65 extern int read_file_from_stream_to_file( struct s_bkpinfo *,char *,65 extern int read_file_from_stream_to_file(char *, 66 66 long long); 67 extern int read_file_from_stream_to_stream( struct s_bkpinfo *,FILE *,67 extern int read_file_from_stream_to_stream(FILE *, 68 68 long long); 69 extern int read_file_from_stream_FULL( struct s_bkpinfo *,char *, FILE *,69 extern int read_file_from_stream_FULL(char *, FILE *, 70 70 long long); 71 71 extern int read_header_block_from_stream(long long *, char *, int *); … … 78 78 extern void update_evalcall_form(int); 79 79 extern void update_progress_form(char *); 80 extern int verify_tape_backups( struct s_bkpinfo *);80 extern int verify_tape_backups(); 81 81 extern char which_restore_mode(void); 82 82 extern int which_format_command_do_i_need(char *, char *); … … 91 91 mountlist_itself 92 92 *mountlist); 93 extern int get_cfg_file_from_archive( struct s_bkpinfo *);93 extern int get_cfg_file_from_archive(); 94 94 95 95
Note:
See TracChangeset
for help on using the changeset viewer.