Changeset 1647 in MondoRescue
- Timestamp:
- Sep 24, 2007, 3:24:45 AM (17 years ago)
- Location:
- branches/2.2.5/mondo/src
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-archive-EXT.h
r543 r1647 2 2 3 3 4 extern int archive_this_fileset( struct s_bkpinfo *bkpinfo,char *filelist,4 extern int archive_this_fileset(char *filelist, 5 5 char *fname, int setno); 6 extern int backup_data( struct s_bkpinfo *bkpinfo);7 extern int call_mindi_to_supply_boot_disks( struct s_bkpinfo *bkpinfo);8 extern bool can_we_fit_these_files_on_media( struct s_bkpinfo *bkpinfo,6 extern int backup_data(); 7 extern int call_mindi_to_supply_boot_disks(); 8 extern bool can_we_fit_these_files_on_media( 9 9 char *files_to_add, ...); 10 extern int do_that_initial_phase( struct s_bkpinfo *bkpinfo);11 extern int do_that_final_phase( struct s_bkpinfo *bkpinfo);10 extern int do_that_initial_phase(); 11 extern int do_that_final_phase(); 12 12 extern int figure_out_kernel_path_interactively_if_necessary(char *kernel); 13 extern int make_those_slices_phase( struct s_bkpinfo *bkpinfo);14 extern int make_those_afios_phase( struct s_bkpinfo *bkpinfo);15 extern int make_slices_and_images( struct s_bkpinfo *bkpinfo,13 extern int make_those_slices_phase(); 14 extern int make_those_afios_phase(); 15 extern int make_slices_and_images( 16 16 char *biggielist_fname); 17 extern int make_iso_fs( struct s_bkpinfo *bkpinfo,char *destfile);18 extern int make_afioballs_and_images( struct s_bkpinfo *bkpinfo);19 extern int (*move_files_to_cd) ( struct s_bkpinfo *,char *, ...);20 extern int _move_files_to_cd( struct s_bkpinfo *bkpinfo,char *, ...);21 extern int (*move_files_to_stream) ( struct s_bkpinfo *,char *, ...);22 extern int _move_files_to_stream( struct s_bkpinfo *bkpinfo,17 extern int make_iso_fs(char *destfile); 18 extern int make_afioballs_and_images(); 19 extern int (*move_files_to_cd) (char *, ...); 20 extern int _move_files_to_cd(char *, ...); 21 extern int (*move_files_to_stream) (char *, ...); 22 extern int _move_files_to_stream( 23 23 char *files_to_add, ...); 24 extern int offer_to_write_boot_floppies_to_physical_disks(struct s_bkpinfo 25 *bkpinfo); 24 extern int offer_to_write_boot_floppies_to_physical_disks(); 26 25 extern void pause_and_ask_for_cdr(int, bool *); 27 extern int slice_up_file_etc( struct s_bkpinfo *bkpinfo,26 extern int slice_up_file_etc( 28 27 char *biggie_filename, 29 28 char *ntfsprog_fifo, … … 31 30 long noof_biggie_files, 32 31 bool use_ntfsprog); 33 extern int verify_data( struct s_bkpinfo *bkpinfo);32 extern int verify_data(); 34 33 extern void wipe_archives(char *d); 35 extern int write_iso_and_go_on(struct s_bkpinfo *bkpinfo, bool last_cd); 36 extern int write_final_iso_if_necessary(struct s_bkpinfo *bkpinfo); 37 extern int call_growisofs(struct s_bkpinfo *bkpinfo, char *destfile); 38 extern int make_afioballs_and_images_SINGLETHREAD(struct s_bkpinfo 39 *bkpinfo); 40 extern int archive_this_fileset_with_star(struct s_bkpinfo *bkpinfo, 34 extern int write_iso_and_go_on(bool last_cd); 35 extern int write_final_iso_if_necessary(); 36 extern int call_growisofs(char *destfile); 37 extern int make_afioballs_and_images_SINGLETHREAD(); 38 extern int archive_this_fileset_with_star( 41 39 char *filelist, char *fname, 42 40 int setno); -
branches/2.2.5/mondo/src/common/libmondo-archive.h
r543 r1647 3 3 */ 4 4 5 int archive_this_fileset( struct s_bkpinfo *bkpinfo,char *filelist,5 int archive_this_fileset(char *filelist, 6 6 char *fname, int setno); 7 int backup_data( struct s_bkpinfo *bkpinfo);8 int call_mindi_to_supply_boot_disks( struct s_bkpinfo *bkpinfo);9 bool can_we_fit_these_files_on_media( struct s_bkpinfo *bkpinfo,7 int backup_data(); 8 int call_mindi_to_supply_boot_disks(); 9 bool can_we_fit_these_files_on_media( 10 10 char *files_to_add, ...); 11 int do_that_initial_phase( struct s_bkpinfo *bkpinfo);12 int do_that_final_phase( struct s_bkpinfo *bkpinfo);11 int do_that_initial_phase(); 12 int do_that_final_phase(); 13 13 int figure_out_kernel_path_interactively_if_necessary(char *kernel); 14 14 bool get_bit_N_of_array(char *array, int N); 15 int make_those_slices_phase( struct s_bkpinfo *bkpinfo);16 int make_those_afios_phase( struct s_bkpinfo *bkpinfo);17 int make_slices_and_images( struct s_bkpinfo *bkpinfo,15 int make_those_slices_phase(); 16 int make_those_afios_phase(); 17 int make_slices_and_images( 18 18 char *biggielist_fname); 19 int make_iso_fs( struct s_bkpinfo *bkpinfo,char *destfile);20 int make_afioballs_and_images( struct s_bkpinfo *bkpinfo);21 extern int (*move_files_to_cd) ( struct s_bkpinfo *,char *, ...);22 int _move_files_to_cd( struct s_bkpinfo *bkpinfo,char *files_to_add, ...);23 extern int (*move_files_to_stream) ( struct s_bkpinfo *,char *, ...);24 int _move_files_to_stream( struct s_bkpinfo *bkpinfo,char *files_to_add,19 int make_iso_fs(char *destfile); 20 int make_afioballs_and_images(); 21 extern int (*move_files_to_cd) (char *, ...); 22 int _move_files_to_cd(char *files_to_add, ...); 23 extern int (*move_files_to_stream) (char *, ...); 24 int _move_files_to_stream(char *files_to_add, 25 25 ...); 26 int offer_to_write_boot_floppies_to_physical_disks(struct s_bkpinfo 27 *bkpinfo); 26 int offer_to_write_boot_floppies_to_physical_disks(); 28 27 void pause_and_ask_for_cdr(int, bool *); 29 28 void set_bit_N_of_array(char *array, int N, bool true_or_false); 30 int slice_up_file_etc( struct s_bkpinfo *bkpinfo,char *biggie_filename,29 int slice_up_file_etc(char *biggie_filename, 31 30 char *ntfsprog_fifo, 32 31 long biggie_file_number, long noof_biggie_files, 33 32 bool use_ntfsprog); 34 int verify_data( struct s_bkpinfo *bkpinfo);33 int verify_data(); 35 34 void wipe_archives(char *d); 36 35 int write_image_to_floppy(char *device, char *datafile); 37 36 int write_image_to_floppy_SUB(char *device, char *datafile); 38 int write_iso_and_go_on( struct s_bkpinfo *bkpinfo,bool last_cd);39 int write_final_iso_if_necessary( struct s_bkpinfo *bkpinfo);40 int call_growisofs( struct s_bkpinfo *bkpinfo,char *destfile);41 int make_afioballs_and_images_SINGLETHREAD( struct s_bkpinfo *bkpinfo);42 int archive_this_fileset_with_star( struct s_bkpinfo *bkpinfo,37 int write_iso_and_go_on(bool last_cd); 38 int write_final_iso_if_necessary(); 39 int call_growisofs(char *destfile); 40 int make_afioballs_and_images_SINGLETHREAD(); 41 int archive_this_fileset_with_star( 43 42 char *filelist, char *fname, int setno); 44 43 void setenv_mondo_share(void); -
branches/2.2.5/mondo/src/common/libmondo-devices-EXT.h
r128 r1647 7 7 extern int does_partition_exist(const char *drive, int partno); 8 8 extern bool does_string_exist_in_boot_block(char *dev, char *str); 9 extern int find_and_mount_actual_cd( struct s_bkpinfo *bkpinfo,9 extern int find_and_mount_actual_cd( 10 10 char *mountpoint); 11 11 extern int find_cdrom_device(char *output, bool try_to_mount); … … 31 31 32 32 33 extern int interactively_obtain_media_parameters_from_user(struct s_bkpinfo 34 *, bool); 33 extern int interactively_obtain_media_parameters_from_user(bool); 35 34 36 35 … … 38 37 39 38 40 extern void insist_on_this_cd_number( struct s_bkpinfo *bkpinfo,39 extern void insist_on_this_cd_number( 41 40 int cd_number_i_want); 42 41 43 42 44 extern int what_number_cd_is_this( struct s_bkpinfo *bkpinfo);43 extern int what_number_cd_is_this(); 45 44 46 45 … … 50 49 extern char *list_of_NFS_mounts_only(void); 51 50 52 extern void sensibly_set_tmpdir_and_scratchdir( struct s_bkpinfo *bkpinfo);51 extern void sensibly_set_tmpdir_and_scratchdir(); 53 52 54 53 … … 65 64 *incoming); 66 65 67 extern void set_g_cdrom_and_g_dvd_to_bkpinfo_value(struct s_bkpinfo 68 *bkpinfo); 66 extern void set_g_cdrom_and_g_dvd_to_bkpinfo_value(); 69 67 70 68 extern bool is_dev_an_NTFS_dev(char *bigfile_fname); -
branches/2.2.5/mondo/src/common/libmondo-devices.h
r128 r1647 7 7 int does_partition_exist(const char *drive, int partno); 8 8 bool does_string_exist_in_boot_block(char *dev, char *str); 9 int find_and_mount_actual_cd( struct s_bkpinfo *bkpinfo,char *mountpoint);9 int find_and_mount_actual_cd(char *mountpoint); 10 10 int find_cdrom_device(char *output, bool try_to_mount); 11 11 int find_dvd_device(char *output, bool try_to_mount); … … 25 25 int find_cdrw_device(char *cdrw_device); 26 26 27 int interactively_obtain_media_parameters_from_user(struct s_bkpinfo *, 28 bool); 27 int interactively_obtain_media_parameters_from_user(bool); 29 28 30 29 … … 32 31 void make_fifo(char *store_name_here, char *stub); 33 32 34 void insist_on_this_cd_number( struct s_bkpinfo *bkpinfo,33 void insist_on_this_cd_number( 35 34 int cd_number_i_want); 36 35 37 int what_number_cd_is_this( struct s_bkpinfo *bkpinfo);36 int what_number_cd_is_this(); 38 37 39 38 int eject_device(char *); … … 42 41 char *list_of_NFS_mounts_only(); 43 42 44 void sensibly_set_tmpdir_and_scratchdir( struct s_bkpinfo *bkpinfo);43 void sensibly_set_tmpdir_and_scratchdir(); 45 44 46 45 … … 55 54 bool does_nonMS_partition_exist(void); 56 55 char *resolve_softlinks_to_get_to_actual_device_file(char *incoming); 57 void set_g_cdrom_and_g_dvd_to_bkpinfo_value( struct s_bkpinfo *bkpinfo);56 void set_g_cdrom_and_g_dvd_to_bkpinfo_value(); 58 57 59 58 bool is_dev_an_NTFS_dev(char *bigfile_fname); -
branches/2.2.5/mondo/src/common/libmondo-filelist-EXT.h
r128 r1647 2 2 3 3 extern int chop_filelist(char *filelist, char *outdir, long maxsetsizeK); 4 extern int call_filelist_chopper( struct s_bkpinfo *bkpinfo);4 extern int call_filelist_chopper(); 5 5 extern void free_filelist(struct s_node *filelist); 6 extern int get_last_filelist_number( struct s_bkpinfo *bkpinfo);6 extern int get_last_filelist_number(); 7 7 extern int add_string_at_node(struct s_node *startnode, 8 8 char *string_to_add); … … 16 16 bool on_or_off); 17 17 extern void toggle_node_selection(struct s_node *filelist, bool on_or_off); 18 extern int prepare_filelist( struct s_bkpinfo *bkpinfo);18 extern int prepare_filelist(); 19 19 20 20 extern long save_filelist_entries_in_common(char *needles_list_fname, -
branches/2.2.5/mondo/src/common/libmondo-filelist.h
r128 r1647 4 4 5 5 int chop_filelist(char *filelist, char *outdir, long maxsetsizeK); 6 int call_filelist_chopper( struct s_bkpinfo *bkpinfo);6 int call_filelist_chopper(); 7 7 void free_filelist(struct s_node *filelist); 8 int get_last_filelist_number( struct s_bkpinfo *bkpinfo);8 int get_last_filelist_number(); 9 9 int add_string_at_node(struct s_node *startnode, char *string_to_add); 10 10 struct s_node *load_filelist(char *filelist_fname); … … 17 17 bool on_or_off); 18 18 void toggle_node_selection(struct s_node *filelist, bool on_or_off); 19 int prepare_filelist( struct s_bkpinfo *bkpinfo);19 int prepare_filelist(); 20 20 21 21 long save_filelist_entries_in_common(char *needles_list_fname, -
branches/2.2.5/mondo/src/common/libmondo-files-EXT.h
r684 r1647 32 32 33 33 34 extern long size_of_all_biggiefiles_K(struct s_bkpinfo *bkpinfo); 35 extern void copy_mondo_and_mindi_stuff_to_scratchdir(struct s_bkpinfo 36 *bkpinfo); 37 extern void store_nfs_config(struct s_bkpinfo *bkpinfo); 34 extern long size_of_all_biggiefiles_K(); 35 extern void copy_mondo_and_mindi_stuff_to_scratchdir(); 36 extern void store_nfs_config(); 38 37 39 38 40 extern void estimate_noof_media_required( struct s_bkpinfo *bkpinfo,long);39 extern void estimate_noof_media_required(long); 41 40 42 41 extern bool is_this_file_compressed(char *); -
branches/2.2.5/mondo/src/common/libmondo-files.h
r684 r1647 28 28 long noof_lines_that_match_wildcard(char *filelist_fname, char *wildcard); 29 29 void register_pid(pid_t pid, char *name_str); 30 long size_of_all_biggiefiles_K( struct s_bkpinfo *bkpinfo);30 long size_of_all_biggiefiles_K(); 31 31 long long space_occupied_by_cd(char *mountpt); 32 32 int whine_if_not_found(char *fname); 33 33 int write_one_liner_data_file(char *fname, char *contents); 34 34 35 void copy_mondo_and_mindi_stuff_to_scratchdir( struct s_bkpinfo *bkpinfo);36 void store_nfs_config( struct s_bkpinfo *bkpinfo);37 void estimate_noof_media_required( struct s_bkpinfo *bkpinfo,long);35 void copy_mondo_and_mindi_stuff_to_scratchdir(); 36 void store_nfs_config(); 37 void estimate_noof_media_required(long); 38 38 bool is_this_file_compressed(char *); 39 39 -
branches/2.2.5/mondo/src/common/libmondo-fork-EXT.h
r296 r1647 5 5 char *what_i_am_doing); 6 6 extern int run_program_and_log_output(char *program, int); 7 extern int eval_call_to_make_ISO(struct s_bkpinfo *bkpinfo, 8 char *basic_call, char *isofile, 7 extern int eval_call_to_make_ISO(char *basic_call, char *isofile, 9 8 int cd_no, char *logstub, 10 9 char *what_i_am_doing); -
branches/2.2.5/mondo/src/common/libmondo-fork.h
r296 r1647 8 8 int run_program_and_log_to_screen(char *basic_call, char *what_i_am_doing); 9 9 int run_program_and_log_output(char *program, int); 10 int eval_call_to_make_ISO(struct s_bkpinfo *bkpinfo, 11 char *basic_call, char *isofile, 10 int eval_call_to_make_ISO(char *basic_call, char *isofile, 12 11 int cd_no, char *logstub, char *what_i_am_doing); 13 12 -
branches/2.2.5/mondo/src/common/libmondo-stream-EXT.h
r684 r1647 3 3 4 4 5 extern int closein_tape( struct s_bkpinfo *bkpinfo);6 extern int closeout_tape( struct s_bkpinfo *bkpinfo);5 extern int closein_tape(); 6 extern int closeout_tape(); 7 7 extern int find_tape_device_and_size(char *dev, char *siz); 8 8 extern void insist_on_this_tape_number(int tapeno); … … 10 10 extern int maintain_collection_of_recent_archives(char *td, 11 11 char *latest_fname); 12 extern int openin_cdstream( struct s_bkpinfo *bkpinfo);13 extern int openin_tape( struct s_bkpinfo *bkpinfo);12 extern int openin_cdstream(); 13 extern int openin_tape(); 14 14 extern int openout_cdstream(char *cddev, int speed); 15 15 extern int openout_tape(char *tapedev, long internal_tape_block_size); 16 extern int read_file_from_stream_to_file( struct s_bkpinfo *bkpinfo,16 extern int read_file_from_stream_to_file( 17 17 char *outfile, long long size); 18 extern int read_file_from_stream_to_stream( struct s_bkpinfo *bkpinfo,18 extern int read_file_from_stream_to_stream( 19 19 FILE * fout, long long size); 20 extern int read_file_from_stream_FULL( struct s_bkpinfo *bkpinfo,20 extern int read_file_from_stream_FULL( 21 21 char *outfname, FILE * foutstream, 22 22 long long orig_size); … … 30 30 extern int skip_incoming_files_until_we_find_this_one(char 31 31 *the_file_I_was_reading); 32 extern int start_to_read_from_next_tape( struct s_bkpinfo *bkpinfo);33 extern int start_to_write_to_next_tape( struct s_bkpinfo *bkpinfo);34 extern int write_backcatalog_to_tape( struct s_bkpinfo *bkpinfo);32 extern int start_to_read_from_next_tape(); 33 extern int start_to_write_to_next_tape(); 34 extern int write_backcatalog_to_tape(); 35 35 extern int write_data_disks_to_stream(char *fname); 36 extern int write_file_to_stream_from_file( struct s_bkpinfo *bkpinfo,36 extern int write_file_to_stream_from_file( 37 37 char *infile); 38 38 extern int write_header_block_to_stream(off_t length_of_incoming_file, 39 39 char *filename, int control_char); 40 40 extern void wrong_marker(int should_be, int it_is); 41 extern int closein_cdstream( struct s_bkpinfo *bkpinfo);42 extern int read_EXAT_files_from_tape( struct s_bkpinfo *bkpinfo,41 extern int closein_cdstream(); 42 extern int read_EXAT_files_from_tape( 43 43 long long *ptmp_size, char *tmp_fname, 44 44 int *pctrl_chr, char *xattr_fname, 45 45 char *acl_fname); 46 extern int write_EXAT_files_to_tape( struct s_bkpinfo *bkpinfo,46 extern int write_EXAT_files_to_tape( 47 47 char *xattr_fname, char *acl_fname); -
branches/2.2.5/mondo/src/common/libmondo-stream.h
r684 r1647 5 5 6 6 7 int closein_tape( struct s_bkpinfo *bkpinfo);8 int closeout_tape( struct s_bkpinfo *bkpinfo);7 int closein_tape(); 8 int closeout_tape(); 9 9 int find_tape_device_and_size(char *dev, char *siz); 10 10 void insist_on_this_tape_number(int tapeno); 11 11 void log_tape_pos(void); 12 12 int maintain_collection_of_recent_archives(char *td, char *latest_fname); 13 int openin_cdstream( struct s_bkpinfo *bkpinfo);14 int openin_tape( struct s_bkpinfo *bkpinfo);13 int openin_cdstream(); 14 int openin_tape(); 15 15 int openout_cdstream(char *cddev, int speed); 16 16 int openout_tape(char *tapedev, long internal_tape_block_size); 17 int read_file_from_stream_to_file( struct s_bkpinfo *bkpinfo,char *outfile,17 int read_file_from_stream_to_file(char *outfile, 18 18 long long size); 19 int read_file_from_stream_to_stream( struct s_bkpinfo *bkpinfo,FILE * fout,19 int read_file_from_stream_to_stream(FILE * fout, 20 20 long long size); 21 int read_file_from_stream_FULL( struct s_bkpinfo *bkpinfo,char *outfname,21 int read_file_from_stream_FULL(char *outfname, 22 22 FILE * foutstream, long long orig_size); 23 23 int read_header_block_from_stream(long long *plen, char *filename, … … 29 29 int skip_incoming_files_until_we_find_this_one(char 30 30 *the_file_I_was_reading); 31 int start_to_read_from_next_tape( struct s_bkpinfo *bkpinfo);32 int start_to_write_to_next_tape( struct s_bkpinfo *bkpinfo);33 int write_backcatalog_to_tape( struct s_bkpinfo *bkpinfo);31 int start_to_read_from_next_tape(); 32 int start_to_write_to_next_tape(); 33 int write_backcatalog_to_tape(); 34 34 int write_data_disks_to_stream(char *fname); 35 int write_file_to_stream_from_file( struct s_bkpinfo *bkpinfo,35 int write_file_to_stream_from_file( 36 36 char *infile); 37 37 int write_header_block_to_stream(off_t length_of_incoming_file, 38 38 char *filename, int control_char); 39 39 void wrong_marker(int should_be, int it_is); 40 int closein_cdstream( struct s_bkpinfo *bkpinfo);41 int read_EXAT_files_from_tape( struct s_bkpinfo *bkpinfo,40 int closein_cdstream(); 41 int read_EXAT_files_from_tape( 42 42 long long *ptmp_size, char *tmp_fname, 43 43 int *pctrl_chr, char *xattr_fname, 44 44 char *acl_fname); 45 int write_EXAT_files_to_tape( struct s_bkpinfo *bkpinfo,char *xattr_fname,45 int write_EXAT_files_to_tape(char *xattr_fname, 46 46 char *acl_fname); -
branches/2.2.5/mondo/src/common/libmondo-string-EXT.h
r831 r1647 37 37 extern int severity_of_difference(char *filename, char *out_reason); 38 38 39 extern char *percent_media_full_comment( struct s_bkpinfo *bkpinfo);39 extern char *percent_media_full_comment(); 40 40 41 41 -
branches/2.2.5/mondo/src/common/libmondo-string.h
r831 r1647 31 31 int severity_of_difference(char *filename, char *out_reason); 32 32 33 char *percent_media_full_comment( struct s_bkpinfo *bkpinfo);33 char *percent_media_full_comment(); 34 34 char *media_descriptor_string(t_bkptype); 35 35 inline void turn_wildcard_chars_into_literal_chars(char *out, char *in); -
branches/2.2.5/mondo/src/common/libmondo-tools-EXT.h
r1383 r1647 11 11 extern int read_cfg_var(char *config_file, char *label, char *value); 12 12 extern int write_cfg_var(char *config_file, char *label, char *value); 13 extern void reset_bkpinfo( struct s_bkpinfo *bkpinfo);13 extern void reset_bkpinfo(); 14 14 #ifdef __FreeBSD__ 15 15 extern void initialize_raidrec(struct vinum_volume *vv); … … 30 30 extern void remount_supermounts_if_necessary(void); 31 31 32 extern int post_param_configuration( struct s_bkpinfo *bkpinfo);32 extern int post_param_configuration(); 33 33 34 34 35 extern int pre_param_configuration( struct s_bkpinfo *bkpinfo);35 extern int pre_param_configuration(); 36 36 37 37 -
branches/2.2.5/mondo/src/common/libmondo-tools.h
r1375 r1647 14 14 int read_cfg_var(char *config_file, char *label, char *value); 15 15 int write_cfg_var(char *config_file, char *label, char *value); 16 void reset_bkpinfo( struct s_bkpinfo *bkpinfo);16 void reset_bkpinfo(); 17 17 #ifdef __FreeBSD__ 18 18 void initialize_raidrec(struct vinum_volume *vv); … … 31 31 void remount_supermounts_if_necessary(void); 32 32 33 int post_param_configuration( struct s_bkpinfo *bkpinfo);33 int post_param_configuration(); 34 34 35 35 36 int pre_param_configuration( struct s_bkpinfo *bkpinfo);36 int pre_param_configuration(); 37 37 38 38 long free_space_on_given_partition(char *partition); -
branches/2.2.5/mondo/src/common/libmondo-verify-EXT.h
r128 r1647 2 2 3 3 4 extern int verify_cd_image( struct s_bkpinfo *);5 extern int verify_a_tarball( struct s_bkpinfo *,char *);6 extern int verify_an_afioball_from_CD( struct s_bkpinfo *,char *);7 extern int verify_an_afioball_from_tape( struct s_bkpinfo *,char *,4 extern int verify_cd_image(); 5 extern int verify_a_tarball(char *); 6 extern int verify_an_afioball_from_CD(char *); 7 extern int verify_an_afioball_from_tape(char *, 8 8 long long); 9 extern int verify_a_biggiefile_from_tape( struct s_bkpinfo *,char *,9 extern int verify_a_biggiefile_from_tape(char *, 10 10 long long); 11 int verify_afioballs_from_CD( struct s_bkpinfo *);12 extern int verify_afioballs_from_tape( struct s_bkpinfo *);13 extern int verify_biggiefiles_from_tape( struct s_bkpinfo *);14 extern int verify_tape_backups( struct s_bkpinfo *);15 extern char *vfy_tball_fname( struct s_bkpinfo *,char *, int);11 int verify_afioballs_from_CD(); 12 extern int verify_afioballs_from_tape(); 13 extern int verify_biggiefiles_from_tape(); 14 extern int verify_tape_backups(); 15 extern char *vfy_tball_fname(char *, int); -
branches/2.2.5/mondo/src/common/libmondo-verify.h
r684 r1647 21 21 22 22 /** externals *************************************************************/ 23 int close_tape( struct s_bkpinfo *);23 int close_tape(); 24 24 extern void close_progress_form(void); 25 25 extern long count_lines_in_file(char *); … … 27 27 extern void exclude_nonexistent_files(char *); 28 28 extern void fatal_error(char *); 29 extern int find_and_mount_actual_cd( struct s_bkpinfo *,char *);29 extern int find_and_mount_actual_cd(char *); 30 30 extern int find_cdrom_device(char *, bool); 31 31 extern void finish(int); 32 extern int get_last_filelist_number( struct s_bkpinfo *);32 extern int get_last_filelist_number(); 33 33 extern long get_time(void); 34 34 extern int grab_percentage_from_last_line_of_file(char *); … … 40 40 extern void open_evalcall_form(char *); 41 41 extern void open_progress_form(char *, char *, char *, char *, long); 42 extern int openin_tape( struct s_bkpinfo *);42 extern int openin_tape(); 43 43 extern void popup_and_OK(char *); 44 44 extern bool popup_and_get_string(char *, char *, char *, int); 45 extern int read_file_from_tape_to_file( struct s_bkpinfo *,char *,45 extern int read_file_from_tape_to_file(char *, 46 46 long long); 47 47 extern int read_header_block_from_tape(long long *, char *, int *); … … 62 62 63 63 64 int verify_cd_image( struct s_bkpinfo *);65 int verify_a_tarball( struct s_bkpinfo *,char *);66 int verify_an_afioball_from_CD( struct s_bkpinfo *,char *);67 int verify_an_afioball_from_tape( struct s_bkpinfo *,char *, long long);68 int verify_a_biggiefile_from_tape( struct s_bkpinfo *,char *, long long);69 int verify_afioballs_from_CD( struct s_bkpinfo *);70 int verify_afioballs_from_tape( struct s_bkpinfo *);71 int verify_biggiefiles_from_tape( struct s_bkpinfo *);72 int verify_tape_backups( struct s_bkpinfo *);73 char *vfy_tball_fname( struct s_bkpinfo *,char *, int);64 int verify_cd_image(); 65 int verify_a_tarball(char *); 66 int verify_an_afioball_from_CD(char *); 67 int verify_an_afioball_from_tape(char *, long long); 68 int verify_a_biggiefile_from_tape(char *, long long); 69 int verify_afioballs_from_CD(); 70 int verify_afioballs_from_tape(); 71 int verify_biggiefiles_from_tape(); 72 int verify_tape_backups(); 73 char *vfy_tball_fname(char *, int); 74 74 75 75 … … 92 92 extern void center_string(char *, int); 93 93 extern void close_evalcall_form(void); 94 extern int closein_tape( struct s_bkpinfo *);94 extern int closein_tape(); -
branches/2.2.5/mondo/src/mondoarchive/mondo-cli-EXT.h
r128 r1647 1 1 /* mondo-cli-EXT.h */ 2 2 3 extern int handle_incoming_parameters(int argc, char *argv[], 4 struct s_bkpinfo *bkpinfo); 5 extern int process_the_s_switch(struct s_bkpinfo *bkpinfo, char *value); 6 extern int process_switches(struct s_bkpinfo *bkpinfo, 7 char flag_val[128][MAX_STR_LEN], 3 extern int handle_incoming_parameters(int argc, char *argv[]); 4 extern int process_the_s_switch(char *value); 5 extern int process_switches(char flag_val[128][MAX_STR_LEN], 8 6 bool flag_set[128]); 9 7 extern int retrieve_switches_from_command_line(int argc, char *argv[], -
branches/2.2.5/mondo/src/mondoarchive/mondo-cli.h
r128 r1647 3 3 */ 4 4 5 int handle_incoming_parameters(int argc, char *argv[], 6 struct s_bkpinfo *bkpinfo); 7 int process_the_s_switch(struct s_bkpinfo *bkpinfo, char *value); 8 int process_switches(struct s_bkpinfo *bkpinfo, 9 char flag_val[128][MAX_STR_LEN], bool flag_set[128]); 5 int handle_incoming_parameters(int argc, char *argv[]); 6 int process_the_s_switch(char *value); 7 int process_switches(char flag_val[128][MAX_STR_LEN], bool flag_set[128]); 10 8 int retrieve_switches_from_command_line(int argc, char *argv[], 11 9 char flag_val[128][MAX_STR_LEN], -
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.