Changeset 1252 in MondoRescue for branches/stable/mondo/src/mondorestore
- Timestamp:
- Mar 20, 2007, 11:48:46 AM (18 years ago)
- Location:
- branches/stable/mondo/src/mondorestore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-prep.c
r1251 r1252 2185 2185 } 2186 2186 #else 2187 fin = fopen( "/proc/mdstat", "r");2187 fin = fopen(MDSTAT_FILE, "r"); 2188 2188 if (!fin) { 2189 log_OS_error( "/proc/mdstat");2189 log_OS_error(MDSTAT_FILE); 2190 2190 return (1); 2191 2191 } -
branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c
r1206 r1252 549 549 malloc_string(tmp); 550 550 assert(raidrec != NULL); 551 system 552 ("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null"); 551 mr_asprintf(&tmp,"grep Pers %s > /tmp/raid-personalities.txt 2> /dev/null", MDSTAT_FILE); 552 system(tmp); 553 mr_free(tmp); 553 554 mr_asprintf(&personalities, 554 555 last_line_of_file("/tmp/raid-personalities.txt"));
Note:
See TracChangeset
for help on using the changeset viewer.