Changeset 168 in MondoRescue for trunk


Ignore:
Timestamp:
Dec 8, 2005, 1:22:08 PM (18 years ago)
Author:
andree
Message:

Consistently use get_phys_size_of_drive() to determine the maximum
amount of data to be read in slice_up_file_etc().

See also Debian bugs #318694 and #273980.

File:
1 edited

Legend:

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

    r145 r168  
    31023102                "Not calculating checksum for %s: it would take too long",
    31033103                biggie_filename);
     3104        totallength = get_phys_size_of_drive(biggie_filename)*1024*1024LL;
    31043105    } else {
    31053106        file_to_openin = biggie_filename;
     
    31133114        (void) getline(&checksum_line, &n, fin);
    31143115        pclose(fin);
     3116        totallength = length_of_file (biggie_filename);
    31153117    }
    31163118    lstat(biggie_filename, &biggiestruct.properties);
     
    31323134    (void) fwrite((void *) &biggiestruct, 1, sizeof(biggiestruct), fout);
    31333135    paranoid_fclose(fout);
    3134     totallength = length_of_file(biggie_filename);
    31353136    length = totallength / optimal_set_size / 1024;
    31363137    log_msg(1, "Opening in %s; slicing it and writing to CD/tape",
Note: See TracChangeset for help on using the changeset viewer.