Changeset 1304 in MondoRescue for branches/stable/mondo/src/common
- Timestamp:
- Apr 15, 2007, 2:43:15 AM (18 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-devices.c
r1268 r1304 397 397 #ifdef __FreeBSD__ 398 398 // We assume here that this is running from mondorestore. (It is.) 399 // BERLIOS: This is BROKEN - 1 %s - 2 params !! 400 mr_asprintf(&program, "ls %s >/dev/null 2>&1", drive, 399 mr_asprintf(&program, "ls %s %s >/dev/null 2>&1", drive, 401 400 build_partition_name(tmp, drive, partno)); 402 401 res = system(program); -
branches/stable/mondo/src/common/libmondo-mountlist.c
r1302 r1304 165 165 npos = pos = 0; 166 166 for (curr_part_no = 1; curr_part_no < 99; curr_part_no++) { 167 mr_asprintf(&device, "%ss%d", drive, curr_part_no); 167 malloc_string(device); 168 build_partition_name(device, drive, curr_part_no); 168 169 pos = find_device_in_mountlist(mountlist, device); 169 170 npos = 0; … … 182 183 } 183 184 184 mr_asprintf(&device, "%ss%d", drive, curr_part_no); 185 // BERLIOS : useless ? mr_asprintf(&mountpoint, mountlist->el[pos].mountpoint); 185 build_partition_name(device, drive, curr_part_no); 186 186 if (pos > 0 && !npos) { 187 187 /* gap in the partition list? */ … … 417 417 continue; 418 418 } 419 // BERLIOS : useless ? str-cpy(mountpoint, mountlist->el[pos].mountpoint);420 419 /* gap in the partition list? */ 421 420 if (curr_part_no - prev_part_no > 1) { … … 428 427 } else if (curr_part_no > 5 429 428 || (curr_part_no <= 4 && prev_part_no > 0)) { 430 mr_asprintf(&tmp, " Gap between %s%d and %d.", drive,429 mr_asprintf(&tmp, " Gap on %s between %d and %d.", drive, 431 430 prev_part_no, curr_part_no); 432 431 log_it(tmp); … … 441 440 if ((curr_part_no >= 5 && prev_part_no == 4) 442 441 && (strcmp(part_table_fmt, "MBR") == 0)) { 443 mr_asprintf(&tmp, " Partition %s4is occupied.", drive);442 mr_asprintf(&tmp, " Partition 4 of %s is occupied.", drive); 444 443 log_it(tmp); 445 444 strcat(flaws_str, tmp); … … 497 496 prev_part_no = curr_part_no; 498 497 mr_free(device); 498 499 499 } 500 500
Note:
See TracChangeset
for help on using the changeset viewer.