Changeset 1252 in MondoRescue for branches/stable/mondo/src/common
- Timestamp:
- Mar 20, 2007, 11:48:46 AM (18 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-raid.c
r1249 r1252 53 53 if (raidno == -1) { 54 54 mr_asprintf(&command, 55 "grep \"linear\" /proc/mdstat > /dev/null 2> /dev/null");55 "grep \"linear\" %s > /dev/null 2> /dev/null", MDSTAT_FILE); 56 56 } else { 57 57 mr_asprintf(&command, 58 "grep \"raid%d\" /proc/mdstat> /dev/null 2> /dev/null",59 raidno );58 "grep \"raid%d\" %s > /dev/null 2> /dev/null", 59 raidno, MDSTAT_FILE); 60 60 } 61 61 log_it("Is raid %d registered? Command = '%s'", raidno, command); -
branches/stable/mondo/src/common/libmondo-tools.c
r1221 r1252 981 981 && !does_file_exist("/etc/raidtab")) { 982 982 log_to_screen 983 (_("You have RAID partitions but no /etc/raidtab - creating one from /proc/mdstat"));983 (_("You have RAID partitions but no /etc/raidtab - creating one from "MDSTAT_FILE)); 984 984 create_raidtab_from_mdstat("/etc/raidtab"); 985 985 }
Note:
See TracChangeset
for help on using the changeset viewer.