Changeset 1295 in MondoRescue for branches/2.2.2/mondo/src/common/libmondo-mountlist.c
- Timestamp:
- Apr 11, 2007, 8:59:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.2/mondo/src/common/libmondo-mountlist.c
r1236 r1295 400 400 401 401 /*@ long *********************************************************** */ 402 long physical_drive_size = 0 ;403 long amount_allocated = 0 ;402 long physical_drive_size = 0L; 403 long amount_allocated = 0L; 404 404 405 405 /*@ pointers ******************************************************* */ … … 433 433 434 434 for (curr_part_no = 1; curr_part_no < 99; curr_part_no++) { 435 sprintf(device, "%s%d", drive, curr_part_no); 435 if ((strstr(device, "/cciss/") != NULL) || 436 (strstr(device, "/ataraid/") != NULL) || 437 (strstr(device, "/ida/") != NULL) || 438 (strstr(device, "/rd/") != NULL)) { 439 sprintf(device, "%sp%d", drive, curr_part_no); 440 } else { 441 sprintf(device, "%s%d", drive, curr_part_no); 442 } 436 443 pos = find_device_in_mountlist(mountlist, device); 437 444 if (pos < 0) { … … 440 447 if (physical_drive_size < 0) { 441 448 sprintf(tmp, " %s refers to non-existent hardware.", device); 449 log_it(tmp); 442 450 strcat(flaws_str, tmp); 443 451 res++; … … 969 977 #if linux 970 978 sscanf(incoming, 971 "%s %s %s %s %s ",979 "%s %s %s %s %s %s", 972 980 mountlist->el[items].device, 973 981 mountlist->el[items].mountpoint, 974 982 mountlist->el[items].format, 975 siz, mountlist->el[items].label );983 siz, mountlist->el[items].label, mountlist->el[items].uuid); 976 984 #elif __FreeBSD__ 977 985 sscanf(incoming, … … 981 989 mountlist->el[items].format, siz); 982 990 strcpy(mountlist->el[items].label, ""); 991 strcpy(mountlist->el[items].uuid, ""); 983 992 #endif 984 993 … … 1029 1038 1030 1039 sprintf(tmp, 1031 "%s %s %s %lld %s ",1040 "%s %s %s %lld %s %s", 1032 1041 mountlist->el[items].device, 1033 1042 mountlist->el[items].mountpoint, 1034 1043 mountlist->el[items].format, 1035 mountlist->el[items].size, mountlist->el[items].label); 1044 mountlist->el[items].size, 1045 mountlist->el[items].label, 1046 mountlist->el[items].uuid); 1036 1047 1037 1048 log_it(tmp); … … 1079 1090 mountlist->el[i].device, mountlist->el[i].mountpoint, 1080 1091 mountlist->el[i].format, mountlist->el[i].size, 1081 mountlist->el[i].label );1092 mountlist->el[i].label, mountlist->el[i].uuid); 1082 1093 } 1083 1094 paranoid_fclose(fout);
Note:
See TracChangeset
for help on using the changeset viewer.