Changeset 167 in MondoRescue


Ignore:
Timestamp:
Dec 8, 2005, 1:18:54 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
  • branches/2.05/mondo/mondo/common/libmondo-archive.c

    r155 r167  
    33533353                "Not calculating checksum for %s: it would take too long",
    33543354                biggie_filename);
     3355        totallength = get_phys_size_of_drive(biggie_filename)*1024*1024LL;
    33553356    } else {
    33563357        file_to_openin = biggie_filename;
     
    33623363        (void) fgets(checksum_line, MAX_STR_LEN, fin);
    33633364        pclose(fin);
     3365        totallength = length_of_file (biggie_filename);
    33643366    }
    33653367    lstat(biggie_filename, &biggiestruct.properties);
     
    33783380    (void) fwrite((void *) &biggiestruct, 1, sizeof(biggiestruct), fout);
    33793381    paranoid_fclose(fout);
    3380     totallength = length_of_file(biggie_filename);
    33813382    length = totallength / optimal_set_size / 1024;
    33823383    log_msg(1, "Opening in %s; slicing it and writing to CD/tape",
Note: See TracChangeset for help on using the changeset viewer.