X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Fchunker.c;h=043edba80ea9b7147d2784b83190c8fca26fdc74;hb=d3b2175e084f88c8736ad7073eacbf4670147aec;hp=8d89fd74d08da3e70c9735e9d13d4c5b85e80aaa;hpb=34197d9f46a5f4e944378cbb65fca32ee0eec7b9;p=debian%2Famanda diff --git a/server-src/chunker.c b/server-src/chunker.c index 8d89fd7..043edba 100644 --- a/server-src/chunker.c +++ b/server-src/chunker.c @@ -45,6 +45,12 @@ #include "util.h" #include "holding.h" +#define chunker_debug(i,x) do { \ + if ((i) <= debug_chunker) { \ + dbprintf(x); \ + } \ +} while (0) + #ifndef SEEK_SET #define SEEK_SET 0 #endif @@ -137,7 +143,7 @@ main( erroutput_type = (ERR_AMANDALOG|ERR_INTERACTIVE); set_logerror(logerror); - parse_server_conf(main_argc, main_argv, &new_argc, &new_argv); + parse_conf(main_argc, main_argv, &new_argc, &new_argv); my_argc = new_argc; my_argv = new_argv; @@ -877,7 +883,7 @@ common_exit: /* - * Send an Amanda dump header to the output file. + * Send an Amanda dump header to the output file and set file->blocksize */ static ssize_t write_tapeheader(