Ignore:
Timestamp:
Apr 30, 2007, 1:50:20 AM (13 years ago)
Author:
Bruno Cornec
Message:

MAX_NOOF_MEDIA is gone and media_size in bkpinfo struct is now a single long field and not an array anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-stream.c

    r1362 r1365  
    219219        (void) fwrite(blk, 1, 256 * 1024, g_tape_stream);
    220220        if (should_we_write_to_next_tape
    221             (bkpinfo->media_size[g_current_media_number], (off_t)256 * 1024)) {
     221            (bkpinfo->media_size, (off_t)256 * 1024)) {
    222222            start_to_write_to_next_tape(bkpinfo);
    223223        }
     
    13061306    log_it("New tape requested.");
    13071307    insist_on_this_tape_number(g_current_media_number + 1); // will increment g_current_media, too
    1308     if (g_current_media_number > MAX_NOOF_MEDIA) {
    1309         res++;
    1310         log_to_screen(_("Too many tapes. Man, you need to use nfs!"));
    1311     }
    13121308    if (bkpinfo->backup_media_type == cdstream) {
    13131309        mr_asprintf(&command,
     
    15021498    filesize = length_of_file(infile);
    15031499    if (should_we_write_to_next_tape
    1504         (bkpinfo->media_size[g_current_media_number], filesize)) {
     1500        (bkpinfo->media_size, filesize)) {
    15051501        start_to_write_to_next_tape(bkpinfo);
    15061502        write_backcatalog_to_tape(bkpinfo);
Note: See TracChangeset for help on using the changeset viewer.