Changeset 309 in MondoRescue for trunk/mondo/mondo/common/libmondo-tools.c
- Timestamp:
- Jan 13, 2006, 12:23:00 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-tools.c
r276 r309 782 782 assert_string_is_neither_NULL_nor_zerolength(partition); 783 783 784 asprintf(&command, "df -m %s &> /dev/null", partition);784 asprintf(&command, "df -m -P %s &> /dev/null", partition); 785 785 if (system(command)) { 786 786 return (-1); … … 788 788 paranoid_free(command); 789 789 790 asprintf(&command, "df -m %s | tail -n1 | tr -s ' ' '\t' | cut -f4",790 asprintf(&command, "df -m -P %s | tail -n1 | tr -s ' ' '\t' | cut -f4", 791 791 partition); 792 792 asprintf(&out_sz, call_program_and_get_last_line_of_output(command));
Note:
See TracChangeset
for help on using the changeset viewer.