Changeset 3147 in MondoRescue for branches/3.1/mondo/src/common/libmondo-mountlist.c
- Timestamp:
- Jun 19, 2013, 8:34:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/mondo/src/common/libmondo-mountlist.c
r2937 r3147 50 50 int pos = 0, npos = 0; 51 51 int res = 0; 52 int mountpoint_copies = 0;53 52 int device_copies = 0; 54 53 int i = 0; … … 112 111 } 113 112 /* does partition /dev/adXsYZ exist more than once in the mountlist? */ 114 for (i = 0, mountpoint_copies = 0,device_copies = 0;113 for (i = 0, device_copies = 0; 115 114 i < mountlist->entries; i++) { 116 115 if (!strcmp(device, mountlist->el[i].device)) { … … 214 213 } 215 214 /* does partition /dev/adXsY exist more than once in the mountlist? */ 216 for (i = 0, mountpoint_copies = 0,device_copies = 0;215 for (i = 0, device_copies = 0; 217 216 i < mountlist->entries; i++) { 218 217 if (!strcmp(device, mountlist->el[i].device)) { … … 277 276 } 278 277 /* does partition /dev/adXsYZ exist more than once in the mountlist? */ 279 for (i = 0, mountpoint_copies = 0,device_copies = 0;278 for (i = 0, device_copies = 0; 280 279 i < mountlist->entries; i++) { 281 280 if (!strcmp(device, mountlist->el[i].device)) { … … 384 383 int pos = 0; 385 384 int res = 0; 386 int mountpoint_copies = 0;387 385 int device_copies = 0; 388 386 int i = 0; … … 461 459 462 460 /* does partition /dev/hdNX exist more than once in the mountlist? */ 463 for (i = 0, mountpoint_copies = 0,device_copies = 0;461 for (i = 0, device_copies = 0; 464 462 i < mountlist->entries; i++) { 465 463 if (!strcmp(device, mountlist->el[i].device)) { … … 807 805 char *tmp = NULL; 808 806 char *p = NULL; 807 char *q = NULL; 809 808 810 809 int items = 0; … … 926 925 } 927 926 paranoid_fclose(fout); 927 if (!(fout = fopen(MONDO_MNTLISTCHG, "w"))) { 928 log_OS_error("WMTD - Cannot openout "MONDO_MNTLISTCHG); 929 return (1); 930 } 931 fprintf(fout, "the mountlist was changed by mondorestore\n"); 932 paranoid_fclose(fout); 928 933 return (0); 929 934 }
Note:
See TracChangeset
for help on using the changeset viewer.