Changeset 1302 in MondoRescue for branches/stable/mondo


Ignore:
Timestamp:
Apr 15, 2007, 1:57:44 AM (17 years ago)
Author:
Bruno Cornec
Message:
  • RAM size needs to be bigger on FC6
  • Attempt to fix a core dumped when a Big file doesn't exist and we're unable to create it (report from Nic Watson mondo_at_nicwatson.org)
  • NFS needs the fscache module on FC6 (at least)
  • Use build_partition_name and remove superfluous test (still try to solve cciss gap issue)
Location:
branches/stable/mondo/src/common
Files:
2 edited

Legend:

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

    r1256 r1302  
    20982098        if (!does_file_exist(bigfile_fname)) {
    20992099            ftmp = fopen(bigfile_fname, "w");
    2100             paranoid_fclose(ftmp);
     2100            if (ftmp == NULL) {
     2101                mr_msg(3, "Unable to write to %s", bigfile_fname);
     2102                // So skip it as it doesn't exist
     2103                continue;
     2104            } else {
     2105                paranoid_fclose(ftmp);
     2106            }
    21012107            delete_when_done = TRUE;
    21022108        } else {
  • branches/stable/mondo/src/common/libmondo-mountlist.c

    r1297 r1302  
    411411
    412412    for (curr_part_no = 1; curr_part_no < 99; curr_part_no++) {
    413         if ((strstr(device, "/cciss/") != NULL) ||
    414             (strstr(device, "/ataraid/") != NULL) ||
    415             (strstr(device, "/ida/") != NULL) ||
    416             (strstr(device, "/rd/") != NULL)) {
    417                 mr_asprintf(&device, "%sp%d", drive, curr_part_no);
    418                 sprintf(device, "%sp%d", drive, curr_part_no);
    419             } else {   
    420                 mr_asprintf(&device, "%s%d", drive, curr_part_no);
    421             }
     413        malloc_string(device);
     414        build_partition_name(device, drive, curr_part_no);
    422415        pos = find_device_in_mountlist(mountlist, device);
    423416        if (pos < 0) {
    424             continue;
    425         }
    426         if (physical_drive_size < 0) {
    427             mr_asprintf(&tmp, " %s refers to non-existent hardware.", device);
    428             log_it(tmp);
    429             strcat(flaws_str, tmp);
    430             res++;
    431             mr_free(tmp);
    432417            continue;
    433418        }
Note: See TracChangeset for help on using the changeset viewer.