Changeset 1253 in MondoRescue
- Timestamp:
- Mar 20, 2007, 12:01:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.2/mondo/src/common/libmondo-raid.c
r1250 r1253 81 81 82 82 command = malloc(MAX_STR_LEN * 2); 83 strcpy(command, "grep \" /proc/mdstat");83 strcpy(command, "grep \""); 84 84 if (raidno == -1) { 85 85 strcat(command, "linear"); … … 87 87 sprintf(command + strlen(command), "raid%d", raidno); 88 88 } 89 strcat(command, "\" > /dev/null 2> /dev/null");89 strcat(command, "\" /proc/mdstat > /dev/null 2> /dev/null"); 90 90 log_it("Is raid %d registered? Command = '%s'", raidno, command); 91 91 res = system(command);
Note:
See TracChangeset
for help on using the changeset viewer.