Ignore:
Timestamp:
Apr 15, 2007, 2:43:15 AM (17 years ago)
Author:
Bruno Cornec
Message:
  • Some FreeBSD fixes
  • Better messages for partition names
  • May improve the gap issue on cciss
File:
1 edited

Legend:

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

    r1302 r1304  
    165165    npos = pos = 0;
    166166    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);
    168169        pos = find_device_in_mountlist(mountlist, device);
    169170        npos = 0;
     
    182183        }
    183184
    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);
    186186        if (pos > 0 && !npos) {
    187187            /* gap in the partition list? */
     
    417417            continue;
    418418        }
    419         // BERLIOS : useless ? str-cpy(mountpoint, mountlist->el[pos].mountpoint);
    420419        /* gap in the partition list? */
    421420        if (curr_part_no - prev_part_no > 1) {
     
    428427            } else if (curr_part_no > 5
    429428                       || (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,
    431430                        prev_part_no, curr_part_no);
    432431                log_it(tmp);
     
    441440        if ((curr_part_no >= 5 && prev_part_no == 4)
    442441            && (strcmp(part_table_fmt, "MBR") == 0)) {
    443             mr_asprintf(&tmp, " Partition %s4 is occupied.", drive);
     442            mr_asprintf(&tmp, " Partition 4 of %s is occupied.", drive);
    444443            log_it(tmp);
    445444            strcat(flaws_str, tmp);
     
    497496        prev_part_no = curr_part_no;
    498497        mr_free(device);
     498
    499499    }
    500500
Note: See TracChangeset for help on using the changeset viewer.