Changeset 2215 in MondoRescue


Ignore:
Timestamp:
Jun 4, 2009, 8:08:57 PM (15 years ago)
Author:
Bruno Cornec
Message:

Fix a compilation error following previous modifs

File:
1 edited

Legend:

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

    r2214 r2215  
    14411441            if (!misc_counter_that_is_not_important) {
    14421442                update_progress_form(media_usage_comment);
    1443                 */
    14441443            }
     1444            */
    14451445            sleep(1);
    1446         } else
    1447             // store set N
    1448         {
    1449             sprintf(storing_filelist_fname, FILELIST_FNAME_RAW_SZ,
    1450                     bkpinfo->tmpdir, storing_set_no);
    1451             sprintf(storing_afioball_fname, AFIOBALL_FNAME_RAW_SZ,
    1452                     bkpinfo->tmpdir, storing_set_no, bkpinfo->zip_suffix);
    1453             if (g_getfattr) {
    1454                 sprintf(curr_xattr_list_fname, XATTR_LIST_FNAME_RAW_SZ,
    1455                     bkpinfo->tmpdir, storing_set_no);
    1456             }
    1457             if (g_getfacl) {
    1458                 sprintf(curr_acl_list_fname, ACL_LIST_FNAME_RAW_SZ,
    1459                     bkpinfo->tmpdir, storing_set_no);
    1460             }
    1461 
    1462             log_msg(2, "Storing set %d", storing_set_no);
    1463             while (!does_file_exist(storing_filelist_fname)
    1464                    || !does_file_exist(storing_afioball_fname)) {
    1465                 log_msg(2,
    1466                         "Warning - either %s or %s doesn't exist yet. I'll pause 5 secs.",
     1446            } else
     1447                // store set N
     1448            {
     1449                sprintf(storing_filelist_fname, FILELIST_FNAME_RAW_SZ,
     1450                        bkpinfo->tmpdir, storing_set_no);
     1451                sprintf(storing_afioball_fname, AFIOBALL_FNAME_RAW_SZ,
     1452                        bkpinfo->tmpdir, storing_set_no, bkpinfo->zip_suffix);
     1453                if (g_getfattr) {
     1454                    sprintf(curr_xattr_list_fname, XATTR_LIST_FNAME_RAW_SZ,
     1455                        bkpinfo->tmpdir, storing_set_no);
     1456                }
     1457                if (g_getfacl) {
     1458                    sprintf(curr_acl_list_fname, ACL_LIST_FNAME_RAW_SZ,
     1459                        bkpinfo->tmpdir, storing_set_no);
     1460                }
     1461
     1462                log_msg(2, "Storing set %d", storing_set_no);
     1463                while (!does_file_exist(storing_filelist_fname)
     1464                    || !does_file_exist(storing_afioball_fname)) {
     1465                    log_msg(2,
     1466                            "Warning - either %s or %s doesn't exist yet. I'll pause 5 secs.",
    14671467                        storing_filelist_fname, storing_afioball_fname);
    1468                 sleep(5);
    1469             }
    1470             mr_asprintf(&media_usage_comment, "%s", percent_media_full_comment());
    1471             /* copy to CD (scratchdir) ... and an actual CD-R if necessary */
    1472             if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    1473                 register_in_tape_catalog(fileset, storing_set_no, -1,
     1468                    sleep(5);
     1469                }
     1470                mr_asprintf(&media_usage_comment, "%s", percent_media_full_comment());
     1471                /* copy to CD (scratchdir) ... and an actual CD-R if necessary */
     1472                if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
     1473                    register_in_tape_catalog(fileset, storing_set_no, -1,
    14741474                                         storing_afioball_fname);
    1475                 maintain_collection_of_recent_archives(bkpinfo->tmpdir,
     1475                    maintain_collection_of_recent_archives(bkpinfo->tmpdir,
    14761476                                                       storing_afioball_fname);
    1477                 iamhere("Writing EXAT files");
    1478                 res +=
    1479                     write_EXAT_files_to_tape(curr_xattr_list_fname,
     1477                    iamhere("Writing EXAT files");
     1478                    res +=
     1479                        write_EXAT_files_to_tape(curr_xattr_list_fname,
    14801480                                             curr_acl_list_fname);
    1481                 // archives themselves
    1482                 res +=
    1483                     move_files_to_stream(storing_afioball_fname,
     1481                    // archives themselves
     1482                    res +=
     1483                        move_files_to_stream(storing_afioball_fname,
    14841484                                         NULL);
    1485             } else {
    1486                 if (g_getfacl) {
    1487                     if (g_getfattr) {
    1488                         res = move_files_to_cd(storing_filelist_fname,
     1485                } else {
     1486                    if (g_getfacl) {
     1487                        if (g_getfattr) {
     1488                            res = move_files_to_cd(storing_filelist_fname,
    14891489                                     curr_xattr_list_fname,
    14901490                                     curr_acl_list_fname,
    14911491                                     storing_afioball_fname, NULL);
    1492                     } else {
    1493                         res = move_files_to_cd(storing_filelist_fname,
     1492                        } else {
     1493                            res = move_files_to_cd(storing_filelist_fname,
    14941494                                    curr_acl_list_fname,
    14951495                                    storing_afioball_fname, NULL);
    1496                     }
    1497                 } else {
    1498                     if (g_getfattr) {
     1496                        }
     1497                    } else {
     1498                        if (g_getfattr) {
    14991499                            res = move_files_to_cd(storing_filelist_fname,
    15001500                                    curr_xattr_list_fname,
    15011501                                    storing_afioball_fname, NULL);
    1502                     } else {
     1502                        } else {
    15031503                            res = move_files_to_cd(storing_filelist_fname,
    15041504                                    storing_afioball_fname, NULL);
     1505                        }
    15051506                    }
    15061507                }
    1507             }
    1508             retval += res;
    1509             g_current_progress++;
    1510             update_progress_form(media_usage_comment);
    1511             mr_free(media_usage_comment);
    1512             if (res) {
    1513                 mr_asprintf(&tmp,
     1508                retval += res;
     1509                g_current_progress++;
     1510                update_progress_form(media_usage_comment);
     1511                mr_free(media_usage_comment);
     1512                if (res) {
     1513                    mr_asprintf(&tmp,
    15141514                        "Failed to add archive %ld's files to CD dir\n",
    15151515                        storing_set_no);
    1516                 log_to_screen(tmp);
    1517                 paranoid_free(tmp);
    1518                 fatal_error
    1519                     ("Is your hard disk full? If not, please send the author the logfile.");
    1520             }
    1521             storing_set_no++;
    1522             //      sleep(2);
     1516                    log_to_screen(tmp);
     1517                    paranoid_free(tmp);
     1518                    fatal_error
     1519                        ("Is your hard disk full? If not, please send the author the logfile.");
     1520                }
     1521                storing_set_no++;
     1522                //      sleep(2);
    15231523        }
    15241524    }
Note: See TracChangeset for help on using the changeset viewer.