Changeset 1107 in MondoRescue for branches/stable/mondo/src/common/libmondo-fifo.c
- Timestamp:
- Feb 8, 2007, 12:09:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-fifo.c
r1080 r1107 122 122 internal_tape_block_size, keych, device); 123 123 } 124 log_msg(2, "Calling buffer --- command = '%s'", g_sz_call_to_buffer);124 mr_msg(2, "Calling buffer --- command = '%s'", g_sz_call_to_buffer); 125 125 fres = popen(g_sz_call_to_buffer, sz_dir); 126 126 if (fres) { 127 log_msg(2, "Successfully opened ('%c') tape device %s", direction,127 mr_msg(2, "Successfully opened ('%c') tape device %s", direction, 128 128 device); 129 129 } else { 130 log_msg(2, "Failed to open ('%c') tape device %s", direction,130 mr_msg(2, "Failed to open ('%c') tape device %s", direction, 131 131 device); 132 132 } … … 134 134 sprintf(tmp, "ps %s | grep \"%s\"", ps_options, g_sz_call_to_buffer); 135 135 if (run_program_and_log_output(tmp, 2)) { 136 log_msg(2, "Warning - I think I failed to open tape, actually.");136 mr_msg(2, "Warning - I think I failed to open tape, actually."); 137 137 } 138 138 g_tape_buffer_size_MB = bufsize; … … 172 172 sprintf(command, 173 173 "ps %s | grep -F \"%s\" | grep -Fv grep | awk '{print $2;}' | grep -v PID | head -1", ps_options, g_sz_call_to_buffer); 174 log_msg(2, "kill_buffer() --- command = %s", command);174 mr_msg(2, "kill_buffer() --- command = %s", command); 175 175 strcpy(tmp, call_program_and_get_last_line_of_output(command)); 176 176 sprintf(command, "kill %s", tmp); 177 log_msg(2, "kill_buffer() --- command = %s", command);177 mr_msg(2, "kill_buffer() --- command = %s", command); 178 178 if (strlen(tmp) > 0) { 179 179 run_program_and_log_output(command, TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.