Changeset 3610 in MondoRescue for branches/3.2/mondo/src/common/libmondo-raid.c
- Timestamp:
- Nov 5, 2016, 6:12:23 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-raid.c
r3566 r3610 1007 1007 strcpy(raidlist->el[raidlist->entries].additional_vars.el[v].label, "UUID"); 1008 1008 mr_asprintf(cmd,"mdadm --detail %s | grep UUID | cut -d: -f2- | sed 's/^ *//'", raidlist->el[raidlist->entries].raid_device); 1009 mr_asprintf(strtmp, "%s", call_program_and_get_last_line_of_output(cmd));1009 strtmp = call_program_and_get_last_line_of_output(cmd); 1010 1010 strcpy(raidlist->el[raidlist->entries].additional_vars.el[v].value, strtmp); 1011 1011 mr_free(strtmp); … … 1014 1014 strcpy(raidlist->el[raidlist->entries].additional_vars.el[v].label, "Version"); 1015 1015 mr_asprintf(cmd,"mdadm --detail %s | grep Version | cut -d: -f2- | sed 's/^ *//'", raidlist->el[raidlist->entries].raid_device); 1016 mr_asprintf(strtmp, "%s", call_program_and_get_last_line_of_output(cmd));1016 strtmp = call_program_and_get_last_line_of_output(cmd); 1017 1017 strcpy(raidlist->el[raidlist->entries].additional_vars.el[v].value, strtmp); 1018 1018 mr_free(strtmp);
Note:
See TracChangeset
for help on using the changeset viewer.