Changeset 1302 in MondoRescue for branches/stable/mondo/src
- Timestamp:
- Apr 15, 2007, 1:57:44 AM (18 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-archive.c
r1256 r1302 2098 2098 if (!does_file_exist(bigfile_fname)) { 2099 2099 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 } 2101 2107 delete_when_done = TRUE; 2102 2108 } else { -
branches/stable/mondo/src/common/libmondo-mountlist.c
r1297 r1302 411 411 412 412 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); 422 415 pos = find_device_in_mountlist(mountlist, device); 423 416 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);432 417 continue; 433 418 }
Note:
See TracChangeset
for help on using the changeset viewer.