Changeset 1086 in MondoRescue for trunk/mondo/src/common/libmondo-fifo.c
- Timestamp:
- Feb 2, 2007, 11:21:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/common/libmondo-fifo.c
r1079 r1086 120 120 internal_tape_block_size, keych, device); 121 121 } 122 log_msg(2, "Calling buffer --- command = '%s'", g_sz_call_to_buffer);122 mr_msg(2, "Calling buffer --- command = '%s'", g_sz_call_to_buffer); 123 123 fres = popen(g_sz_call_to_buffer, sz_dir); 124 124 mr_free(sz_dir); 125 125 if (fres) { 126 log_msg(2, "Successfully opened ('%c') tape device %s", direction,126 mr_msg(2, "Successfully opened ('%c') tape device %s", direction, 127 127 device); 128 128 } else { 129 log_msg(2, "Failed to open ('%c') tape device %s", direction,129 mr_msg(2, "Failed to open ('%c') tape device %s", direction, 130 130 device); 131 131 } … … 133 133 mr_asprintf(&tmp, "ps %s | grep \"%s\"", ps_options, g_sz_call_to_buffer); 134 134 if (run_program_and_log_output(tmp, 2)) { 135 log_msg(2, "Warning - I think I failed to open tape, actually.");135 mr_msg(2, "Warning - I think I failed to open tape, actually."); 136 136 } 137 137 mr_free(tmp); … … 168 168 "ps %s | grep -F \"%s\" | grep -Fv grep | awk '{print $2;}' | grep -v PID | head -1", ps_options, g_sz_call_to_buffer); 169 169 mr_free(g_sz_call_to_buffer); 170 log_msg(2, "kill_buffer() --- command = %s", command);170 mr_msg(2, "kill_buffer() --- command = %s", command); 171 171 172 172 tmp = call_program_and_get_last_line_of_output(command); … … 174 174 175 175 mr_asprintf(&command, "kill %s", tmp); 176 log_msg(2, "kill_buffer() --- command = %s", command);176 mr_msg(2, "kill_buffer() --- command = %s", command); 177 177 178 178 if (strlen(tmp) > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.