Changeset 305 in MondoRescue for branches/2.06/mondo/mondo/common/libmondo-tools.c
- Timestamp:
- Jan 12, 2006, 5:37:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/common/libmondo-tools.c
r275 r305 1014 1014 assert_string_is_neither_NULL_nor_zerolength(partition); 1015 1015 1016 sprintf(command, "df -m %s &> /dev/null", partition);1016 sprintf(command, "df -m -P %s &> /dev/null", partition); 1017 1017 if (system(command)) { 1018 1018 return (-1); 1019 1019 } // partition does not exist 1020 sprintf(command, "df -m %s | tail -n1 | tr -s ' ' '\t' | cut -f4",1020 sprintf(command, "df -m -P %s | tail -n1 | tr -s ' ' '\t' | cut -f4", 1021 1021 partition); 1022 1022 strcpy(out_sz, call_program_and_get_last_line_of_output(command));
Note:
See TracChangeset
for help on using the changeset viewer.