Changeset 2982 in MondoRescue for branches/3.0/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Mar 30, 2012, 2:43:01 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/mondorestore/mondo-rstr-tools.c
r2950 r2982 2348 2348 2349 2349 2350 void wait_until_software_raids_are_prepped(char *mdstat_file, 2351 int wait_for_percentage) 2350 void wait_until_software_raids_are_prepped(char *mdstat_file, int wait_for_percentage) 2352 2351 { 2353 2352 struct raidlist_itself *raidlist; 2354 int unfinished_mdstat_devices = 9999, i; 2353 int unfinished_mdstat_devices = 9999; 2354 int i = 0; 2355 2355 char *screen_message; 2356 2356 … … 2362 2362 while (unfinished_mdstat_devices > 0) { 2363 2363 // FIXME: Prefix '/dev/' should really be dynamic! 2364 if (parse_mdstat( raidlist, "/dev/")) {2364 if (parse_mdstat(MDSTAT_FILE, raidlist, "/dev/")) { 2365 2365 log_to_screen("Sorry, cannot read %s", MDSTAT_FILE); 2366 2366 log_msg(1,"Sorry, cannot read %s", MDSTAT_FILE); 2367 2367 return; 2368 2368 } 2369 for (unfinished_mdstat_devices = i =0; i <= raidlist->entries; i++) {2369 for (unfinished_mdstat_devices = 0; i <= raidlist->entries; i++) { 2370 2370 if (raidlist->el[i].progress < wait_for_percentage) { 2371 2371 unfinished_mdstat_devices++; … … 2383 2383 sleep(2); 2384 2384 // FIXME: Prefix '/dev/' should really be dynamic! 2385 if (parse_mdstat( raidlist, "/dev/")) {2385 if (parse_mdstat(MDSTAT_FILE, raidlist, "/dev/")) { 2386 2386 break; 2387 2387 }
Note:
See TracChangeset
for help on using the changeset viewer.