Changeset 687 in MondoRescue for trunk/mondo/mondo/common/libmondo-archive.c


Ignore:
Timestamp:
Jul 17, 2006, 3:39:42 PM (18 years ago)
Author:
bcornec
Message:

merge -r671:686 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-archive.c

    r539 r687  
    12171217    mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    12181218    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    1219         write_header_block_to_stream(0, "start-of-tape",
     1219        write_header_block_to_stream((off_t)0, "start-of-tape",
    12201220                                     BLK_START_OF_TAPE);
    1221         write_header_block_to_stream(0, "start-of-backup",
     1221        write_header_block_to_stream((off_t)0, "start-of-backup",
    12221222                                     BLK_START_OF_BACKUP);
    12231223    }
     
    17131713                log_to_screen("%s...OK", message_to_screen);
    17141714                if (!run_program_and_log_output
    1715                     ("tail -n10 /var/log/mondo-archive.log | fgrep ':-('",
     1715                    ("tail -n10 /var/log/mondo-archive.log | grep -F ':-('",
    17161716                     1)) {
    17171717                    log_to_screen
     
    19811981    bool delete_when_done;
    19821982    bool use_ntfsprog;
    1983     /*@ long long ****************************************** */
    1984     long long biggie_fsize;
     1983    off_t biggie_fsize;
    19851984
    19861985    assert(bkpinfo != NULL);
     
    20812080            if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    20822081                tmp = calc_checksum_of_file(bigfile_fname);
    2083                 write_header_block_to_stream(0, tmp, BLK_STOP_A_BIGGIE);
     2082                write_header_block_to_stream((off_t)0, tmp, BLK_STOP_A_BIGGIE);
    20842083                paranoid_free(tmp);
    20852084            }
     
    22592258
    22602259    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    2261         write_header_block_to_stream(0, "start-of-afioballs",
     2260        write_header_block_to_stream((off_t)0, "start-of-afioballs",
    22622261                                     BLK_START_AFIOBALLS);
    22632262#if __FreeBSD__ == 5
     
    22682267        res = make_afioballs_and_images_OLD(bkpinfo, mrconf);
    22692268#endif
    2270         write_header_block_to_stream(0, "stop-afioballs",
     2269        write_header_block_to_stream((off_t)0, "stop-afioballs",
    22712270                                     BLK_STOP_AFIOBALLS);
    22722271    } else {
     
    23442343        res += write_EXAT_files_to_tape(bkpinfo, xattr_fname, acl_fname);
    23452344        asprintf(&blah, "%ld", count_lines_in_file(biggielist));
    2346         write_header_block_to_stream(0, blah, BLK_START_BIGGIEFILES);
     2345        write_header_block_to_stream((off_t)0, blah, BLK_START_BIGGIEFILES);
    23472346        paranoid_free(blah);
    23482347    }
     
    23542353
    23552354    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    2356         write_header_block_to_stream(0, "end-of-biggiefiles",
     2355        write_header_block_to_stream((off_t)0, "end-of-biggiefiles",
    23572356                                     BLK_STOP_BIGGIEFILES);
    23582357    }
     
    27202719    char *curr_file, *cf;
    27212720    /*@ long long ****************************************************** */
    2722     long long length_of_incoming_file = 0;
     2721    off_t length_of_incoming_file = (off_t)0;
    27232722    t_archtype type;
    27242723    va_list ap;
     
    27552754        paranoid_free(curr_file);
    27562755        /* write closing header */
    2757         write_header_block_to_stream(0, "finished-writing-file", stop_chr);
     2756        write_header_block_to_stream((off_t)0, "finished-writing-file", stop_chr);
    27582757    }
    27592758    va_end(ap);
     
    30353034
    30363035    /*@ long long ************************************************** */
    3037     long long totalread = 0;
    3038     long long totallength = 0;
    3039     long long length;
     3036    off_t totalread = (off_t)0;
     3037    off_t totallength = (off_t)0;
     3038    off_t length;
    30403039
    30413040    /*@ int ******************************************************** */
     
    30803079        strcpy (tmp, call_program_and_get_last_line_of_output(command));
    30813080        log_it("res of it = %s", tmp);
    3082         totallength = atoll(tmp);
     3081        totallength = (off_t)atoll(tmp);
    30833082    } else {
    30843083        file_to_openin = biggie_filename;
Note: See TracChangeset for help on using the changeset viewer.