Changeset 3263 in MondoRescue for branches/3.2/mondo/src/common/libmondo-mountlist.c
- Timestamp:
- Apr 22, 2014, 11:06:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-mountlist.c
r3237 r3263 413 413 } 414 414 415 /* GPT allows more than 4 primary partitions - detect partition type now */ 416 part_table_fmt = which_partition_format(drive); 417 415 418 for (curr_part_no = 1; curr_part_no < 99; curr_part_no++) { 416 419 build_partition_name(device, drive, curr_part_no); … … 428 431 mr_free(tmp); 429 432 res++; 430 } else if (curr_part_no > 5 431 || (curr_part_no <= 4 && prev_part_no > 0)) { 433 } else if (curr_part_no > 5 || (curr_part_no <= 4 && prev_part_no > 0)) { 432 434 mr_asprintf(tmp, " Gap on %s between %d and %d.", drive, prev_part_no, curr_part_no); 433 435 log_it(tmp); … … 437 439 } 438 440 } 439 /* GPT allows more than 4 primary partitions */440 part_table_fmt = which_partition_format(drive);441 441 /* no spare primary partitions to help accommodate the logical(s)? */ 442 442 if ((curr_part_no >= 5 && prev_part_no == 4) && (strcmp(part_table_fmt, "MBR") == 0)) { … … 447 447 res++; 448 448 } 449 mr_free(part_table_fmt);450 449 451 450 /* does partition /dev/hdNX exist more than once in the mountlist? */ … … 498 497 prev_part_no = curr_part_no; 499 498 } 499 mr_free(part_table_fmt); 500 500 501 501 /* Over-allocated the disk? Unallocated space on disk? */ … … 589 589 } 590 590 } 591 if (copies > 1 && last_copy == currline 592 && strcmp(curr_mountpoint, "raid")) { 591 if (copies > 1 && last_copy == currline && strcmp(curr_mountpoint, "raid")) { 593 592 mr_asprintf(tmp, " %s %s's.", number_to_text(copies), curr_mountpoint); 594 593 mr_strcat(flaws_str, "%s", tmp);
Note:
See TracChangeset
for help on using the changeset viewer.