Ignore:
Timestamp:
Sep 24, 2007, 3:04:43 AM (17 years ago)
Author:
Bruno Cornec
Message:

Render bkpinfo global (potential issue on thread, but should not be a problem as that structure is indeed static during archive)
Should solve the tmpdir issue from previous rev.
May still not compile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/libmondo-archive.c

    r1644 r1645  
    239239extern char *MONDO_LOGFILE;
    240240
     241/* Reference to global bkpinfo */
     242extern struct s_bkpinfo *bkpinfo;
     243
    241244
    242245
     
    357360
    358361int
    359 archive_this_fileset_with_star(struct s_bkpinfo *bkpinfo, char *filelist,
    360                                char *fname, int setno)
     362archive_this_fileset_with_star(char *filelist, char *fname, int setno)
    361363{
    362364    int retval = 0;
     
    452454 */
    453455int
    454 archive_this_fileset(struct s_bkpinfo *bkpinfo, char *filelist,
    455                      char *fname, int setno)
     456archive_this_fileset(char *filelist, char *fname, int setno)
    456457{
    457458
     
    473474
    474475    if (bkpinfo->compression_level > 0 && bkpinfo->use_star) {
    475         return (archive_this_fileset_with_star
    476                 (bkpinfo, filelist, fname, setno));
     476        return (archive_this_fileset_with_star(filelist, fname, setno));
    477477    }
    478478
     
    587587 * @ingroup archiveGroup
    588588 */
    589 int backup_data(struct s_bkpinfo *bkpinfo)
     589int backup_data()
    590590{
    591591    int retval = 0, res = 0;
     
    593593
    594594    assert(bkpinfo != NULL);
    595     set_g_cdrom_and_g_dvd_to_bkpinfo_value(bkpinfo);
     595    set_g_cdrom_and_g_dvd_to_bkpinfo_value();
    596596    malloc_string(tmp);
    597597    if (bkpinfo->backup_media_type == dvd) {
     
    608608    }
    609609
    610     if ((res = prepare_filelist(bkpinfo))) {    /* generate scratchdir/filelist.full */
     610    if ((res = prepare_filelist())) {   /* generate scratchdir/filelist.full */
    611611        fatal_error("Failed to generate filelist catalog");
    612612    }
    613     if (call_filelist_chopper(bkpinfo)) {
     613    if (call_filelist_chopper()) {
    614614        fatal_error("Failed to run filelist chopper");
    615615    }
     
    630630    }
    631631
    632     copy_mondo_and_mindi_stuff_to_scratchdir(bkpinfo);  // payload, too, if it exists
     632    copy_mondo_and_mindi_stuff_to_scratchdir(); // payload, too, if it exists
    633633#if __FreeBSD__ == 5
    634634    strcpy(bkpinfo->kernel_path, "/boot/kernel/kernel");
     
    644644#error "I don't know about this system!"
    645645#endif
    646     if ((res = call_mindi_to_supply_boot_disks(bkpinfo))) {
     646    if ((res = call_mindi_to_supply_boot_disks())) {
    647647        fatal_error("Failed to generate boot+data disks");
    648648    }
    649     retval += do_that_initial_phase(bkpinfo);   // prepare
     649    retval += do_that_initial_phase();  // prepare
    650650    sprintf(tmp, "rm -f %s/images/*.iso", bkpinfo->scratchdir);
    651651    run_program_and_log_output(tmp, 1);
    652     retval += make_those_afios_phase(bkpinfo);  // backup regular files
    653     retval += make_those_slices_phase(bkpinfo); // backup BIG files
    654     retval += do_that_final_phase(bkpinfo); // clean up
     652    retval += make_those_afios_phase(); // backup regular files
     653    retval += make_those_slices_phase();    // backup BIG files
     654    retval += do_that_final_phase();    // clean up
    655655    log_msg(1, "Creation of archives... complete.");
    656656    if (bkpinfo->verify_data) {
     
    690690 * @ingroup MLarchiveGroup
    691691 */
    692 int call_mindi_to_supply_boot_disks(struct s_bkpinfo *bkpinfo)
     692int call_mindi_to_supply_boot_disks()
    693693{
    694694    /*@ buffer ************************************************************ */
     
    11621162    char *curr_acl_list_fname;
    11631163
    1164     struct s_bkpinfo *bkpinfo;
     1164    struct s_bkpinfo *bkpinfo_bis;
    11651165    char *tmp;
    11661166    int res = 0, retval = 0;
     
    11801180    p_next_set_to_archive = (int *) (inbuf + 8);
    11811181    p_list_of_fileset_flags = (char *) (inbuf + 12);
    1182     bkpinfo = (struct s_bkpinfo *) (inbuf + BKPINFO_LOC_OFFSET);
     1182    bkpinfo_bis = (struct s_bkpinfo *) (inbuf + BKPINFO_LOC_OFFSET);
    11831183
    11841184    sprintf(archiving_filelist_fname, FILELIST_FNAME_RAW_SZ,
     
    12461246                this_thread_no, archiving_set_no);
    12471247        res =
    1248             archive_this_fileset(bkpinfo, archiving_filelist_fname,
     1248            archive_this_fileset(archiving_filelist_fname,
    12491249                                 archiving_afioball_fname,
    12501250                                 archiving_set_no);
     
    13041304 * @ingroup MLarchiveGroup
    13051305 */
    1306 int do_that_final_phase(struct s_bkpinfo *bkpinfo)
     1306int do_that_final_phase()
    13071307{
    13081308
     
    13211321        /* write tape/cdstream */
    13221322    {
    1323         closeout_tape(bkpinfo);
     1323        closeout_tape();
    13241324    } else
    13251325        /* write final ISO */
    13261326    {
    1327         res = write_final_iso_if_necessary(bkpinfo);
     1327        res = write_final_iso_if_necessary();
    13281328        retval += res;
    13291329        if (res) {
     
    13651365 * @ingroup MLarchiveGroup
    13661366 */
    1367 int do_that_initial_phase(struct s_bkpinfo *bkpinfo)
     1367int do_that_initial_phase()
    13681368{
    13691369    /*@ int *************************************** */
     
    16131613 * @return The number of errors encountered (0 for success)
    16141614 */
    1615 int make_afioballs_and_images(struct s_bkpinfo *bkpinfo)
     1615int make_afioballs_and_images()
    16161616{
    16171617
     
    16731673                       "Please wait. This may take a couple of hours.",
    16741674                       "Working...",
    1675                        get_last_filelist_number(bkpinfo) + 1);
     1675                       get_last_filelist_number() + 1);
    16761676
    16771677    log_msg(5, "We're gonna party like it's your birthday.");
     
    17421742                sleep(5);
    17431743            }
    1744             strcpy(media_usage_comment,
    1745                    percent_media_full_comment(bkpinfo));
     1744            strcpy(media_usage_comment, percent_media_full_comment());
    17461745            /* copy to CD (scratchdir) ... and an actual CD-R if necessary */
    17471746            if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
     
    17521751                iamhere("Writing EXAT files");
    17531752                res +=
    1754                     write_EXAT_files_to_tape(bkpinfo,
    1755                                              curr_xattr_list_fname,
     1753                    write_EXAT_files_to_tape(curr_xattr_list_fname,
    17561754                                             curr_acl_list_fname);
    17571755// archives themselves
    17581756                res +=
    1759                     move_files_to_stream(bkpinfo, storing_afioball_fname,
     1757                    move_files_to_stream(storing_afioball_fname,
    17601758                                         NULL);
    17611759            } else {
    17621760                if (g_getfacl) {
    17631761                    if (g_getfattr) {
    1764                         res = move_files_to_cd(bkpinfo, storing_filelist_fname,
     1762                        res = move_files_to_cd(storing_filelist_fname,
    17651763                                     curr_xattr_list_fname,
    17661764                                     curr_acl_list_fname,
    17671765                                     storing_afioball_fname, NULL);
    17681766                    } else {
    1769                         res = move_files_to_cd(bkpinfo, storing_filelist_fname,
     1767                        res = move_files_to_cd(storing_filelist_fname,
    17701768                                    curr_acl_list_fname,
    17711769                                    storing_afioball_fname, NULL);
     
    17731771                } else {
    17741772                    if (g_getfattr) {
    1775                             res = move_files_to_cd(bkpinfo, storing_filelist_fname,
     1773                            res = move_files_to_cd(storing_filelist_fname,
    17761774                                    curr_xattr_list_fname,
    17771775                                    storing_afioball_fname, NULL);
    17781776                    } else {
    1779                             res = move_files_to_cd(bkpinfo, storing_filelist_fname,
     1777                            res = move_files_to_cd(storing_filelist_fname,
    17801778                                    storing_afioball_fname, NULL);
    17811779                    }
     
    18551853 * @return The number of errors encountered (0 for success)
    18561854 */
    1857 int make_iso_fs(struct s_bkpinfo *bkpinfo, char *destfile)
     1855int make_iso_fs(char *destfile)
    18581856{
    18591857    /*@ int ********************************************** */
     
    19321930                g_current_media_number);
    19331931        res =
    1934             eval_call_to_make_ISO(bkpinfo, bkpinfo->call_before_iso,
     1932            eval_call_to_make_ISO(bkpinfo->call_before_iso,
    19351933                                  destfile, g_current_media_number,
    19361934                                  MONDO_LOGFILE, message_to_screen);
     
    19571955        } else {
    19581956            res =
    1959                 eval_call_to_make_ISO(bkpinfo, bkpinfo->call_make_iso,
     1957                eval_call_to_make_ISO(bkpinfo->call_make_iso,
    19601958                                      bkpinfo->scratchdir,
    19611959                                      g_current_media_number,
     
    20202018                pause_for_N_seconds(5, "Letting DVD drive settle");
    20212019                res =
    2022                     eval_call_to_make_ISO(bkpinfo, bkpinfo->call_make_iso,
     2020                    eval_call_to_make_ISO(bkpinfo->call_make_iso,
    20232021                                          bkpinfo->scratchdir,
    20242022                                          g_current_media_number,
     
    20542052// FIXME --- change mkisofs string to MONDO_MKISOFS_NONBOOTABLE and add ' .' at end
    20552053            res =
    2056                 eval_call_to_make_ISO(bkpinfo,
    2057                                       "mkisofs -o '_ISO_' -r -p MondoRescue -publisher www.mondorescue.org -A MondoRescue_GPL -V _CD#_ .",
     2054                eval_call_to_make_ISO("mkisofs -o '_ISO_' -r -p MondoRescue -publisher www.mondorescue.org -A MondoRescue_GPL -V _CD#_ .",
    20582055                                      destfile, g_current_media_number,
    20592056                                      MONDO_LOGFILE, message_to_screen);
     
    20742071#ifdef __IA64__
    20752072                log_msg(1, "IA64 --> elilo");
    2076                 res = eval_call_to_make_ISO(bkpinfo,
    2077                                             //-b images/mindi-boot.2880.img
    2078                                             "mkisofs -no-emul-boot -b images/mindi-bootroot."
     2073                res = eval_call_to_make_ISO("mkisofs -no-emul-boot -b images/mindi-bootroot."
    20792074                                            IA64_BOOT_SIZE
    20802075                                            ".img -c boot.cat -o '_ISO_' -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ .",
     
    20882083                log_msg(1, "Non-ia64 --> lilo");
    20892084                res =
    2090                     eval_call_to_make_ISO(bkpinfo,
    2091                                           "mkisofs -b images/mindi-bootroot.2880.img -c boot.cat -o '_ISO_' -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ .",
     2085                    eval_call_to_make_ISO("mkisofs -b images/mindi-bootroot.2880.img -c boot.cat -o '_ISO_' -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ .",
    20922086                                          destfile, g_current_media_number,
    20932087                                          MONDO_LOGFILE,
     
    20982092                log_msg(1, "Isolinux");
    20992093                res =
    2100                     eval_call_to_make_ISO(bkpinfo,
    2101                                           "mkisofs -no-emul-boot -b isolinux.bin -boot-load-size 4 -boot-info-table -c boot.cat -o '_ISO_' -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ .",
     2094                    eval_call_to_make_ISO("mkisofs -no-emul-boot -b isolinux.bin -boot-load-size 4 -boot-info-table -c boot.cat -o '_ISO_' -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ .",
    21022095                                          destfile, g_current_media_number,
    21032096                                          MONDO_LOGFILE,
     
    21322125        pause_and_ask_for_cdr(2, &cd_is_mountable);
    21332126        res =
    2134             eval_call_to_make_ISO(bkpinfo, bkpinfo->call_burn_iso,
     2127            eval_call_to_make_ISO(bkpinfo->call_burn_iso,
    21352128                                  destfile, g_current_media_number,
    21362129                                  MONDO_LOGFILE, message_to_screen);
     
    21492142                g_current_media_number);
    21502143        res =
    2151             eval_call_to_make_ISO(bkpinfo, bkpinfo->call_after_iso,
     2144            eval_call_to_make_ISO(bkpinfo->call_after_iso,
    21522145                                  destfile, g_current_media_number,
    21532146                                  MONDO_LOGFILE, message_to_screen);
     
    22192212 */
    22202213int
    2221 make_slices_and_images(struct s_bkpinfo *bkpinfo, char *biggielist_fname)
     2214make_slices_and_images(char *biggielist_fname)
    22222215{
    22232216
     
    22522245    malloc_string(sz_devfile);
    22532246    estimated_total_noof_slices =
    2254         size_of_all_biggiefiles_K(bkpinfo) / bkpinfo->optimal_set_size + 1;
     2247        size_of_all_biggiefiles_K() / bkpinfo->optimal_set_size + 1;
    22552248
    22562249    log_msg(1, "size of all biggiefiles = %ld",
    2257             size_of_all_biggiefiles_K(bkpinfo));
     2250            size_of_all_biggiefiles_K());
    22582251    log_msg(1, "estimated_total_noof_slices = %ld KB / %ld KB = %ld",
    2259             size_of_all_biggiefiles_K(bkpinfo), bkpinfo->optimal_set_size,
     2252            size_of_all_biggiefiles_K(), bkpinfo->optimal_set_size,
    22602253            estimated_total_noof_slices);
    22612254
     
    23432336            }
    23442337            res =
    2345                 slice_up_file_etc(bkpinfo, bigfile_fname,
     2338                slice_up_file_etc(bigfile_fname,
    23462339                                  ntfsprog_fifo, biggie_file_number,
    23472340                                  noof_biggie_files, use_ntfsprog);
     
    23952388 * @see make_afioballs_and_images
    23962389 */
    2397 int make_afioballs_and_images_OLD(struct s_bkpinfo *bkpinfo)
     2390int make_afioballs_and_images_OLD()
    23982391{
    23992392
     
    24272420                       "Please wait. This may take a couple of hours.",
    24282421                       "Working...",
    2429                        get_last_filelist_number(bkpinfo) + 1);
     2422                       get_last_filelist_number() + 1);
    24302423
    24312424    sprintf(curr_filelist_fname, FILELIST_FNAME_RAW_SZ, bkpinfo->tmpdir,
     
    24552448        log_msg(1, "Archiving set %ld", curr_set_no);
    24562449        res =
    2457             archive_this_fileset(bkpinfo, curr_filelist_fname,
     2450            archive_this_fileset(curr_filelist_fname,
    24582451                                 curr_afioball_fname, curr_set_no);
    24592452        retval += res;
     
    24652458        }
    24662459
    2467         strcpy(media_usage_comment, percent_media_full_comment(bkpinfo));
     2460        strcpy(media_usage_comment, percent_media_full_comment());
    24682461
    24692462        /* copy to CD (scratchdir) ... and an actual CD-R if necessary */
     
    24752468            iamhere("Writing EXAT files");
    24762469            res +=
    2477                 write_EXAT_files_to_tape(bkpinfo, curr_xattr_list_fname,
     2470                write_EXAT_files_to_tape(curr_xattr_list_fname,
    24782471                                         curr_acl_list_fname);
    24792472// archives themselves
    2480             res = move_files_to_stream(bkpinfo, curr_afioball_fname, NULL);
     2473            res = move_files_to_stream(curr_afioball_fname, NULL);
    24812474        } else {
    24822475                if (g_getfacl) {
    24832476                    if (g_getfattr) {
    2484                         res = move_files_to_cd(bkpinfo, curr_filelist_fname,
     2477                        res = move_files_to_cd(curr_filelist_fname,
    24852478                                     curr_xattr_list_fname,
    24862479                                     curr_acl_list_fname,
    24872480                                     curr_afioball_fname, NULL);
    24882481                    } else {
    2489                         res = move_files_to_cd(bkpinfo, curr_filelist_fname,
     2482                        res = move_files_to_cd(curr_filelist_fname,
    24902483                                    curr_acl_list_fname,
    24912484                                    curr_afioball_fname, NULL);
     
    24932486                } else {
    24942487                    if (g_getfattr) {
    2495                             res = move_files_to_cd(bkpinfo, curr_filelist_fname,
     2488                            res = move_files_to_cd(curr_filelist_fname,
    24962489                                    curr_xattr_list_fname,
    24972490                                    curr_afioball_fname, NULL);
    24982491                    } else {
    2499                             res = move_files_to_cd(bkpinfo, curr_filelist_fname,
     2492                            res = move_files_to_cd(curr_filelist_fname,
    25002493                                    curr_afioball_fname, NULL);
    25012494                    }
     
    25422535 * @ingroup MLarchiveGroup
    25432536 */
    2544 int make_those_afios_phase(struct s_bkpinfo *bkpinfo)
     2537int make_those_afios_phase()
    25452538{
    25462539    /*@ int ******************************************* */
     
    25592552        log_msg(1,
    25602553                "Using single-threaded make_afioballs_and_images() to suit b0rken FreeBSD 5.0");
    2561         res = make_afioballs_and_images_OLD(bkpinfo);
     2554        res = make_afioballs_and_images_OLD();
    25622555#else
    2563         res = make_afioballs_and_images_OLD(bkpinfo);
     2556        res = make_afioballs_and_images_OLD();
    25642557#endif
    25652558        write_header_block_to_stream((off_t)0, "stop-afioballs",
    25662559                                     BLK_STOP_AFIOBALLS);
    25672560    } else {
    2568         res = make_afioballs_and_images(bkpinfo);
     2561        res = make_afioballs_and_images();
    25692562    }
    25702563
     
    25882581 * @ingroup MLarchiveGroup
    25892582 */
    2590 int make_those_slices_phase(struct s_bkpinfo *bkpinfo)
     2583int make_those_slices_phase()
    25912584{
    25922585
     
    26462639
    26472640    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    2648         res += write_EXAT_files_to_tape(bkpinfo, xattr_fname, acl_fname);
     2641        res += write_EXAT_files_to_tape(xattr_fname, acl_fname);
    26492642        asprintf(&blah, "%ld", count_lines_in_file(biggielist));
    26502643        write_header_block_to_stream((off_t)0, blah, BLK_START_BIGGIEFILES);
    26512644        paranoid_free(blah);
    26522645    }
    2653     res = make_slices_and_images(bkpinfo, biggielist);
     2646    res = make_slices_and_images(biggielist);
    26542647    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    26552648        write_header_block_to_stream((off_t)0, "end-of-biggiefiles",
     
    26812674 * transfer files over the network) or leave it as is.
    26822675 */
    2683 int (*move_files_to_cd) (struct s_bkpinfo *, char *, ...) =
     2676int (*move_files_to_cd) (char *, ...) =
    26842677    _move_files_to_cd;
    26852678
     
    27022695 * @return The number of errors encountered (0 for success)
    27032696 */
    2704 int _move_files_to_cd(struct s_bkpinfo *bkpinfo, char *files_to_add, ...)
     2697int _move_files_to_cd(char *files_to_add, ...)
    27052698{
    27062699
     
    27412734    }
    27422735    if (would_occupy / 1024 > bkpinfo->media_size[g_current_media_number]) {
    2743         res = write_iso_and_go_on(bkpinfo, FALSE);  /* FALSE because this is not the last CD we'll write */
     2736        res = write_iso_and_go_on(FALSE);   /* FALSE because this is not the last CD we'll write */
    27442737        retval += res;
    27452738        if (res) {
     
    27982791 * @ingroup MLarchiveGroup
    27992792 */
    2800 int offer_to_write_floppies(struct s_bkpinfo *bkpinfo, char *imagesdir)
     2793int offer_to_write_floppies(char *imagesdir)
    28012794{
    28022795    /*@ buffer ************************************************************ */
     
    29582951 */
    29592952
    2960 int offer_to_write_boot_floppies_to_physical_disks(struct s_bkpinfo
    2961                                                    *bkpinfo)
     2953int offer_to_write_boot_floppies_to_physical_disks()
    29622954{
    29632955    int res = 0;
     
    29822974            }
    29832975        } else {
    2984             offer_to_write_floppies(bkpinfo, MINDI_CACHE);
     2976            offer_to_write_floppies(MINDI_CACHE);
    29852977            mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    29862978        }
     
    30052997 * transfer files over the network) or leave it as is.
    30062998 */
    3007 int (*move_files_to_stream) (struct s_bkpinfo *, char *, ...) =
     2999int (*move_files_to_stream) (char *, ...) =
    30083000    _move_files_to_stream;
    30093001
     
    30223014 */
    30233015int
    3024 _move_files_to_stream(struct s_bkpinfo *bkpinfo, char *files_to_add, ...)
     3016_move_files_to_stream(char *files_to_add, ...)
    30253017{
    30263018
     
    30663058            type = other;
    30673059        }
    3068         res = write_file_to_stream_from_file(bkpinfo, curr_file);
     3060        res = write_file_to_stream_from_file(curr_file);
    30693061        retval += res;
    30703062        unlink(curr_file);
     
    33813373 */
    33823374int
    3383 slice_up_file_etc(struct s_bkpinfo *bkpinfo, char *biggie_filename,
     3375slice_up_file_etc(char *biggie_filename,
    33843376                  char *ntfsprog_fifo, long biggie_file_number,
    33853377                  long noof_biggie_files, bool use_ntfsprog)
     
    35173509    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    35183510        res =
    3519             move_files_to_stream(bkpinfo,
    3520                                  slice_fname(biggie_file_number, 0,
     3511            move_files_to_stream(slice_fname(biggie_file_number, 0,
    35213512                                             bkpinfo->tmpdir, ""), NULL);
    35223513    } else {
    35233514        res =
    3524             move_files_to_cd(bkpinfo,
    3525                              slice_fname(biggie_file_number, 0,
     3515            move_files_to_cd(slice_fname(biggie_file_number, 0,
    35263516                                         bkpinfo->tmpdir, ""), NULL);
    35273517    }
     
    35353525                           suffix));
    35363526
    3537         strcpy(tmp, percent_media_full_comment(bkpinfo));
     3527        strcpy(tmp, percent_media_full_comment());
    35383528        update_progress_form(tmp);
    35393529        if (!(fout = fopen(curr_slice_fname_uncompressed, "w"))) {
     
    36223612            maintain_collection_of_recent_archives(bkpinfo->tmpdir,
    36233613                                                   file_to_archive);
    3624             res = move_files_to_stream(bkpinfo, file_to_archive, NULL);
     3614            res = move_files_to_stream(file_to_archive, NULL);
    36253615        } else {
    3626             res = move_files_to_cd(bkpinfo, file_to_archive, NULL);
     3616            res = move_files_to_cd(file_to_archive, NULL);
    36273617        }
    36283618        retval += res;
     
    37163706 * however, this occurs rarely.
    37173707 */
    3718 int write_final_iso_if_necessary(struct s_bkpinfo *bkpinfo)
     3708int write_final_iso_if_necessary()
    37193709{
    37203710    /*@ int ***************************************************** */
     
    37373727    }
    37383728#endif
    3739     res = write_iso_and_go_on(bkpinfo, TRUE);
     3729    res = write_iso_and_go_on(TRUE);
    37403730#ifndef _XWIN
    37413731    if (!g_text_mode) {
     
    37663756 * @see make_iso_fs
    37673757 */
    3768 int write_iso_and_go_on(struct s_bkpinfo *bkpinfo, bool last_cd)
     3758int write_iso_and_go_on(bool last_cd)
    37693759{
    37703760    /*@ pointers **************************************************** */
     
    38423832            g_current_media_number);
    38433833    for (that_one_was_ok = FALSE; !that_one_was_ok;) {
    3844         res = make_iso_fs(bkpinfo, isofile);
     3834        res = make_iso_fs(isofile);
    38453835        if (g_current_media_number == 1 && !res
    38463836            && (bkpinfo->backup_media_type == cdr
     
    38613851            chdir("/");
    38623852            iamhere("Before calling verify_cd_image()");
    3863             res += verify_cd_image(bkpinfo);
     3853            res += verify_cd_image();
    38643854            iamhere("After calling verify_cd_image()");
    38653855        }
     
    39343924 * @ingroup verifyGroup
    39353925 */
    3936 int verify_data(struct s_bkpinfo *bkpinfo)
     3926int verify_data()
    39373927{
    39383928    int res = 0, retval = 0, cdno = 0;
     
    39493939            strcpy(bkpinfo->media_device, "/dev/cdrom");
    39503940        }
    3951         verify_tape_backups(bkpinfo);
     3941        verify_tape_backups();
    39523942        mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    39533943    } else if (bkpinfo->backup_data)
     
    39723962            }
    39733963            if (bkpinfo->backup_media_type != iso) {
    3974                 insist_on_this_cd_number(bkpinfo, cdno);
    3975             }
    3976             res = verify_cd_image(bkpinfo); // sets verify_data to FALSE if it's time to stop verifying
     3964                insist_on_this_cd_number(cdno);
     3965            }
     3966            res = verify_cd_image();    // sets verify_data to FALSE if it's time to stop verifying
    39773967            retval += res;
    39783968            if (res) {
    39793969                sprintf(tmp,
    39803970                        "Warnings/errors were reported while checking %s #%d",
    3981                         media_descriptor_string(bkpinfo->
    3982                                                 backup_media_type),
     3971                        media_descriptor_string(bkpinfo->backup_media_type),
    39833972                        g_current_media_number);
    39843973                log_to_screen(tmp);
Note: See TracChangeset for help on using the changeset viewer.