1 2006-03-28 Jean-Louis Martineau <martineau@zmanda.com>
2 * Amanda 2.5.0 released.
3 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
4 * NEWS: Update for 2.5.0
6 2006-03-22 Jean-Louis Martineau <martineau@zmanda.com>
7 * server-src/dumper.c: wait for compress/index/encryp subprocess.
9 2006-03-22 Jean-Louis Martineau <martineau@zmanda.com>
10 * server-src/amstatus.pl.in: Parse PARTIAL reply.
12 2006-03-22 Jean-Louis Martineau <martineau@zmanda.com>
13 * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
15 2006-03-21 Jean-Louis Martineau <martineau@zmanda.com>
16 * server-src/chunker.c: Don't loop on startup_chunker.
17 * server-src/dumper.c: Don't wait for all children, some process (ssh)
20 2006-03-17 Ian Turner <ian@zmanda.com>
21 * server-src/taper.c (read_file): When finished flushing a
22 chunked dump, print information about the whole dump, not just
23 the last chunk. Also, fix some memory leaks.
25 2006-03-16 Kevin Till <ktill@zmanda.com>
26 * server-src/amverify.sh.in: check for EOI. amrestore only
27 reports EOI for some tapetypes.
29 2006-03-15 Jean-Louis Martineau <martineau@zmanda.com>
30 * server-src/conffile.c: Fix heritage of auth.
32 2006-03-14 Kevin Till <ktill@@zmanda.com>
33 * example/amanda.conf.in: add dumptype custom-compress.
34 add ssh,krb5 as valid input for auth.
35 * man/xml-source/amanda.conf.5.xml: give reference to
36 custom-compress, encrypt-fast dumptypes.
38 2006-03-14 Jean-Louis Martineau <martineau@zmanda.com>
39 * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
41 * common-src/amfeatures.c (am_init_feature_set): Set
43 * restore-src/restore.h (search_tapes): Add their_features parameter.
44 * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
45 * restore-src/amidxtaped.c: Add their_features to search_tapes call.
46 * restore-src/restore.c (search_tapes): Send FEEDME only if client
49 2006-03-11 Jean-Louis Martineau <martineau@zmanda.com>
50 * server-src/driverio.c : Fix errors found using Coverity tools.
52 2006-03-10 Jean-Louis Martineau <martineau@zmanda.com>
53 * server-src/taperscan.c: Fix Coverity fix.
55 2006-03-10 Jean-Louis Martineau <martineau@zmanda.com>
56 * changer-src/scsi-changer-driver.c:
57 Fix errors found using Coverity tools.
58 * server-src/diskfile.c: Fix errors found using Coverity tools.
59 * server-src/planner.c: Fix errors found using Coverity tools.
60 * server-src/taperscan.c: Fix errors found using Coverity tools.
62 2006-03-10 Jean-Louis Martineau <martineau@zmanda.com>
63 * server-src/driverio.c: Undo my bad fix.
64 * server-src/infofile.c: Fix errors found using Coverity tools.
65 * tape-src/tapetype.c: Fix errors found using Coverity tools.
67 2006-03-09 Jean-Louis Martineau <martineau@zmanda.com>
68 * restore-src/restore.c: Fix errors found using Coverity tools.
70 2006-03-09 Jean-Louis Martineau <martineau@zmanda.com>
71 * server-src/holding.c: Fix John fix.
73 2006-03-09 Jean-Louis Martineau <martineau@zmanda.com>
74 * server-src/driverio.c: Fix errors found using Coverity tools.
75 * server-src/planner.c: Fix John fix.
77 2006-03-09 John Franks <jrfranks@zmanda.com>
78 * changer-src/chg-scsi.c: Fix errors found using Coverity tools.
79 * changer-src/scsi-changer-driver.c:
80 Fix errors found using Coverity tools.
81 * changer-src/sense.c: Fix errors found using Coverity tools.
82 * client-src/sendbackup-dump.c: Fix errors found using Coverity tools.
83 * client-src/sendbackup.c: Fix errors found using Coverity tools.
84 * recover-src/display_commands.c:Fix errors found using Coverity tools.
85 * regex-src/regcomp.c: Fix errors found using Coverity tools.
86 * restore-src/restore.c: Fix errors found using Coverity tools.
87 * server-src/amindexd.c: Fix errors found using Coverity tools.
88 * server-src/diskfile.c: Fix errors found using Coverity tools.
89 * server-src/driver.c: Fix errors found using Coverity tools.
90 * server-src/driverio.c: Fix errors found using Coverity tools.
91 * server-src/infofile.c: Fix errors found using Coverity tools.
92 * server-src/planner.c: Fix errors found using Coverity tools.
93 * server-src/taper.c: Fix errors found using Coverity tools.
94 * server-src/taperscan.c: Fix errors found using Coverity tools.
95 * server-src/conffile.c: Change report default to use at least
96 one space between every column.
98 2006-03-08 Jean-Louis Martineau <martineau@zmanda.com>
99 * client-src/amandad.c: Fix coverity bug.
100 * client-src/calcsize.c: Fix coverity bug.
101 * client-src/client_util.c: Fix coverity bug.
102 * client-src/sendbackup.c: Fix coverity bug.
103 * client-src/sendsize.c: Fix coverity bug.
104 * common-src/bsd-security.c: Fix coverity bug.
105 * common-src/file.c: Fix coverity bug.
106 * common-src/fileheader.c: Fix coverity bug.
107 * common-src/pipespawn.c: Fix coverity bug.
108 * recover-src/extract_list.c: Fix coverity bug.
109 * restore-src/restore.c: Fix coverity bug.
110 * server-src/amindexd.c: Fix coverity bug.
111 * server-src/conffile.c: Fix coverity bug.
112 * server-src/diskfile.c: Fix coverity bug.
113 * server-src/driverio.c: Fix coverity bug.
114 * server-src/dumper.c: Fix coverity bug.
115 * server-src/planner.c: Fix coverity bug.
116 * server-src/reporter.c: Fix coverity bug.
118 2006-03-07 Paddy Sreenivasan <paddy@zmanda.com>
119 * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
121 2006-03-07 Jean-Louis Martineau <martineau@zmanda.com>
122 * server-src/taper.c: Don't log a multi-line message in no-tape case.
124 2006-03-06 John Franks <jrfranks@zmanda.com>
125 * recover-src/extract_list.c:
126 1) Don't add '.' directory twice to tar extract list.
127 2) Don't prepend extra '/' to extract patterns starting with '/'.
128 3) Convert "/" extract pattern to "*" equivalent.
130 2006-03-06 Jean-Louis Martineau <martineau@zmanda.com>
131 * server-src/taperscan.c (scan_slot): append slotstr to
133 * server-src/taperscan.c: Add a '\n' after each slot error message.
135 2006-03-06 Jean-Louis Martineau <martineau@zmanda.com>
136 * server-src/reporter.c (handle_error): Handle error from taper.
138 2006-03-06 Jean-Louis Martineau <martineau@zmanda.com>
139 * server-src/taper.c (label_tape): Set errstr and return 0 if no
140 valid tape are available.
142 2006-03-03 Ian Turner <ian@zmanda.com>
143 * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and
145 * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
146 * recover-src/extract_list.c: Accept port number with CONNECT;
147 implement fe_amidxtaped_FEEDME.
148 * restore-src/amidxtaped.c: Introduce port number with CONNECT.
149 (closes SF bug 1431623)
150 * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
151 (closes SF bug 1421433)
152 * restore-src/restore.h: Properly name rst_flags.
154 2006-02-28 Jean-Louis Martineau <martineau@zmanda.com>
155 * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
156 Set bh->proto_handle to NULL after allocating bh.
157 * common-src/bsd-security.c (bsd_close): Donothing if
158 bh->proto_handle == NULL.
160 2006-02-28 Jean-Louis Martineau <martineau@zmanda.com>
161 * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
164 2006-02-28 Jean-Louis Martineau <martineau@zmanda.com>
165 * server-src/driver.c: Print dumper TRY_AGAIN message.
167 2006-02-28 Jean-Louis Martineau <martineau@zmanda.com>
168 * server-src/planner.c: Don't print estimate size if estimate failed.
170 2006-02-25 Ian Turner <ian@zmanda.com>
171 * man/Makefile.am: Don't use static patterns (as they are not
172 portable), use implicit rules instead.
174 2006-02-20 Kevin Till <ktill@zmanda.com>
175 * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
177 * common-src/krb5-security.c: ditto.
179 2006-02-16 Kevin Till <ktill@zmanda.com>
180 * example/amanda.conf.in: dumptype option is "encrypt"
181 * man/xml-source/amanda.conf.5.xml: ditto
182 * server-src/holding.c: util.h is include'd twice
183 * common-src/ssh-security.c: set correct debug print
185 2006-02-10 Kevin Till <ktill@zmanda.com>
186 * man/xml-source/amanda.8.xml: replace informaltable with literallayout
188 2006-02-13 John Franks <jrfranks@zmanda.com>
189 * server-src/driver.c: Pring a more precise message when taper
190 returns an error. Include error message from taper in log.
191 Print out "protocol error" if taper returns a bogus command.
193 2006-02-10 Kevin Till <ktill@zmanda.com>
194 * man/xml-source/amanda.conf.5.xml: add note about first character of a
195 tapetype string must be alphabet
197 2006-02-10 John Franks <jrfranks@zmanda.com>
198 * server-src/taper.c: Call error() if an invalid string is read
199 by syncpipe_getstr().
201 2006-02-09 John Franks <jrfranks@zmanda.com>
202 * Makefile.am, */Makefile.am: Corrections generated by David Braun
203 dustybird@users.sourceforge.net to properly set source directories
204 for remote (VPATH) builds.
205 * man/Makefile.am: Fixed man page builds to use proper source and
207 * autogen: Force rebuilding everything and print only syntax errors.
208 (Errors are seen occasionally in system autogen files...)
209 * configure.in: Eliminate possibility of empty string in shell tests.
210 fix quoting of '[' and ']' characters in help messages.
211 Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
213 2006-02-08 Ian Turner <ian@zmanda.com>
214 * server-src/driver.c (handle_taper_result): Properly handle
215 SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
218 2006-02-06 Kevin Till <ktill@zmanda.com>
219 * restore-src/restore.c: fix comment formatting on version 1.2.1
221 2006-02-06 Kevin Till <ktill@zmanda.com>
222 * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
223 * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
224 * server-src/amcheck.c: ditto
225 * server-src/dumper.c: ditto
226 * restore-src/restore.c: add missing "}"
228 2006-02-06 Ian Turner <ian@zmanda.com>
229 * restore-src/amidxtaped.c: Properly handle changers,
230 tape-label checking, and tape prompting in amrecover,
231 amindexd, and amidextaped. Thanks to Paul Bijnens
232 <pbijnens@users.sourceforge.net> for the patch.
233 * restore-src/restore.c: ditto.
234 * server-src/amindexd.c: ditto.
236 2006-02-04 Paddy Sreenivasan <paddy@zmanda.com>
237 * man/xml-source/amfetchdump.8.xml
238 * man/xml-source/amcrypt.8.xml
239 * man/xml-source/amanda.conf.5.xml
240 * man/xml-source/amanda.8.xml
241 * man/xml-source/amaespipe.8.xml
242 * man/entities/global.entities: Merged changes from xml-docs tree
244 2006-02-03 John Franks <jrfranks@zmanda.com>
245 * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
247 2006-02-03 Ian Turner <ian@zmanda.com>
248 * server-src/amadmin.c (main): Don't free conf_tapelist too
249 early. Thanks to Cédric Lucantis
250 <cedric-lucantis@users.sourceforge.net> for the patch.
252 2006-02-02 Kevin Till <ktill@zmanda.com>
253 * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem
255 * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
257 2006-02-02 Ian Turner <ian@zmanda.com>
258 * recover-src/extract_list.c (extract_files_child): Run tar with
259 --numeric-owner if we are extracting a non-sambafied tar file.
260 Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for
261 the patch. Thanks also to Mark Schaefer for suggesting this
264 2006-02-01 Jean-Louis Martineau <martineau@zmanda.com>
265 * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
266 cast size_t to am64_t and use AM64_FMT to printf them.
268 2006-01-31 Jean-Louis Martineau <martineau@zmanda.com>
269 * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
270 before adding it to tapeq.
272 2006-01-27 Ian Turner <ian@zmanda.com>
273 * configure.in: Add new option --without-xsltproc (and
274 --with-xsltproc), which turns off (or forces) the use of xsltproc to
275 build manpages. Thanks to Paul Bijnens
276 <pbijnens@users.sourceforge.net> for suggesting this feature.
278 2006-01-27 Ian Turner <ian@zmanda.com>
279 * restore-src/amfetchdump.c: Properly clean up logfiles. Also,
280 run as user amanda even if we are started as some other user.
281 Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the
284 2006-01-25 Paddy Sreenivasan <paddy@zmanda.com>
285 * common-src/amanda.h: Removed unnecessary header include files.
287 2006-01-25 Kevin Till<ktill@zmanda.com>
288 * server-src/amadmin.c: fix for sourceforge bug 1412698
289 add missing parameters to "amadmin x disklist"
290 * server-src/amstatus.pl.in: untaint user input, enforce known path.
291 * server-src/amoverview.pl.in: untaint user input (bug 1353481)
293 2006-01-25 Kevin Till<ktill@zmanda.com>
294 * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible
295 with some tag) add supported auth types.
297 2006-01-25 Kevin Till<ktill@zmanda.com>
298 * common-src/bsd-security.c: move check_security to bsd_security.c,
300 Thanks to Paul Bijnens
301 * restore-src/amidxtaped.c: ditto
302 * server-src/amindexd.c: ditto and no need to tell client
303 about reason for denial
304 * common-src/amanda.h: add proto of check_security
305 * server-src/conffile.c: don't list CRYPT in the summary report
307 * restore-src/restore.c: set outfd correctly for amfetchdump cases
308 Thanks to Paul Bijnens
310 2006-01-24 Ian Turner <ian@zmanda.com>
311 * man/xml-source/amanda.conf.5.xml: Put documentation of
312 split-dump options in the right place. Thanks to Paul Bijnens
313 <pbijnens@users.sourceforge.net> for the fix.
314 * man/xml-source/amanda.8.xml: ditto.
316 2006-01-23 Ian Turner <ian@zmanda.com>
317 * server-src/taperscan.c (find_brand_new_tape_label): Start
318 brand new tape labels at 1 instead of 0. Thanks to Paul
319 Bijnens <pbijnens@users.sourceforge.net> for the fix.
321 2006-01-18 Jean-Louis Martineau <martineau@zmanda.com>
322 * Amanda 2.5.0b2 released.
323 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
324 * NEWS: Update for 2.5.0b2
326 2006-01-15 Jean-Louis Martineau <martineau@zmanda.com>
327 * server-src/disk_history.c: Fix memory leak.
329 2006-01-15 Jean-Louis Martineau <martineau@zmanda.com>
330 * common-src/bsd-security.c: Fix memory leak.
331 * common-src/tapelist.c: Fix memory leak.
332 * restore-src/amidxtaped.c: Fix memory leak.
333 * restore-src/restore.c: Fix memory leak.
334 * server-src/amindexd.c: Fix memory leak.
335 * server-src/conffile.c: Fix memory leak.
336 * server-src/disk_history.c: Fix memory leak.
337 * server-src/find.c: Fix memory leak.
339 2006-01-13 John Franks <jrfranks@zmanda.com>
340 * client-src/amandad.c: Remove SO_LINGER and TCP_NDELAY.
341 Loop on I/O if EINTR or EAGAIN.
342 * client-src/noop.c: Loop on I/O if EINTR or EAGAIN.
343 * client-src/sendbackup.c: Remove SIGPIPE handler.
344 Loop on I/O if EINTR or EAGAIN.
345 Check for EPIPE on writes.
346 * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
347 * common-src/stream.c: Remove SO_LINGER and TCP_NDELAY.
348 * common-src/util.c: Loop on I/O if EINTR or EAGAIN.
349 * recover-src/amrecover.c: Write commanda atomically in sigint handler
350 * recover-src/extract_list.c:Remove SIGPIPE handler.
351 Loop on I/O if EINTR or EAGAIN.
352 Check for EPIPE on writes.
353 Remove shutdown functions.
354 * restore-src/amfetchdump.c: Remove SIGPIPE handler.
355 * restore-src/amidxtaped.c: Remove SO_LINGER and TCP_NDELAY.
356 Remove SIGPIPE handler.
357 read_file_header does not return if it
358 Fix infinite loop on EOF or error and
359 fail if memory reallocation failure in
361 * restore-src/restore.c: Remove SIGPIPE handler.
362 Loop on I/O if EINTR or EAGAIN.
363 Remove shutdown functions.
365 * restore-src/restore.h: Change read_file_header to return void
366 * server-src/amcheck.c: Use fullread() to handel EINTR etc.
367 Remove unused variable.
368 * server-src/changer.c: Remove SO_LINGER and TCP_NDELAY.
369 Use fullwrite on socket.
370 * server-src/driverio.c: Remove SO_LINGER and TCP_NDELAY.
371 * server-src/taper.c: Use fullwrite() to write data.
372 Use fullread() to read data.
373 * tape-src/output-file.c; Use fullwrite() to write data.
375 2006-01-13 Jean-Louis Martineau <martineau@zmanda.com>
376 * server-src/amcheck.c (start_server_check): Remove unused variable
378 * restore-src/restore.c (restore): Remove unused variable s, l and
381 2006-01-12 Jean-Louis Martineau <martineau@zmanda.com>
382 * recover-src/extract_list.c (send_to_tape_server): Do only on write.
383 * restore-src/amidxtaped.c (get_client_line_fd): New function to read
384 one complete line from an fd.
386 2006-01-09 John Franks <jrfranks@zmanda.com>
387 * common-src/amanda.h: Include tcp.h
388 * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
389 * common-src/dgram.c: No linger on datagrams
390 * common-src/stream.c: Set TCP_NODELAY and SO_LINGER on sockets.
391 * common-src/util.c: Fix fullwrite to return # of bytes written
393 * example/amanda.conf.in: Cleanup exclude list template.
394 Use configure directlries instead of /usr/local
395 * recover-src/extract_list.c: Cleanup read loops.
396 Use real fullwrite instead of inline versions.
397 Remove extra setting of LINGER on socket.
398 * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
399 * restore-src/restore.c:Use real fullwrite instead of inline versions.
400 * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
401 * server-src/chunker.c: Use real fullwrite instead of inline versions.
402 * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
403 * server-src/dumper.c: Use real fullwrite instead of inline versions.
405 2006-01-09 Ian Turner <ian@zmanda.com>
406 * changer-src/scsi-changer-driver.c: If there is a problem opening
407 the device during GenericRewind, don't retry for 201 minutes; give
408 up after only 200 seconds.
410 2006-01-09 Ian Turner <ian@zmanda.com>
411 * server-src/taperscan.c: When doing taper-scan algorithm, properly
414 2006-01-09 Ian Turner <ian@zmanda.com>
415 * tape-src/tapeio.c: Generate a more reasonable message when
416 reading an empty tape label on brand-new tapes.
418 2006-01-09 Ian Turner <ian@zmanda.com>
419 * server-src/amcheck.c: Actually do what the documentation for
420 amcheck -w says; that is, overwrite labels on tapes.
422 2006-01-06 Kevin Till<ktill@zmanda.com>
423 * server-src/amcheck.c: check if encrypt or compress program is
424 executable. Check encrypt/compress configuration.
425 * server-src/dumper.c: kill encrypt child when dump is stopped
426 * server-src/amcrypt.sh.in: check for aespipe
427 * server-src/amaespipe.sh.in: adjust PATH
428 * man/xml-source/amtapetype.8.xml: fix format problem.
430 2006-01-06 Jean-Louis Martineau <martineau@zmanda.com>
431 * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
433 2006-01-06 Jean-Louis Martineau <martineau@zmanda.com>
434 * restore-src/restore.c (flush_open_outputs): Another shutdown is
437 2006-01-05 John Franks <jrfranks@zmanda.com>
438 * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
439 Use shutdown() on sockets.
440 Retry reads in case of EINTR or EAGAIN.
441 * common-src/stream.c: set linger on correct socket.
442 Extend linger timeouts to 60 seconds.
443 * restore-src/restore.c: Fix compiler warnings.
444 * Call shutdown in more cases.
446 2006-01-05 John Franks <jrfranks@zmanda.com>
447 * client-src/amandad.c: Set SO_LINGER on sockets.
448 * common-src/dgram.c: Set SO_LINGER on sockets.
449 * common-src/stream.c: Set SO_LINGER on sockets.
450 * common-src/util.c: Return any bytes already read on error or EOF.
451 * recover-src/extract_list.c: Set SO_LINGER on data socket.
452 Fix printf of unterminated string data.
453 Check return codes on socket header reads.
454 * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
455 Check return codes on socket header reads.
456 * restore-src/restore.c:
457 Flush newline after operator prompt.
458 * common-src/debug.c:
459 Fix memory leak when debug file name already exists.
460 Print error text upon hard open() error.
461 Allow group members read only access to log files.
463 2006-01-05 Kevin Till<ktill@zmanda.com>
464 * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
465 early when it sees trailing garbage after EOF.
467 2006-01-02 Jean-Louis Martineau <martineau@zmanda.com>
468 * common-src/amanda.h: Add a FD_COPY macro.
469 * recover-src/extract_list.c (writer_intermediary): Don't use
470 writer_intermediary, do the select locally.
472 2006-01-02 Jean-Louis Martineau <martineau@zmanda.com>
473 * restore-src/restore.c (flush_open_outputs): Call shutdown before
476 2005-12-30 John Franks <jrfranks@zmanda.com>
477 * recover-src/extract_list.c:
478 Fix double clearing of buffer during normal read path.
479 * restore-src/amidxtaped.c
480 Actually initialize changer if it is needed. (Set use_changer
481 before checking it...)
482 * Fix control messages being sent down the data pipe when
483 restoring to client that does not support split dumps.
484 * Print error and exit if a split dump is needed during restore
485 and client can not handle it.
487 2005-12-30 Ian Turner <ian@zmanda.com>
488 * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header
489 syntax, in favor of xx/-1.
491 2005-12-29 John Franks <jrfranks@zmanda.com>
492 * Index: recover-src/display_commands.c
493 Fix list deletion which did not update list root with NULL pointer.
494 Make free_dir_item() a non-recursive function to prevent stack bloat.
495 Fix list insertion code which inserts item in list initializes entry.
496 * Index: recover-src/extract_list.c
497 Fix to initialize lditem before using it...
498 Prevent multiple frees of cmd string.
499 Do not free err which is only initialized with static string pointers.
500 Fix typo which caused newstralloc() to free the wrong memory.
501 * Index: server-src/amindexd.c
502 Fix Compiler warning of unused variable.
503 * Index: server-src/taperscan.c
504 Fix Compiler warning of bogus format specifier.
506 2005-12-29 Kevin Till<ktill@zmanda.com>
507 * man/xml-source/amcrypt.8.xml: add new amcrypt man page
508 * man/xml-source/amaespipe.8.xml: add new amaespipe man page
510 2005-12-29 Ian Turner <ian@zmanda.com>
511 * man/xml-source/amanda.conf.5.xml: Document label_new_tapes
514 2005-12-28 Ian Turner <ian@zmanda.com>
515 * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
516 * recover-src/display_commands.c: ditto
517 * recover-src/extract_list.c: ditto. Also use dynamic strings in
518 struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
520 2005-12-28 Ian Turner <ian@zmanda.com>
521 * common-src/amfeatures.h: Add three new amfeatures:
522 fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
523 fe_amindexd_marshall_in_DHST.
524 * common-src/amfeatures.c: ditto.
525 * server-src/amindexd.c: Talk well to older clients.
527 2005-12-23 Ian Turner <ian@zmanda.com>
528 * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
529 returns NULL. Also, don't return NULL from
530 find_brand_new_tape_label without a good excuse.
532 2005-12-23 Kevin Till <ktill@zmanda.com>
533 * client-src/client_util.c: change server_decrypt_option to
534 server-decrypt-option
535 * client-src/sendbackup.c: change client_decrypt_option to
536 client-decrypt-option
537 * server-src/dumper.c: ditto
538 * common-src/amfeatures.c: add crypt related amfeaturs
539 * common-src/amfeatures.h: ditto
540 * server-src/diskfile.c: amfeatures checking and warns on
543 2005-12-23 Paddy Sreenivasan <paddy@zmanda.com>
544 * restore-src/restore.c:
545 * server-src/amtape.c:
546 * server-src/taperscan.c : Make scan_init static function
548 2005-12-23 John Franks <jrfranks@zmanda.com>
549 * server-src/taper.c: Reduce I/O's system call overhead by 30%
550 in main read / write loop.
552 2005-12-23 John Franks <jrfranks@zmanda.com>
553 * recover-src/restore.c Remove inapproriate aclose which caused
555 * recover-src/extract_list.c Fix and cleanup read_buffer()
556 mainly to fix hole that drops parital buffer of data if end
557 of file is reached or an error occured.. Touched up calling
558 functions to make sure EOF/timeouts are handled correctly.
559 Increased normal path read timeout value from on second to
560 whatever READ_TIMEOUT is set to.
562 2005-12-22 Jean-Louis Martineau <martineau@zmanda.com>
564 * restore-src/restore.c (restore): Remova an aclose.
566 2005-12-22 Jean-Louis Martineau <martineau@zmanda.com>
568 * restore-src/amidxtaped.c (cleanup): Function registered with atexit
569 to remove the log file.
571 2005-12-20 Jean-Louis Martineau <martineau@zmanda.com>
573 * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
575 2005-12-20 John Franks <jrfranks@zmanda.com>
577 * restore-src/restore.c: Remove unused variables.
578 Fix uninitialize reference to bytes_read.
579 * server-src/amcheck.c: Remove unused variables.
580 Include taperscan.h for missing prototype.
581 * server-src/amtape.c: Remove unused variables.
582 Include taperscan.h for missing prototype.
583 * server-src/taper.c: Remove unused variables.
584 Minor indenting changes.
585 * server-src/taperscan.c:Remove unused variables.
586 Fix typo which assigns NULL rather than
588 Commented out reference to auto_pos which
589 is assigned but never used...
591 2005-12-20 Jean-Louis Martineau <martineau@zmanda.com>
593 * common-src/fileheader.c (parse_file_header): Parse '/' in part.
594 * common-src/fileheader.c (build_header): Add space ' ' before "part".
596 2005-12-20 Jean-Louis Martineau <martineau@zmanda.com>
598 * server-src/reporter.c: Fix report of output size.
600 2005-12-19 Ian Turner <ian@zmanda.com>
601 * server-src/taperscan.c: Check that automatic tape labels satisfy
604 2005-12-19 Ian Turner <ian@zmanda.com>
605 * server-src/fileheader.c: Fix broken split-dump file headers.
607 2005-12-18 Jean-Louis Martineau <martineau@zmanda.com>
608 Patch by Paul Bijnens
610 * server-src/amcheck.c: Tapelist file is regular file.
612 2005-12-17 Jean-Louis Martineau <martineau@zmanda.com>
614 * restore-src/restore.c (get_block): Return a ssize_t.
615 * restore-src/restore.c: convert ssize_t to long for printing.
616 * restore-src/restore.c (restore>): Remove unused variable, outpipe,
619 2005-12-17 John R. Franks <jrfranks@zmanda.com>
621 * restore-src/restore.h (read_file_header, restore): Return a ssize_t
622 instead of using a global variable bytes_read.
623 * restore-src/restore.c: Use local variable instead of global
624 bytes_read. Many memory management fixe. Fixe pipe handling,
625 * restore-src/amrestore.c: Use new read_file_header and restore.
626 * restore-src/amfetchdump.c: Use new read_file_header and restore.
628 2005-12-17 Jean-Louis Martineau <martineau@zmanda.com>
629 With Kevin Till <ktill@zmanda.com>
631 * common-src/fileheader.c (parse_file_header): Fix parsing of first
633 * common-src/fileheader.c (build_header): Print crypt after programi
634 and only if it is needed.
636 2005-12-14 Ian Turner <ian@zmanda.com>
638 * common-src/alloc.c: Add new function vstrextend, which extends an
640 * common-src/amanda.h: Define vstrextend.
641 * example/amanda.conf.in: Document new option
642 label_new_tapes. Change default labelstr.
643 * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
645 * restore-src/restore.c: Use the new changer_find interface.
646 * server-src/Makefile.am: Add new file taperscan.c
647 * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
648 instead of the previous separate amcheck implementation.
649 * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
650 instead of the previous separate amtape implementation. Also, use
651 the new changer_find interface for other kinds of tape finding.
652 * server-src/changer.c: Eliminate changer_scan. Change the API to
653 changer_find, so that callers can pass a user-data object, instead
655 * server-src/changer.h: Declare and document new changer_find
657 * server-src/conffile.c: Add new config option label_new_tapes.
658 * server-src/conffile.h: ditto.
659 * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
660 instead of the previous separate taper implementation. Also,
661 combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
662 difference only matters on writing).
663 * server-src/taperscan.c: Refactor the taper-scan algorithm from
664 taper, amtape, and amcheck. Implement label_new_tapes feature.
665 * server-src/taperscan.h: Declare and document new taperscan
667 * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
668 and some other tape-reading problem.
669 * tape-src/tapeio.h: New declarations.
671 2005-12-13 Jean-Louis Martineau <martineau@zmanda.com>
673 * server-src/reporter.c (handle_success): On a taper line, the outsize
674 should only count dump to tape, not flush.
676 2005-12-13 Jean-Louis Martineau <martineau@zmanda.com>
678 * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
680 2005-12-09 John Franks <jrfranks@zmanda.com>
682 * client-src/Makefile.am: Do not include tape library if
683 configuring with --without-server option.
684 * recover-src/Makefile.am: Do not include tape library if
685 configuring with --without-server option.
687 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
689 * configure.in: Move the size detection after detection of large
690 file support. That change the size of off_t.
692 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
694 * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
695 * server-src/taper.c: Use OFF_T_FMT.
697 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
699 * configure.in: Set LL_FMT correctly.
700 * server-src/conffile.c: Use LL_FMT.
702 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
704 * server-src/conffile.c: Maxdumpsize is a AM64.
705 * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
706 tape_mark are am64_t.
708 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
710 * configure.in: Check for sizeof of many type. Check printf format of
712 * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
713 set AM64_FMT to the printf format of a am64_t variable.
714 * server-src/conffile.c: New AM64 type.
715 * server-src/conffile.h(getconf_am64): Prototype.
717 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
719 * client-src/Makefile.am: Remove amqde.
720 * client-src/sendsize.c: Remove code to call amqde.
721 * client-src/amqde.c: Remove file.
722 * configure.in: Remove '--with-qde' option.
724 2005-12-05 Jean-Louis Martineau <martineau@zmanda.com>
726 * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
727 str_buffer_sizebuf instead of sizeof(bug).
729 2005-12-05 Jean-Louis Martineau <martineau@zmanda.com>
731 * server-src/planner.c: Print the time in the FINISH line.
732 * server-src/reporter.c: The estimate time is based on the planner
735 2005-12-05 Jean-Louis Martineau <martineau@zmanda.com>
737 * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
739 2005-12-05 Jean-Louis Martineau <martineau@zmanda.com>
741 * server-src/holding.c (scan_holdingdisk): Static function.
742 * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
743 * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
745 2005-12-04 Jean-Louis Martineau <martineau@zmanda.com>
747 * server-src/logfile.c (logtype_str): Add important ','.
749 2005-12-03 Jean-Louis Martineau <martineau@zmanda.com>
751 * server-src/planner.c (setup_estimate): Fix wrong order for argument.
753 2005-12-03 Jean-Louis Martineau <martineau@zmanda.com>
755 * server-src/driver.c (start_some_dumps): Don't test for
756 cur_idle == NOT_IDLE.
758 2005-12-03 Jean-Louis Martineau <martineau@zmanda.com>
760 * server-src/driverio.c (check_unfree_serial): New fonction to check
761 unfreed serial number.
762 * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
763 * server-src/driverio.h (check_unfree_serial): Prototype.
764 * server-src/driver.c (main): Call check_unfree_serial.
766 2005-12-02 Jean-Louis Martineau <martineau@zmanda.com>
767 Patch by Franz Fischer
769 * config/acinclude.m4i: Fix for __alpha.
771 2005-12-02 Jean-Louis Martineau <martineau@zmanda.com>
773 * common-src/util.c: Debug must end with '\n'.
775 2005-12-01 Jean-Louis Martineau <martineau@zmanda.com>
777 * configure.in: Amanda support x86_64-unknown-linux-gnu.
779 2005-11-30 Jean-Louis Martineau <martineau@zmanda.com>
781 * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
782 * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
783 * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
785 2005-11-30 Jean-Louis Martineau <martineau@zmanda.com>
787 * client-src/rundump.c: undef USE_RUNDUMP before define.
789 2005-11-30 Jean-Louis Martineau <martineau@zmanda.com>
790 Patch by Franz Fischer
792 * client-src/amqde.c: Fix compiler warning.
794 2005-11-30 Jean-Louis Martineau <martineau@zmanda.com>
795 Patch by Franz Fischer
797 * common-src/event.h: Fix compiler warning.
798 * server-src/conffile.h: Fix compiler warning.
800 2005-11-30 Kevin Till <ktill@zmanda.com>
802 * client-src/client_util.c add server-side, client-side encryption
803 as well as custom compression. Custom compression patch is
804 orginally created by Matthieu Lochegnies.
805 * client-src/client_util.h Ditto
806 * client-src/selfcheck.c Ditto
807 * client-src/sendbackup-dump.c Ditto
808 * client-src/sendbackup-gnutar.c Ditto
809 * client-src/sendbackup.c Ditto
810 * client-src/sendbackup.h Ditto
811 * common-src/fileheader.c Ditto
812 * common-src/fileheader.h Ditto
813 * common-src/util.h Ditto
814 * example/amanda.conf.in Ditto
815 * man/xml-source/amanda.conf.5.xml Ditto
816 * restore-src/amrestore.c Ditto
817 * restore-src/restore.c Ditto
818 * server-src/conffile.c Ditto
819 * server-src/conffile.h Ditto
820 * server-src/diskfile.c Ditto
821 * server-src/diskfile.h Ditto
822 * server-src/dumper.c Ditto
824 2005-11-29 Jean-Louis Martineau <martineau@zmanda.com>
826 * config/libtool.m4i: libtool 1.5.20
827 * config/ltmain.sh: libtool 1.5.20
829 2005-11-29 Jean-Louis Martineau <martineau@zmanda.com>
830 Patch by Franz Fischer
832 * common-src/fileheader.c (build_header): Declation before instruction.
833 * restore-src/amfetchdump.c: Don't use C++ style comment.
834 * restore-src/restore.c: Don't use C++ style comment.
835 * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
836 dynamicaly allocated.
837 * server-src/logfile.h: Don't use C++ style comment.
838 * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
840 2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
841 * common-src/rsh-security.c: Fix x86_64 compile warnings.
842 * common-src/ssh-security.c: Fix x86_64 compile warnings.
843 * man/Makefile.am: Added EXTRA_XML files.
844 * man/xml-source/amanda.8.xml: Added spanning patch variables.
845 * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
846 * xslt/global.entities: Removed file.
848 2005-11-20 Jean-Louis Martineau <martineau@zmanda.com>
849 Patch by Jon H. LaBadie
851 * changer-src/chg-disk.sh.in: Check permission on file access.
853 2005-11-17 Paddy Sreenivasan <paddy@zmanda.com>
854 * man/entities/global.entities: New file. Added man page entities.
855 * man/entities/xinclude.dtd: New file.
856 * man/xslt/man.xsl: Correct include path for settings.xsl.
858 2005-11-15 John R. Franks <jrfranks@zmanda.com>
859 * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
860 * common-src/rsh-security.c: Fix IA-64 compile warnings.
861 * common-src/ssh-security.c: Fix IA-64 compile warnings.
862 * regex-src/engine.c: Fix IA-64 compile warnings.
863 * regex-src/regexec.c: Fix IA-64 compile warnings.
865 2005-11-15 Paddy Sreenivasan <paddy@zmanda.com>
867 * configure.in: Changed defaults for tape_dev and nr_tape_dev.
868 * example/amanda.conf.in: Leave only changerfile definition
870 * man/xml-source/amanda.conf.5.xml: Updated defaults for
871 tapedev and rawtapedev
873 2005-11-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
875 * server-src/planner.c: Fix incronly.
877 2005-11-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
879 * man/Makefile.am: Set man_MANS,
881 2005-11-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
883 * man/Makefile.am: Set man5_MANS and man8_MANS,
884 install-data-hook use them.
886 2005-11-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
887 Patch by Olivier Cherrier
889 * man/Makefile.am (install-data-hook): Set protection correclty
892 2005-10-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
894 * common-src/util.c (bind_portrange): Increase port in all case.
896 2005-10-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
898 * server-src/conffile.c: Allow runtapes==0.
899 * server-src/driver.c: Use a global conf_runtapes. Don't start a
900 taper if runtapes==0.
901 * server-src/reporter.c: Don't print The next tapes if runtapes==0.
904 2005-10-24 Jean-Louis Martineau <martineau@iro.umontreal.ca>
906 * Amanda 2.5.0b1 released.
907 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
908 * NEWS: Update for 2.5.0b1.
910 2005-10-25 Ian Turner <ian@zmanda.com>
912 * man/Makefile.am: include amfetchdump.8.
913 * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
914 * man/xml-source/amanda.8.xml: ditto
915 * man/xml-source/amrecover.8.xml: ditto
916 * man/xml-source/amfetchdump.8.xml: ditto (new file)
917 * man/xslt/global.entities: Add myself, Zmanda Inc.
919 2005-10-24 Jean-Louis Martineau <martineau@zmanda.com>
921 * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
924 2005-10-20 Jean-Louis Martineau <martineau@zmanda.com>
926 * server-src/server_util.c (getcmd): Print DEBUG to stderr.
928 2005-10-20 Ian Turner <ian@zmanda.com>
930 * configure.in: Check for xsltproc.
931 * man/Makefile.am: Properly build, clean, and distribute generated
932 manpages from XML source.
933 * man/amadmin.8: Remove from CVS
934 * man/amanda.8: Remove from CVS
935 * man/amanda.conf.5: Remove from CVS
936 * man/amcheck.8: Remove from CVS
937 * man/amcheckdb.8: Remove from CVS
938 * man/amcleanup.8: Remove from CVS
939 * man/amdd.8: Remove from CVS
940 * man/amdump.8: Remove from CVS
941 * man/amflush.8: Remove from CVS
942 * man/amgetconf.8: Remove from CVS
943 * man/amlabel.8: Remove from CVS
944 * man/ammt.8: Remove from CVS
945 * man/amoverview.8: Remove from CVS
946 * man/amplot.8: Remove from CVS
947 * man/amrecover.8: Remove from CVS
948 * man/amreport.8: Remove from CVS
949 * man/amrestore.8: Remove from CVS
950 * man/amrmtape.8: Remove from CVS
951 * man/amstatus.8: Remove from CVS
952 * man/amtape.8: Remove from CVS
953 * man/amtapetype.8: Remove from CVS
954 * man/amtoc.8: Remove from CVS
955 * man/amverify.8: Remove from CVS
956 * man/amverifyrun.8: Remove from CVS
957 * man/xml-source/amadmin.8.xml: Add from xml-docs
958 * man/xml-source/amanda.8.xml: Add from xml-docs
959 * man/xml-source/amanda.conf.5.xml: Add from xml-docs
960 * man/xml-source/amcheck.8.xml: Add from xml-docs
961 * man/xml-source/amcheckdb.8.xml: Add from xml-docs
962 * man/xml-source/amcleanup.8.xml: Add from xml-docs
963 * man/xml-source/amdd.8.xml: Add from xml-docs
964 * man/xml-source/amdump.8.xml: Add from xml-docs
965 * man/xml-source/amflush.8.xml: Add from xml-docs
966 * man/xml-source/amgetconf.8.xml: Add from xml-docs
967 * man/xml-source/amlabel.8.xml: Add from xml-docs
968 * man/xml-source/ammt.8.xml: Add from xml-docs
969 * man/xml-source/amoverview.8.xml: Add from xml-docs
970 * man/xml-source/amplot.8.xml: Add from xml-docs
971 * man/xml-source/amrecover.8.xml: Add from xml-docs
972 * man/xml-source/amreport.8.xml: Add from xml-docs
973 * man/xml-source/amrestore.8.xml: Add from xml-docs
974 * man/xml-source/amrmtape.8.xml: Add from xml-docs
975 * man/xml-source/amstatus.8.xml: Add from xml-docs
976 * man/xml-source/amtape.8.xml: Add from xml-docs
977 * man/xml-source/amtapetype.8.xml: Add from xml-docs
978 * man/xml-source/amtoc.8.xml: Add from xml-docs
979 * man/xml-source/amverify.8.xml: Add from xml-docs
980 * man/xml-source/amverifyrun.8.xml: Add from xml-docs
981 * man/xslt/expand-sambadoc.xsl: Add from xml-docs
982 * man/xslt/global.entities: Add from xml-docs
983 * man/xslt/man.xsl: Add from xml-docs
984 * man/xslt/settings.xsl: Add from xml-docs
986 2005-10-20 Jean-Louis Martineau <martineau@zmanda.com>
988 * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
990 * server-src/driver.c: Start autoflush while waiting for estimate.
991 * server-src/planner.c: Write FLUSH line before estimate.
993 2005-10-17 Jean-Louis Martineau <martineau@zmanda.com>
994 Patch by John R. Franks <jrfranks@zmanda.com>
996 * server-src/taper.c (create_split_buffer): Should not use sizeof().
998 2005-10-17 Jean-Louis Martineau <martineau@zmanda.com>
1000 * server-src/taper.c (read_file): Move the putresult(DONE) to the
1001 right place, some cleanup.
1003 2005-10-17 Jean-Louis Martineau <martineau@zmanda.com>
1005 * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
1007 2005-10-17 Ian Turner <ian@zmanda.com>
1009 * Changelog: Fix line breaks.
1010 * restore-src/restore.c: Give more useful FSF error messages.
1011 * recover-src/extract_list.c: Do better error checking on passed port
1013 * common-src/tapelist.c: Do proper memory management of strings.
1014 Otherwise really bad stuff happens.
1016 2005-10-17 Jean-Louis Martineau <martineau@zmanda.com>
1018 * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
1019 handle it correctly.
1021 2005-10-16 Jean-Louis Martineau <martineau@zmanda.com>
1023 * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
1026 2005-10-16 Jean-Louis Martineau <martineau@zmanda.com>
1028 * server-src/driverio.c (serial2disk): Print str if error.
1030 2005-10-15 Paddy Sreenivasan <paddy@zmanda.com>
1032 * server-src/taper.c: Shared memory need not be removed in normal paths.
1033 Done as part of atexit.
1035 2005-10-15 Jean-Louis Martineau <martineau@zmanda.com>
1036 Patch by John R. Franks <jrfranks@zmanda.com>
1038 * changer-src/scsi-aix.c: calls to open/openx guages success by
1039 checking for a file descriptor greater than 0. 0 is also a valid
1040 descriptor so the check should be >= 0.
1041 Calls to SCSI_OpenDevice does not check for error return.
1042 Calls to SCSI_OpenDevice does not check for error return.
1043 Calls to SCSI_OpenDevice does not check for error return.
1044 Call to opendir() does not check for error.
1045 * changer-src/scsi-hpux_new.c: Ditto.
1046 * changer-src/scsi-irix.c: Ditto.
1047 * changer-src/scsi-linux.c: Ditto.
1048 * changer-src/scsi-solaris.c: Ditto.
1049 * client-src/selfcheck.c: Call to open() does not check for error.
1050 * client-src/sendbackup.c: Call to freopen() does not check for error.
1051 * client-src/sendsize.c: Call to open() does not check for error.
1052 * common-src/bsd-security.c: Call to open() does not check for error.
1053 * common-src/file.c: Call to open() does not check for error.
1054 * restore-src/amrestore.c: Calls to tape_open() do not always check
1055 return code. open() is called with open flags set to 0
1056 (Call always fails with an EINVAL)
1057 * restore-src/restore.c: fopen() return error check is "fopen() < 0".
1058 fopen returns a pointer and the proper check should be
1060 Call to open() does not check for error.
1061 * tape-src/tapeio.c: tape_open() is called here and other places with a
1062 variable number of arguments, and yet is not defined as a varargs
1064 * tape-src/tapeio.h: Prototype for tape_open.
1066 2005-10-15 Jean-Louis Martineau <martineau@zmanda.com>
1067 Patch by Paddy Sreenivasan <paddy@zmanda.com>
1069 * client-src/sendsize.c: Log message changes.
1070 * server-src/taper.c: And an atexit function to detach shared memory.
1071 Trap some signal and detach shared memory.
1073 2005-10-14 Jean-Louis Martineau <martineau@zmanda.com>
1075 * regex-src/regcomp.c (findmust): Initialized start to NULL.
1077 2005-10-14 Jean-Louis Martineau <martineau@zmanda.com>
1078 Patch by John R. Franks <jrfranks@zmanda.com>
1080 * regex-src/cclass.h: Fixed to add missing braces and reformat long
1081 strings to fix in 80 columns.
1082 * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
1083 * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
1084 ifdef out unused mcsub, mcin and mcfind functions.
1085 (findmust) Initialized newstart to NULL.
1086 * regex-src/regerror.c: Adds missing braces.
1087 * regex-src/regexec.c (nope): Use only in assert, so it is not only
1088 defined if NDEBUG is not defined.
1090 2005-10-14 Jean-Louis Martineau <martineau@zmanda.com>
1091 Patch by John R. Franks <jrfranks@zmanda.com>
1093 * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
1094 it is not static int.
1095 * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
1096 it is not static int.
1098 2005-10-13 Jean-Louis Martineau <martineau@zmanda.com>
1100 * common-src/util.c (bind_portrange): New argument proto.
1101 Check for reserved port.
1102 * common-src/util.h (bind_portrange): New prototype.
1103 * common-src/bsd-security.c (bind_portrange): New prototype.
1104 * common-src/dgram.c: Add "udp" as argument to bind_portrange.
1105 * common-src/stream.c: Add "tcp" as argument to bind_portrange.
1107 2005-10-12 Jean-Louis Martineau <martineau@zmanda.com>
1109 * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
1110 * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
1111 isafile, stat_tape, tapename, s, fp, ch and errstr variable.
1113 2005-10-11 Ian Turner <ian@zmanda.com>
1114 Patch by Jean-Louis Martineau <martineau@zmanda.com>
1116 * restore-src/amfetchdump.c: Remove unused variable debug.
1117 * restore-src/amidxtaped.c: Remove lock_logfile(), which is also
1119 * restore-src/Makefile.am: Include libamanda twice, to fix build
1122 2005-10-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1124 * restore-src/Makefile (noinst_HEADERS): Add restore.h.
1125 * restore-src/restore.c (search_tapes): Add the fourth argument to
1128 2005-10-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1130 * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
1132 * server-src/reporter.c (handle_partial): Set repdata to the result
1134 * server-src/taper.c: Set the first-file.
1136 2005-10-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1138 * client-src/client_util.c, server-src/amcheck.c,
1139 server-src/reporter.c: Add missing type for arguments.
1141 2005-10-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1143 * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
1145 2005-10-10 Ian Turner <ian@zmanda.com>
1147 * server-src/amtape.h: Apply tape-spanning patch by John Stange
1148 <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
1149 contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
1150 * configure.in: Ditto
1151 * amplot/Makefile.am: Ditto
1152 * changer-src/Makefile.am: Ditto
1153 * client-src/Makefile.am: Ditto
1154 * common-src/Makefile.am: Ditto
1155 * common-src/amanda.h: Ditto
1156 * common-src/amfeatures.c: Ditto
1157 * common-src/amfeatures.h: Ditto
1158 * common-src/fileheader.c: Ditto
1159 * common-src/fileheader.h: Ditto
1160 * common-src/match.c: Ditto
1161 * common-src/tapelist.c: Ditto
1162 * common-src/tapelist.h: Ditto
1163 * example/amanda.conf.in: Ditto
1164 * man/Makefile.am: Ditto
1165 * recover-src/amrecover.c: Ditto
1166 * recover-src/amrecover.h: Ditto
1167 * recover-src/display_commands.c: Ditto
1168 * recover-src/extract_list.c: Ditto
1169 * restore-src/Makefile.am: Ditto
1170 * restore-src/amfetchdump.c: Ditto
1171 * restore-src/amfetchdump.h: Ditto
1172 * restore-src/amidxtaped.c: Ditto
1173 * restore-src/amrestore.c: Ditto
1174 * restore-src/restore.c: Ditto
1175 * restore-src/restore.h: Ditto
1176 * server-src/Makefile.am: Ditto
1177 * server-src/amadmin.c: Ditto
1178 * server-src/amindexd.c: Ditto
1179 * server-src/amoverview.pl.in: Ditto
1180 * server-src/amtoc.pl.in: Ditto
1181 * server-src/amverify.sh.in: Ditto
1182 * server-src/changer.c: Ditto
1183 * server-src/conffile.c: Ditto
1184 * server-src/conffile.h: Ditto
1185 * server-src/disk_history.c: Ditto
1186 * server-src/disk_history.h: Ditto
1187 * server-src/diskfile.c: Ditto
1188 * server-src/diskfile.h: Ditto
1189 * server-src/driver.c: Ditto
1190 * server-src/driverio.c: Ditto
1191 * server-src/find.c: Ditto
1192 * server-src/find.h: Ditto
1193 * server-src/holding.c: Ditto
1194 * server-src/holding.h: Ditto
1195 * server-src/logfile.c: Ditto
1196 * server-src/logfile.h: Ditto
1197 * server-src/planner.c: Ditto
1198 * server-src/reporter.c: Ditto
1199 * server-src/server_util.c: Ditto
1200 * server-src/server_util.h: Ditto
1201 * server-src/taper.c: Ditto
1203 2005-10-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1205 * server-src/taper.c: Change message: on new tape due to
1207 2005-10-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1208 Patch by John R. Franks
1210 * common-src/amflock.c (main): Don't call safe_fd, it's not needed
1212 * configure.in: '#include <sys/types.h>' in the check
1213 'for Linux like scsi support (sg)'
1215 2005-10-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1217 * client-src/amandad.c (writebuf): Call waitpid in the parent.
1219 2005-10-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1221 * client-src/amandad.c (service_delete): Remove call to sleep.
1222 * common-src/bsd-security.c: Add bsdprintf. Add more debug.
1223 The handle is used as a string, instead of 2 int.
1225 2005-10-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1227 * common-src/rsh-security.c: rshprintf should call dbprint.
1228 * common-src/ssh-security.c: rshprintf should call dbprint, add many
1230 * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
1233 2005-10-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1235 * common-src/stream.c: len is a socklen_t.
1236 * server-src/amindexd.c: Add socklen as a socklen_t.
1237 * restore-src/amidxtaped.c: Add socklen as a socklen_t.
1238 * tape-src/tapetype.c: Change printf format.
1239 * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
1240 * server-src/dumper.c: Init outfd to -1.
1241 * common-src/file.c (areads_getbuf): First argument is const.
1243 2005-10-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1245 * server-src/reporter.c: Don't trunk hostname/diskname in
1246 'FAILURE AND STRANGE DUMP SUMMARY' section.
1248 2005-10-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1250 * server-src/chunker.c (main): Remove outfd.
1252 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1254 * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
1255 client-src/getfsent.c, common-src/statfs.c, common-src/token.c
1256 (main): Remove fd declaration.
1258 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1260 * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
1262 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1264 * common-src/sl.c (insert_sort_sl). Typo.
1266 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1268 * config/config.guess: Update from automake 1.9.5.
1269 * config/config.sub: Update from automake 1.9.5.
1270 * config/depcomp: Update from automake 1.9.5.
1271 * config/install-sh: Update from automake 1.9.5.
1272 * config/missing: Update from automake 1.9.5.
1273 * config/mkinstalldirs: Update from automake 1.9.5.
1274 * config/ltmain.sh: Update from libtool-1.5.16.
1275 * config/libtool.m4i: Update from libtool-1.5.16.
1277 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1279 * common-src/bsd-security.c: Fix small bug.
1281 2005-09-22 John R. Jackson <jrj@purdue.edu>
1283 * configure.in: If --without-server is specified, either on the
1284 command line or via config.site, make sure --without-restore
1285 is also in effect. Avoids compilation errors if mismatched.
1286 * example/config.site: Document above.
1288 2005-09-21 John R. Jackson <jrj@purdue.edu>
1290 * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
1291 "amgetconf build.CLIENT_LOGIN".
1293 2005-09-21 John R. Jackson <jrj@purdue.edu>
1295 * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
1298 2005-09-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1300 * server-src/amlabel.c: 'int fd' is needed.
1302 2005-09-20 John R. Jackson <jrj@purdue.edu>
1304 * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
1305 <Scott.Burns@Netcontech.Com>.
1307 2005-09-20 John R. Jackson <jrj@purdue.edu>
1309 * common-src/file.c: Create safe_fd() to do common file descriptor
1310 safety operations at the start of every program. In addition
1311 to closing everything from three on up that used to be done
1312 with explicit code, make sure stdin, stdout and stderr are
1313 open per a potential (but unlikely) security report from Ben
1314 Schwarz <bschwarz@EECS.berkeley.EDU>.
1315 * common-src/amanda.h: Ditto.
1316 * client-src/amandad.c: Ditto.
1317 * client-src/calcsize.c: Ditto.
1318 * client-src/getfsent.c: Ditto.
1319 * client-src/killpgrp.c: Ditto.
1320 * client-src/rundump.c: Ditto.
1321 * client-src/runtar.c: Ditto.
1322 * client-src/selfcheck.c: Ditto.
1323 * client-src/sendbackup.c: Ditto.
1324 * client-src/sendsize.c: Ditto.
1325 * client-src/versionsuffix.c: Ditto.
1326 * common-src/amflock.c: Ditto.
1327 * common-src/rsh-security.c: Ditto.
1328 * common-src/ssh-security.c: Ditto.
1329 * common-src/statfs.c: Ditto.
1330 * common-src/token.c: Ditto.
1331 * recover-src/amrecover.c: Ditto.
1332 * restore-src/amidxtaped.c: Ditto.
1333 * restore-src/amrestore.c: Ditto.
1334 * server-src/amadmin.c: Ditto.
1335 * server-src/amcheck.c: Ditto.
1336 * server-src/amcleanupdisk.c: Ditto.
1337 * server-src/amflush.c: Ditto.
1338 * server-src/amindexd.c: Ditto.
1339 * server-src/amlabel.c: Ditto.
1340 * server-src/amlogroll.c: Ditto.
1341 * server-src/amtape.c: Ditto.
1342 * server-src/amtrmidx.c: Ditto.
1343 * server-src/amtrmlog.c: Ditto.
1344 * server-src/chunker.c: Ditto.
1345 * server-src/conffile.c: Ditto.
1346 * server-src/diskfile.c: Ditto.
1347 * server-src/driver.c: Ditto.
1348 * server-src/getconf.c: Ditto.
1349 * server-src/infofile.c: Ditto.
1350 * server-src/planner.c: Ditto.
1351 * server-src/reporter.c: Ditto.
1352 * server-src/taper.c: Ditto.
1353 * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
1354 coded "/tmp/amanda".
1356 2005-09-20 John R. Jackson <jrj@purdue.edu>
1358 * client-src/calcsize.c: Fix format string.
1359 * server-src/diskfile.c: Fix compiler warnings.
1360 * server-src/planner.c: Fix compiler warnings.
1362 2005-09-20 John R. Jackson <jrj@purdue.edu>
1364 * common-src/amanda.h: Add dbreopen() so debug file can be closed
1365 and then reopened if needed.
1366 * common-src/debug.c: Ditto.
1367 * client-src/runtar.c: Close the debug file (fd 10) around the
1368 exec of GNU tar. Newer versions complain about stray file
1370 * server-src/getconf.c: Use dbreopen() to create the debug file.
1371 Do not try to open config file unless needed (allows clients to
1372 use build.XXX/dbopen.XXX/dbclose.XXX).
1374 2005-09-20 John R. Jackson <jrj@purdue.edu>
1376 * client-src/sendbackup-dump.c: Ignore a new message from Solaris
1379 2005-09-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1381 * common-src/bsd-security.c: Generate a unique event_id, thei
1382 proto_handle is not always unique.
1384 2005-09-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1386 * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
1388 2005-09-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1390 * server-src/driverio.c: Don't save history with size < 0.
1392 2005-09-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1393 Patch by Geert Uytterhoeven <geert@linux-m68k.org>
1395 * server-src/planner.c: Don't use history with size < 0.
1397 2005-09-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1398 Patch Paul Bijnens <paul.bijnens@xplanation.com>
1400 * server-src/planner.c(delay_dumps): Delay incremental dump also
1403 2005-09-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1404 Patch by Orion Poplawski <orion@cora.nwra.com>
1406 * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
1407 * man/amoverview.8: Document -last, -num0 and -togo0.
1409 2005-09-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1410 Patch by Orion Poplawski <orion@cora.nwra.com>
1412 * server-src/driver.c: Make tape_length and tape_left unsigned long.
1414 2005-07-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1415 Patch by Stefan G. Weichinger <monitor@oops.co.at>
1417 * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
1419 2005-07-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1421 Bug found by John E Hein <jhein@timing.com>.
1422 * server-src/amadmin.c: Fix of by one with NB_HISTORY.
1423 * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
1425 2005-06-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1426 Patch by Jay Fenlason <fenlason@redhat.com>
1428 * client-src/sendsize.c: Fix dbprintf call.
1430 2005-06-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1431 Stefan G. Weichinger <monitor@oops.co.at>
1433 * example/amanda.conf.in: edited the default-value for the
1434 holdingdisk-usage to "use -100 Mb".
1435 The old value "use 290 Mb" didn't make much
1438 2005-06-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1440 * server-src/amverifyrun.sh.in: Remove buggy space.
1442 2005-05-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1444 * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
1446 2005-05-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1448 * example/amanda.conf.in: Update from 2.4.5.
1450 2005-05-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1452 * docs/*: New documentation from xml-docs.
1453 * docs/Makefile.am (pkgdata_DATA): Update for new files.
1455 2005-05-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1457 * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
1459 2005-05-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1461 * man/*: Use man pages form xml-docs.
1462 * configure.in (AC_CONFIG_FILES): Remove all man pages.
1463 * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5
1464 amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
1465 amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
1466 amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
1468 2005-05-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1470 * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
1472 * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
1474 * common-src/rsh-security.c (conn_put): Don't kill the process, only do
1475 a wait with WNOHANG.
1476 * common-src/ssh-security.c (conn_put): Don't kill the process, only do
1477 a wait with WNOHANG.
1479 2005-04-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1481 * changer-src/chg-zd-mtx.sh.in: Improve handling of
1482 "Unknown Storage Element Loaded".
1484 2005-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1485 - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
1487 * server-src/amverifyrun.sh.in: Filter changer log file.
1489 2005-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1491 * server-src/amcheck.c: Improve messages.
1493 2005-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1495 * client-src/sendsize.c (generic_calc_estimates): Use amname instead
1496 of dirname in message.
1498 2005-03-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1500 * server-src/conffile.h: Rename getcont_unit_divisor to
1501 getconf_unit_divisor.
1502 * server-src/amadmin.c: Use getconf_unit_divisor.
1503 * server-src/amcheck.c: Use getconf_unit_divisor.
1504 * server-src/conffile.c: Use getconf_unit_divisor.
1505 * server-src/conffile.c (unit_divisor): Init to 1.
1506 * server-src/reporter.c: Use getconf_unit_divisor. The mb macro always
1507 divide by 1024. Add the du macro. Use mb or du where appropriate.
1509 2005-03-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1511 * server-src/infofile.h (history_t): Add secs field.
1512 * server-src/infofile.c (read_txinfofile): Parse info file with secs
1514 * server-src/infofile.c (write_txinfofile): Write secs in history.
1515 * server-src/driverio.c (update_info_dumper): Update secs in history.
1517 2005-03-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1519 * server-src/planner.c: Improve server estimate.
1520 * server-src/planner.c: Write server estimate like others estimate.
1522 2005-02-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1524 * server-src/amstatus.pl.in: last_level is negative, on new disk.
1526 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1528 * server-src/amstatus.pl.in: Use '-?' to match negative values
1531 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1532 Patch by Orion Poplawski <orion@cora.nwra.com>
1534 * server-src/amoverview.pl.in: Print the total number of level 0
1535 dumps for each disk and the number of runs until the last level 0
1536 dump will be overwritten.
1538 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1539 Patch by Phil Homewood <pdh@snapgear.com>
1541 * server-src/amoverview.pl.in: Add -skipmissed option.
1543 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1545 * server-src/driver.c: Print the chunksize to the log.
1547 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1549 * client-src/calcsize.c: Print estimate to STDERR.
1550 * client-src/sendsize.c (generic_calc_estimates): Read calcsize result,
1551 and send it to amandad. Write debuging message.
1553 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1554 Patch by Franz G. Fischer
1556 * server-src/conffile.c: Adds a value type LONG and a val_t.l long
1557 union member and changes get_number() to return long and
1558 get_simple() to fill val_t.l if called for a long value. The
1559 get_simple() calls have been changed to LONG for typetype_t.blocksize
1560 typetype_t.length, typetype_t.filemark, holdingdisk_t.disksize and
1561 holdingdisk_t.chunksize.
1563 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1565 * server-src/amdump.sh.in: Redirect in append mode.
1566 * server-src/driver.c: Set stdout and stderr to not buffered.
1567 * server-src/planner.c: Set stderr to not buffered.
1568 Print 'setup_estimate:' on one line.
1569 * server-src/amstatus.pl.in: Parse new 'setup_estimate:' line.
1571 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1573 * client-src/calcsize.c: Improve estimate for sparse file and count
1574 space for filenames.
1576 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1578 * server-src/planner.c: Improve message if no incremental estimate.
1580 2004-12-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1581 Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
1583 * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
1584 before calling error().
1586 2004-11-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1588 * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
1590 2004-11-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1592 * server-src/driver.c: Typo.
1594 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1596 * restore-src/amrestore.c: Should now work correctly with empty file.
1597 * server-src/amverify.sh.in: Parse "End-of-Information detected."
1598 message from amrestore.
1600 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1602 * server-src/driver.c: tape_left should not become negative.
1604 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1605 Patch by Orion Poplawski <orion@cora.nwra.com>
1607 * server-src/diskfile.c: Parse negative spindle (-1).
1609 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1611 * server-src/amadmin.c: Balance subcommand use displayunit.
1612 * server-src/amcheck.c: Small cleanup.
1614 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1616 * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
1619 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1621 * server-src/amstatus.pl.in: Remove trace.
1623 2004-11-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1625 * server-src/diskfile.c: Compilation fix.
1627 2004-11-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1629 * server-src/conffile.c: Parse displayunit,
1630 new fonction getcont_unit_divisor().
1631 * server-src/conffile.h: Prototype of getcont_unit_divisor().
1632 * server-src/amcheck.c: Use displayunit to display holding disk size.
1633 * server-src/amstatus.pl.in: Use displayunit to display dump size.
1634 * server-src/reporter.c: use displayunit to display dump size.
1635 * Document displayunit.
1637 2004-11-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1639 * server-src/reporter.c: Change 'Daily' for 'Incr.'.
1641 2004-11-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1643 * server-src/amstatus.pl.in Fix for level -1.
1645 2004-11-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1646 Patch by Daniel Widyono <widyono@seas.upenn.edu>
1648 * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
1650 2004-11-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1652 * restore-src/amrestore.c: Read empty file.
1654 2004-11-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1656 * tape-src/tapetype.c: Use new tape.
1658 2004-11-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1660 * server-src/amstatus.pl.in: Display partial estimate.
1662 2004-11-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1664 * server-src/diskfile.c (read_diskline): A spindle must be numerical.
1666 2004-10-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1668 * server-src/holding.c (rename_tmp_holding): Always rename files.
1670 2004-10-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1672 * server-src/driver.c: Print message when too many retry.
1673 * server-src/amstatus.pl.in: Detect a failed dump after too many retry.
1674 * amplot/amplot.awk: Parse these message.
1676 2004-10-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1678 * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
1679 if dumper returns DONE and taper returns TRYAGAIN.
1681 2004-10-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1683 * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
1684 if dumper returns TRYAGAIN and taper returns DONE.
1686 2004-10-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1688 * server-src/amflush.c: Don't start a driver if nothing to flush.
1690 2004-10-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1691 Patch by Eric Siegerman <erics@telepres.com>
1693 * example/3hole.ps: Fix for multiple tape.
1695 2004-10-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1697 * server-src/amverify.sh.in: Terminate if no tape online.
1699 2004-09-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1701 * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
1703 2004-09-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1705 * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
1707 2004-09-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1709 * server-src/planner.c (promote_hills): Use dumpcycle instead of
1711 * example/amanda.conf.in: Remove warning for tapecyle set to inf.
1713 2004-09-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1715 * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
1718 2004-09-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1720 * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
1722 * man/amtapetype.8.in: Document new -o option.
1724 2004-09-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1726 * server-src/amstatus.pl.in: Works with failed dump to tape.
1728 2004-08-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1730 * client-src/sendbackup-gnutar.c (end_backup): Write warning message
1732 * server-src/dumper.c (process_dumpline): Parse warning message.
1733 * server-src/reporter.c (handle_strange): Print warning message in
1734 the STRANGE summary.
1736 2004-08-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1738 * server-src/driverio.c (free_serial): Set stable[s].dp to NULL.
1739 * server-src/driverio.c (disk2serial): Check that stable[s].dp == NULL.
1741 2004-08-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1742 Patch by Joe Rhett <jrhett@isite.net>
1744 * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
1746 2004-08-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1747 Patch by Orion Poplawski <orion@cora.nwra.com>
1749 * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
1751 2004-08-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1753 * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
1755 2004-08-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1757 * common-src/amfeatures.h (fe_selfcheck_calcsize): New feature.
1758 * common-src/amfeatures.c (am_init_feature_set): Set
1759 fe_selfcheck_calcsize.
1760 * client-src/selfcheck.c: Check if calcsize binary is available if
1762 * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
1763 if it support fe_selfcheck_calcsize.
1765 2004-08-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1767 * man/amanda.8.in: Document 'estimate' dumptype option.
1769 2004-08-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1771 * server-src/amrmtape.sh.in: Understand history info.
1773 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1775 * server-src/driver.c: Typo.
1777 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1779 * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
1780 print if a dump is waiting for holding disk space (roomq).
1782 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1784 * server-src/driver.c (handle_dumper_result, handle_chunker_result):
1785 Don't call free_serial().
1786 * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
1787 * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
1788 * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
1790 * server-src/driverio.c (disk2serial): Try to find a 'dp' before
1791 allocating a new serial.
1792 * server-src/driverio.c (free_serial_dp): New function to remove the
1794 * server-src/driverio.h (free_serial_dp): Prototype.
1795 * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
1798 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1800 * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
1803 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1805 * client-src/calcsize.c: Support exclude and include like gnutar,
1806 change in program argument.
1807 * client-src/sendsize.c: Execute calcsize as requested.
1808 * common-src/amfeatures.h (fe_calcsize_estimate): New feature.
1809 * common-src/amfeatures.c (am_init_feature_set): set
1810 fe_calcsize_estimate.
1811 * server-src/amcheck.c (start_host): Check if client support CALCSIZE
1814 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1816 * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
1818 * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
1819 * server-src/conffile.c (get_estimate): New function to parse estimate
1821 * server-src/diskfile.c (read_diskline): Copy 'estimate'.
1822 * server-src/diskfile.h (disk_t): Add 'estimate'.
1823 * server-src/amadmin.c (disklist_one): Print estimate type.
1825 2004-08-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1827 * common-src/match.c (match_tar, tar_to_regex): New fonction similar
1828 to the exclude option of tar.
1829 * common-src/amanda.h (match_tar, tar_to_regex): Prototype.
1831 2004-08-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1833 * server-src/infofile.h (history_t): new struct.
1834 * server-src/infofile.h (info_t): Add a history_t.
1835 * server-src/infofile.c (read_txinfofile): Parse history data.
1836 * server-src/infofile.c (write_txinfofile): Print history data.
1837 * server-src/amadmin.c (export_one): export history data.
1838 * server-src/amadmin.c (import_one): import history data.
1839 * server-src/driverio.c (update_info_dumper): update history data.
1841 2004-05-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1842 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
1844 * server-src/planner.c: Log L_DISK for autoflush disk.
1846 2004-05-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1848 * server-src/planner.c (handle_result): Add dp to pestq at the
1851 2004-04-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1853 * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
1855 2004-04-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1857 * config/acinclude.m4i (AX_CREATE_STDINT_H) : New macro.
1858 * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
1859 * common-src/amanda.h: include "common-src/amanda-int.h".
1860 * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
1862 2004-04-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1864 * configure.in: Fix for automake 1.8.4.
1865 * config/acinclude.m4i: Fix for automake 1.8.4.
1867 2004-04-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1869 * configure.in: Result of autoupdate.
1871 2004-04-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1873 * config/config.guess: Update from automake 1.8.
1874 * config/config.sub: Update from automake 1.8.
1875 * config/depcomp: Update from automake 1.8.
1876 * config/install-sh: Update from automake 1.8.
1877 * config/missing: Update from automake 1.8.
1878 * config/mkinstalldirs: Update from automake 1.8.
1879 * config/ltmain.sh: Update from libtool-1.5.6.
1880 * config/libtool.m4i: Update from libtool-1.5.6.
1882 2004-04-26 Marc Mengel <mengel@fnal.gov>
1884 * tape-src/output-rait.c: Verify reads correctly.
1886 2004-04-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1888 * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
1889 fill up when in degraded mode.
1891 2004-04-23 Eric Siegerman <eric_97@pobox.com>
1893 Bug fix: amflush would run, and consume a tape, even if there
1894 were no Amanda directories waiting to be flushed:
1895 * common-src/sl.c (is_empty_sl): New function to test
1896 whether a list is empty.
1897 * common-src/sl.h (is_empty_sl): Prototype.
1898 * server-src/amflush.sh (main): Use is_empty_sl(),
1899 rather than ==NULL, to test emptiness of datestamp_list.
1901 2004-04-23 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1903 * server-src/planner.c (setup_estimate): Typo.
1905 2004-04-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1907 Allow bumpsize, bumppercent, bumpdays and bumpmult to be in a dumptype.
1908 * server-src/conffile.c: Parse.
1909 * server-src/conffile.h: Define.
1910 * server-src/amadmin.c (disklist_one): Use.
1911 * server-src/diskfile.c (read_diskline): Initialize.
1912 * server-src/diskfile.h: Define.
1913 * server-src/planner.c: Use.
1914 * man/amanda.8.in: Document.
1916 2004-04-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1917 Fix by Paul Bijnens <paul.bijnens@xplanation.com>
1919 * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
1920 if strategy is noinc.
1922 2004-04-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1923 Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
1925 * man/amoverview.8.in: Document results.
1927 2004-04-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1928 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
1930 * server-src/amoverview.pl.in: Print last two characters.
1932 2004-04-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1934 * changer-src/chg-disk.sh.in: Fix for sh compatibility.
1936 2004-04-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1937 Fix by John Koyle <jkoyle@rfpdepot.com>
1939 * common-src/dgram.c: Fix EAGAIN on Linux.
1941 2004-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1943 * server-src/amadmin.c (bumpsize): Typo.
1945 2004-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1947 New bumppercent global option.
1948 * example/amanda.conf.in: Document it.
1949 * man/amanda.8.in: Document it.
1950 * server-src/amadmin.c (bumpsize): Write it.
1951 * server-src/conffile.c: Parse it.
1952 * server-src/conffile.h: Define It.
1953 * server-src/planner.c (bump_thresh): New size_level_0 parameter,
1954 use the new bumppercent option.
1956 2004-04-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1958 * server-src/amadmin.c: Rename host_t to amhost_t.
1959 * server-src/amcheck.c: Ditto.
1960 * server-src/amindexd.c: Ditto.
1961 * server-src/diskfile.c: Ditto.
1962 * server-src/diskfile.h: Ditto.
1963 * server-src/driver.c: Ditto.
1964 * server-src/planner.c: Ditto.
1966 2004-03-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1968 * amplot/amplot.awk: Parse "driver: tape size" line.
1970 2004-03-22 Stefan G. Weichinger <monitor@oops.co.at>
1972 * server-src/amcheck.c (start_host): Added warning for hostname
1974 * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
1976 2004-03-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1978 * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
1980 2004-03-18 Stefan G. Weichinger <monitor@oops.co.at>
1982 * docs/TOP-TEN-QUESTIONS: New file.
1984 2004-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1986 * server-src/reporter.c (handle_success): Set stats[i].coutsize
1988 * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
1990 2004-03-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1992 * common-src/ssh-security.c: New ssh security driver.
1993 * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
1994 * common-src/security.c: Add ssh security driver.
1995 * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
1997 2004-03-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
1999 * server-src/amcheck.c: Do labelstr check in correct order.
2001 2004-03-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2003 Use only one time event for all dumpers, no wait event.
2004 start_some_dumps is called everytime a dumper or taper finish.
2005 * server-src/driver.c (dumpers_ev_time): New global event.
2006 * server-src/driver.c (start_some_dumps): Remove dumper argument,
2007 can start many dump.
2008 * server-src/driver.c (dumper_result): Call start_some_dumps instead
2010 * server-src/driver.c (handle_idle_wait): Remove function.
2011 * server-src/driver.c (handle_dumpers_time): new handle for
2012 dumpers_ev_time, it call start_some_dumps.
2013 * server-src/driverio.h (dumper_t): Remove ev_wait.
2014 * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
2016 2004-03-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2018 * common-src/fileheader.c (print_header): Fix fprintf use.
2019 * client-src/amqde.c (parse_exclude_path): Fix = by ==.
2020 * common-src/protocol.c (s_repwait): Fix compiler warning.
2021 * common-src/rsh-security.c (runrsh): Fix compiler warning.
2023 2004-03-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2025 * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
2027 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2028 Reported by Allen Liu <allen@bellglobal.com>
2030 * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
2032 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2034 * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
2035 * server-src/taper.c: Ditto
2037 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2039 * server-src/driver.c (dump_schedule): Print complete name.
2041 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2043 The estimate send a PREP (partial REP) packet after each estimate.
2044 * client-src/amandad.c: Send PREP packet if sendsize.
2045 * common-src/amfeatures.c (am_init_feature_set): Add
2046 fe_partial_estimate.
2047 * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
2048 * common-src/packet.c (pktypes[]): Add PREP.
2049 * common-src/packet.h (pktype_t): Add P_PREP.
2050 * common-src/protocol.c (action_t): Add A_CONTPEND.
2051 * common-src/protocol.c: Handle P_PREP packet.
2052 * server-src/amstatus.pl.in: Parse "got partial result" line.
2053 * server-src/planner.c: Handle P_PREP packet.
2055 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2056 Reported by Jason Brooks <jason.brooks@windriver.com>
2058 * server-src/reporter.c: Remove duplicate setting of cd to
2061 2004-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2062 Patch by Philippe Charnier <charnier@xp11.frmug.org>
2064 * server-src/amtrmidx.c: Add '\n'.
2066 2004-02-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2068 * recover-src/set_commands.c (cd_glob): Fix memory leak.
2070 2004-02-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2072 * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
2073 * recover-src/uscan.l: Fix double amfree.
2075 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2077 * server-src/driver.c: Build holding disk name with timestamp.
2078 * server-src/holding.c (is_datestr): Check also for timestamp.
2079 * server-src/planner.c: Flush today's dump with autoflush.
2080 * server-src/find.c: Find holding disk with timestamp.
2081 * server-src/find.h (find_result_t): Add timestamp field.
2083 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2085 * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
2087 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2089 * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
2092 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2094 * server-src/amdump.sh.in: Do not redirect to /dev/null.
2096 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2098 * config/acinclude.m4i: Define CF_WAIT_INT.
2099 * configure.in: Call CF_WAIT_INT.
2100 * common-src/amanda.h: Try to make waitpid doesn't warn.
2102 2004-01-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2104 * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
2106 2004-01-29 Christoph Pospiech <pospiech@de.ibm.com>
2108 * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
2109 * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
2110 * changer-src/chg-iomega.pl.in: New changer script.
2111 * docs/TAPE.CHANGERS: Document chg-iomega.
2112 * contrib/mkamandisk: Script to format iomega disk.
2114 2004-01-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2116 * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
2118 2004-01-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2120 * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
2121 * example/amanda.conf.in: Update record documentation.
2122 * man/amanda.8.in: Update record documentation.
2124 2004-01-14 Stefan G. Weichinger <monitor@oops.co.at>
2126 * docs/INSTALL: Add config for xinetd.
2128 2004-01-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2130 * server-src/planner.c (handle_result): Detect bad estimate (-1).
2131 * server-src/planner.c (analyze_estimate): Don't schedule level
2132 if the estimate is bad.
2134 2003-12-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2136 * docs/HOWTO-FILE-DRIVER: New file.
2137 * docs/TAPE.CHANGERS: Explain chg-disk.
2138 * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
2140 2003-12-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2142 * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
2144 2003-11-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2145 Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
2147 * changer-src/chg-disk.sh.in: New changer script.
2148 * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
2149 * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
2151 2003-11-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2153 * tape-src/tapetype.c: extern int optind.
2154 * tape-src/tapeio.c: extern int optind.
2156 2003-11-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2157 Patch by C.Scheeder <christoph.scheeder@scheeder.de>
2159 * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
2161 2003-11-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2163 * server-src/driver.c: Print the tape size.
2164 * server-src/amstatus.pl.in: print % of tape use.
2166 2003-11-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2168 * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
2170 2003-11-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2172 * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
2174 2003-11-25 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2176 * server-src/amcheck.c (taperscan_slot): Deal with label not in
2178 * server-src/amtape.c (taperscan_slot): Ditto.
2179 * server-src/taper.c (taperscan_slot): Ditto.
2181 2003-11-24 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2183 * server-src/driver.c (handle_taper_result): Always call
2184 continue_dumps() in TRYAGAIN case.
2186 2003-11-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2188 * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
2189 if no tape in drive.
2191 2003-11-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2193 * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
2195 2003-11-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2196 Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
2198 * client-src/selfcheck.c: Skip accessibility check for AFS entries.
2199 * docs/HOWTO-AFS: New file.
2201 2003-11-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2203 * server-src/amadmin.c (tape): Display the next new tapes.
2204 * server-src/reporter.c (output_tapeinfo): Ditto.
2206 2003-10-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2208 * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
2210 2003-10-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2212 * server-src/amcheck.c (taperscan_slot): Set found=3 if new tape.
2213 * server-src/amcheck.c (taper_scan): Handle found==3.
2214 * server-src/amtape.c (taperscan_slot): Set found=3 if new tape.
2215 * server-src/amtape.c (taper_scan): Handle found==3.
2216 * server-src/taper.c (taperscan_slot): Set found=3 if new tape.
2217 * server-src/taper.c (taper_scan): Handle found==3.
2219 2003-10-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2221 * server-src/amcheck.c: Use stralloc(optarg).
2222 * tape-src/ammt.c: Use stralloc(optarg).
2223 * tape-src/tapetype.c: Use stralloc(optarg).
2225 2003-10-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2226 Patch by Jay Fenlason <fenlason@redhat.com>
2228 * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
2230 2003-10-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2231 Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
2233 * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
2235 2003-10-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2237 * server-src/amadmin.c (find): Call find_dump to allow dynamic disklist.
2238 * server-src/amindexd.c: Call find_dump to allow dynamic disklist.
2239 * server-src/amtrmidx.c: Call find_dump to allow dynamic disklist.
2240 * server-src/diskfile.c (add_disk): Set device and todo.
2241 * server-src/find.c: Build disklist dynamicaly from log files.
2242 * server-src/find.h (find_dump): New prototype.
2244 2003-10-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2246 * server-src/amlogroll.c: set_pname("amlogroll").
2248 2003-10-24 Todd M. Kover <kovert@omniscient.com>
2250 * add amqde for "quick and dirty estimates" under gnutar (program
2251 that will traverse the filesystem rather than invoke gnutar).
2252 controlled via configure option --with-qde. This really wants to
2253 be configured in the server.
2255 2003-10-24 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2257 * server-src/amverify.sh.in: Fix usage message.
2258 * common-src/fileheader.c (print_header): fprintf to outf.
2259 * server-src/tapefile.c (lookup_last_reusable_tape): Check for
2261 * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
2263 2003-10-23 Todd Kover <kovert@omniscient.com>
2265 * make amrecover link against readline rather than libamanda so
2266 only amrecover would require the shared library (if it's found)
2268 2003-10-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2269 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2271 * client-src/amandates.c (finish_amandates): Call error() if the
2273 * common-src/amflock.c (create_lock): Return -1 if the close of f fail.
2274 * common-src/amflock.c (read_lock): Don't set f to NULL if the close
2276 * server-src/tapefile.c (write_tapelist): Return 1 if the close of
2279 2003-10-14 John R. Jackson (jrj@purdue.edu)
2281 * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
2282 size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
2284 2003-10-14 John R. Jackson (jrj@purdue.edu)
2286 * client-src/sendsize.c: Handle case where PID's get re-used.
2288 2003-10-14 John R. Jackson (jrj@purdue.edu)
2290 * configure.in: Need to check for sys/gscdds.h on AIX to enable
2293 2003-10-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2295 * common-src/genversion.c (prundefvar): New function to print an
2297 * common-src/genversion.c: Print undefined variable.
2298 * server-src/amcheck.c: Improve message for no LPRCMD defined.
2300 2003-07-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2302 * restore-src/amidxtaped.c: Don't clea re_label before checking
2305 2003-07-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2306 Patch by Scott Mcdermott <smcdermott@questra.com>
2308 * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
2309 variable to add a pause after a tape loading.
2311 2003-07-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2312 Fix by John E. Hein <jhein@timing.com>
2314 * changer-src/chg-manual.sh.in: Quote @EGREP@.
2315 * changer-src/chg-null.sh.in: Quote @EGREP@.
2317 2003-07-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2319 * amplot/amplot.sh.in: Remove files before runnig amplot.awk.
2320 * amplot/amplot.awk: Parse 'flush line', fix tape_wait line.
2321 * server-src/driver.c (read_flush): Write a 'flush size' to the
2324 2003-07-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2326 * changer-src/chg-chio.pl.in: Fix next/prev command.
2328 2003-07-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2329 patch by Paul Bijnens <paul.bijnens@xplanation.com>
2331 * client-src/client_util.c (add_include): Count include with 2 /,
2332 Fix descriptor leak.
2334 2003-06-25 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2336 * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
2338 2003-06-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2340 * server-src/holding.c: Fix compiler error.
2341 * server-src/planner.c: Use snprintf.
2343 2003-06-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2344 patch by Paul Bijnens <paul.bijnens@xplanation.com>
2346 * tape-src/tapetype.c: Avoid a numerical overflow for large tape
2349 2003-06-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2351 * server-src/amstatus.pl.in: Fix to failed tape.
2353 2003-06-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2355 * server-src/planner.c (delay_dumps): Delay not delay forced full
2358 2003-06-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2360 * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
2362 2003-06-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2364 * server-src/amverify.sh.in: Do not advance to next tape.
2366 2003-06-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2367 patch by Eric Siegerman <eric_97@pobox.com>
2369 * server-src/planner.c: Make promote_hills() honour maxpromotedays.
2371 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2373 * changer-src/scsi-bsd.c: Use pDev[DeviceFD].fd instead of DeviceFD.
2374 * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
2375 * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
2377 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2379 * client-src/noop.c: #include "util.h".
2381 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2383 * server-src/amflush.c: Implement new -b and -s options.
2384 * man/amflush.8.in: Document it.
2386 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2388 * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
2391 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2393 * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
2395 2003-06-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2397 * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
2399 2003-06-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2400 Bug reported by Sven Rudolph <rudsve@drewag.de>
2402 * server-src/holding.c (mkholdingdir): New function to create a holding
2404 * server-src/holding.h (mkholdingdir): Prototype.
2405 * server-src/driver.c: Use mkholdingdir;
2406 * server-src/chunker.c: Call mkholdingdir before opening a file for
2409 2003-06-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2410 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2412 * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
2414 2003-06-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2415 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2417 * server-src/amstatus.pl.in: If nothing is active, it now gives the
2418 status of the last run (amdump or amflush).
2419 * man/amstatus.8.in: Document it.
2421 2003-05-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2423 * tape-src/output-file.c (check_online): Write error if opendir failed.
2425 2003-05-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2426 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2428 * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
2429 of parsing the disklist file.
2431 2003-05-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2433 * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
2436 2003-05-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2438 * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
2440 2003-05-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2442 * example/amanda.conf.in: Add more amrecover_changer doc.
2443 * man/amanda.8.in: Add more amrecover_changer doc.
2444 * man/amrecover.8.in: Add more amrecover_changer doc.
2446 2003-05-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2448 * server-src/tapefile.c (read_tapelist): Ignore blank line.
2449 * server-src/tapefile.c (parse_tapeline): Newer status parameter, set
2450 it to '1' when reading blank line.
2452 2003-04-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2454 * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
2455 linux/ftape-vendors.h et linux/ftape.h.
2457 2003-04-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2458 Patch by Darin Dugan <dddugan@iastate.edu>
2460 * server-src/amcheck.c: Change subject in email if no error.
2462 2003-04-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2464 * common-src/error.c (output_error_message): Always prepend program
2467 2003-04-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2469 * server-src/amstatus.pl.in: Fix for estimate disk.
2471 2003-04-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2473 * server-src/taper.c: Read holding file correctly if blocksize != 32k.
2475 2003-04-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2476 New file by Robert C Dege <RDege@northropgrumman.com>
2478 * configure.in: Find mcutil binary.
2479 * configure.in (AC_CONFIG_FILES): Add changer-src/chg-mcutil.sh and
2480 example/chg-mcutil.conf.
2481 * changer-src/Makefile (libexec_SCRIPTS): Add chg-mcutil.
2482 * changer-src/chg-mcutil.sh.in: New file.
2483 * example/Makefile (EXTRA_DIST): Add chg-mcutil.conf
2484 * example/chg-mcutil.conf.in: New file.
2486 2003-04-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2488 * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
2491 2003-04-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2493 * server-src/amverifyrun.sh.in: Run the amverify command.
2495 2003-04-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2496 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2498 * server-src/reporter.c: Get the filenumber correct.
2500 2003-04-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2501 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2503 * server-src/reporter.c: Print a postscript label for each tape used.
2505 2003-03-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2507 * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
2508 define DEV_PREFIX and RDEV_PREFIX.
2510 2003-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2512 * configure.in: Typo.
2514 2003-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2515 Patch by Gert Doering <gert@greenie.muc.de>
2517 * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
2519 2003-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2521 * configure.in: Compile on *-sco3.2v4*
2523 2003-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2525 * configure.in: Use '=' instead of '=='.
2527 2003-03-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2529 * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
2530 file: and tape: as driver, not host name.
2532 2003-03-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2534 * server-src/amrmtape.sh.in: Print better output.
2536 2003-03-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2538 * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
2540 2003-03-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2542 * client-src/client_util.c (add_include): If include contain 2 '/' then
2543 use at asis, don't try to match it.
2545 2003-03-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2547 * server-src/changer.h (changer_label): Return an int.
2548 * server-src/changer.h (changer_label): First parameter is char *.
2550 2003-03-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2552 * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
2553 * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
2554 * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
2555 * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
2556 tapefd_getinfo_level): Return info of master_fd.
2557 * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
2559 * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
2561 2003-03-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2563 * tape-src/output-file.c (file_tapefd_can_fork): New function that
2564 return 1 if the file: can be run under a forked process.
2565 * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
2566 * tape-src/output-null.c (null_tapefd_can_fork): New function that
2567 return 1 if the null: can be run under a forked process.
2568 * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
2569 * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
2570 * tapefd_can_fork() return 1.
2571 * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
2572 return 1 if the rait: can be run under a forked process.
2573 * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
2574 * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
2575 return 1 if the tape: can be run under a forked process.
2576 * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
2577 * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
2578 initialize vtable[];
2579 * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
2580 xxx_tapefd_can_fork function.
2581 * tape-src/tapeio.h (tapefd_can_fork): Prototype.
2583 2003-03-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2585 * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
2586 before opening the file for writing.
2588 2003-03-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2590 * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
2592 2003-03-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2594 * amplot/amplot.sh.in: New -b option for b/w postscript.
2595 * amplot/amplot.awk: Add 'color' to command if bw is set.
2596 * amplot/amplot.g: Change line 6 to line 8.
2597 * man/amplot.8: Document -b option.
2599 2003-03-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2601 * recover-src/extract_list.c: Fix the name of the
2602 amidxtaped.<timestamp>.debug file.
2604 2003-02-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2605 Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
2607 * restore-src/amidxtaped.c: Use the device sent by the changer.
2609 2003-02-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2611 * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
2614 2003-02-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2616 * server-src/changer.c: Sync with 2.4.4.
2618 2003-02-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2620 * client-src/client_util.c: Print error except ENOENT for
2621 exclude/include files.
2623 2003-02-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2625 * tape-src/tapetype.c: Use %ld to print some variable.
2627 2003-02-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2629 * server-src/conffile.c (init_defaults): conf_printer.s must be set
2632 2003-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2633 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2635 * tape-src/tapetype.c: Document -c option.
2637 2003-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2639 * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
2641 2003-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2643 * server-src/tapefile.c (read_tapelist): return 1 if can't open the
2646 2003-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2648 * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
2650 2003-02-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2652 * server-src/amcheck.c: New -a option.
2653 * man/amcheck.8.in: Document it.
2655 2003-02-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2657 * server-src/amindexd.c (build_disk_table): Compare the level.
2659 2003-02-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2660 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2662 * tape-src/tapetype.c: New -c argument to do only the compression test.
2663 Better detection of compression.
2664 * man/amtapetype.8.in: Document -c argument.
2666 2003-02-09 John R. Jackson (jrj@purdue.edu)
2668 * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
2669 This helps performance on some OS's.
2671 2003-02-08 John R. Jackson (jrj@purdue.edu)
2673 * restore-src/amrestore.c: Clean up strtol() argument processing.
2675 2003-02-08 John R. Jackson (jrj@purdue.edu)
2677 * docs/INSTALL: Clean up supporting package versions and URL's.
2679 2003-02-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2681 * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
2683 2003-02-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2684 Patch by Christophe Kalt <kalt@taranis.org>
2686 * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
2687 * client-src/sendsize.c: New re_size for NetApp.
2689 2003-02-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2690 Fix by Colin Henein <cmh@>
2692 * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
2694 2003-02-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2695 Patch by Doug Kingston <dpk@randomnotes.org>
2697 * configure.in (NEED_SETUID_CLIENT): Set to false on *-pc-cygwin.
2698 * configure.in (WANT_SETUID_CLIENT): Set if NEED_SETUID_CLIENT != false.
2699 * client-src/Makefile.am: Don't chmod u+s if WANT_SETUID_CLIENT.
2701 2003-02-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2702 Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
2704 * man/amtapetype.8.in: Fix example.
2706 2003-01-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2708 * common-src/amanda.h: #define S_ISDIR if not already defined.
2710 2003-01-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2711 File from Doug Kingston <dpk@randomnotes.org>
2713 * docs/HOWTO-CYGWIN.html: New file.
2715 2003-01-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2717 * configure.in: Define WANT_RUNTIME_PSEUDO_RELOC on cygwin
2718 * client-src/Makefile.am: AM_LDFLAGS="-Wl,-enable-runtime-pseudo-reloc"
2719 if WANT_RUNTIME_PSEUDO_RELOC.
2720 * recover-src/Makefile.am: Ditto.
2722 2003-01-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2724 * tape-src/output-rait.h: #define stralloc strdup
2725 * tape-src/output-rait.c: Revert patch of 2003-01-26, we don't have
2726 vstralloc in standalone.
2728 2003-01-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2729 Reported by Doug Kingston <dpk@randomnotes.org>
2731 * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
2733 2003-01-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2735 * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
2737 2003-01-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2739 * changer-src/chg-scsi-chio.c: Change strdup to stralloc.
2740 * changer-src/chg-scsi.c: Ditto.
2741 * changer-src/scsi-aix.c: Ditto.
2742 * changer-src/scsi-bsd.c: Ditto.
2743 * changer-src/scsi-cam.c: Ditto.
2744 * changer-src/scsi-changer-driver.c: Ditto.
2745 * changer-src/scsi-hpux_new.c: Ditto.
2746 * changer-src/scsi-irix.c: Ditto.
2747 * changer-src/scsi-linux.c: Ditto.
2748 * changer-src/scsi-solaris.c: Ditto.
2749 * changer-src/sense.c: Ditto.
2750 * tape-src/output-rait.c: Ditto.
2752 2003-01-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2754 * server-src/taper.c (read_file): Don't count header in filesize.
2756 2003-01-25 John R. Jackson (jrj@purdue.edu)
2758 * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
2759 by indeterminate compiler order of evaluation.
2761 2003-01-25 John R. Jackson (jrj@purdue.edu)
2763 * restore-src/amidxtaped.c: Log errno when tape_stat fails.
2764 * restore-src/amrestore.c: Ditto.
2765 * tape-src/output-rait.c: Ditto.
2767 2003-01-24 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2769 * server-src/amstatus.pl.in: print an usage by tape.
2771 2003-01-23 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2773 * recover-src/extract_list.c (add_extract_item, delete_extract_item):
2774 Check also for level when comparing label.
2776 2003-01-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2778 Do not build chg-scsi-chio, it is buggy.
2779 * changer-src/Makefile.am (libexec_PROGRAMS): remove $(CHIO_SCSI).
2780 * changer-src/Makefile.am (EXTRA_PROGRAMS): add $(CHIO_SCSI).
2782 2003-01-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2784 * configure.in: disable amrestore if --without-server is set.
2786 2003-01-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2788 * client-src/amandad.c: Use the dbfd macro instead of the external
2790 * client-src/selfcheck.c: Ditto.
2791 * client-src/sendbackup.c: Ditto.
2792 * client-src/sendsize.c: Ditto.
2793 * client-src/sendbackup-gnutar.c: Use save_errno instead of errno.
2794 * common-src/debug.c: Move most declaration inside #ifdef DEBUG_CODE.
2795 * server-src/amindexd.c: dup db_fd() to stderr.
2796 * server-src/conffile.c: Don't call error() if the config file does not
2797 exist, just write to stderr and set got_parserror.
2799 2003-01-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2801 * recover-src/amrecover.c: Fix memory leak.
2803 2003-01-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2805 Add new maxpromoteday option in a dumptype.
2806 * example/amanda.conf.in: Give an example
2807 * man/amanda.8.in: Document it.
2808 * server-src/amadmin.c: Print it in the disklist subcommand.
2809 * server-src/conffile.c: read it.
2810 * server-src/conffile.h (dumptype_t): Add maxpromoteday and
2812 * server-src/diskfile.c (read_diskline): Copy maxpromoteday from
2813 dumptype_t to disk_t.
2814 * server-src/diskfile.h (disk_t): Add maxpromoteday.
2815 * server-src/planner.c (promote_highest_priority_incr): Don't promote
2816 a disk if est(dp)->next_level0 > dp->maxpromoteday.
2818 2003-01-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2819 Reported by Josh More <jmore@remote-print.com>
2821 * client-src/client_util.c (add_exclude, add_include): Remove the
2822 need for MAXPATHLEN.
2824 2003-01-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2825 Fix by Josh More <jmore@remote-print.com>
2827 * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
2829 2003-01-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2830 Undo patch of 2002-11-27. That doesn't work well for the planner.
2832 * common-src/amanda.h (days_diff): Revert to old macro.
2833 * server-src/amadmin.c: Undo Fix for newer days_diff.
2834 * server-src/planner.c: Undo Fix for newer days_diff.
2836 2003-01-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2838 * client-src/client_util.c: Fix memory leak reported by valgrind.
2839 * client-src/selfcheck.c: Ditto.
2840 * client-src/sendbackup.c: Ditto.
2841 * client-src/sendsize.c: Ditto.
2842 * common-src/amfeatures.c: Ditto.
2843 * common-src/debug.c: Ditto.
2844 * recover-src/amrecover.c: Ditto.
2845 * recover-src/extract_list.c: Ditto.
2846 * recover-src/set_commands.c: Ditto.
2847 * recover-src/uparse.y: Ditto.
2848 * recover-src/uscan.l: Ditto.
2849 * server-src/amindexd.c: Ditto.
2850 * server-src/amlabel.c: Ditto.
2851 * server-src/amtape.c: Ditto.
2852 * server-src/amtrmidx.c: Ditto.
2853 * server-src/amtrmlog.c: Ditto.
2854 * server-src/changer.c: Ditto.
2855 * server-src/conffile.c: Ditto.
2856 * server-src/driver.c: Ditto.
2857 * server-src/driverio.c: Ditto.
2858 * server-src/dumper.c: Ditto.
2859 * server-src/find.c: Ditto.
2860 * server-src/holding.c: Ditto.
2861 * server-src/logfile.c: Ditto.
2862 * server-src/planner.c: Ditto.
2863 * server-src/reporter.c: Ditto.
2864 * server-src/tapefile.c: Ditto.
2865 * server-src/taper.c: Ditto.
2867 2002-12-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2869 * amplot/amplot.awk: Many fix.
2871 2002-12-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2873 * server-src/planner.c (promote_highest_priority_incremental): Promote
2874 a disk > balanced size if no full today. Do not promote a disk it's
2875 the only disk due that day and no full today.
2877 2002-12-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2878 Patch by Brad Roberts <braddr@puremagic.com>
2880 * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
2881 * server-src/holding.c (get_flush): Ditto.
2883 2002-12-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2885 * server-src/conffile.c: New taperalgo configuration keyword.
2886 * server-src/conffile.h: Ditto.
2887 * man/amanda.8.in: Document it.
2888 * server-src/driver.c (startaflush): New function to start a flush to
2891 2002-12-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2893 * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
2895 2002-12-23 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2897 * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
2899 2002-12-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2901 Don't use the G flag for samba backup restore by tar.
2902 * recover-src/extract_list.c (enum dumptypes): Add IS_SAMBA_TAR.
2903 * recover-src/extract_list.c (extract_files_child): Set dumptype to
2904 IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
2905 if it's IS_SAMBA_TAR.
2907 2002-12-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2909 * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
2911 2002-12-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2913 * server-src/planner.c (promote_highest_priority_incremental): Newer
2914 algorithm that reduce the number of level 0 by hosts on a single day.
2916 2002-12-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2918 * amplot/amplot.awk: Parse newer log lines.
2920 2002-12-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2921 * server-src/reporter.c (output_stats): Typo.
2923 2002-12-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2925 * server-src/reporter.c: Print an usage by tape.
2927 2002-12-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2929 * tape-src/tapeio.c (do_read): Init count to 0.
2931 2002-12-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2933 * tape-src/Makefile.am: Install tapetype program as amtapetype.
2934 * docs/TAPETYPES: Change for amtapetype.
2935 * man/amtapetype.8.in: New man page
2936 * man/Makefile.am: Install it.
2937 * configure.in (AC_CONFIG_FILES): Add man/amtapetype.8.
2939 2002-12-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2941 * tape-src/ammt.c (optind): Add prototype.
2942 * tape-src/amdd.c (optind): Add prototype.
2944 2002-12-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2946 * common-src/arglist.h (printf_arglist_function,
2947 printf_arglist_function1, printf_arglist_function2): Define if
2948 STDC_HEADERS is not defined.
2950 2002-12-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
2952 * server-src/amstatus.pl.in: New --date option to display datestamp.
2953 * server-src/amstatus.pl.in: Increase some field size.
2954 * server-src/amstatus.pl.in: The host field adjust it's length to the
2957 2002-11-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2959 * common-src/amanda.h (days_diff): Don't add a half day.
2960 * server-src/amadmin.c: Fix for newer days_diff.
2961 * server-src/planner.c: Fix for newer days_diff.
2963 2002-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2965 * client-src/amandad.c: Fix compiler warning.
2966 * common-src/Makefile.am (bsdsecurity): Link with file.o.
2967 * common-src/bsd-security.c: Fix compiler warning.
2968 * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
2969 Add function if TEST.
2970 * server-src/chunker.c: Fix compiler warning.
2971 * server-src/dumper.c: Fix compiler warning.
2973 2002-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2975 * tape-src/tapetype.c: Cast time_t to long for printing.
2977 2002-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2979 * server-src/amflush.c: Write a "amflush: start at ???" line.
2980 * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
2982 2002-11-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2984 * server-src/planner.c (delay_dumps): Use snprintf.
2986 2002-11-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2988 * common-src/debug.c: Most of the code must in #ifdef DEBUG_CODE.
2989 * client-src/client_util.c: Use AMANDA_TMPDIR instead of AMANDA_DBGDIR.
2991 2002-11-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2993 * docs/TAPE.CHANGERS: Sync with 2.4.3.
2995 2002-11-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2997 * server-src/amadmin.c: Cleanup.
2999 2002-11-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3001 * man/amadmin.8.in: Document new --days option of balance subcommand.
3003 2002-11-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3005 * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
3006 * server-src/amadmin.c (balance): Improve output.
3008 2002-11-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3010 * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
3012 2002-11-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3014 * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
3016 2002-11-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3018 * server-src/reporter.c: Fix for LPRCMD not defined.
3020 2002-11-14 Marc Mengel <mengel@fnal.gov>
3022 New changer scripts for use with rait: code, run several other
3023 changers in tandem and return a rait: tape device. Makes fake
3024 amanda.conf files under AMANDA_DEBUGDIR for each changer used,
3027 * changer-src/chg-rait.sh.in: New file. Multi-changer script.
3028 * changer-src/chg-null.sh.in: New File. Null-device changer script.
3029 * docs/TAPE.CHANGERS: Descriptions of above.
3030 * configure.in: added above files.
3031 * changer-src/Makefile.am: Likewise.
3033 2002-11-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3034 Patch by Orion Poplawski <orion@colorado-research.com>
3036 * server-src/planner.c (delay_dumps): Add the estimate size to all call
3039 2002-11-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3041 * server-src/reporter.c: Increase width of some field.
3043 2002-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3045 * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
3047 2002-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3049 * recover-src/extract_list.c (delete_file): j is int.
3050 * changer-src/scsi-defs.h (B, B1): Check if already defined.
3051 * server-src/taper.c: Some cast to int.
3052 * tape-src/amdd.c (read_func, write_func): Complete prototype.
3053 * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
3054 third argument is size_t.
3055 * tape-src/tapeio.c: Ditto.
3056 * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
3057 ssize_t, third argument is size_t.
3058 * tape-src/output-file.c: Ditto.
3059 * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
3060 ssize_t, third argument is size_t.
3061 * tape-src/output-null.c: Ditto.
3062 * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
3063 third argument is size_t.
3064 * tape-src/output-rait.c: Ditto.
3065 * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
3066 ssize_t, third argument is size_t.
3067 * tape-src/output-tape.c: Ditto.
3069 2002-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3071 * configure.in: socklen_t default to int.
3072 * common-src/dgram.c (dgram_recv): addrlen is socklen_t.
3073 * common-src/stream.c (stream_server): len is socklen_t.
3074 * recover-src/extract_list.c (add_file): j is int.
3076 2002-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3078 * client-src/client_util.c (test_name_len) Remove variable.
3079 * common-src/match.c (len_prefix): Change type to int.
3080 * server-src/taper.c: Use %p to print pointer.
3081 * tape-src/amdd.c (read_func, write_func):Change return type to ssize_t.
3082 * tape-src/amdd.c (debug): Renamed to debug_amdd.
3083 * tape-src/ammt.c (debug): Renamed to debug_ammt.
3085 2002-11-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3087 * restore-src/amidxtaped.c: Fix restore from file.
3089 2002-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3091 * restore-src/amidxtaped.c: Fix newline in string literal.
3093 2002-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3095 * server-src/conffile.c (maxdumpsize): New option.
3096 * server-src/conffile.h: Ditto.
3097 * server-src/planner.c: Use maxdumpsize if set.
3098 * example/amanda.conf.in: Document it.
3099 * man/amanda.8.in: Document it.
3101 2002-11-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3103 * common-src/amfeatures.h (fe_amidxtaped_fsf, fe_amidxtaped_label,
3104 fe_amidxtaped_device, fe_amidxtaped_host, fe_amidxtaped_disk,
3105 fe_amidxtaped_datestamp, fe_amidxtaped_header, fe_amidxtaped_nargs,
3106 fe_amidxtaped_config): New features.
3107 * common-src/amfeatures.c (am_init_feature_set): Set new features.
3108 * recover-src/extract_list.c: Send new protocol data to amidxtaped.
3109 * restore-src/Makefile.am: amidxtaped.c need libamserver.
3110 * restore-src/amidxtaped.c: Read new protocol data from amrecover.
3111 * restore-src/amidxtaped.c: Use new configuration options.
3112 * server-src/conffile.c (conf_amrecover_do_fsf,
3113 conf_amrecover_check_label, conf_amrecover_changer): New config.
3114 * server-src/conffile.h: New config options.
3115 * example/amanda.conf.in: Document them.
3116 * man/amanda.8.in: Document them.
3118 2002-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3120 * autogen: touch config/config.h.in
3121 * configure.in: Patch from autoupdate-2.53 and LIBOBJS.
3122 * common-src/Makefile.am: Build versuff.o before version.o
3123 * recover-src/Makefile.am: Remove work around for automake-1.2
3125 2002-11-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3127 * configure.in: Remove --disable-libtool.
3128 * */Makefile.am: Remove WANT_LIBTOOL.
3130 2002-11-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3132 * changer-src/chg-scsi.c (config_name, config_dir): Remove declaration.
3133 * server-src/amadmin.c: Ditto.
3134 * server-src/amcheck.c: Ditto.
3135 * server-src/amcleanupdisk.c: Ditto.
3136 * server-src/amflush.c: Ditto.
3137 * server-src/amindexd.c: Ditto.
3138 * server-src/amlabel.c: Ditto.
3139 * server-src/amlogroll.c: Ditto.
3140 * server-src/amtape.c: Ditto.
3141 * server-src/amtrmidx.c: Ditto.
3142 * server-src/amtrmlog.c: Ditto.
3143 * server-src/chunker.c: Ditto.
3144 * server-src/diskfile.c: Ditto.
3145 * server-src/driver.c: Ditto.
3146 * server-src/dumper.c: Ditto.
3147 * server-src/getconf.c: Ditto.
3148 * server-src/planner.c: Ditto.
3149 * server-src/reporter.c: Ditto.
3150 * server-src/taper.c: Ditto.
3151 * server-src/conffile.c (config_name, config_dir): Add declaration.
3153 2002-11-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3155 * man/amrestore.8: Amrestore doesn't use a changer.
3157 2002-11-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3159 * configure.in (SHELL): Don't set it, libtool do it.
3161 2002-10-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3163 * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
3165 2002-10-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3167 * restore-src/amrestore.c: New '-l <label>' flag, Do a rewind and
3168 check the label before restoring.
3169 * man/amrestore.8: Document -l flag.
3171 2002-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3173 * configure.in (AM_HAVE_MT_FLAGS, AM_HAVE_MT_FILENO, AM_HAVE_MT_BLKNO,
3174 AM_HAVE_MT_DSREG,AM_HAVE_MT_ERREG): Rename to HAVE_MT_FLAGS,
3175 HAVE_MT_FILENO, HAVE_MT_BLKNO, HAVE_MT_DSREG and HAVE_MT_ERREG.
3176 * tape-src/output-tape.c: Ditto.
3178 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3179 Undo patch of 2002-10-24. They are needed by amrecover.
3181 * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
3182 is_local_fstype): Add Prototype.
3183 * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
3184 is_local_fstype): remove Prototype.
3186 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3187 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
3189 * tape-src/tapetype.c: Detects and warns the user if the tape drive
3190 has hardware compression enabled.
3192 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3194 * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
3195 'fsf <fileno>' if -f is set.
3196 * man/amrestore.8: Document -f flag.
3198 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3200 * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD,
3201 fe_amindexd_fileno_in_ORLD): New amfeatures.
3202 * common-src/amfeatures.c (am_init_feature_set): Set
3203 fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
3204 * recover-src/amrecover.h (struct DIR_ITEM): Add fileno.
3205 * recover-src/display_commands.c (add_dir_list_item): Set fileno
3207 * recover-src/display_commands.c (suck_dir_list_from_server): Read
3208 fileno if fe_amindexd_fileno_in_OLSD is set.
3209 * recover-src/extract_list.c (struct EXTRACT_LIST): Add fileno.
3210 * recover-src/extract_list.c (add_file): Read fileno if
3211 fe_amindexd_fileno_in_ORLD is set.
3212 * recover-src/extract_list.c (delete_file): Read fileno if
3213 fe_amindexd_fileno_in_ORLD is set.
3214 * server-src/amindexd.c (opaque_ls): Write fileno if
3215 fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
3217 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3218 patch by Doug Kingston <dpk@pobox.com>
3220 * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
3221 DONT_SUID_ROOT): Defined if on *-pc-cygwin.
3222 * client-src/Makefile.am: Fix for cygwin.
3223 * client-src/getfsent.c: Don't use fstab if IGNORE_FSTAB.
3224 * client-src/killpgrp.c: Don't suid(0) if DONT_SUID_ROOT.
3225 * client-src/rundump.c: Don't suid(0) if DONT_SUID_ROOT.
3226 * client-src/runtar.c: Don't suid(0) if DONT_SUID_ROOT.
3227 * client-src/selfcheck.c (check_suid): Don't check uid if
3229 * common-src/alloc.c (safe_env): Add PATH to ENV if NEED_PATH_ENV.
3230 * recover-src/amrecover.c: Don't check uid if IGNORE_UID_CHECK.
3232 2002-10-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3234 * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
3235 is_local_fstype): Remove Prototype.
3236 * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
3237 is_local_fstype): Add Prototype.
3239 2002-10-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3241 * server-src/amindexd.c: New FEATURES command that read the features
3242 set from the client and reply the features set of the server.
3243 * recover-src/amrecover.h: include "amfeatures.h"
3244 * recover-src/amrecover.c: Send the FEATURES command to the server
3245 and read it's features set.
3247 2002-10-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3249 * client-src/Makefile.am: Work around for CYGWIN.
3250 * server-src/Makefile.am: Ditto.
3252 2002-10-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3254 * configure.in: Remove empty command from $program_transform_name.
3256 2002-10-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3258 * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
3260 2002-09-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3262 * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
3264 2002-09-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3266 * server-src/amverifyrun.sh.in: New program.
3267 * man/amverifyrun.8.in: Man page for amverifyrun.
3268 * configure.in (AC_OUTPUT): add man/amverifyrun.8 and
3269 server-src/amverifyrun.sh.
3270 * man/Makefile.am (SERVER_MAN_PAGES): Add amverifyrun.8.
3271 * man/amanda.8.in: Add amdd, ammt and amverifyrun in SEE ALSO.
3272 * man/amverify.8.in: Add amverifyrun(8) in SEE ALSO.
3273 * server-src/Makefile.am (sbin_SCRIPTS): Add amverifyrun.
3275 2002-09-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3277 * server-src/amverify.sh.in: Accept runtapes as a third argument.
3278 * man/amverify.8.in: Document it.
3280 2002-09-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3282 * config/missing: Updated from automake-1.5.
3284 2002-09-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3286 * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
3287 * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
3289 2002-09-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3291 * client-src/sendsize.c (getsize_dump): Print the fstype.
3292 * client-src/sendbackup-dump.c (start_backup): Print the fstype.
3294 2002-09-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3295 Patch by Florian Hars <hars@bik-gmbh.de>
3297 * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
3299 2002-09-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3301 * recover-src/extract_list.c (extract_files): print tape drive
3302 and host before asking to load tape.
3304 2002-09-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3306 * server-src/taper.c (read_file): Initialize file,
3307 stat(file.cont_filename) before opening it.
3309 2002-09-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3311 * server-src/amverify.sh.in: Don't check that the device is
3312 a character device, it could be a file: or rait:
3314 2002-09-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
3316 * common-src/amfeatures.c (am_set_default_feature_set):
3317 fe_rep_options_sendbackup_options is a default feature.
3319 2002-09-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
3321 * server-src/amstatus.pl.in: Sort a disk in datestamp order.
3323 2002-09-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3324 Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
3326 * docs/EXCLUDE: Improve documentation.
3328 2002-09-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3330 * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
3332 2002-08-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3333 Patch by Jason Brooks <jason0@mail.wrs.com>
3335 * docs/chg-scsi.notes: New document.
3336 * changer-src/chg-scsi.c: Adding printout of "emubarcode" values
3338 * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to
3340 * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
3342 2002-08-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3344 * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
3345 "/dev/null" instead of filename.
3347 2002-08-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3349 * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
3350 * changer-src/chg-scsi-chio.c: Ditto.
3351 * changer-src/chg-scsi.c: Ditto.
3352 * changer-src/scsi-aix.c: Ditto.
3353 * changer-src/scsi-bsd.c: Ditto.
3354 * changer-src/scsi-cam.c: Ditto.
3355 * changer-src/scsi-changer-driver.c: Ditto.
3356 * changer-src/scsi-defs.h: Ditto.
3357 * changer-src/scsi-hpux_new.c: Ditto.
3358 * changer-src/scsi-irix.c: Ditto.
3359 * changer-src/scsi-linux.c: Ditto.
3360 * changer-src/scsi-solaris.c: Ditto.
3361 * tape-src/tapeio.c: Ditto.
3363 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3365 * recover-src/uparse.y: Fix compiler warning.
3367 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3369 * server-src/amtrmidx.c: Continue if a directory doesn't exist.
3371 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3373 * man/amanda.8.in (tapecycle): Improve documentation.
3375 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3377 * server-src/amstatus.pl.in: Works with features.
3379 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3381 * common-src/amfeatures.c (am_feature_to_string): Return the string
3382 "UNKNOWNFEATURE" if no features.
3383 * common-src/amfeatures.c (am_string_to_feature): Return NULL if the
3384 string is "UNKNOWNFEATURE".
3386 2002-08-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3388 * common-src/file.c (debug_agets): line_free was badly set when
3389 the buffer size in increased.
3391 2002-07-19 John R. Jackson (jrj@purdue.edu)
3393 * common-src/amanda.h: Fix bad #define.
3395 2002-07-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3397 David Munro <D.Munro@surrey.ac.uk>
3399 * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
3401 2002-06-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3403 Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
3405 * server-src/reporter.c: Fix psfname filename.
3407 2002-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3409 * client-src/sendbackup.c: Don't do compression if it is server side.
3410 * client-src/sendbackup-dump.c: Ditto.
3411 * client-src/sendbackup-gnutar.c: Ditto.
3413 2002-05-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3414 Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
3416 * server-src/taper.c (detach_buffers): Fix compilation with mmap.
3418 2002-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3420 * recover-src/extract_list.c (extract_files): Set dump_device_name
3421 after the call of okay_to_continue.
3423 2002-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3425 New features to describe the OPTIONS line of a REP packet.
3426 * common-src/amfeatures.h: Add fetures fe_rep_options_maxdumps,
3427 fe_rep_options_hostname, fe_rep_options_features and
3428 fe_rep_options_sendbackup_options.
3429 * common-src/amfeatures.c (am_init_feature_set): Add
3430 fe_rep_options_features.
3431 * client-src/selfcheck.c: Write REP packet according to server features. * client-src/sendbackup.c: Ditto.
3432 * client-src/sendsize.c: Ditto.
3434 2002-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3436 * common-src/amfeatures.h:
3437 Rename fe_g_options_maxdump to fe_req_options_maxdumps
3438 Rename fe_g_options_hostname to fe_req_options_hostname
3439 Rename fe_g_options_features to fe_req_options_features
3440 * common-src/amfeatures.c: Ditto
3441 * server-src/amcheck.c: Ditto
3442 * server-src/dumper.c: Ditto
3443 * server-src/planner.c: Ditto
3445 2002-04-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3447 * server-src/amcheck.c: Check if it can send features, hostname or
3448 maxdumps on the global options line. Don't send hostname and
3449 maxdumps for a noop service.
3450 * server-src/dumper.c: Ditto.
3451 * server-src/planner.c: Ditto.
3453 2002-04-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3455 * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
3456 srvcomp-fast options.
3458 2002-04-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3460 * server-src/amcheck.c (start_host): Check the todo bit before
3463 2002-04-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3465 * client-src/client_util.c (parse_options, parse_g_options): Check
3466 for duplication options.
3467 * client-src/client_util.h (COMPR_SERVER_FAST, COMPR_SERVER_BEST):
3469 * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
3471 2002-04-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3473 * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
3474 * client-src/sendbackup.c: Ditto.
3475 * client-src/sendsize.c: Ditto.
3477 2002-04-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3479 * client-src/client_util.c (parse_g_options) New function to parse
3480 the global options string.
3481 * client-src/client_util.h (parse_g_options): Prototype.
3482 * client-src/selfcheck.c: use parse_g_options.
3483 * client-src/sendbackup.c: use parse_g_options.
3484 * client-src/sendsize.c: use parse_g_options.
3486 2002-04-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3488 * server-src/diskfile.c: Improve message for missing features.
3490 2002-04-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3493 * common-src/amfeatures.c (am_set_default_feature_set): New function
3494 to set the default features set.
3495 * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
3496 * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to
3498 * client-src/client_util.c: Check features.
3499 * server-src/amcheck.c: Ditto.
3500 * server-src/diskfile.c: Ditto.
3501 * server-src/driverio.c: Ditto.
3502 * server-src/planner.c: Ditto.
3503 * server-src/diskfile.h (optionstr): Change prototype.
3504 * client-src/sendsize.c: Fix compiler warning.
3506 2002-04-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3508 * common-src/amfeatures.c: Include "amfeatures.h"
3509 * common-src/rsh-security.c: Don't assert on undefined variable.
3511 2002-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3513 * common-src/amfeatures.c: Renamed from features.c
3514 * common-src/amfeatures.h: Renamed from features.h
3515 * common-src/Makefile.am: Rename features to amfeatures.
3516 * client-src/amandad.c: Ditto.
3517 * client-src/client_util.h: Ditto.
3518 * client-src/selfcheck.c: Ditto.
3519 * client-src/sendbackup.c: Ditto.
3520 * client-src/sendsize.c: Ditto.
3521 * server-src/amcheck.c: Ditto.
3522 * server-src/chunker.h: Ditto.
3523 * server-src/diskfile.h: Ditto.
3524 * server-src/dumper.c: Ditto.
3525 * server-src/planner.c: Ditto.
3526 * server-src/taper.c: Ditto.
3528 2002-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3530 * server-src/conffile.c: Default dumporder set to "ttt".
3531 * server-src/driver.c: If dumporder is too short, use t and T.
3532 * man/amanda.8.in: Default dumporder set to "ttt".
3534 2002-04-13 John R. Jackson (jrj@purdue.edu)
3536 * common-src/features.c: Add amanda_feature_auth_keyword feature so
3537 authorization in the OPTIONS string is backward compatible.
3538 * common-src/features.h: Ditto.
3539 * client-src/client_util.c: Ditto.
3540 * client-src/client_util.h: Ditto.
3541 * client-src/selfcheck.c: Ditto.
3542 * client-src/sendbackup.c: Ditto.
3543 * client-src/sendsize.c: Ditto.
3544 * server-src/diskfile.c: Ditto.
3545 * server-src/planner.c: Fix compiler warning.
3547 2002-04-13 John R. Jackson (jrj@purdue.edu)
3549 * server-src/diskfile.c: Fix memory leak.
3551 2002-04-13 John R. Jackson (jrj@purdue.edu)
3553 * server-src/amcheck.c: Fix error parsing in packet.
3555 2002-04-13 John R. Jackson (jrj@purdue.edu)
3557 * common-src/features.c: New file. Add support for feature sets so
3558 different Amanda versions can work together.
3559 * common-src/features.h: Ditto.
3560 * common-src/Makefile.am: Ditto. Add "features" test program.
3561 * client-src/amandad.c: Add "noop" service to return the feature set.
3562 * client-src/selfcheck.c: Accept and return a feature set in OPTIONS.
3564 * client-src/sendbackup.c: Ditto.
3565 * client-src/sendsize.c: Ditto.
3566 * common-src/bsd-security.c: Minor message change.
3567 * common-src/error.c: Use strcasecmp.
3568 * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
3570 * restore-src/amidxtaped.c: Improve parsing.
3571 * server-src/amcheck.c: Ask for client features via "noop" before
3572 doing the real "selfcheck" service requests. Improve parsing.
3573 * server-src/amflush.c: Minor coding format cleanup.
3574 * restore-src/amindexd.c: Improve parsing.
3575 * server-src/chunker.c: Deal with features string in commands. Improve
3577 * server-src/diskfile.c: Initialize the features hosttype field.
3578 * server-src/diskfile.h: Add the features hosttype field.
3579 * server-src/driver.c: Save the features from the schedule. Clean
3580 up some error messages.
3581 * server-src/driverio.c: Add features string to several commands.
3582 * server-src/dumper.c: Deal with features string in commands. Improve
3584 * server-src/planner.c: Ask for client features via "noop" before
3585 doing the real "sendsize" service requests. Improve parsing.
3586 * server-src/server_util.c: Minor coding cleanup.
3587 * server-src/server_util.h: Increase the number of args allowed on
3589 * server-src/taper.c: Deal with features string in commands. Improve
3592 2002-04-12 John R. Jackson (jrj@purdue.edu)
3594 * server-src/driver.c: Fix crash when only processing a tape queue
3597 2002-04-11 John R. Jackson (jrj@purdue.edu)
3599 * server-src/driver.c: Protect against crash when taper has died.
3601 2002-04-11 John R. Jackson (jrj@purdue.edu)
3603 * common-src/stream.c: Clean up an error message.
3605 2002-04-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3607 * docs/DUMPER-API: Remove the section about USER and GROUP.
3609 2002-04-09 John R. Jackson (jrj@purdue.edu)
3611 * server-src/driver.c: Fix send of QUIT to taper when it is down.
3613 2002-04-07 John R. Jackson (jrj@purdue.edu)
3615 * server-src/dumper.c: Change sendbackup response parsing to handle
3616 2.4 changes. Improve packet parse error processing. Make packet
3617 logging conditional on an #ifdef instead of commented out.
3619 2002-04-07 John R. Jackson (jrj@purdue.edu)
3621 * client-src/amandad.c: Fix FORCE_USERID to run the service as the
3622 client user if amandad was started as root.
3624 2002-04-07 John R. Jackson (jrj@purdue.edu)
3626 * common-src/clock.c: Move definition of amanda_gettimeofday() macro
3627 to the header file so it could be used other places. Use new
3628 amanda_timezone macro to avoid some #ifdef's.
3629 * common-src/clock.h: Ditto.
3630 * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
3631 servers trying to talk to 2.5 clients. The HANDLE value was not
3632 being properly handled, and the sequence number was being ignored.
3634 2002-04-07 John R. Jackson (jrj@purdue.edu)
3636 * server-src/reporter.c: Move column routines to conffile.c so amcheck
3637 can use them in its tests. Do not abort on several failures, but
3638 generate messages in the FAILURE AND STRANGE DUMP SUMMARY section.
3639 * server-src/conffile.c: Move column routines to here.
3640 * server-src/conffile.h: Ditto.
3641 * server-src/amcheck.c: Add several config file tests.
3642 * server-src/logfile.c: Change "reporter" to "amreport".
3644 2002-04-07 John R. Jackson (jrj@purdue.edu)
3646 * configure.in: Add /usr/local/sbin to LOCPATH.
3648 2002-03-31 John R. Jackson (jrj@purdue.edu)
3650 * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
3652 2002-03-31 John R. Jackson (jrj@purdue.edu)
3654 * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
3655 * changer-src/scsi-solaris.c: Ditto.
3657 2002-03-31 John R. Jackson (jrj@purdue.edu)
3659 * client-src/amandad.c: Fix arguments to pkt_cat.
3660 * common-src/bsd-security.c: Ditto.
3662 2002-03-31 John R. Jackson (jrj@purdue.edu)
3664 * client-src/amandad.c: Add relative timestamps to a lot of debug
3665 file messages, and add more messages, to better track what is
3666 going on. Various general cleanup.
3667 * client-src/calcsize.c: Ditto.
3668 * client-src/client_util.c: Ditto.
3669 * client-src/selfcheck.c: Ditto.
3670 * client-src/sendbackup-dump.c: Ditto.
3671 * client-src/sendbackup-gnutar.c: Ditto.
3672 * client-src/sendbackup.c: Ditto.
3673 * client-src/sendbackup.h: Ditto.
3674 * client-src/sendsize.c: Ditto.
3675 * common-src/amanda.h: Ditto.
3676 * common-src/bsd-security.c: Ditto.
3677 * common-src/clock.c: Ditto.
3678 * common-src/clock.h: Ditto.
3679 * common-src/debug.c: Ditto.
3680 * common-src/dgram.c: Ditto.
3681 * common-src/error.c: Ditto.
3682 * common-src/file.c: Ditto.
3683 * common-src/pipespawn.c: Ditto.
3684 * common-src/stream.c: Ditto.
3685 * common-src/util.c: Ditto.
3686 * man/amanda.8.in: Ditto.
3687 * restore-src/amidxtaped.c: Ditto.
3688 * restore-src/amrestore.c: Ditto.
3689 * server-src/amindexd.c: Ditto.
3690 * server-src/getconf.c: Ditto.
3691 * server-src/planner.c: Ditto.
3693 2002-03-31 John R. Jackson (jrj@purdue.edu)
3695 * client-src/sendsize.c: Pay attention to the spindle number.
3697 2002-03-30 John R. Jackson (jrj@purdue.edu)
3699 * server-src/planner.c: General delay_dumps code cleanup.
3701 2002-03-30 John R. Jackson (jrj@purdue.edu)
3703 * server-src/planner.c: Make sure individual dumps larger than a tape
3704 are not added back into the schedule. Found by Uncle George
3705 <gatgul@voicenet.com>.
3707 2002-03-29 John R. Jackson (jrj@purdue.edu)
3709 * man/amanda.8.in: Move "comment" in tapetype after inclusion of
3710 previous definition. Found by Uncle George <gatgul@voicenet.com>.
3712 2002-03-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3714 * client-src/client_util.c (fixup_relative): New function to prepend
3715 the dirname if relative.
3716 * client-src/client_util.c (build_exclude, build_include): Use
3718 * client-src/client_util.c (parse_options): Do not prepend the dirname.
3719 * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
3722 2002-03-24 John R. Jackson (jrj@purdue.edu)
3724 * common-src/debug.c: Change dbopen() message slightly to match what
3725 amdump generates, making it easier to parse.
3727 2002-03-24 John R. Jackson (jrj@purdue.edu)
3729 * common-src/Makefile.am: Move clock routines to common-src so
3730 everyone may use them.
3731 * server-src/Makefile.am: Ditto.
3733 2002-03-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3735 * client-src/sendbackup-gnutar.c: Fix use of no_record.
3737 2002-03-24 John R. Jackson (jrj@purdue.edu)
3739 * client-src/amandad.c: Make sure argv[0] is valid before using it.
3740 * restore-src/amidxtaped.c: Ditto.
3741 * server-src/amindexd.c: Ditto.
3743 2002-03-24 John R. Jackson (jrj@purdue.edu)
3745 * client-src/client_util.c: Use the Amanda memory allocation code.
3746 * client-src/sendbackup-gnutar.c: Ditto.
3747 * client-src/sendsize.c: Ditto.
3748 * common-src/match.c: Ditto.
3749 * recover-src/amrecover.c: Ditto.
3750 * recover-src/display_commands.c: Ditto.
3751 * recover-src/extract_list.c: Ditto.
3752 * restore-src/amidxtaped.c: Ditto.
3753 * server-src/amflush.c: Ditto.
3754 * server-src/disk_history.c: Ditto.
3755 * server-src/driver.c: Ditto.
3756 * server-src/dumper.c: Ditto.
3757 * common-src/amanda.h: Always pass the source file and line number
3758 to the memory routines to make it easier to debug.
3759 * common-src/alloc.c: Ditto.
3760 * common-src/file.c: Ditto.
3762 2002-03-23 John R. Jackson (jrj@purdue.edu)
3764 * changer-src/chg-scsi-chio.c: Use agets instead of fgets.
3765 * changer-src/chg-scsi.c: Use agets instead of fgets.
3766 * client-src/client_util.c: Use agets instead of fgets.
3767 * recover-src/amrecover.c: Clean up output on EOF.
3768 * recover-src/extract_list.c: Use agets instead of direct stdio.
3769 Clean up output on EOF. Add '?' help.
3770 * recover-src/set_commands.c: Quote the new device in the verify
3771 output to make it stand out.
3772 * server-src/amflush.c: Clean up output on EOF. Clean up output
3773 when multiple holding disk areas selected. Clean up parsing.
3774 Loop until valid user response.
3775 * server-src/find.c: Do not complain if log file is missing for
3776 a new (datestamp == 0) tape.
3777 * server-src/holding.c: Use agets instead of fgets. Clean up
3778 interactive input and output.
3780 2002-03-23 John R. Jackson (jrj@purdue.edu)
3782 * client-src/selfcheck.c: Fix a compiler warning.
3783 * client-src/sendbackup.c: Ditto.
3784 * client-src/sendsize.c: Ditto.
3786 2002-03-23 John R. Jackson (jrj@purdue.edu)
3788 * client-src/getfsent.c (close_fstab()): Call endfsent() instead
3789 of fclose(), if available.
3791 2002-03-23 John R. Jackson (jrj@purdue.edu)
3793 * common-src/dbprintf (debug_printf): Make sure errno is preserved
3794 across dbprint() calls.
3796 2002-03-23 John R. Jackson (jrj@purdue.edu)
3798 * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
3799 --with-libraries to support shared libraries of support products.
3801 2002-03-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3803 * server-src/chunker.c: Get result from dumper.
3804 * server-src/driver.c: Send dumper result to chunker.
3805 * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
3806 * server-src/driverio.h (chunker_t): New down field.
3807 * server-src/dumper.c: Cleanup.
3808 * server-src/logfile.c (logtype_str): Add "PARTIAL".
3809 * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
3810 * server-src/reporter.c: Handle PARTIAL log.
3811 * server-src/server_util.c (cmdstr): Add "PARTIAL".
3812 * server-src/server_util.h (cmd_t): Add PARTIAL command.
3813 * server-src/taper.c (read_file): Result is PARTIAL if dumper
3816 2002-03-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3818 * server-src/tapefile.c (write_tapelist): Write to a temp file and
3820 * server-src/amlabel.c: Do not rename the tapelist file.
3821 * server-src/taper.c (label_tape): Do not rename the tapelist file.
3823 2002-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3825 * client-src/client_util.c (parse_options): Do not check if the
3826 exclude file exist, it's done later.
3828 2002-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3830 * client-src/client_util.c (parse_options): Parse exclude-optional and
3832 * client-src/client_util.h (option_t): New exclude_optional and
3833 include_optional field.
3834 * man/amanda.8.in: Document optional.
3835 * server-src/amadmin.c (disklist_one): Display optional.
3836 * server-src/conffile.c: Parse optional keyword.
3837 * server-src/conffile.h (dumptype_t): New exclude_optional and
3838 include_optional field.
3839 * server-src/diskfile.c (read_diskline): Copy optional bits.
3840 * server-src/diskfile.c (optionstr): Print optional bits.
3841 * server-src/diskfile.h (disk_t): New exclude_optional and
3842 include_optional field.
3843 * server-src/planner.c (getsize): Use new sendsize format if optional
3846 2002-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3848 * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
3851 2002-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3853 * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
3855 2002-03-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3856 Patch from Michael Frankowski <mfrankow@winternet.com>
3858 * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
3860 2002-03-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3862 * client-src/client_util.c (init_options): New function.
3863 * client-src/client_util.h (init_options): Prototype.
3864 * client-src/sendsize.c (main): Use init_options.
3866 2002-03-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3868 * client-src/client-util.c: Check for include and exclude files.
3870 2002-03-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3872 * server-src/amstatus.pl.in: Fix.
3873 * server-src/conffile.c(get-compress): Change message for bad
3876 2002-03-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3878 * server-src/amstatus.pl.in: Fix.
3879 * client-src/client_util.c (parse_options): Parse auth= option.
3880 * client-src/client_util.h (option_t): Add auth field.
3881 * client-src/sendbackup.c: Use auth instead of bsd-auth.
3882 * client-src/sendsize.c: Init auth.
3884 2002-03-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3886 * client-src/sendbackup-dump.c: use amdevice as argument to
3888 * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
3889 * server-src/dumper.c: clear device if it is set to NODEVICE.
3891 2002-03-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3893 * server-src/amindexd.c: Compilation fix.
3895 2002-03-07 John R. Jackson (jrj@purdue.edu)
3897 * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
3898 Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
3900 2002-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3902 * recover-src/amrecover.h (list_disk): Prototype.
3903 * recover-src/set_commands.c (list_disk): New function.
3904 * recover-src/uparse.y: parse LISTDISK.
3905 * recover-src/uscan.l: listdisk keyword.
3906 * recover-src/help.c: help for listdisk.
3907 * man/amrecover.8.in: Doc for listdisk.
3908 * server-src/amindexd.c: New LISTDISK command.
3909 * docs/INDEXING: Document LISTDISK command.
3911 2002-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3913 * server-src/amstatus.pl.in: Better output for autoflush.
3915 2002-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3917 * server-src/amstatus.pl.in: Fix.
3919 2002-03-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3921 * server-src/amadmin.c (disklist_one): Print dp->device.
3922 * server-src/amcheck.c (start_host): Send device if specified.
3923 * server-src/amstatus.pl.in: Parse line with device.
3924 * server-src/diskfile.c (parse_diskline): Parse device.
3925 * server-src/diskfile.c (match_disklist): Match on device.
3926 * server-src/diskfile.h (disk_t): New field device.
3927 * server-src/driverio.c: (dumper_cmd): Send device.
3928 * server-src/dumper.c (main): Parse device in request.
3929 * server-src/dumper.c (start_dump): New device argument, send
3931 * server-src/planner.c (getsize): Send device to client.
3932 * server-src/server_util.h (MAX_ARGS): Set it to 12.
3933 * client-src/client_util.c (add_include, build_exclude, build_include,
3934 parse_options): New device argument.
3935 * client-src/client_util.h (build_exclude,build_include,parse_options):
3937 * client-src/selfcheck.c: Use device.
3938 * client-src/sendbackup-dump.c: Use device.
3939 * client-src/sendbackup-gnutar.c: Use device.
3940 * client-src/sendbackup.c: Use device.
3941 * client-src/sendbackup.h (start_backup): New device argument.
3942 * client-src/sendsize.c: Use device.
3943 * man/amanda.8.in: Document new disklist syntax.
3944 * example/disklist: Give example.
3946 2002-03-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3948 * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
3951 2002-03-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3953 * server-src/amstatus.pl.in: Fix for failed tape.
3955 2002-02-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3957 * man/amanda.8.in: Document multiple exclude.
3958 * man/amanda.8.in: Document include.
3960 2002-02-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3962 * client-src/client-util.c (add_include): Include are glob expression.
3964 2002-02-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3966 * common-src/debug.c (debug_open); Don't try to renmae an already
3969 2002-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3971 * server-src/conffile.c (dump_configuration): Print multiple
3972 exclude and include.
3974 2002-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3976 * client-src/client_util.c (add_exclude, add_include): Typo.
3978 2002-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3980 * client-src/client_util.c (build_include, build_exclude): Fix for
3983 2002-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3985 * client-src/client_util.c (get_name): Create a file name.
3986 * client-src/client_util.c (build_name): Remove old files,
3987 build an unused file name.
3988 * client-src/client_util.c (add_exclude): Add an exclude pattern to
3990 * client-src/client_util.c (add_include): Add an include to the
3992 * client-src/client_util.c (build_exclude): Concat all excludes in
3994 * client-src/client_util.c (build_include): Concat all includes in
3996 * client-src/client_util.h (build_exclude, build_include): Prototype.
3997 * client-src/selfcheck.c.diff (check_options): Call build_exclude
3999 * client-src/sendsize.c.diff: Call gtar with one
4000 exclude file/include file.
4001 * client-src/sendbackup-gnutar.c.diff: Call gtar with one
4002 exclude file/include file.
4004 2002-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4006 * common-src/amanda.h (amfree): Change e local variable to e__errno.
4007 * common-src/amanda.h (strappend): Change t local variable to t_t_t.
4009 2002-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4011 * client-src/sendsize.c: Set include_file and include_list to NULL
4012 when using old protocol.
4013 * client-src/sendbackup-gnutar.c: Include "." when using old protocol.
4015 2002-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4017 * server-src/conffile.h (dumptype_t): Add include_file and include_list.
4018 * server-src/conffile.c: Read include.
4019 * server-src/diskfile.h (disk_t): Add include_file and include_list.
4020 * server-src/diskfile.c (optionstr): Add include to the optionstr.
4021 * server-src/amadmin.c (disklist_one): Print include.
4022 * server-src/planner.c: Use new protocol if include is used.
4023 * client-src/client_util.h (option_t): Add include_file and include_list
4024 * client-src/client_util.c (parse_options): Parse include.
4025 * client-src/selfcheck.c (check_options): Print ERROR if include are
4026 used for SAMBA or DUMP.
4027 * client-src/sendsize.c: Send include to gnutar.
4028 * client-src/sendbackup-gnutar.c: Send include to gnutar.
4030 2002-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4032 * client-src/client_util.c (parse_options): Check that files from
4033 'exclude list' exist'.
4034 * client-src/selfcheck.c (check_options): Give ERROR if multiple
4035 exclude are used with samba or if exclude are used with DUMP.
4037 2002-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4039 * client-src/sendbackup.h: Remove bad stuff introduced in previous
4041 * client-src/sendbackup-gnutar.c: Ditto.
4043 2002-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4045 * client_src/client_util.c (parse_options): Function to parse
4047 * client_src/client_util.h (parse_options): Prototype.
4048 * client_src/client_util.h (option_t): Struct for options.
4049 * client_src/Makefile.am: Compile client_util.
4050 * client_src/selfcheck.c: Use new option_t and multiple exclude.
4051 * client_src/sendbackup.h: Use new option_t and multiple exclude.
4052 * client_src/sendbackup.c: Use new option_t and multiple exclude.
4053 * client_src/sendbackup-dump.c: Use new option_t and multiple exclude.
4054 * client_src/sendbackup-gnutar.c: Use new option_t and multiple exclude.
4055 * client_src/sendsize.c: Use new option_t and multiple exclude.
4056 * server-src/conffile.h: Use sl_t for exclude_file and exclude_list.
4057 * server-src/conffile.c: Multiple exclude.
4058 * server-src/diskfile.h: Use sl_t for exclude_file and exclude_list.
4059 * server-src/diskfile.c: Multiple exclude.
4060 * server-src/planner.c: Multiple exclude.
4062 2002-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4064 * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
4066 2002-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4068 * common-src/pipespawn.c (pipespawnv): New funtion taking an
4070 * common-src/pipespawn.h (pipespawnv): Prototype.
4072 2002-02-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4074 * server-src/holding.h: Use sl_t instead of holding_t
4075 * server-src/holding.c: Ditto.
4076 * server-src/amcleanupdisk.c: Ditto.
4077 * server-src/amflush.c: Ditto.
4078 * server-src/find.c: Ditto.
4079 * server-src/planner.c: Ditto.
4081 2002-02-11 John R. Jackson (jrj@purdue.edu)
4083 * configure.in: AIX needs the "other" getconf argument to find out
4084 about large file support (XBS5_ILP32_OFFBIG instead of LFS).
4086 2002-02-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4088 * common-src/sl.h: New header file
4089 * common-src/sl.c: New file for list of string struct.
4090 * common-src/Makefile.am: Compile sl.c
4092 2002-02-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4094 * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
4096 2002-02-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4098 * common-src/fileheader.c (build_header): Typo.
4100 2002-02-10 John R. Jackson (jrj@purdue.edu)
4102 * configure.in: Add new file-pad tapetype option to take the place
4103 of a positive/negative blocksize. Blocksize may now only be
4104 positive. File-pad defaults to "true" which pads the last tape
4105 record like it always has.
4106 * man/amanda.8.in: Ditto.
4107 * server-src/amlabel.c: Ditto.
4108 * server-src/conffile.c: Ditto. Fix typo in conffile test program.
4109 * server-src/conffile.h: Ditto.
4110 * server-src/planner.c: Ditto.
4111 * server-src/taper.c: Ditto.
4113 2002-02-10 John R. Jackson (jrj@purdue.edu)
4115 * configure.in: Save the ./configure args and display them in the
4116 version string (e.g. amandad*debug and "amadmin xx version").
4117 * common-src/genversion.c: Ditto.
4119 2002-02-10 John R. Jackson (jrj@purdue.edu)
4121 * common-src/alloc.c: Fix type mismatch issues discovered by splint
4122 (www.splint.org). Compliments of jens persson <jens@persson.cx>.
4123 * common-src/bsd-security.c: Ditto.
4124 * common-src/debug.c: Ditto.
4125 * common-src/dgram.c: Ditto.
4126 * common-src/file.c: Ditto.
4127 * common-src/fileheader.c: Ditto.
4128 * common-src/fileheader.h: Ditto.
4129 * common-src/genversion.c: Ditto.
4130 * common-src/getcwd.c: Ditto.
4131 * common-src/match.c: Ditto.
4132 * common-src/stream.c: Ditto.
4133 * common-src/strstr.c: Ditto.
4134 * common-src/token.c: Ditto.
4135 * recover-src/amrecover.c: Ditto.
4136 * recover-src/display_commands.c: Ditto.
4137 * recover-src/extract_list.c: Ditto.
4138 * recover-src/set_commands.c: Ditto.
4139 * server-src/reporter.c: Ditto.
4141 2002-02-10 John R. Jackson (jrj@purdue.edu)
4143 * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
4144 * docs/TAPE.CHANGERS: Cleanup.
4146 2002-02-09 John R. Jackson (jrj@purdue.edu)
4148 * common-src/arglist.h: Clean up gcc detection of printf style variable
4149 argument list functions.
4150 * changer-src/scsi-changer-driver.c: Ditto.
4151 * common-src/debug.c: Ditto.
4152 * common-src/dgram.c: Ditto.
4153 * common-src/error.c: Ditto.
4154 * common-src/packet.c: Ditto.
4155 * common-src/packet.h: Ditto.
4156 * common-src/security.c: Ditto.
4157 * common-src/snprintf.c: Ditto.
4158 * common-src/token.c: Ditto.
4159 * common-src/token.h: Ditto.
4160 * server-src/amindexd.c: Ditto.
4161 * server-src/conffile.c: Ditto.
4162 * server-src/diskfile.c: Ditto.
4163 * server-src/logfile.c: Ditto.
4164 * server-src/logfile.h: Ditto.
4165 * server-src/server_util.c: Ditto.
4167 2002-02-09 John R. Jackson (jrj@purdue.edu)
4169 * configure.in: Must look in both strings.h and string.h when trying
4170 to find function declarations (strncasecmp was not found on AIX
4171 but is really there and our override caused a mismatch error).
4173 2002-02-09 John R. Jackson (jrj@purdue.edu)
4175 * configure.in: Add code to test for a type defined in other than the
4176 autoconf expected locations. Use it to look for socklen_t.
4178 2002-02-08 John R. Jackson (jrj@purdue.edu)
4180 * server-src/amadmin.c (check_dumpuser): Make it fatal to attempt to
4181 do an operation that would alter any files when run as someone other
4182 than the dump user from amanda.conf. This should prevent files from
4183 ending up with incorrect ownership.
4185 2002-02-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4187 * man/amrecover.8.in (settape): Document that the hostname is required
4188 if the protocol (tape:, file:, rait:, null:) is specified.
4189 * man/amrecover.8.in (settape): Document that it is posible to
4190 change the tape device when asked to load tape.
4192 2002-02-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4194 * server-src/holding.c (scan_holdingdir): Create the list in
4197 2002-02-02 John R. Jackson (jrj@purdue.edu)
4199 * configure.in: Add unistd.h to list of places to look for ruserok()
4200 declaration. Reported by John Koenig <jfkoenig@vipb.com> on ALPHA
4203 2002-02-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4204 Reported by Roland E. Lipovits <rel@lipo.at0.net>
4206 * server-src/amstatus.pl.in: Don't double-counts the failed
4207 estimate partitions.
4209 2002-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4211 * configure.in: New --with-maxtapeblocksize with a default of 32.
4212 * common-src/amanda.h: MAX_TAPE_BLOCK_KB is defined in amanda.h
4214 2002-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4216 * common-src/fileheader.c (build_header): Never write the
4218 * common-src/fileheader.c (parse_file_header): Do not parse the
4221 2002-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4223 * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
4224 after the dd if=... line.
4226 2002-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4228 * server-src/driver.c: Init code to 0.
4230 2002-01-29 John R. Jackson (jrj@purdue.edu)
4232 * tape-src/output-tape.c (tape_tapefd_fsf): Some systems cannot deal
4233 with large stack variables, so allocate tape I/O buffers dynamically.
4234 * tape-src/tapeio.c (tapefd_rdlabel): Ditto.
4236 2002-01-25 John R. Jackson (jrj@purdue.edu)
4238 * server-src/driver.c: Log non-zero exit codes and signals from all
4239 the dumpers and taper.
4241 2002-01-25 John R. Jackson (jrj@purdue.edu)
4243 * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
4244 functions. Make sure they always report what they were trying to
4245 look up, and don't bother reporting errno (it would be h_errno).
4247 2002-01-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4249 * common-src/fileheader.h (dumpfile_t): Add blocksize field.
4250 * common-src/fileheader.h (build_header): Change prototype.
4251 * common-src/fileheader.c (fh_init): blocksize default to
4253 * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
4254 * common-src/fileheader.c (build_header): Remove blocksize parameter,
4255 write the BLOCKSIZE= line.
4256 * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
4257 * restore-src/amrestore.c: Ditto.
4258 * server-src/dumper.c: Ditto.
4259 * server-src/taper.c: Ditto.
4260 * server-src/holding.c: Ditto.
4261 * server-src/chunker.c: Ditto.
4263 2002-01-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4265 * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
4268 2002-01-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4270 * server-src/planner.c: Check for dp->todo.
4272 2002-01-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4273 Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
4275 * changer-src/chg-scsi.c: Typo.
4277 2002-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4279 * changer-src/Makefile.am: Run `perl -c' on perl script.
4280 * client-src/Makefile.am: Ditto.
4281 * dumper-src/Makefile.am: Ditto.
4282 * server-src/Makefile.am: Ditto.
4284 2002-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4285 Reported by Geert Uytterhoeven <geert@linux-m68k.org>
4287 * README: Amanda compile on Linux/m68k.
4289 2002-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4291 * changer-src/chg-rth.pl.in: Typo. fi -> }.
4293 2002-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4294 Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
4296 * changer-src/chg-chio.pl.in: Typo. fi -> }.
4297 * changer-src/chg-chio.pl.in (prefix, exec_prefix): Set correctly.
4298 * changer-src/chg-chio.pl.in (max_picker): Init to -1.
4300 2002-01-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4302 * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
4305 2002-01-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4307 * server-src/amoverview.pl.in: Ignore some line from amadmin.
4309 2002-01-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4311 * common-src/event.c: Use ASSERTIONS not ASSERT.
4313 2002-01-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4315 * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
4317 * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
4318 * common-src/match.c (clean_regex): Cast to int.
4320 2002-01-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4321 Reported by <ian.willis@sge.net>
4323 * common-src/rsh-security.c: Fix for RSH_DEBUG.
4325 2001-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4327 * config/ltconfig: Remove
4328 * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
4329 * config/config.guess: Update from
4330 ftp://ftp.gnu.org/gnu/config/config.guess
4331 * config/config.sub: Update from
4332 ftp://ftp.gnu.org/gnu/config/config.sub
4333 * config/depcomp, config/install-sh, config/missing,
4334 config/mkinstalldirs: Update from automake 1.5
4335 * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
4337 2001-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4338 Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
4340 * configure.in: Add missing [.
4342 2001-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4343 Patch by Jason Thomas <jason@topic.com.au>
4344 and Eric Siegerman <erics@telepres.com>
4346 * common-src/bsd-security.c (check_user_amandahosts): improve message.
4348 2001-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4350 * server-src/driver.c: Do not go in degraded mode in nodump mode.
4351 * server-src/conffile.c:Check many options to be sure they are positive.
4353 2001-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4355 * changer-src/chg-scsi.c (get_relative_target): return -1;
4356 * changer-src/scsi-irix.c (SCSI_ExecuteCommand): Remove Zero variable.
4357 * common-src/amanda.h: include strings.h if HAVE_STRINGS_H is defined.
4358 * server-src/amadmin.c (info_one): Remove lev0date variable.
4359 * server-src/amadmin.c (import_db): Remove vers_comment variable.
4360 * server-src/amindexd.c (main): Remove arg_len variable.
4361 * server-src/amtrmidx.c (main): Remove level_position and
4362 datestamp_position variables.
4363 * server-src/changer.c (changer_current): Remove checked variable.
4364 * server-src/conffile.c (read_confline): Check value of RESERVE.
4365 * server-src/conffile.c (get_tapetype): Check value of LENGTH and
4367 * server-src/diskfile.h: bit field of 1 bit must be unsigned.
4368 * server-src/driver.c (main): Don't check the value of RESERVE.
4369 * server-src/driver.c (find_diskspace): Remove as_pref variable.
4370 * server-src/driverio.c (getresult): cast cmd_t.
4371 * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
4372 * server-src/find.c (search_logfile): Remove host_undo_ch and
4373 disk_undo_ch variables.
4374 * server-src/holding.c (pick_datestamp): Remove result variable.
4375 * server-src/server_util.c (getcmd): Loop on a cmd_t variable.
4376 * server-src/taper.c (tape_writer_side): Remove out_open variable.
4377 * tape-src/tapeio.c (tapefd_close): Cast to (void *).
4379 2001-12-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4381 * client-src/selfcheck.c: Fix compiler warning.
4382 * changer-src/chg-scsi.c: Ditto.
4383 * changer-src/scsi-changer-driver.c: Ditto.
4384 * changer-src/scsi-defs.h: Ditto.
4385 * server-src/server_util.c: Ditto.
4386 * common-src/fileheader.c: Ditto.
4388 2001-12-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4390 * configure.in: Set MAX_TAPE_BLOCK_KB on linux
4392 2001-12-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4393 Patch by Blaz Zupan <blaz@amis.net>
4395 * changer-src/chg-zd-mtx.sh.in: typo.
4397 2001-12-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4399 * client-src/selfcheck.c (check_access): New function (old check_file
4401 * client-src/selfcheck.c (check_file): Check that the filename is a
4403 * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
4405 2001-12-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4406 Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
4408 * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
4409 AMANDA_TMPDIR directory.
4411 2001-12-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4413 * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
4414 * server-src/amrmtape.sh.in: Ditto.
4416 2001-12-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4418 * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
4420 2001-12-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4422 * server-src/amstatus.pl.in: Work with amflush log.
4424 2001-12-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4426 * server-src/driver.c (nodump): new argument, Don't start the dumpers
4428 * server-src/holding.c (get_flush): chdir to original cwd.
4429 * server-src/reporter.c: accept driver and amflush line in log.
4430 * server-src/amflush.c: exec driver to do the flushing.
4432 2001-12-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4434 * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
4436 2001-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4438 * recover-src/extract_list.c: You can change the tape device
4441 2001-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4443 * restore-src/amrestore.c (restore): try to find the next chunk
4444 in the current directory.
4446 2001-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4448 * example/amanda.conf.in: typo.
4450 2001-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4452 Patch by Roland E. Lipovits <rel@lipo.at0.net>
4453 * example/amanda.conf.in: typo.
4455 2001-12-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4457 * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
4458 Replace TRY_AGAIN by TRYAGAIN.
4460 2001-11-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4461 Patch by Michael D. Beynon <beynon@ll.mit.edu>
4463 * server-src/driver.c (main): Take care of empty tapeq.
4465 2001-11-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4467 * server-src/diskfile.c (lookup_host): Match must be exact.
4469 2001-11-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4471 * server-src/planner.c: Add host, disk, datestamp and level on
4472 FLUSH line. Add datestamp on DUMP line.
4473 * server-src/driver.c (read_flush): Read new format of FLUSH line.
4474 * server-src/driver.c (read_schedule): Read new format of DUMP line.
4475 * server-src/amflush.c: Write a datestamp on stderr.
4476 * server-src/amdump.sh.in: Write a datestamp on stderr.
4477 * server-src/amstatus.pl.in: Works with autoflush.
4479 2001-11-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4480 * server-src/conffile.c (autoflush): New configuration options.
4481 * server-src/conffile.h (autoflush): New configuration options.
4482 * man/amanda.8.in: Document it.
4483 * example/amanda.conf.in: Document it.
4484 * server-src/holding.h (get_flush, pick_datestamp, pick_all_datestamp,
4485 cleanup_holdingdisk): New prototype.
4486 * server-src/holding.c (scan_holdingdir, cleanup_holdingdisk,
4487 get_flush): New function.
4488 * server-src/holding.c (pick_datestamp, pick_all_datestamp): New
4490 * server-src/amcleanupdisk.c: Change call to pick_all_datestamp.
4491 * server-src/amflush.c: Change call to pick_all_datestamp.
4492 * server-src/find.c: Change call to pick_all_datestamp.
4493 * server-src/planner.c: Write FLUSH line to driver, the schedule
4494 line contain the keyword DUMP.
4495 * server-src/planner.c: Add datestamp to SUCCESS and FAIL line.
4496 * server-src/amstatus.pl.in: New parsing of DUMP line.
4497 * server-src/driverio.h: New datestamp field in sched_t;
4498 * server-src/driver.c (build_diskspace): New function to build a
4499 assignedhd_t from an holding file.
4500 * server-src/driver.c (read_flush): New function to read the list
4502 * server-src/driver.c (read_schedule): Parse the keyword DUMP.
4503 * server-src/driver.c: Add datestamp to FAIL line.
4504 * server-src/dumper.c: Add datestamp to FAIL line.
4505 * server-src/reporter.c (timedata_t, repdata_t) : Major change of
4507 * server-src/taper.c: Add datestamp to FAIL line.
4509 2001-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4511 * server-src/conffile.c: New dumporder configuration.
4512 * server-src/conffile.h: Likewise.
4513 * server-src/driver.c (start_some_dumps): Use dumporder to
4514 select the next disk to dump.
4515 * example/amanda.conf.in: Give an example of dumporder.
4516 * man/amanda.8.in: Document it.
4518 2001-11-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4520 * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
4521 * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
4522 * recover-src/uparse.y: Add new token CDX, call cd_glob instead
4523 of set_directory for cd command, call cd_regex for cdx command.
4524 * recover-src/uscan.l: On cdx string return CDX token.
4525 * recover-src/help.c: Document it.
4526 * man/amrecover.8.in: Document it.
4528 2001-09-26 John R. Jackson (jrj@purdue.edu)
4530 * server-src/reporter.c: Fix problem when column sizes are negative.
4532 2001-09-21 John R. Jackson (jrj@purdue.edu)
4534 * server-src/Makefile.am: Add -I../common-src so genversion.h can be
4535 found (since it is built on the fly). Only fails when build is done
4536 in a different directory than the sources.
4538 2001-09-17 John R. Jackson (jrj@purdue.edu)
4540 * server-src/getconf.c: Add capabilities to amgetconf to return
4541 build environment values and also to open and close a debug file
4543 * man/amgetconf.8.in: Ditto.
4544 * changer-src/chg-scsi.c: Ditto.
4545 * common-src/amanda.h: Ditto.
4546 * common-src/debug.c: Ditto.
4547 * common-src/error.c: Ditto.
4548 * server-src/dumper.c: Ditto.
4550 2001-09-17 John R. Jackson (jrj@purdue.edu)
4552 * server-src/planner.c: Make sure we do not attempt to bump beyond
4555 2001-09-16 Thomas Hepper (th@ant.han.de)
4556 * changer-src/chg-scsi.c: Added new config option autoinv,
4557 if not set no auto inventory will be done if the label db is out of
4558 sync. Reworked MapBarCode, now the parameters are passed as a struct
4559 and the result is returned in this struct (MBC_T),
4560 also removed some duplicate/nonsens code from MapBarCode
4561 Changed the definitions for slot_file. It was used duplicate,
4562 1. as the config file set by amanda.conf, and second set by the
4563 config option in the chg-scsi config file. Now the file from
4564 amanda.conf is called chg_scsi_conf. and changer_file is renamed
4566 Added check if cleanfile is not set, if true clean_file is set to NULL
4567 Now return if tape_device is not in the range 0-9.
4568 Added some checks if we have all informations like slot_file,
4569 devices etc. Fixed and error in the search function,
4570 if the searched vol is already loaded return the correct info
4571 and not 'label not found'. Fixed error in the parameter passing
4572 to get_relative_slot. If the option was -slot last we where
4573 1 above the end parameter..
4575 * changer-src/scsi-bsd.c: Fix compile problems.
4576 * changer-src/scsi-changer-driver.c: Fixed the last problems :-)
4577 for the label/barcode handling...
4578 * changer-src/scsi-defs.h: Added new struct MBC_T
4579 * changer-src/sense.c: Added some more messages for Exabyte 210 lib
4581 2001-09-01 John R. Jackson (jrj@purdue.edu)
4583 * client-src/sendsize.c: Fix memory allocation problem.
4585 2001-08-31 John R. Jackson (jrj@purdue.edu)
4587 * server-src/amindex.c: Fix memory leak. Compliments of Robert Minsk
4588 <egbert@centropolisfx.com>.
4589 * server-src/logfile.c: Fix memory leak. Compliments of Robert Minsk
4590 <egbert@centropolisfx.com>.
4592 2001-08-30 John R. Jackson (jrj@purdue.edu)
4594 * server-src/planner.c: Fix problem with maintenance of total level
4595 0 size when disk being brought back into the schedule was not doing
4596 a level 0. Compliments of Robert Minsk <egbert@centropolisfx.com>.
4598 2001-08-24 John R. Jackson (jrj@purdue.edu)
4600 * server-src/amverify.sh.in: Fix missing backtick error.
4602 2001-08-24 John R. Jackson (jrj@purdue.edu)
4604 * server-src/taper.c: Allocate buffers on page boundaries.
4606 2001-08-22 John R. Jackson (jrj@purdue.edu)
4608 * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
4609 so they end up like all the other Amanda programs.
4611 2001-08-15 Thomas Hepper (th@ant.han.de)
4612 * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
4613 are given to MapBarCode and returned from there. No a struct is passed where all infos
4614 will be returned to the calling function.
4615 If eject is set we will not call LogSense in chg-scsi because it is also called in the
4617 * changer-src/scsi-defs.h: Added struct MBC_T used by MapBarCode.
4618 * changer-src/scsi-changer-driver.c: Changed all calls to MapBarCode to the new way
4620 2001-08-14 John R. Jackson (jrj@purdue.edu)
4622 * docs/EXCLUDE: New document from Andrew Hall <ahall@secureworks.net>
4623 describing how to set up and use GNU tar exclusions.
4624 * docs/Makefile.am: Added EXCLUDE and PORT.USAGE.
4626 2001-08-14 John R. Jackson (jrj@purdue.edu)
4628 * docs/PORT.USAGE: New document about how Amanda ports are used.
4630 2001-08-14 John R. Jackson (jrj@purdue.edu)
4632 * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
4634 2001-08-14 John R. Jackson (jrj@purdue.edu)
4636 * common-src/stream.c: Add stream_client_privileged() function to
4637 get a privileged port and fail if one is not available. The older
4638 stream_client() function gets a (non-privileged) port in the
4639 configured portrange, if set and possible, else anything available.
4640 * common-src/stream.h: Prototypes.
4641 * recover-src/amrecover.c: Use stream_client_privileged() instead of
4643 * recover-src/extract_list.c: Ditto.
4644 * configure.in: Added several more port range sanity checks. Added
4645 --with-tcpportrange as an alias for --with-portrange.
4647 2001-08-09 Thomas Hepper (th@ant.han.de)
4648 * changer-src/chg-scsi.c: Added check in MapBarCode if the labelfile
4649 parameter is empty, and if yes return.
4650 Added global variable do_inventory, and if set do an inventory before
4652 In MapBarCode changed the way the UPDATE_SLOT is done, now it uses
4653 the slot number passed to MapBarCode to find and update the record.
4654 * changer-src/scsi-changer-driver.c: Added def. for BreeceHill Q7
4655 Added global variables which are set by the tape_rdlabel function
4657 Reworked the way how the updates of the labelfile are done.
4659 2001-08-01 John R. Jackson (jrj@purdue.edu)
4661 * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
4663 * client-src/sendbackup-gnutar.c: Ditto.
4664 * client-src/sendsize.c: Ditto.
4666 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
4668 * client-src/findpass.c: Allow backup of subdirs of PC shares for
4669 amanda-2.4.1beta1 by Greg Shebert amanda-hackers list Tue Feb 1,
4670 2000. Ported to amanda-2.4.2p2 on debian potato by Marko Injac.
4671 * client-src/findpass.h: Ditto.
4672 * client-src/selfcheck.c: Ditto.
4673 * client-src/sendbackup-gnutar.c: Ditto.
4674 * client-src/sendsize.c: Ditto.
4675 * docs/SAMBA: Ditto.
4677 2001-08-01 John R. Jackson (jrj@purdue.edu)
4679 * client-src/sendsize.c: Prefix each debug line with sendsize process
4680 information to make picking out the output from a particular estimate
4681 run easier when maxdumps > 1.
4683 2001-08-01 John R. Jackson (jrj@purdue.edu)
4685 * server-src/amcheck.c: Unlink the temp files as soon as they are
4686 created so they always go away when amcheck terminates. Use
4687 pipespawn() instead of system() to call the MAILER program. Call
4688 dbopen()/dbclose() in main() to write to a debug file instead of
4691 2001-08-01 John R. Jackson (jrj@purdue.edu)
4693 * common-src/debug.c: Only rename files that end in ".debug".
4695 2001-08-01 John R. Jackson (jrj@purdue.edu)
4697 * common-src/pipespawn.c: Show empty pipespawn() args as "".
4699 2001-07-31 John R. Jackson (jrj@purdue.edu)
4701 * server-src/conffile.h: Add support for tapetype "blocksize" keyword.
4702 * server-src/conffile.c: Add tapetype "blocksize" keyword. Use
4703 DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE. Disallow
4704 negative tape length and tapemark size.
4705 * common-src/alloc.c: Add new amtable_free() function. Adjust args
4706 to amtable_alloc() to be consistent with amtable_free().
4707 * common-src/amanda.h: Add new am_round() and am_floor() macros.
4708 Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
4709 MAX_TAPE_BLOCK_BYTES constants. Remove TAPE_BLOCK_SIZE and
4711 * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
4712 Use -1 instead of DEFAULT_SIZE.
4713 * common-src/rsh-security.c: Ditto.
4714 * common-src/fileheader.c: Change write_header() to build_header().
4715 Add blocksize arg. Get rid of unused fill_buffer() function.
4716 * common-src/fileheader.h: Ditto.
4717 * common-src/stream.c: Use negative value to indicate default buffer
4719 * common-src/stream.h: Add NETWORK_BLOCK_BYTES and STREAM_BUFSIZE
4720 constants. Remove DATABUF_SIZE and DEFAULT_SIZE.
4721 * man/amanda.8.in: Document the new "blocksize" tapetype keyword.
4722 Document that "length" in tapetype has meaning to some output
4723 drivers. Fix "bumpdays" and "speed" defaults. Document new "file:"
4724 output driver record length data file.
4725 * man/amrestore.8: Add new "-b blocksize" arg. Add description of
4726 how to catalogue the images on a tape.
4727 * recover-src/amrecover.c: DEFAULT_SIZE -> -1.
4728 * recover-src/extract_list.c: DEFAULT_SIZE -> -1. Use DISK_BLOCK_BYTES
4729 instead of TAPE_BLOCK_BYTES for the header size.
4730 * restore-src/amrestore.c: Add new "-b blocksize" arg. Document how
4731 the header is handled. Deal with arbritrary tape record sizes.
4732 * server-src/amlabel.c: Use the tapetype blocksize.
4733 * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
4734 appropropriate instead of older constants. Rewrite disk I/O buffer
4735 management. Never pad output stream (e.g. to holding disk). Use
4736 -1 for default stream buffer size.
4737 * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
4739 * server-src/driverio.c: Set chunker argv[0] to name based on which
4740 dumper it is working with.
4741 * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
4742 appropropriate instead of older constants. Rewrite disk I/O buffer
4743 management. Never pad output stream (e.g. to holding disk). Use
4744 -1 for default stream buffer size.
4745 * server-src/holding.c: Change TAPE_BLOCK_BYTES to DISK_BLOCK_BYTES.
4746 Use fullread() instead of fill_buffer().
4747 * server-src/planner.c: Use tapetype blocksize instead of constant
4748 for tape length calculations.
4749 * server-src/taper.c: Support tapetype blocksize. Only pad writes if
4750 blocksize is negative. Reorganize shared memory buffers to put
4751 data on page boundaries. Try reducing tapebuf count if allocation
4753 * tape-src/output-file.c: Maintain record size information. Use mask
4754 and flags from caller.
4755 * tape-src/output-null.c: Use new amtable_alloc() arg order.
4756 * tape-src/output-rait.c: Use new amtable_alloc() arg order. Add
4757 private version of amtable_free() for standalone build. Fix off
4758 by one and other table allocation problems.
4759 * tape-src/output-rait.h: Maintain file descriptor count in the
4761 * tape-src/tapeio.c: Support tapetype blocksize. Use new
4762 amtable_alloc() arg order. Fix some error message text.
4763 * tape-src/tapeio.h: New prototypes with blocksize arg.
4764 * tape-src/tapetype.c: Add "-b blocksize" arg. Fix some end case
4767 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
4769 * recover-src/amrecover.c: Improve the "Unexpected server end of file"
4772 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
4774 * man/amanda.8.in: Document includefile.
4775 * man/amdump.8.in: Add note that local crontab documention should be
4776 checked for proper syntax.
4777 * man/amrecover.8.in: Document use of PAGER environment variable.
4778 * man/amrestore.8: Document that GNU tar must be used as some vendor
4779 tar programs cannot read GNU tar format.
4780 * docs/FAQ: Update location of online FAQ.
4782 2001-07-25 John R. Jackson <jrj@purdue.edu>
4784 * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
4785 document the new (but optional) searchable features.
4787 2001-07-19 John R. Jackson <jrj@purdue.edu>
4789 * common-src/error.c: Fix function prototype error.
4791 2001-07-19 John R. Jackson <jrj@purdue.edu>
4793 * common-src/error.c: Add new function errordump() that acts like
4794 error() but calls abort() to (try to) drop core.
4795 * common-src/amanda.h: Prototype.
4796 * common-src/alloc.c: Call errordump() instead of error() for some
4797 memory allocation failures to aid traceback.
4799 2001-07-19 John R. Jackson <jrj@purdue.edu>
4801 * server-src/amadmin.c: Improve the error message when read_conffile()
4803 * server-src/amcheck.c: Ditto.
4804 * server-src/amcleanupdisk.c: Ditto.
4805 * server-src/amflush.c: Ditto.
4806 * server-src/amlabel.c: Ditto.
4807 * server-src/amlogroll.c: Ditto.
4808 * server-src/amtape.c: Ditto.
4809 * server-src/amtrmidx.c: Ditto.
4810 * server-src/amtrmlog.c: Ditto.
4811 * server-src/driver.c: Ditto.
4812 * server-src/dumper.c: Ditto.
4813 * server-src/getconf.c: Ditto.
4814 * server-src/planner.c: Ditto.
4815 * server-src/reporter.c: Ditto.
4816 * server-src/taper.c: Ditto.
4818 2001-07-19 John R. Jackson <jrj@purdue.edu>
4820 * server-src/driverio.c: Make the name "ps" reports match the dumper
4821 name (e.g. "dumper3").
4823 2001-07-18 John R. Jackson <jrj@purdue.edu>
4825 * changer-src/chg-chio.pl.in: Try to unload the drive before moving
4826 a tape back to a slot. Fixes a problem on Ecrix AutoPAK devices.
4827 Patch compliments of Sam Leffler <sam@errno.com>.
4829 2001-07-18 John R. Jackson <jrj@purdue.edu>
4831 * server-src/amverify.sh.in: Change to the Amanda temp directory
4832 instead of the config directory. In addition to making amverify
4833 act like most other Amanda programs, this gets around an
4836 2001-07-18 John R. Jackson <jrj@purdue.edu>
4838 * man/amanda.8.in: Describe the .amandahosts format better. Clean up
4839 a couple of minor typos.
4841 2001-07-13 John R. Jackson <jrj@purdue.edu>
4843 * common-src/dgram.h: Improve UDP datagram size calculation.
4844 * server-src/amcheck.c: Break up large requests into pieces.
4845 * server-src/planner.c: Break up large requests into pieces.
4847 2001-07-12 John R. Jackson <jrj@purdue.edu>
4849 * tape-src/amdd.c: Use tapefd_close() in amdd if the file was
4850 opened with tape_open(). This does any necessary output driver
4851 cleanup (such as moving the current file position for "file:").
4853 2001-07-12 John R. Jackson <jrj@purdue.edu>
4855 * Makefile.am: Fix automake warning.
4857 2001-07-11 John R. Jackson <jrj@purdue.edu>
4859 * tape-src/tapetype.c: Use tapefd_write() instead of write().
4861 2001-07-11 John R. Jackson <jrj@purdue.edu>
4863 * common-src/file.c: Fix a memory leak. Grab exponentially larger
4864 chunks of memory up to a point, then level out.
4866 2001-07-11 John R. Jackson <jrj@purdue.edu>
4868 * tape-src/tapetype.c: Only report a pass summary when stderr is not
4869 a tty. Deal with some obscure end cases.
4871 2001-07-10 John R. Jackson <jrj@purdue.edu>
4873 * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
4874 * changer-src/scsi-solaris.c: Ditto.
4876 2001-07-10 John R. Jackson <jrj@purdue.edu>
4878 * server-src/amcheck.c: Move user name check before attempt to create
4879 temp files so more appropriate error message is generated.
4881 2001-07-09 John R. Jackson <jrj@purdue.edu>
4883 * common-src/dgram.c: Fix error end case unitialized variable.
4885 2001-07-05 John R. Jackson <jrj@purdue.edu>
4887 * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
4888 that -slot and -eject unload and put the current tape away.
4890 2001-07-02 John R. Jackson <jrj@purdue.edu>
4892 * changer-src/chg-manual.sh.in: Add yet another ONLINEREGEX, this one
4893 compliments of Nick (n_hibma@qubesoft.com) for some FreeBSD variant.
4895 2001-06-29 John R. Jackson <jrj@purdue.edu>
4897 * tape-src/tapeio.c: Move the device name parsing routines from the
4898 RAIT module to tapeio and make them generic. This allows one
4899 module to open another, e.g. rait:{null:,z1,z2,z3}. Maintain
4900 both the original open flags and mask and use them on the real open.
4901 * tape-src/amdd.c: Make sure this compiles "stand-alone". To do so,
4902 use: gcc -Wall -DNO_AMANDA amdd.c output-rait.c output-tape.c.
4903 Abort as soon as one of the open calls fails instead of waiting
4904 for read/write to report a bad file descriptor.
4905 Pass a mask to the open function in case the output is created.
4906 * tape-src/ammt.c: Make sure this compiles "stand-alone". To do so,
4907 use: gcc -Wall -DNO_AMANDA ammt.c output-rait.c output-tape.c.
4908 * tape-src/output-file.c: Maintain both the original open flags and
4909 mask and use them on the real open.
4910 * tape-src/output-null.c: Ditto.
4911 * tape-src/output-file.h: Change to non-prototype declaration of
4912 file_tape_open() to deal with the optional mask parameter.
4913 * tape-src/output-null.h: Ditto.
4914 * tape-src/output-tape.h: Ditto.
4915 * tape-src/tapeio.h: Ditto. Add device name parsing prototypes.
4916 * tape-src/output-rait.c: Make sure this compiles "stand-alone".
4917 Maintain both the original open flags and mask and use them on the
4919 * tape-src/output-rait.h: Make sure this compiles "stand-alone".
4920 * tape-src/output-tape.c: Make this part of the "stand-alone" compile
4921 of ammt and amdd since it knows all the proper ioctl operations.
4922 Maintain both the original open flags and mask and use them on the
4925 2001-06-27 John R. Jackson <jrj@purdue.edu>
4927 * changer-src/chg-manual.sh.in: Add "bs=32k" to the dd command so
4928 some kernels would not complain about the tape block being larger
4930 * changer-src/chg-mtx.sh.in: Ditto.
4932 2001-06-21 John R. Jackson <jrj@purdue.edu>
4934 * server-src/planner.c: If the compression rate is very small (such
4935 as zero after some types of errors) and FORCE_FULL is set, a path
4936 is taken that (among other bad things) generates a schedule that
4937 driver cannot read (syntax errors).
4938 * server-src/conffile.c: Do not allow negative comprate values.
4940 2001-06-19 John R. Jackson <jrj@purdue.edu>
4942 * server-src/holding.c: Use fullread() instead of read() to read the
4945 2001-06-19 John R. Jackson <jrj@purdue.edu>
4947 * server-src/amtape.c: Document "slot advance" in the help output.
4949 2001-06-19 John R. Jackson <jrj@purdue.edu>
4951 * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
4952 consistent with other Amanda usage.
4954 2001-06-19 John R. Jackson <jrj@purdue.edu>
4956 * server-src/amverify.sh.in: Better cross platform tar detection.
4958 2001-06-19 John R. Jackson <jrj@purdue.edu>
4960 * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
4962 2001-06-19 John R. Jackson <jrj@purdue.edu>
4964 * recover-src/amrecover.c: Add more debugging to guess_disk()
4965 function to better track how the disk is determined from the
4966 current working directory. Report current working directory in
4967 error message. Change "Trying" to "Trying disk" to distinguish
4968 this from host attempts.
4969 * recover-src/set_commands.c: Remove redundant amfree() call. Remove
4970 redundant "OISD /" exchange. Change "Trying" to "Trying host" to
4971 distinguish this from disk attempts.
4973 2001-06-19 Thomas Hepper <th@ant.han.de>
4974 * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
4975 the label db update stuff from the COM_SLOT part (moved to unload
4976 in scsi-changer-driver.c)
4977 * changer-src/scsi-changer-driver.c: Do an unload if the tape is
4978 loaded in the Inventory function. Added an marker to avoid recursion
4979 in Inventroy function. Added label db check in unload function and
4980 call Inventroy if it indicates an out of sync db
4982 2001-06-18 John R. Jackson <jrj@purdue.edu>
4984 * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
4985 flag to vrestore. Some versions do not like it.
4987 2001-06-18 John R. Jackson <jrj@purdue.edu>
4989 * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
4991 * common-src/stream.c: Ditto.
4993 2001-06-18 John R. Jackson <jrj@purdue.edu>
4995 * changer-src/chg-manual.sh.in: Add yet another online regex. Found
4996 by George Herson <gherson@snet.net>.
4998 2001-06-12 Thomas Hepper <th@ant.han.de>
4999 * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
5000 decide how to get the tape drive status.
5001 * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
5002 the tape drive status.
5003 * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
5005 2001-06-10 Thomas Hepper <th@ant.han.de>
5006 * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
5007 return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
5008 is created with an touch)
5009 * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
5010 Fixed an error in the unload function if the destination slot for the unload is not empty.
5011 (cut and paste error !!)
5013 2001-06-07 Thomas Hepper <th@ant.han.de>
5014 * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
5015 In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
5016 In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
5017 * changer-src/scsi-irix.c: Changed a lot, now it should work.
5018 * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part.
5019 * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
5020 is called buf.mt_dposn not buf.mt.dposn.
5022 2001-06-04 Thomas Hepper <th@ant.han.de>
5023 * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
5024 incl. change of passwd parameter.
5026 2001-06-04 Thomas Hepper <th@ant.han.de>
5027 * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
5028 * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic
5029 function to send different ioctls (Tape_Ioctl)
5030 * changer-src/scsi-bsd.c: see above
5031 * changer-src/scsi-hpux_new.c: see above
5032 * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
5033 set pDev[ip].avail to 1.
5034 * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
5035 Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.
5036 * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
5037 Eject the tape in the inventory function before the scan to get all
5038 barcode labels. Check in GenericEject if the device is able to receive
5039 SCSI commands, if not use the ioctl interface to eject the tape.
5040 Same for the GenericRewind function.
5041 Added the LogSense in the GenericEject function.
5042 * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
5044 2001-06-01 John R. Jackson <jrj@purdue.edu>
5046 * server-src/amindexd.c (build_disk_table): Make sure a holding disk
5047 image is used rather than a copy also on tape, if both exist.
5049 2001-06-01 Thomas Hepper <th@ant.han.de>
5050 * changer-src/scsi-changer-driver.c: Added an range check in the load
5051 function and abort if the requested slot is out of range.
5052 Fixed in incorrect pointer in the eject function if the ioctl
5055 2001-05-29 John R. Jackson <jrj@purdue.edu>
5057 * server-src/reporter.c: Fix PostScript output to only show what went
5058 on the tape, not what the total amount dumped. Compliments of
5059 Joshua Baker-LePain <jlb17@duke.edu>.
5061 2001-05-28 Thomas Hepper <th@ant.han.de>
5062 * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
5063 * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
5064 * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
5065 Added debug message if the open fails. Implemented the function Tape_Status (not tested)
5066 * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
5067 during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
5068 needs an offset of 12, not 0 as in GenericElementStatus.
5069 Added an unload/GenericResetStatus in the Inventory function if an bar code reader is
5070 available. This is to get the label from the loaded tape.
5071 The function TapeStatus sets now the status regardless of the status of the tape.
5072 If the device is capable for sending SCSI commands use the SCSI interface to get
5073 the status of the tape.
5074 * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
5075 description on how to use the sgen interface on solaris 2.8
5077 2001-05-18 John R. Jackson <jrj@purdue.edu>
5079 * client-src/patch-system.sh.in: Missed a reference to kamanda in the
5080 last patch. Compliments of Tom Schutter <t.schutter@att.net>.
5082 2001-05-16 John R. Jackson <jrj@purdue.edu>
5084 * client-src/patch-system.sh.in: Go ahead and update /etc/services
5085 on a client even if the services themselves are not turned on to
5086 inetd. Compliments of Tom Schutter <t.schutter@att.net>. Add
5087 the TCP port for amandad for future use.
5089 2001-05-14 John R. Jackson <jrj@purdue.edu>
5091 * client-src/amandad.c: Fix hang when the incoming packet size is
5092 larger than the pipe buffer. Also, report back when too much
5093 data for a packet is returned by the service (this is not properly
5094 diagnosed back to, e.g., amcheck, but that's for another day).
5095 * common-src/bsd-security.c: Fix minor comment error.
5097 2001-05-11 John R. Jackson <jrj@purdue.edu>
5099 * common-src/util.c (bind_portrange): Log a debug message stating
5100 explicitly that all ports in the requested range were busy, or
5101 that a specific port failed bind() for an unexpected reason.
5103 2001-05-07 John R. Jackson <jrj@purdue.edu>
5105 * client-src/sendbackup-dump.c: Do not use full path to sed. Found by
5106 Roland E. Lipovits (rel@lipo.at0.net).
5108 2001-05-07 Thomas Hepper <th@ant.han.de>
5109 * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
5110 * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
5111 GenericElementStatus if there is an error condition. Move from tape to tape to get the
5112 tape loaded if it is only ejected.
5113 * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
5114 * changer-src/scsi-linux.c : Added return type for tape not loaded
5115 * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
5116 databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
5117 The function Tape_Status will now return either tape loaded or not.
5118 * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
5120 * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
5121 how to confgure the sgen driver on solaris 2.8
5123 2001-05-04 John R. Jackson <jrj@purdue.edu>
5125 * config/depcomp: Fix problem with argument* processing and update to
5128 2001-05-01 Thomas Hepper <th@ant.han.de>
5129 * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
5130 * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
5131 known Exabyte libs handles the reader in the same way.
5133 2001-04-28 Thomas Hepper <th@ant.han.de>
5134 * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
5135 Changed the way an tape label is read, use tape_open to open the
5136 device, not own open.
5137 * changer-src/scsi-changer-driver.c : Changed the way an tape label
5138 is read, use tape_open to open the device, not own open.
5139 * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
5140 (/dev/nst0 for example)
5142 2001-04-26 Thomas Hepper <th@ant.han.de>
5144 * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
5146 * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
5147 reads the element Status, and GenericElementStatus which handles the errors.
5148 Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
5149 * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
5150 * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
5151 * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
5153 2001-04-25 John R. Jackson <jrj@purdue.edu>
5155 * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
5156 used to define sbindir. Sigh. Include X=X assignments to get rid
5157 of the Perl warnings.
5158 * server-src/amoverview.pl.in: Ditto.
5160 2001-04-24 John R. Jackson <jrj@purdue.edu>
5162 * changer-src/chg-chio.pl.in: Remove unused exec_prefix to get rid of
5163 warning message. Patch from Nick Hibma <n_hibma@qubesoft.com>.
5165 2001-04-23 John R. Jackson <jrj@purdue.edu>
5167 * client-src/selfcheck.c: Allow Samba shares with no password.
5168 * client-src/sendbackup-gnutar.c: Ditto.
5169 * client-src/sendsize.c: Ditto.
5171 2001-04-15 Thomas Hepper <th@ant.han.de>
5172 * Makefile.am: Added contrib/gsc files to EXTRA_DIST
5174 2001-04-15 Thomas Hepper <th@ant.han.de>
5175 * changer-src/scsi-aix.c: Rework of the SCSI interface, support
5176 to talk to an device handled by the gsc driver (not tested yet)
5177 * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
5178 device handling, Changed the return codes in case of an error
5179 * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in
5180 device handling, Changed the return codes in case of an error
5181 * changer-src/scsi-changer-driver.c: Changed the way
5182 SCSI_ExecuteCommand passes error conditions back, error handling
5183 should now be done by the calling function, SCSI_Run for example.
5184 * changer-src/scsi-changer-driver.c (CheckMove): If the
5185 DeviceCapabilitiesPage is not set do not return an error, print
5186 an warning to the debug file.
5187 * changer-src/scsi-defs.h: New define for AIX_USE_GSC
5188 New defines for the return codes of SCSI_ExecuteCommand
5189 * changer-src/scsi-hpux_new.c: Fix error in device handling.
5190 Changed the return codes in case of an error
5191 * changer-src/scsi-irix.c: Fix error in device handling.
5192 Changed the return codes in case of an error
5193 * changer-src/scsi-solaris.c: Fix error in device handling.
5194 Changed the return codes in case of an error
5196 2001-04-15 Thomas Hepper <th@ant.han.de>
5197 *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
5199 2001-04-13 John R. Jackson <jrj@purdue.edu>
5201 * example/amanda.conf.in: Fix multiple holding disks comment.
5203 2001-04-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5205 * client-src/getfsent.h (search_fstab): New prototype.
5206 * client-src/getfsent.c (search_fstab): New arg check_dev, skip
5207 entry if check_dev==1 and device stats failed.
5208 * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
5209 * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
5210 * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
5211 * client-src/getfsent.c (amname_to_devname, amname_to_dirname,
5212 amname_to_fstype): Call search_fstab sequentialy with 1 and 0
5215 2001-04-10 John R. Jackson <jrj@purdue.edu>
5217 * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
5220 2001-04-09 Thomas Hepper <th@ant.han.de>
5221 * changer-src/scsi-changer-driver.c: More rework on the debug output.
5222 changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
5223 In function GenericRewind do an check before the rewind to see
5224 if the tape is loaded.
5225 * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
5226 * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
5228 2001-04-08 Alexandre Oliva <aoliva@redhat.com>
5230 * client-src/getfsent.c (search_fstab): Don't skip entry just
5231 because device stats failed.
5233 2001-04-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5235 * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
5236 * config/config.sub: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
5237 * config/mkinstalldirs: Upgrade from automake CVS.
5239 2001-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5241 * config/depcomp: new file for automake.
5243 2001-04-03 John R. Jackson <jrj@purdue.edu>
5245 * Makefile.am: Remove *.test.c from the distribution.
5247 2001-04-02 John R. Jackson <jrj@purdue.edu>
5249 * NEWS: Update some of the 2.4.2 items.
5251 2001-03-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5253 * client-src/getfsent.c (search_fstab): If the device doesn't
5254 exist, it will take the entry from /etc/mtab.
5256 2001-03-26 John R. Jackson <jrj@purdue.edu>
5258 * server-src/amtape.c: Do not rewind for slot "advance". Do not report
5259 device name (which is bogus) for slot "advance".
5261 2001-03-23 John R. Jackson <jrj@purdue.edu>
5263 * example/amanda.conf.in: Add warning that the sample amanda.conf
5264 will not work as is and must be edited to match the installation.
5266 2001-03-21 John R. Jackson <jrj@purdue.edu>
5268 * recover-src/extract_list.c (extract_files_child): Fix problem that
5269 caused xfsrestore arg list to not be NULL terminated.
5271 2001-03-19 John R. Jackson <jrj@purdue.edu>
5273 * configure.in: Add --with-debug-days (default is 4) and remove
5274 --with-pid-debug-files.
5275 * common-src/Makefile.am: Clean up test program dependencies.
5276 * common-src/debug.c: Create timestamped debug file names and remove
5277 files older (based on file name) than --with-debug-days. Rename old
5278 style names to new style (based on modification time) the first time
5280 * common-src/file.c: Use construct_datestamp() instead of private code.
5281 * common-src/genversion.c: Display AMANDA_DEBUG_DAYS and remove
5282 DEBUG_FILE_WITH_PID.
5283 * common-src/util.c: Move construct_datestamp to here and add new
5284 function construct_timestamp. Change time used to build string to
5285 be an optional parameter instead of always getting it in the routine.
5286 * common-src/util.h: Add prototypes.
5287 * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
5288 indication that it should get the current time.
5289 * server-src/amflush.c: Ditto.
5290 * server-src/chunker.c: Ditto.
5291 * server-src/driver.c: Ditto.
5292 * server-src/dumper.c: Ditto.
5293 * server-src/planner.c: Ditto.
5294 * server-src/server_util.c: Remove construct_datestamp (now in util.c).
5295 * server-src/server_util.h: Remove prototype.
5297 2001-03-15 John R. Jackson <jrj@purdue.edu>
5299 * server-src/planner.c (analyze_estimate): Do not do an incremental
5300 if FORCE_NO_BUMP is set and the last dump was a level 0.
5302 2001-03-14 John R. Jackson <jrj@purdue.edu>
5304 * server-src/amcheck.c: Change message from NOTE to WARNING when
5305 the hold file exists.
5306 * man/amcheck.8.in: Ditto.
5308 2001-03-14 John R. Jackson <jrj@purdue.edu>
5310 * client-src/selfcheck.c: Send smbclient via pipe instead of command
5311 line arg. Various minor cleanups. Use pipespawn instead of system()
5312 to clean up quoting problems and be consistent with sendsize and
5314 * client-src/sendbackup-dump.c: Send smbclient via pipe instead of
5315 line arg. Various minor cleanups.
5316 * client-src/sendbackup-gnutar.c: Send smbclient via pipe instead of
5317 line arg. Various minor cleanups. Clean up listed incremental file
5319 * client-src/sendbackup.c: Various minor cleanups.
5320 * client-src/sendsize.c: Send smbclient via pipe instead of command
5321 line arg. Various minor cleanups. Clean up listed incremental file
5323 * docs/SAMBA: Update and cleanup.
5324 * common-src/pipespawn.c: Import from 2.4.2 branch.
5325 * common-src/pipespawn.h: Import from 2.4.2 branch.
5326 * common-src/Makefile.am: Add pipespawn.[ch] references.
5328 2001-03-13 John R. Jackson <jrj@purdue.edu>
5330 * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
5331 argument list processing.
5333 2001-03-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5335 * server-src/dumper.c (read_datafd): set errstr and return on
5336 databuf_write error.
5338 2001-03-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5340 * server-src/dumper.c (read_indexfd): Ignore error while writing
5341 to the index file. Log an L_INFO message.
5343 2001-03-09 John R. Jackson <jrj@purdue.edu>
5345 * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
5346 more places. Run normal protocol after a tape startup error (e.g.
5347 "cannot overwrite") instead of just exiting to keep driver from
5348 reporting a broken pipe.
5350 2001-03-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5351 Reported by Eric Schnoebelen <eric@cirr.com>
5353 * server-src/changer.c (changer_command): Fix fd leak.
5355 2001-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5357 * server-src/server_util.c (cmdstr, getcmd, putresult): New.
5358 * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
5359 * server-src/server_util.h (cmd_t): New.
5360 * server-src/driverio.c (cmdstr): Remove.
5361 * server-src/driverio.c: Use new cmdstr and cmd_t.
5362 * server-src/driverio.h: (tok_t): Remove.
5363 * server-src/amflush.c: Use new cmd_t.
5364 * server-src/driver.c: Use new cmd_t.
5365 * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
5366 * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
5367 * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
5368 * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
5369 * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
5370 * server-src/taper.c: Use new cmd_t, getcmd and putresult.
5372 2001-03-05 John R. Jackson <jrj@purdue.edu>
5374 * common-src/util.c: The fullread() and fullwrite() functions should
5375 call read() and write(), not tapefd_read() and tapefd_write().
5377 2001-02-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5379 * server-src/planner.c (setup_estimate): Don't re-ask for level 0
5380 if last_level is 0 and FORCE_NO_BUMP is set.
5382 2001-02-27 John R. Jackson <jrj@purdue.edu>
5384 * common-src/stream.h: Move DATABUF_SIZE to stream.h.
5385 * client-src/sendbackup.c: Do not ask for a big receive buffer.
5386 * server-src/dumper.c: Ask for a bigger send buffer. Minor typos.
5387 * server-src/taper.c: Ask for a bigger receive buffer.
5388 * recover-src/amrecover.c: Use stream_client instead of specific
5389 (and incorrect) bind() code.
5390 * recover-src/extract_list.c: Ditto.
5392 2001-02-27 John R. Jackson <jrj@purdue.edu>
5394 * common-src/dgram.c: Add lots more error logging to help track down
5397 2001-02-27 John R. Jackson <jrj@purdue.edu>
5399 * common-src/stream.c: Add lots more error logging to help track down
5402 2001-02-27 John R. Jackson <jrj@purdue.edu>
5404 * server-src/amtape.c: Rewind after loading a slot either by slot
5407 2001-02-27 John R. Jackson <jrj@purdue.edu>
5409 * configure.in: Add some commentary about why pushdef/popdef are
5410 needed around AC_CHECK_TYPE.
5412 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5413 Patch by Alex Pilosov <alex@pilosoft.com>
5415 * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
5416 and permit use of both bus:target:lun(btl) and a full
5417 device name (/dev/ch0) as changerdev.
5419 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5420 Patch by Joe Rhett <jrhett@isite.net>
5421 and Jason Hollinden <jhollind@sammg.com>
5423 * changer-src/chg-zd-mtx.sh.in: Added barcode reader support,
5424 >9 tape slot support, variable for 'offline' or 'ONLINE'
5425 return value of tape device, and multi-config support. Moved
5426 all user settable variables to 'changerfile'.conf in the
5427 amanda config directory. Added commented out example of .conf
5430 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5432 * server-src/amindexd.c (uncompress_file): remove uncompressed
5433 index file if the command failed.
5435 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5437 * restore-src/amrestore.c (main): init r to 0.
5439 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5441 * changer-src/scsi-defs.h (PrintConf): Add prototype.
5442 * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
5443 * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
5445 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5447 * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
5449 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5451 * server-src/planner.c (setup_estimate): ask for level 0 for
5452 a new disk if force-bump is set,
5453 log force-bump and force-nobump command.
5455 2001-02-17 Thomas Hepper <th@ant.han.de>
5457 * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
5458 based on the information found on the system, works for Linux and BSD with cam
5459 support. New config option debuglevel
5460 * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
5461 to control the amount of information by the config option debuglevel in the config
5462 file (docs follow), not complete yet.
5463 * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
5465 New function DebugPrint to print debug information based on the variable debuglevel.
5466 Replaced a lot of dbprintf with new Function DebugPrint
5467 * changer-src/scsi-aix.c: changed parameter for ScanBus
5468 * changer-src/scsi-irix.c: changed parameter for ScanBus
5469 * changer-src/scsi-solaris.c: changed parameter for ScanBus
5470 * changer-src/scsi-bsd.c: changed parameter for ScanBus
5471 * changer-src/scsi-cam.c: Implemented function ScanBus
5472 * changer-src/scsi-linux.c: Implemented function ScanBus
5474 2001-02-09 John R. Jackson <jrj@purdue.edu>
5476 * server-src/diskfile.c: Fix core dump in test program.
5478 2001-02-09 John R. Jackson <jrj@purdue.edu>
5480 * tape-src/output-file.c: Use a "data" subdirectory of the main
5481 file driver device directory to hold the tape "files". This
5482 allows the status file to be moved to the main directory.
5483 * man/amanda.8.in: Document these changes.
5485 2001-02-08 Thomas Hepper <th@ant.han.de>
5487 * changer-src/scsi-aix.c: Added dummy ScanBus function
5488 * changer-src/scsi-bsd.c: Added dummy ScanBus function
5489 * changer-src/scsi-cam.c: Added dummy ScanBus function
5490 * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
5491 * changer-src/scsi-irix.c: Added dummy ScanBus function
5492 * changer-src/scsi-defs.h: Added prototype for ScanBus function
5494 2001-02-04 John R. Jackson <jrj@purdue.edu>
5496 * man/amanda.8.in: Fix mailto to space separated, not comma.
5498 2001-02-03 John R. Jackson <jrj@purdue.edu>
5500 * .cvsignore: Add entries to keep CVS quiet.
5501 * */.cvsignore: Ditto.
5503 2001-02-03 John R. Jackson <jrj@purdue.edu>
5505 * client-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
5506 * common-src/Makefile.am: Add more sources as needed to the test
5507 programs so they would compile.
5508 * server-src/Makefile.am: Create TEST_PROGS make variable ala the
5509 other Makefile.am files.
5510 * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
5512 2001-02-03 John R. Jackson <jrj@purdue.edu>
5514 * server-src/diskfile.c: Fix test program compilation error and bug
5515 when just a config name was given on the command line.
5517 2001-02-02 John R. Jackson <jrj@purdue.edu>
5519 * server-src/reporter.c: Fix problem with enum being unsigned on
5522 2001-01-29 John R. Jackson <jrj@purdue.edu>
5524 * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
5527 2001-01-29 John R. Jackson <jrj@purdue.edu>
5529 * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
5530 to booleans (compliments of Marc W. Mengel <mengel@fnal.gov>).
5531 * tape-src/tapeio.c (tape_fsf): Use ap_snprintf instead of snprintf
5532 (also compliments of Marc).
5534 2001-01-26 John R. Jackson <jrj@purdue.edu>
5536 * changer-src/Makefile.am: Double up the references to libamanda to
5537 handle systems that put regex in strange places.
5538 * client-src/Makefile.am: Ditto.
5539 * recover-src/Makefile.am: Ditto.
5540 * restore-src/Makefile.am: Ditto.
5541 * server-src/Makefile.am: Ditto.
5542 * tape-src/Makefile.am: Ditto.
5544 2001-01-23 John R. Jackson <jrj@purdue.edu>
5546 * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
5547 enhance and add "null" and "file" output drivers. Change all
5548 tape changers (except chg-scsi) to use amdd and ammt. Change all
5549 tape changers (except chg-scsi) to log and use a consistent
5550 error reporting scheme. Fix various bugs along the way. Add new
5551 chg-multi config option, posteject, which is an optional script
5552 to call after each "tape" is ejected (e.g. to use to start a
5553 CDROM writer). Remove special code for tapedev of /dev/null
5554 (now handled by the "null" output driver). Changed the taper
5555 protocol to pass the host/disk/level so the write can send that
5556 along to the output driver. Fairly major rework of amrestore
5557 to clean up tape/non-tape and other oddities.
5558 * changer-src/chg-chio.pl.in: Ditto.
5559 * changer-src/chg-chs.sh.in: Ditto.
5560 * changer-src/chg-manual.sh.in: Ditto.
5561 * changer-src/chg-mtx.sh.in: Ditto.
5562 * changer-src/chg-multi.sh.in: Ditto.
5563 * changer-src/chg-rth.pl.in: Ditto.
5564 * changer-src/chg-zd-mtx.sh.in: Ditto.
5565 * client-src/sendbackup.c: Ditto.
5566 * common-src/alloc.c: Ditto.
5567 * common-src/amanda.h: Ditto.
5568 * docs/INTERNALS: Ditto.
5569 * man/Makefile.am: Ditto.
5570 * man/amanda.8.in: Ditto.
5571 * man/amdd.8: Ditto.
5572 * man/ammt.8: Ditto.
5573 * restore-src/amrestore.c: Ditto.
5574 * server-src/amcheck.c: Ditto.
5575 * server-src/amlabel.c: Ditto.
5576 * server-src/amtape.c: Ditto.
5577 * server-src/amverify.sh.in: Ditto.
5578 * server-src/conffile.c: Ditto.
5579 * server-src/conffile.h: Ditto.
5580 * server-src/taper.c: Ditto.
5581 * tape-src/Makefile.am: Ditto.
5582 * tape-src/amdd.c: Ditto.
5583 * tape-src/ammt.c: Ditto.
5584 * tape-src/output-file.c: Ditto.
5585 * tape-src/output-file.h: Ditto.
5586 * tape-src/output-null.c: Ditto.
5587 * tape-src/output-null.h: Ditto.
5588 * tape-src/output-rait.c: Ditto.
5589 * tape-src/output-rait.h: Ditto.
5590 * tape-src/output-tape.c: Ditto.
5591 * tape-src/output-tape.h: Ditto.
5592 * tape-src/tapeio.c: Ditto.
5593 * tape-src/tapeio.h: Ditto.
5594 * tape-src/tests/amtapeio.test.000: Ditto.
5595 * tape-src/tests/amtapeio.test.001: Ditto.
5596 * tape-src/tests/amtapeio.test.002: Ditto.
5597 * tape-src/tests/amtapeio.test.003: Ditto.
5598 * tape-src/tests/amtapeio.test.004: Ditto.
5599 * tape-src/tests/amtapeio.test.005: Ditto.
5600 * tape-src/tests/amtapeio.test.006: Ditto.
5601 * tape-src/tests/amtapeio.test.007: Ditto.
5602 * tape-src/tests/amtapeio.test.008: Ditto.
5603 * tape-src/tests/amtapeio.test.009: Ditto.
5604 * tape-src/tests/amtapeio.test.010: Ditto.
5605 * tape-src/tests/amtapeio.test.011: Ditto.
5606 * tape-src/tests/amtapeio.test.012: Ditto.
5607 * tape-src/tests/amtapeio.test.013: Ditto.
5608 * tape-src/tests/amtapeio.test.014: Ditto.
5609 * tape-src/tests/amtapeio.test.015: Ditto.
5610 * tape-src/tests/amtapeio.test.016: Ditto.
5611 * tape-src/tests/amtapeio.test.017: Ditto.
5612 * tape-src/tests/amtapeio.test.018: Ditto.
5613 * tape-src/tests/cleartape: Ditto.
5614 * tape-src/tests/newtest: Ditto.
5615 * tape-src/tests/rerun: Ditto.
5616 * tape-src/tests/runtest: Ditto.
5617 * tape-src/tests/testdist: Ditto.
5618 * tape-src/tests/torture: Ditto.
5620 2001-01-24 John R. Jackson <jrj@purdue.edu>
5622 * client-src/amandad.c: Improve packet logging.
5624 2001-01-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5626 * server-src/driver.c (start_some_dumps): typo.
5628 2001-01-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5630 * server-src/driverio.h (sched_t): new field no_space.
5631 * server-src/driver.c (start_some_dumps): don't start a disk if
5633 * server-src/driver.c (continue_dumps): set no_space if it's the
5634 only active dumpers, case c.
5635 * server-src/driver.c (read_schedule): set no_space to 0.
5637 2001-01-23 John R. Jackson <jrj@purdue.edu>
5639 * configure.in: Test for setmntent.
5640 * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
5641 changes that indirectly reference the device for a file system.
5643 2001-01-22 Marc W. Mengel <mengel@fnal.gov>
5645 * recover-src/extract_list.c: Added -U to tar recover options
5646 to reduce errors recovering shared libs and/or binaries on
5649 2001-01-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5651 * docs/INSTALL: Notes about tar-1.13.19
5653 2001-01-17 Thomas Hepper <th@ant.han.de>
5655 * changer-src/chg-scsi.c: Moved definitions for config_t and
5656 changer_t into scsi-defs.h
5657 * changer-src/chg-scsi.c: New config option havebarcode
5658 * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
5659 the option havebarcode. Replaced NoBarCode with GenericBarCode.
5660 Fixed compile warnings from -Wshadow
5661 * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
5663 * changer-src/scsi-solaris.c: Changed the return value to
5664 Command.uscsi_status in SCSI_ExecuteCommand if the return from the
5667 2001-01-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5669 * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and
5670 "DATESTAMP EXPRESSION".
5671 * man/amadmin.8.in: Document new usage.
5672 * man/amflush.8.in: Document new usage.
5673 * man/amcheck.8.in: Document new usage.
5674 * man/amdump.8.in: Document new usage.
5675 * man/amrestore.8: Document new usage.
5676 * server-src/amadmin.c: Fix usage.
5677 * server-src/amflush.c: Fix usage.
5678 * server-src/amcheck.c: Fix usage.
5680 2001-01-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5682 * server-src/diskfile.c (match_disklist): Return if no args.
5684 2001-01-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5686 * server-src/diskfile.c (match_disklist): Fix.
5688 2001-01-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5690 * server-src/diskfile.c (match_disklist): Updated for
5691 [host [disk]*]* syntax.
5693 2001-01-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5695 * common-src/match.c (match_datestamp): New function.
5696 * common-src/amanda.h (match_datestamp): Prototype.
5697 * server-src/amflush.c: Use match_datestamp.
5698 * restore-src/amrestore.c: Use match_datestamp.
5700 2001-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5702 * common-src/match.c (match_word): Support for leading ^ and
5705 2001-01-04 John R. Jackson <jrj@purdue.edu>
5707 * common-src/error.c (error): If the debug file pointer is set, log
5708 any fatal error message to it and close the file so it has a good
5709 trace of what happened and when.
5711 2001-01-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5713 * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
5714 * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
5715 * taper-src/output-rait.c: include "tapeio.h", new define for
5717 * taper-src/tapeio.c(many): Remove unused tfd variable.
5718 * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
5720 2001-01-04 John R. Jackson <jrj@purdue.edu>
5722 * client-src/killpgrp.c: Calls to error() do not need a newline.
5724 2001-01-04 John R. Jackson <jrj@purdue.edu>
5726 * man/amanda.8.in: Try to make it clearer that dumpcycle and maxdumps
5727 changes in the main part of the config file must appear before any
5728 dumptype definitions, and also that inherited dumptypes must appear
5729 before their reference.
5731 2001-01-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5733 * server-src/driver.c (continue_dumps): Don't reduce est_size if
5734 it is already larger than holding space allocated.
5735 * server-src/dumper.c: Remove all code for FILE_DUMP command.
5736 * server-src/chunker.c: Better handling of ENOSPC from
5739 2001-01-04 John R. Jackson <jrj@purdue.edu>
5741 * server-src/conffile.c (main): Fix conffile test program so it builds
5744 2001-01-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5746 * changer-src/scsi-defs.h (ChangerCMD_T): replace array function
5747 pointer by enumerated pointers.
5748 * changer-src/scsi-changer-driver.c: Use new calling convention.
5750 2001-01-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5752 * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
5753 ABORT-FINISHED result.
5755 2001-01-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5757 * server-src/amflush.c: Use getopt to parse argument.
5758 * server-src/amflush.c: New [-D date]* argument.
5759 * man/amflush.8.in: Document it.
5761 2001-01-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5762 Patch by Andreas F Mueller <afm@othello.ch>
5764 * server-src/amadmin.c (force_no_bump_one): Fix message.
5766 2001-01-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5768 * tape-src/am-dd.c: include "amanda.h"
5769 * tape-src/am-mt.c: include "amanda.h"
5770 * tape-src/am-mt.c (main): res is int.
5771 * tape-src/output-rait.c: include "amanda.h", do not define stderr.
5772 * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
5773 argument should be "char *"
5774 * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
5775 argument should be "const char *"
5777 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5779 * server-src/find.c (find_match): Use todo bit.
5780 * server-src/find.c (find_dump): No arguments.
5781 * server-src/find.h (find_dump): Change prototype.
5782 * server-src/amadmin.c (find): New [host disk]* pair arguments.
5783 * server-src/amindexd.c: Change call to find_dump().
5784 * server-src/amtrmidx.c: Change call to find_dump().
5786 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5788 * configure.in: Don't check krb5 include if krb5 is not selected.
5790 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5792 * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
5794 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5796 * server-src/amadmin.c (diskloop): typo.
5798 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5800 * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
5801 * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
5804 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5806 * server-src/amflush.c (main):log DISK after checking if logfile exist.
5808 2000-12-30 John R. Jackson <jrj@purdue.edu>
5810 * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
5811 when things go wrong. Add support for "bsdsecurity" test program
5813 * common-src/Makefile.am: Ditto.
5814 * common-src/amanda.h: Ditto.
5815 * restore-src/amidxtaped.c: Ditto.
5816 * server-src/amindexd.c: Ditto.
5818 2000-12-30 John R. Jackson <jrj@purdue.edu>
5820 * ChangeLog: Bring Jean-Louis into the right month :-).
5821 * changer-src/scsi-changer-driver.c: Untested changes to at least
5822 get the code to compile on Solaris and to remove some warnings.
5823 * changer-src/scsi-defs.h: Ditto.
5824 * changer-src/scsi-solaris.c: Ditto.
5826 2000-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5828 * server-src/diskfile.c (add_disk): New function.
5829 * server-src/diskfile.h (add_disk): Prototype.
5830 * server-src/logfile.h (logtype_e): add L_DISK.
5831 * server-src/logfile.c (logtype_str): add "DISK".
5832 * server-src/amflush.c (main): log DISK.
5833 * server-src/planner.c (main): log DISK.
5834 * server-src/reporter.c: use DISK if available.
5836 2000-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5838 * server-src/amcheck.c: New [host disk]* pair arguments.
5839 * server-src/amflush.c: Ditto.
5840 * server-src/planner.c: Ditto.
5841 * server-src/amdump.sh.in: Ditto.
5842 * server-src/amrestore.c: Use new host/disk matcher.
5843 * man/amcheck.8.in: Document new [host disk]* pair arguments.
5844 * man/amflush.8.in: Ditto.
5845 * man/amdump.8.in: Ditto.
5847 2000-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5849 * server-src/diskfile.c (match_disklist): new function.
5850 * server-src/diskfile.h (struct disk_s): new field todo.
5851 * server-src/diskfile.h (match_disklist): prototype.
5853 2000-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5855 * common-src/match.c (match_word, match_host, match_disk):
5857 * common-src/amanda.h (match_host, match_disk): prototype.
5859 2000-12-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5861 * server-src/planner.c (analyze_estimate): pick incremental level
5862 if no estimate of level 0.
5864 2000-12-28 Marc W. Mengel <mengel@fnal.gov>
5865 * changer-src/chg-juke.sh.in: New File
5866 * changer-src/Makefile.am: Added support for chg-juke.
5867 * docs/TAPE.CHANGERS: Likewise.
5868 * configure.in: Likewise.
5870 2000-12-24 John R. Jackson <jrj@purdue.edu>
5872 * server-src/getconf.c: Fix free() of static text string (BUGGY) when
5873 the parameter being looked up is bad.
5875 2000-12-23 David Wolfskill <dhw@whistle.com>
5877 * server-src/amcheck.c (start_server_check): Change directory
5878 writable check to be for the tapelist directory instead of
5879 the config file directory. Remove config file directory test.
5880 * man/amcheck.8.in: Add mention of tapelist directory and do
5881 some other directory writable cleanup.
5883 2000-12-12 John R. Jackson <jrj@purdue.edu>
5885 * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
5888 2000-12-12 John R. Jackson <jrj@purdue.edu>
5890 * Makefile.am: Work around problem with automake 1.4 not including
5892 * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
5893 Work around problem with automake 1.4 not including pkgdata_DATA.
5894 * tape-src/rait.h: Renamed to rait.h.
5895 * tape-src/rait.c: Renamed to rait.c.
5896 * tape-src/output-rait.h: Renamed from rait.h.
5897 * tape-src/output-rait.c: Renamed from rait.c.
5898 * tape-src/Makefile.am: Reflect the new rait.[ch] names.
5899 * tape-src/tapeio.c: Use output-rait.h name. Minor typo changes.
5901 2000-12-08 Marc Mengel <mengel@fnal.gov>
5903 * docs/RAIT: New file.
5904 * docs/VTAPE-API: New file.
5905 * tape-src/rait.c: New File providing RAIT virtual tape type.
5906 * tape-src/tapeio.c: Major Surgery.
5907 (vtable): New static table of virtual tape types.
5908 (fdtable): New static table mapping file descriptors.
5909 (tapefd_fsf_ioctl): Renamed tapefd_fsf, with added ioctl argument.
5910 (tapefd_rewind_ioctl): Likewise.
5911 (tapefd_unload_ioctl): Likewise.
5912 (tapefd_weof_ioctl): Likewise.
5913 (tapefd_status_ioctl): Likewise.
5914 (tape_open): Now is a virtual tape table lookup and call.
5915 (tape_access): Now is a switch through virtual tape table.
5916 (tape_stat): Likewise.
5917 (tapefd_close): Likewise.
5918 (tapefd_fsf): Likewise.
5919 (tapefd_read): Likewise.
5920 (tapefd_rewind): Likewise.
5921 (tapefd_resetofs): Likewise.
5922 (tapefd_unload): Likewise.
5923 (tapefd_status): Likewise.
5924 (tapefd_weof): Likewise.
5925 (tapefd_write): Likewise.
5926 (plain_tape_access): Rename of tape_access.
5927 (plain_tape_open): Likewise.
5928 (plain_tapefd_read): Likewise.
5929 (plain_tape_stat): Likewise.
5930 (plain_tapefd_write): Likewise.
5931 (plain_tapefd_close): Likewise.
5932 (plain_tapefd_fsf): Now calls tapefd_fsf_ioctl with &ioctl().
5933 (plain_tapefd_rewind): Likewise.
5934 (plain_tapefd_resetofs): Likewise.
5935 (plain_tapefd_unload): Likewise.
5936 (plain_tapefd_status): Likewise.
5937 (plain_tapefd_weof): Likewise.
5939 2000-12-04 John R. Jackson <jrj@purdue.edu>
5941 * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
5944 2000-12-04 John R. Jackson <jrj@purdue.edu>
5946 * server-src/conffile.c (read_conffile_recursively): If the file name
5947 for the includefile directive is not absolute, make it relative to
5948 the configuration directory.
5950 2000-12-03 John R. Jackson <jrj@purdue.edu>
5952 * restore-src/amrestore.c: Fix header when compression is included.
5953 Use "fast" option for -c and add new -C option to get "best".
5954 * man/amrestore.8: Document the new option, the compression level,
5955 and clean up some nroff issues.
5957 2000-11-30 Marc Mengel <mengel@fnal.gov>
5959 * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
5960 * changer-src/chg-chs.sh.in: Likewise.
5961 * changer-src/chg-manual.sh.in: Likewise.
5962 * changer-src/chg-mtx.sh.in: Likewise.
5963 * changer-src/chg-multi.sh.in: Likewise.
5964 * changer-src/chg-rth.pl.in: Likewise.
5965 * changer-src/chg-zd-mtx.sh.in: Likewise.
5966 * tape-src/am-dd.c: New file. Replacement for dd.
5967 * tape-src/am-mt.c: New file. replacement for mt.
5968 * tape-src/Makefile.am: Add build for am-mt and am-dd.
5969 * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status,
5970 tapefd_status): New functions.
5971 (tape_rewind, tape_fsf, tape_rdlabel): Change error message
5972 for tape being offline so it matches online/offline regex
5974 (tape_open): Ifdef-out mode flag clearing, so you can pass
5975 O_TRUNC, etc. in for am-dd.
5977 2000-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5979 * common-src/util.c: #include "../tape-src/tapeio.h"
5980 * tape-src/tapeio.c(tapefd_write): second arg is const.
5981 * tape-src/tapeio.h(tapefd_write): Likewise.
5982 * common-src/event.c(event_loop): declare entry if ASSERT is defined.
5983 * changer-src/chg-scsi.c: Fix compiler warning.
5984 * changer-src/scsi-aix.c: Likewise.
5985 * changer-src/scsi-bsd.c: Likewise.
5986 * changer-src/scsi-cam.c: Likewise.
5987 * changer-src/scsi-changer-driver.c: Likewise.
5988 * changer-src/scsi-defs.h: Likewise.
5989 * changer-src/scsi-hpux.c: Likewise.
5990 * changer-src/scsi-hpux_new.c: Likewise.
5991 * changer-src/scsi-irix.c: Likewise.
5992 * changer-src/scsi-linux.c: Likewise.
5993 * changer-src/scsi-solaris.c: Likewise.
5994 * changer-src/sense.c: Likewise.
5996 2000-11-22 John R. Jackson <jrj@purdue.edu>
5998 * contrib/dbbackup.ksh: Deal with adm being a symlink.
5999 * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
6001 2000-11-22 John R. Jackson <jrj@purdue.edu>
6003 * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
6004 of files to put in a distribution.
6006 2000-11-21 John R. Jackson <jrj@purdue.edu>
6008 * recover-src/extract_list.c (extract_files_child): Add support for
6011 2000-11-21 John R. Jackson <jrj@purdue.edu>
6013 * server-src/amcheck.c: Minor message wording changes.
6015 2000-11-21 John R. Jackson <jrj@purdue.edu>
6017 * configure.in: Forgot to check in this part of new amgetconf.8.in.
6019 2000-11-21 John R. Jackson <jrj@purdue.edu>
6021 * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
6022 * contrib/sst/sst.c: Attempt at letting gcc compile sst.
6024 2000-11-21 John R. Jackson <jrj@purdue.edu>
6026 * man/amgetconf.8.in: New man page.
6027 * man/Makefile.am: Add support for amgetconf.8.in.
6028 * man/amadmin.8.in: Update for 2.4.2 and do general cleanup.
6029 * man/amanda.8.in: Ditto.
6030 * man/amcheck.8.in: Ditto.
6031 * man/amcheckdb.8.in: Ditto.
6032 * man/amcleanup.8.in: Ditto.
6033 * man/amdump.8.in: Ditto.
6034 * man/amflush.8.in: Ditto.
6035 * man/amlabel.8.in: Ditto.
6036 * man/amrecover.8.in: Ditto.
6037 * man/amreport.8.in: Ditto.
6038 * man/amrestore.8: Ditto.
6039 * man/amrmtape.8.in: Ditto.
6040 * man/amstatus.8.in: Ditto.
6041 * man/amtape.8: Ditto.
6042 * man/amtoc.8.in: Ditto.
6043 * man/amverify.8.in: Ditto.
6045 2000-11-21 John R. Jackson <jrj@purdue.edu>
6047 * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
6049 2000-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6051 * server-src/amdump.sh.in: exit if amgetconf exit with status != 0.
6052 * server-src/amcleanup.sh.in: ditto
6053 * server-src/amstatus.pl.in: ditto
6055 2000-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6057 * server-src/driver.c (start_some_dumps): don't check free_kps if
6059 * server-src/driver.c (free_kps): remove the kludge.
6061 2000-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6063 * server-src/conffile.c: It's an error to have a negative chunksize.
6064 * man/amanda.8.in: remove documentation of negative chunksize.
6065 * example/amanda.conf.in: ditto
6066 * example/amanda.conf.chg-scsi.in:ditto
6067 * NEWS: negative chunksize is no longer supported.
6069 2000-11-03 John R. Jackson <jrj@purdue.edu>
6071 * server-src/driver.c (handle_taper_result): the holding disk entry
6072 should not be removed just because taper could not write it out in
6073 the "too many taper retries" case. It should be left for amflush.
6075 2000-11-01 John R. Jackson <jrj@purdue.edu>
6077 * server-src/amverify.sh.in: use common form for getting the first
6078 line of a file/pipe. Sed is more portable than head.
6080 2000-10-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6082 * client-src/selfcheck.c (check_disk): Write an appropriate
6083 message if the disk name start with '//' and the program is DUMP
6084 or SAMBA is not compiled in.
6086 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6088 * server-src/driver.c (handle_chunker_result): The dumpsize is
6089 the third argument, not the fourth.
6091 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6093 * server-src/driver.c (handle_chunker_result): don't check
6094 pending_aborts, call event_release() ob ABORT-FINISHED.
6096 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6098 * server-src/chunker.c (databuf_flush): workaround to prevent a
6099 hang on a ABORT command.
6101 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6103 * server-src/driver.c (continue_dumps): set estimate to more than
6104 what is already use instead of setting no_hold=1 when a disk
6105 don't fit on holding disk.
6107 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6109 * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
6111 2000-10-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6113 * server-src/amstatus.pl.in: add '&' when calling &usage()
6116 2000-10-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6117 reported by The Hermit Hacker <scrappy@hub.org>
6119 * changer-src/chg-chio.pl.in: remove unused $libexecdir.
6121 2000-10-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6122 reported by The Hermit Hacker <scrappy@hub.org>
6124 * changer-src/chg-chio.pl.in: remove comma after LOG,
6125 typo: r should be 0.
6127 2000-10-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6129 * docs/INDEXING: doc updated.
6131 2000-10-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6133 * AUTHORS: add Thomas Hepper.
6135 2000-10-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6137 * server-src/driverio.c (chunker_cmd): send ABORT command.
6139 2000-10-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6141 * server-src/amverify.sh.in: grep only the first line of the header.
6143 2000-10-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6145 * server-src/amverify.sh.in: verify with tar even if the
6146 server and the client are not configured with the same path.
6148 2000-10-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6150 * NEWS: A new `ctimeout' keyword in amanda.conf to replace
6151 the CHECK_TIMEOUT constant in amcheck.c.
6153 2000-10-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6155 * server-src/amlabel.c: Don't set tape_ok to 0 if
6156 tape_wrlabel is successful.
6158 2000-10-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6160 * server-src/taper.c: amfree(strclosing).
6162 2000-10-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6164 * server-src/driver.c: typo.
6166 2000-10-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6168 * configure.in: --with-samba-user is deprecated.
6169 * docs/SAMBA: the username is now on the amandapass file.
6170 * NEWS: the username is now on the amandapass file.
6171 * client-src/findpass.c (findpass): accept "*" as diskname.
6172 * client-src/selfcheck.c (check_disk): call to samba changed.
6173 * client-src/sendsize.c (getsize_smbtar): ditto.
6174 * client-src/sendbackup-gnutar.c (start_backup): ditto.
6175 * recover-src/extract_list.c (extract_files_child): ditto.
6177 2000-10-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6179 * server-src/taper.c: give better message when failing
6182 2000-10-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6184 * server-src/diskfile.c (headqueue_disk): new function to
6185 insert at the head of the queue.
6186 * server-src/diskfile.h (headqueue_disk): prototype.
6187 * server-src/driver.c (taper_queuedisk): insert with
6188 headqueue_disk() if disk already attempted.
6190 2000-10-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6192 * AUTHORS: fix my email address.
6194 2000-09-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6196 * server-src/amcheck.c: Don't accept -m or -M option if MAILER
6198 * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
6200 2000-09-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6201 patch by <jeg@time.ucsc.edu>
6203 * server-src/reporter.c (output_summary): check for tape_labels.
6205 2000-09-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6207 * server-src/amindexd.c: use strcasecmp to compare hostname.
6209 2000-09-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6211 * server-src/amstatus.pl.in: fix plural misuse.
6213 2000-09-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6215 * man/amanda.8.in: add all pages in the SEE ALSO section.
6217 2000-09-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6219 * man/amreport.8.in: amreport does not rotate the log.
6220 * man/amrestore.8: note on holdingdisk.
6221 * restore-src/amrestore.c: update usage.
6222 * server-src/amrmtape.sh.in: update usage.
6223 * server-src/amverify.sh.in.usage: update usage.
6225 2000-09-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6227 * server-src/amoverview.pl.in: update usage information,
6228 -config is no longer needed for ccompatibility with other program.
6229 * man/amoverview.8.in: -config is no longer needed.
6231 2000-09-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6233 * example/amanda.conf.in: chunk should not be larger than
6234 MAX_FILE_SIZE - 1Mb.
6236 2000-09-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6238 * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
6240 * server-src/amlabel.c (main): init errstr to NULL,
6241 fix compiler warning.
6243 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6244 patch by jason Thomas <jet@users.sourceforge.net>
6246 * tape-src/tapetype.c: fix help message.
6248 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6249 patch by Rudolf Cejka <cejkar@users.sourceforge.net>
6251 * common-src/file.c (mkpdir): check p != NULL
6252 * man/amstatus.8.in: typo
6254 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6255 patch by Rudolf Cejka <cejkar@users.sourceforge.net>
6257 * client-src/calcsize.c:sets correct program name,
6258 prevent coredumps and some improrer command line error mesages
6260 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6262 * common-src/amanda.h: prototype clean_regex().
6263 * common-src/match.c: new function clean_regex() that escape
6264 all non-alphanumeric character.
6265 * recover-src/extract_list.c (add_file, delete_file): use clean_regex().
6267 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6269 * server-src/amcheck.c: (start_server_check): check for the oldlog
6272 2000-09-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6274 * server-src/amtrmlog.c: better check of the oldlog directory.
6276 2000-09-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6278 * server-src/amcheck.c: (start_server_check): don't check the tape
6279 if tapedev is /dev/null.
6281 2000-09-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6283 * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
6285 2000-07-31 Thomas Hepper <th@ant.han.de>
6286 * changer-src/chg-scsi.c: Rework of the device handling.
6287 Every device is opend for an operation and than closed.
6288 This will hopefully fix the problems with openening the tape device
6289 and the SCSI control device for the tape
6290 new option emubarcode (see docs/TAPE.CHANGERS)
6291 * changer-src/scsi-cam.c: Changed to work with the new device handling.
6292 * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
6293 * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
6294 * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
6295 * changer-src/scsi-linux.c: Changed to work with the new device handling.
6296 * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
6297 * changer-src/scsi-defs.h: Changed to work with the new device handling
6298 2000-07-18 John R. Jackson <jrj@purdue.edu>
6300 * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
6301 function to return a string instead of writing to stdout.
6303 2000-07-18 John R. Jackson <jrj@purdue.edu>
6305 * server-src/taper.c (file_reader_side): detach and destroy shared
6306 memory areas on an error condition. Found by Patrik Andersin
6309 2000-07-17 Thomas Hepper <th@ant.han.de>
6310 * docs/TAPE.CHANGERS: Added some notes for the cam driver
6311 * changer-src/scsi-cam.c: New syntax for telling scsi ids
6313 SCSI_ExecuteCommand now returns the correct sense buffer.
6315 2000-07-17 Thomas Hepper <th@ant.han.de>
6316 * configure.in: Added check for BSD SCSI CAM Support
6317 * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
6318 ( at the moment for FreeBSD 4.0)
6319 * changer-src/Makefile.am: added scsi-cam.s to the list of sources
6320 * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
6321 allocated in chg-scsi and passed to OpenDevice.
6322 * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
6325 2000-07-10 Marc Mengel <mengel@fnal.gov>
6326 * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
6327 on tape device names
6328 * tape-src/tapeio.h -- add tape_{stat,access} prototypes
6329 * common-src/util.c -- call tape_{read,write}() in full{read,write}()
6330 * restore-src/amidxtaped.c -- use tape_stat() on tapename
6331 * restore-src/amrestore.c -- use tape_stat() on tapename
6332 * server-src/amcheck.c -- use tape_access() on tapename
6333 * client-src/Makefile.am -- now needs libamtape.a twice
6334 * server-src/Makefile.am -- now needs libamtape.a twice
6335 * recover-src/Makefile.am -- now needs libamtape.a twice
6336 * Makefile.am -- tape-src before client-src
6338 2000-07-05 Thomas Hepper <th@ant.han.de>
6339 * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
6340 * changer-src/scsi-changer-driver.c (OpenFile):
6341 if the ident ist set in the config set this in the internal device
6343 * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
6344 changed the type for the info text from char * to char ** which
6345 is passwd to Sense2Action
6346 * changer-src/scsi-changer-driver.c (ChangerStatus):
6347 fixed the bug which causes an core dump for chg-scsi -status robot
6348 if an bar code reader is detected. Fixed also the bug that the
6349 mapping Label -> Barcode was not displayed.
6350 * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
6351 * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
6352 * changer-src/sense.c (Sense2Action); Fixed the handling if no match
6353 was found (fall back to the generic description)
6355 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6357 * server-src/list_dir.c (add_dir_list_item): add at head of list.
6359 2000-06-24 Thomas Hepper <th@ant.han.de>
6360 * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2
6361 * changer-src/chg-scsi.c: Merged changes from 2.4.2
6362 * changer-src/sense.c: New file. Contains an table and function for the
6363 mapping of sense/ASC/ASCQ conditions from the SCSI sense.
6364 * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
6365 Changed handling for the sense keys. Now there is only one function
6366 to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
6367 * changer-src/Makefile.am: Added sense.c to the source list.
6368 * changer-src/scsi-solaris.c: Merged changes from 2.4.2
6369 * changer-src/scsi-linux.c: Merged changes from 2.4.2
6370 * changer-src/scsi-irix.c: Merged changes from 2.4.2
6371 * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2
6372 * changer-src/scsi-defs.h: Merged changes from 2.4.2
6374 2000-06-12 Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
6376 * server-src/amlabel.c (main): Do not amfree(config_name).
6378 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6380 * server-src/holding.c (pick_datestamp): convert ch to upper.
6382 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6384 * server-src/driver.c (handle_dumper_result, handle_chunker_result):
6385 delay call to dumper_result().
6387 2000-05-28 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6389 * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
6392 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6394 * chunker.c: allow chunk to be written on different holding disk.
6395 * server-src/driver.c: allow chunk to be written on different
6397 * server-src/conffile.c: make sure that disksize and chunksize
6398 are multiple of TAPE_BLOCK_SIZE.
6399 * server-src/conffile.h: disksize and chunksize are long.
6400 * server-src/diskfile.c (find_disk): new function to see if a
6401 given disk is contained in a list structure.
6402 * server-src/diskfile.h (find_disk): prototype.
6403 * server-src/driverio.h (RQ_MORE_DISK): Added message.
6404 * server-src/driverio.h (free_assignedhd): prototype.
6405 * server-src/driverio.h (assignedhd_t): new data structure.
6406 * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
6407 * server-src/driverio.c (free_assignedhd): new function to free an
6408 array of assignedhd_t.
6410 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6412 * server-src/driver.c (chunker_program): new variable.
6414 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6416 * server-src/amstatus.pl.in: handle chunker line.
6418 2000-04-20 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6420 * recover-src/Makefile.am (LDADD): Removed libamtape.
6421 Reported by Paul Yeatman <pyeatman@ucsd.edu>
6423 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6425 * server-src/chunker.c: new file for the chunker program.
6426 * server-src/Makefile.am: compile it.
6427 * server-src/driver.c: many modification.
6428 * server-src/driverio.c: many modification.
6429 * server-src/driverio.c (startup_chunk_process, chunker_cmd):
6431 * server-src/driverio.h: prototype them.
6432 * server-src/driverio.h (struct chunker_s): new structure.
6433 * server-src/logfile.c: handle chunker log.
6434 * server-src/logfile.h: ditto.
6435 * server-src/reporter.c: ditto.
6436 * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
6438 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6440 * server-src/taper.c: don't crash if the tapelist file
6443 2000-04-09 Frank Wojcik <fwojcik@lucent.com>
6445 * server-src/taper.c (detach_buffers): Fixed typo in error message.
6447 * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
6448 should have been `InfoFile'.
6450 2000-04-09 Davide Marchignoli <marchign@di.unipi.it>
6452 * server-src/conffile.h (confparm_t): Added CTIMEOUT.
6453 * server-src/conffile.c: Added ctimeout support. Default to 30.
6454 * example/amanda.conf.in: Likewise.
6455 * man/amanda.8.in: Documented it.
6456 * server-src/amcheck.c: Use ctimeout from configuration file instead
6459 2000-04-09 Stan Brown <stanb@awod.com>
6461 * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
6462 it is actually a prefix of fsname.
6464 2000-04-09 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6466 * server-src/amlabel.c (main): Check label *after* writing end mark.
6468 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6470 * server-src/amlabel.c: don't crash if the tapelist file
6473 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6475 * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
6477 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6479 * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
6480 and FORCE_BUMP are mutually exclusive.
6482 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6484 * server-src/driver.c (main): use the holding disk even if the
6485 datestamped directory already exist.
6487 2000-01-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6489 * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
6490 twice to avoid warnings of possible typo.
6492 * amplot/amplot.awk: Ignore dumper's RQ-MORE-DISK.
6493 Reported by David Wolfskill <dhw@whistle.com>
6494 * amplot/amplot.awk: Handle taper's TRY-AGAIN like TAPE-ERROR.
6496 * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
6498 Reported by David Wolfskill <dhw@whistle.com>
6500 * man/amtoc.8.in: Document -w.
6502 2000-01-21 David Wolfskill <dhw@whistle.com>
6504 * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
6506 2000-01-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6508 * man/amlabel.8.in: Tapes are no longer requested in reverse order
6510 Reported by Brad Guillory <round@baileylink.net>
6512 * server-src/amstatus.pl.in: New option --stats, to display
6513 statistics about dumpers and taper.
6514 * man/amstatus.8.in: Document it.
6516 2000-01-21 David Wolfskill <dhw@whistle.com>
6518 * server-src/amstatus.pl.in: Sort dumpers by number.
6520 2000-01-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6522 * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
6524 * configure.in (MAILER): Warn or print an error if not found,
6525 depending on whether server code is disabled or not.
6527 * server-src/reporter.c (output_tapeinfo): Report used tapes
6528 regardless of tape errors.
6530 * config/acinclude.m4i (CF_WAIT): Simplify the test. Declare wait()
6531 in the global scope.
6533 2000-01-21 Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
6535 * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
6536 where `union wait' works but is deprecated.
6538 2000-01-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6540 * recover-src/uscan.l (settape): Recognize it.
6541 * recover-src/uparse.y: Parse it.
6542 * recover-src/amrecover.h (set_tape): Declare it.
6543 * recover-src/set_commands.c (set_tape): Implement it.
6544 * recover-src/help.c (help_list): Document it.
6545 * man/amrecover.8.in: Likewise.
6546 * recover-src/extract_list.c (extract_files): Warn if tape device is
6548 * recover-src/amrecover.c (tape_device_name): Default to
6549 server-determined default.
6551 2000-01-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6553 * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
6555 * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
6556 Allow for `make tapetype' before libamanda is built.
6558 * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
6560 2000-01-06 David Wolfskill <dhw@whistle.com>
6562 * docs/TAPETYPES: Typo.
6564 2000-01-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6566 * docs/TAPETYPES: Removed all tapetype entries. Pointed to
6567 example/amanda.conf, to the mailing list archives and to the on-line
6568 tapetype list. Explained the meaning of length, filemark and speed,
6569 and how to build and use the tapetype utility.
6571 1999-12-12 John R. Jackson <jrj@purdue.edu>
6573 * configure.in: egrep was having trouble with quoting on some systems.
6574 Broke it apart into multiple unquoted statements. Also, changed the
6575 script to run the steps on all dump tests and added "Label" as another
6578 1999-12-12 John R. Jackson <jrj@purdue.edu>
6580 * tape-src/tapetype.c: tweak the algorithm to write files in both
6581 passes and compute the tape mark size as the difference. Never
6582 report a negative tape mark size. Various other minor cleanup.
6584 1999-11-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6586 * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
6587 Samba messages unless SAMBA_VERSION < 2.
6589 1999-11-29 John E.P.Hynes <john@hytronix.ne.mediaone.net>
6591 * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
6593 1999-11-25 John R. Jackson <jrj@purdue.edu>
6595 * server-src/amflush.c (main): conf_logdir should not be free'd
6596 (found by Espen H Wiborg <espenhw@infotek.no>).
6598 1999-11-10 John R. Jackson <jrj@purdue.edu>
6600 * recover-src/extract_list.c: report the tape server host in the
6601 message to check the amidxtaped.debug file. If extract_list_child
6602 fails (such as when amidxtaped fails to read the tape), ask if
6603 things should continue instead of aborting.
6605 1999-11-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6607 * server-src/driverio.c (update_info_dumper): Discard information on
6608 older same- or higher-level dumps.
6609 * server-src/driver.c (dump_to_tape): Add comment that _dumper must
6610 be called before _taper.
6612 * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
6614 1999-11-10 John R. Jackson <jrj@purdue.edu>
6616 * server-src/amindexd.c (build_disk_table): need to clear the old
6617 disk history list before building a new one.
6619 1999-11-10 John R. Jackson <jrj@purdue.edu>
6621 * server-src/taper.c (label_tape): issue a warning when tapedev is
6623 * server-src/amcheck.c (start_server_check): make warning message
6624 text the same for amcheck and taper when tapedev is /dev/null.
6626 1999-11-10 John R. Jackson <jrj@purdue.edu>
6628 * server-src/amcleanupdisk.c (main): try to remove empty holding disk
6630 * server-src/holding.c (scan_holdingdisk): do not automatically remove
6631 empty holding disk areas since this function is called by various
6632 utilities and a dump might be in progress.
6634 1999-11-10 James FitzGibbon <james@targetnet.com>
6636 * server-src/infofile.c (put_info): d.size should have been
6639 1999-11-09 John R. Jackson <jrj@purdue.edu>
6641 * server-src/amcheck.c (start_server_check): test tapedev for
6642 "/dev/null" and issue warning that dumps will be thrown away.
6644 1999-11-02 David M. Olsen <David.M.Olsen@boeing.com>
6646 * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
6647 should have been CNF_INFOFILE; fixed.
6649 1999-11-02 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6651 * common-src/amflock.c (struct flock): Do not assume the fields are
6652 declared in any particular order.
6653 Reported by Sean Kelly <kelly@plutotech.com>
6655 * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
6656 * docs/INSTALL: Likewise.
6658 1999-11-02 Ricardo Malta <rmalta@bigfoot.com>
6660 * contrib/set_prod_link.pl: Create the links for a configuration
6663 1999-11-02 David M. Olsen <David.M.Olsen@boeing.com>
6665 * common-src/rsh-security.c (net_writev): The result of a cast is
6666 not an lvalue; fixed.
6668 1999-10-26 Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
6670 * server-src/amtoc.pl.in: Correct a bug for total report.
6672 1999-11-01 John R. Jackson <jrj@purdue.edu>
6674 * server-src/amcleanupdisk.c (main): do not free the config name (it
6677 1999-10-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6679 * common-src/debug.c: Do not assume stderr is a compile-time
6680 constant. On glibc 2.2 (RedHat Linux 6.1), it is not.
6682 1999-10-11 Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
6684 * server-src/amtoc.pl.in: Add new options -i and -t. Print original
6685 size, instead of size on tape.
6687 1999-10-07 John R. Jackson <jrj@purdue.edu>
6689 * common-src/stream.c (stream_server): remove reference to portrange
6690 variable. Compliments of Randy Dees <rrd@amherst.com>.
6692 1999-10-03 John R. Jackson <jrj@purdue.edu>
6694 * server-src/driver.c (main): now that multiple results can come back
6695 from taper and dumper without a handshake (e.g. NO-ROOM), we need to
6696 process them all rather than just the first one. Call the new
6697 areads_dataready() function to peek and see if more data is ready.
6698 * common-src/amanda.h: declare areads_dataready().
6699 * common-src/file.c: define areads_dataready(). Fix some variable
6700 types. Fix a buffer expansion problem. Add code to the test
6701 program to force buffer expansion to be checked out.
6703 1999-10-03 John R. Jackson <jrj@purdue.edu>
6705 * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
6707 1999-10-03 John R. Jackson <jrj@purdue.edu>
6709 * common-src/amflock.c (main): do not use aclose() in the configure
6710 test case. During configure we do not have areads_relbuf()
6711 available and it makes configure think all the tests have failed.
6713 1999-10-03 John R. Jackson <jrj@purdue.edu>
6715 * common-src/amanda.h: protect the close macros and areads* from
6716 out of range file descriptors.
6717 * common-src/file.c: ditto.
6719 1999-10-02 John R. Jackson <jrj@purdue.edu>
6721 * server-src/amindexd.c (build_disk_table): only "OK" results from
6722 find_dump should be considered.
6724 1999-10-02 John R. Jackson <jrj@purdue.edu>
6726 * common-src/file.c (areads): when NO-ROOM became advisory and didn't
6727 participate in a full handshake, it exposed a problem in areads()
6728 where a static buffer was shared among all I/O. Changed it to use
6729 a separate buffer for each file descriptor. Enhanced the test
6730 program to check out the code.
6731 * common-src/amanda.h: ditto
6732 * restore-src/amidxtaped.c: minor areads/agets comment typo.
6733 * server-src/amindexd.c: ditto
6735 1999-10-02 John R. Jackson <jrj@purdue.edu>
6737 * server-src/amlogroll.c: fix minor memory leak.
6739 1999-09-29 John R. Jackson <jrj@purdue.edu>
6741 * server-src/dumper.c (do_dump): closed the dump messages file too
6744 1999-09-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6746 * recover-src/extract_list.c (samba_extract_method): Default to
6747 SAMBA_TAR, for similarity with other restore programs.
6748 (extract_files_child): If restore with SMBCLIENT is enabled, explain
6749 that Samba shares will be restored to the SMB share.
6751 1999-09-22 John R. Jackson <jrj@purdue.edu>
6753 * configure.in: wrong variable when processing LIBRARY_DIRS. Fix
6754 compliments of John M. Vogtle <jmvogtle@kodak.com>.
6756 1999-09-20 John R. Jackson <jrj@purdue.edu>
6758 * server-src/Makefile.am: use new amlogroll utility to rename the log
6759 file to the datestamped name.
6760 * server-src/amcheck.c: ditto.
6761 * server-src/amcleanup.sh.in: ditto and call all utilities with the
6762 config file name as an argument.
6763 * server-src/amdump.sh.in: ditto and call all utilities with the
6764 config file name as an argument.
6765 * server-src/amflush.c: ditto.
6766 * server-src/amlogroll.c: new utility.
6767 * server-src/driverio.c: ditto and call all utilities with the
6768 config file name as an argument.
6769 * server-src/reporter.c: ditto.
6771 1999-09-20 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6773 * amlogroll.c: It was missing; copied from the 2.4.2 branch.
6775 * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
6777 1999-09-19 John R. Jackson <jrj@purdue.edu>
6779 * server-src/amverify.sh.in: this script is important enough it should
6780 not depend on having perl installed. Clean up the AIX "mt status"
6781 code. Test for presense of other restore programs and check that
6782 they are executable during processing.
6784 1999-09-19 John R. Jackson <jrj@purdue.edu>
6786 * server-src/amverify.sh.in: put back an "mt status" wait loop I
6787 erroneously removed, but protect it from AIX.
6789 1999-09-19 John R. Jackson <jrj@purdue.edu>
6791 * common-src/util.c: fix math in bind_portrange so ports requested
6792 are between those the caller passed and make sure port 0 does not
6793 accidentally get requested, which returns a non-privileged port.
6794 * common-src/dgram.c: bind_portrange last port argument is inclusive.
6795 * common-src/stream.c: ditto.
6796 * recover-src/amrecover.c: ditto.
6797 * recover-src/extract_list.c: ditto.
6799 1999-09-19 John R. Jackson <jrj@purdue.edu>
6801 * server-src/driver.c: do not send a FILE_WRITE to the taper when the
6802 tape queue is empty during a TRYAGAIN (driver core dumped).
6804 1999-09-19 John R. Jackson <jrj@purdue.edu>
6806 * server-src/taper.c: fix protocol problems when out of tape. Add
6807 FAKE_TAPE_ERROR debugging code to simulate tape errors. Fix problem
6808 with command line argument processing.
6810 1999-09-18 John R. Jackson <jrj@purdue.edu>
6812 * configure.in: several compress/uncompress variables were not being
6815 1999-09-18 John R. Jackson <jrj@purdue.edu>
6817 * client-src/sendbackup.c: pclose returns a child exit status of the
6818 pipe, not an errno, so do not try to strerror it.
6819 Have the index child process exit with the pclose exit code.
6820 Treat index failures as strange rather than fatal so the dump gets
6821 fully processed. It's more important to have the dump image than
6822 to skip it just because indexing had a (possibly unrelated) problem.
6824 1999-09-15 John R. Jackson <jrj@purdue.edu>
6826 * server-src/amtoc.pl.in: handle an image failing on one tape and
6827 succeeding on the next.
6829 1999-09-15 John R. Jackson <jrj@purdue.edu>
6831 * server-src/amstatus.pl.in: generalize the "driver: state" parsing
6832 so it can handle current and future information.
6834 1999-09-15 John R. Jackson <jrj@purdue.edu>
6836 * common-src/bsd-security.c: if the user field is not present in the
6837 .amandahosts file, it should default to the local user, not the
6838 remote user. For our purposes, that is CLIENT_USER, not the user
6839 we are running as (although they should be the same).
6841 1999-09-14 John R. Jackson <jrj@purdue.edu>
6843 * configure.in: Add --with-tmpdir to ./configure and use it for
6844 all Amanda temporary files. Default --with-dbgdir to --with-tmpdir.
6845 Move libexec/getconf to sbin/amgetconf and add an optional
6846 config parameter. Add optional config parameter to several
6848 Add debugging to chg-chio.
6849 Call new safe_cd() function in most programs to cd to --with-tmpdir
6850 so if they drop core, it goes to a known spot. Rename existing
6851 core files so more than one failure may be tracked. Remove most
6852 chdir() and umask() calls (umask is set in safe_cd).
6853 * amplot/amplot.sh.in: ditto.
6854 * changer-src/chg-chio.pl.in: ditto.
6855 * changer-src/chg-chs.sh.in: ditto.
6856 * changer-src/chg-manual.sh.in: ditto.
6857 * changer-src/chg-mtx.sh.in: ditto.
6858 * changer-src/chg-multi.sh.in: ditto.
6859 * changer-src/chg-rth.pl.in: ditto.
6860 * changer-src/chg-scsi-chio.c: ditto.
6861 * changer-src/chg-scsi.c: ditto.
6862 * changer-src/chg-zd-mtx.sh.in: ditto.
6863 * client-src/amandad.c: ditto.
6864 * client-src/calcsize.c: ditto.
6865 * client-src/killpgrp.c: ditto.
6866 * client-src/rundump.c: ditto.
6867 * client-src/runtar.c: ditto.
6868 * client-src/selfcheck.c: ditto.
6869 * client-src/sendbackup-gnutar.c: ditto.
6870 * client-src/sendbackup.c: ditto.
6871 * client-src/sendsize.c: ditto.
6872 * common-src/alloc.c: ditto.
6873 * common-src/amanda.h: ditto.
6874 * common-src/amflock.c: ditto.
6875 * common-src/bsd-security.c: ditto.
6876 * common-src/debug.c: ditto.
6877 * common-src/file.c: ditto.
6878 * common-src/genversion.c: ditto.
6879 * restore-src/amidxtaped.c: ditto.
6880 * server-src/Makefile.am: ditto.
6881 * server-src/amadmin.c: ditto.
6882 * server-src/amcheck.c: ditto.
6883 * server-src/amcheckdb.sh.in: ditto.
6884 * server-src/amcleanup.sh.in: ditto.
6885 * server-src/amcleanupdisk.c: ditto.
6886 * server-src/amdump.sh.in: ditto.
6887 * server-src/amflush.c: ditto.
6888 * server-src/amfreetapes.sh.in: ditto.
6889 * server-src/amindex.c: ditto.
6890 * server-src/amindex.h: ditto.
6891 * server-src/amindexd.c: ditto.
6892 * server-src/amlabel.c: ditto.
6893 * server-src/amrmtape.sh.in: ditto.
6894 * server-src/amstatus.pl.in: ditto.
6895 * server-src/amtape.c: ditto.
6896 * server-src/amtrmidx.c: ditto.
6897 * server-src/amtrmlog.c: ditto.
6898 * server-src/amverify.sh.in: ditto.
6899 * server-src/changer.c: ditto.
6900 * server-src/changer.h: ditto.
6901 * server-src/conffile.c: ditto.
6902 * server-src/conffile.h: ditto.
6903 * server-src/diskfile.c: ditto.
6904 * server-src/driver.c: ditto.
6905 * server-src/driverio.c: ditto.
6906 * server-src/dumper.c: ditto.
6907 * server-src/find.c: ditto.
6908 * server-src/getconf.c: ditto.
6909 * server-src/holding.c: ditto.
6910 * server-src/infofile.c: ditto.
6911 * server-src/logfile.c: ditto.
6912 * server-src/planner.c: ditto.
6913 * server-src/reporter.c: ditto.
6914 * server-src/tapefile.c: ditto.
6915 * server-src/taper.c: ditto.
6917 1999-09-14 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6919 * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
6920 (bsd_stream_read): Likewise, declaration.
6921 * common-src/rsh-security.c (rsh_stream): Likewise.
6922 (rsh_stream_read): Likewise, declaration and definition.
6923 * common-src/krb4-security.c (dummy): Compile when disabled.
6924 * common-src/krb5-security.c (dummy): Likewise.
6926 * server-src/reporter.c (sDivZero): Change from float to double, to
6929 * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
6930 (VERSION): Add the date to it.
6931 (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
6932 * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
6933 (config.status): Depend on $(SNAPSHOT_STAMP).
6934 (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
6936 * config/Makefile.am: Remove all traces of acconfig.h.
6938 * server-src/changer.c (changer_command): Fix for amwait_t != int.
6940 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6942 * config/acinclude.m4i: Added comments for config/config.h.in to all
6944 * configure.in: Likewise.
6945 * config/acconfig.h: Deleted.
6948 1999-09-05 John R. Jackson <jrj@purdue.edu>
6950 * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
6951 * recover-src/display_commands.c: fix some compiler warnings.
6952 * recover-src/extract_list.c: fix some compiler warnings.
6953 * restore-src/amrestore.c: fix some compiler warnings.
6954 * server-src/planner.c: fix some compiler warnings.
6956 1999-09-05 John R. Jackson <jrj@purdue.edu>
6958 * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
6960 1999-09-05 John R. Jackson <jrj@purdue.edu>
6962 * common-src/stream.c: make sure errno is returned properly from
6963 stream_client() and stream_server().
6964 * server-src/taper.c: report errors from stream_server() and
6966 * recover-src/extract_list.c: make sure errno is preserved.
6968 1999-09-05 John R. Jackson <jrj@purdue.edu>
6970 * configure.in: make sure the dump and restore programs are defined
6971 in pairs, do not allow just the dump program without restore.
6972 * client-src/sendbackup-dump.c: assume restore program is present
6974 * common-src/genversion.c: assume restore program is present if
6977 1999-09-05 John R. Jackson <jrj@purdue.edu>
6979 * common-src/genversion.c: CLIENT_LOGIN has to be defined so there
6980 is no point testing for it.
6981 * server-src/conffile.c: ditto.
6983 1999-09-05 John R. Jackson <jrj@purdue.edu>
6985 * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
6986 and XFSRESTORE support.
6988 1999-09-05 John R. Jackson <jrj@purdue.edu>
6990 * server-src/conffile.c: add several common abbreviations to config
6993 1999-09-01 John R. Jackson <jrj@purdue.edu>
6995 * server-src/amtoc.pl.in: allow multiple -s entries.
6997 1999-09-01 John R. Jackson <jrj@purdue.edu>
6999 * server-src/reporter.c: handle/report a common columnspec syntax
7000 error instead of dumping core.
7002 1999-09-01 John R. Jackson <jrj@purdue.edu>
7004 * man/amanda.8.in: typo in columnspec description.
7006 1999-09-01 John R. Jackson <jrj@purdue.edu>
7008 * common-src/dgram.h: expressions in #define should be protected by
7011 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
7013 * changer-src/chg-chs.sh.in (changerdev): Pass it as -f flag to CHS.
7014 * docs/TAPE.CHANGERS: Document it.
7015 Reported by Mike Horansky <moho@stanford.EDU>
7017 * server-src/conffile.c (read_dumptype): Renamed from get_dumptype.
7018 Extended to support reading a named dumptype from a specified FILE.
7019 (get_dumptype): Use read_dumptype.
7020 (main): Read disklist, so that custom dumptypes are shown.
7021 * server-src/conffile.h (read_dumptype): Declare.
7022 * server-src/diskfile.c (parse_diskline): Get line_num and line by
7023 reference. New argument diskf. Use read_dumptype if dumptype
7026 * man/amanda.8.in (disklist): Document it.
7028 * example/disklist: Exemplify it.
7030 1999-08-23 John R. Jackson <jrj@purdue.edu>
7032 * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
7033 * recover-src/extract_list.c (extract_files_setup): ditto.
7035 1999-08-23 John R. Jackson <jrj@purdue.edu>
7037 * server-src/reporter.c (copy_template_file): make sure all data is
7038 written to label template pipeline.
7040 1999-08-16 Alexandre Oliva <oliva@dcc.unicamp.br>
7042 * common-src/Makefile.am: Replace .o with OBJEXT. List sources
7043 explicitly, instead of LDADDing the corresponding objects.
7044 (OBJ_EXTENSION): Wipe out, use OBJEXT.
7046 * configure.in: Call AC_OBJEXT.
7047 (LTLIBOBJS, LTALLOCA): Define, according to ac_objext.
7048 * common-src/Makefile.am (libamanda_la_LIBADD): Use them.
7049 (libamanda_a_LIBADD): Use LIBOBJS and ALLOCA.
7051 * common-src/Makefile.am (genversion.o): Revert last change, it was
7052 just a bug in automake's --disable-dependency-tracking.
7054 1999-08-15 Alexandre Oliva <oliva@dcc.unicamp.br>
7056 * README (platforms): Added OpenBSD.
7057 Reported by Ian Darwin <ian@sq.com>
7058 (platforms): Added SunOS 5.7.
7060 1999-08-15 Derek Ney <derek@hipgraphics.com>, Alexandre Oliva <oliva@dcc.unicamp.br>
7062 * client-src/sendsize.c (SAMBA_DEBUG_LEVEL): New macro, "0" for
7063 Samba >= 2, "3" for older ones.
7064 (getsize_smbtar): Use `du' if SAMBA_VERSION >= 2, and the
7065 appropriate SAMBA_DEBUG_LEVEL.
7067 1999-08-15 Alexandre Oliva <oliva@dcc.unicamp.br>
7069 * common-src/Makefile.am (genversion.o): Depend on genversion.c
7070 too. It seems that IRIX's make doesn't work without it.
7071 Reported by Brian Cuttler <brian@wadsworth.org>
7073 1999-08-15 Jon LaBadie <jon@jgcomp.com>
7075 * tape-src/tapetype.c: Speed it up by using larger sections in the
7078 1999-08-15 Alexandre Oliva <oliva@dcc.unicamp.br>
7080 * man/amanda.8.in (skip-full, incronly): Document existing bugs.
7082 * server-src/conffile.c (init_defaults): Default disksize to 0.
7083 * man/amanda.8.in (holdingdisk use): Document it.
7084 Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
7086 * server-src/planner.c (setup_estimate): Typo.
7087 (next_level0): Typo.
7089 * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
7091 * example/amanda.conf.in: Clarify holdingdisk::use 0.
7093 * config/missing: Update from automake 1.4a.
7095 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7097 * man/amanda.8.in: typo.
7099 1999-06-29 Alexandre Oliva <oliva@dcc.unicamp.br>
7101 * man/amrestore.8: Document holding-file usage.
7103 1999-06-25 Alexandre Oliva <oliva@dcc.unicamp.br>
7105 * Makefile.am (pkgdata_DATA): Install COPYRIGHTs.
7106 (EXTRA_DIST): Remove docs/*.
7107 * docs/Makefile.am: New file.
7108 (pkgdata_DATA): Install all docs.
7109 * configure.in: Output docs/Makefile.
7110 Suggested by Paul L. Lussier <plussier@baynetworks.com>
7112 * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
7113 keyboard time-out, lsof.
7115 * server-src/amverify.sh.in (HEADER): Use `sed 1q' instead of the
7116 not-that-portable `head -1'.
7117 Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
7119 1999-06-19 Alexander Zangerl <az@Austria.EU.net>
7121 * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
7124 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7126 * server-src/dumper.c (read_indexfd): typo
7128 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7130 * server-src/dumper.c (do_dump): Close the indexout fh and wait
7131 for the completion of the index compress process.
7132 * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
7133 if the index fd is already shut down.
7134 * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
7135 the mesg and data fd are shut down.
7137 1999-06-15 Adam Hammer <hammer@math.purdue.edu>
7139 * server-src/amverify.sh.in: Wait until device becomes ready after
7142 1999-06-15 Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva <oliva@dcc.unicamp.br>
7144 * client-src/calcsize.c (ROUND): Rewrite, it was broken.
7145 Reported by Erik Lindahl <erik@theophys.kth.se>
7147 1999-06-15 Alexandre Oliva <oliva@dcc.unicamp.br>
7149 * server-src/conffile.h: Changed all `long's to `int's, as they
7150 broke get_number et al on 64bit platforms.
7151 Reported by Erik Lindahl <erik@theophys.kth.se>
7153 * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
7156 * configure.in (bcopy, bzero): Check whether they're available.
7157 * common-src/amanda.h (bcopy, bzero): If not, use memmove and
7159 Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
7161 * server-src/amcheck.c (start_server_check): If info file does not
7162 exist, explain that it is supposed to be created on the next run.
7164 1999-06-08 Alexandre Oliva <oliva@dcc.unicamp.br>
7166 * server-src/tapefile.c (lookup_last_reusable_tape): Fix order of
7167 arguments in match() invocation.
7168 From Anthony Worrall <Anthony.Worrall@reading.ac.uk>
7170 1999-06-08 Mike Grupenhoff <kashmir@munge.com>
7172 * restore-src/amrestore.c: second arg to restore() is a char *, not
7173 a string_t. Adjust prototype accordingly.
7175 1999-06-07 Mike Grupenhoff <kashmir@munge.com>
7177 * common-src/util.c (bind_portrange): function that attempts
7178 to bind a network connection to a port in a given range.
7179 * common-src/util.h: prototype bind_portrange().
7180 * common-src/dgram.c (bind_reserved): remove, superceeded by
7182 (dgram_bind): use bind_portrange() instead of bind_reserved(), and
7183 try user specified ports first, then reserved ports, then regular
7185 * common-src/dgram.h: remove prototype for bind_reserved().
7186 * common-src/stream.c (stream_server, stream_client): use
7187 bind_portrange() instead of bind_reserved(), and try user
7188 specified ports first, then reserved ports, then regular
7190 * recover-src/amrecover.c (main): use bind_portrange() instead
7191 of bind_reserved(), and verify that the port it gives us is
7193 * recover-src/extract_list.c (extract_files_setup): use
7194 bind_portrange() instead of bind_reserved(), and verify that
7195 the port it gives us is a reserved one.
7197 1999-06-07 Mark F. Vlems <mvlems@vbox.xs4all.nl>
7199 * server-src/amindexd.c (reply, lreply, fast_lreply): Return code 0
7200 of printf does not imply an error on some systems (Openstep) even if
7201 the number of written characters is more than 0. The weakened error
7202 check has no implication for the correct implementations of printf.
7204 1999-06-03 Alexandre Oliva <oliva@dcc.unicamp.br>
7206 * server-src/driver.c (dump_to_tape): Tell hard from soft
7207 (retryable) failures in both dumper and taper results, and behave
7210 * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is
7212 Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
7214 1999-06-02 Mike Grupenhoff <kashmir@munge.com>
7216 * common-src/util.c (fullread, fullwrite): versions of
7217 read()/write() that keep looping until the buffer is
7218 completely read/written, or an error occurs.
7219 * common-src/Makefile.am: build util.c/util.h
7220 * common-src/fileheader.c, common-src/fileheader.h
7221 (fill_buffer): remove, replaced with fullread()
7222 * server-src/holding.c: use fullread() instead of fill_buffer().
7223 * common-src/bsd-security.c, restore-src/amrestore.c,
7224 server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
7225 server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
7226 instead of doing the retry loops manually.
7228 1999-06-02 Mike Grupenhoff <kashmir@munge.com>
7230 * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
7231 close the stream. If the other stream is also closed, shut
7234 1999-06-02 Mike Grupenhoff <kashmir@munge.com>
7236 * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
7238 (exit_check): remove waitpid(), let the service reap its own
7240 (s_repwait): rename 'err' to 'errstr' to avoid conflict with
7241 function in some libcs.
7242 (s_ackwait): if no pipes were opened by this service, then shut
7244 (process_netfd): on EOF, be sure to also close the network
7245 stream. Also, if this is the last stream to be closed, shut
7247 (allocstream): correct a comment
7248 (service_delete): only close the security handle if it is still
7249 open. Reap our children here instead of in exit_check().
7251 1999-06-01 Mike Grupenhoff <kashmir@munge.com>
7253 * server-src/taper.c (write_buffer): assert properly
7255 1999-06-01 John Williams <williams@morinda.com>
7257 * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
7259 1999-06-01 Alexandre Oliva <oliva@dcc.unicamp.br>
7261 * docs/INSTALL: Point to the patches page. Update version numbers.
7263 * example/config.site: Document UDPPORTRANGE.
7265 1999-06-01 Jens Persson <jens.persson@btj.se>
7267 * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
7268 * config/acconfig.h: Add UDPPORTRANGE.
7269 * common-src/dgram.c: Implement it.
7271 1999-05-27 Mike Grupenhoff <kashmir@munge.com>
7273 * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
7274 make the size argument a size_t.
7275 (alloc): if an allocation fails, in the error message print how
7276 many bytes we tried to alloc. This helps us determine if the
7277 alloc call was errant, or we really were out of memory.
7278 * common-src/amanda.h: update alloc/newalloc prototypes for
7281 1999-05-27 Alexandre Oliva <oliva@dcc.unicamp.br>
7283 * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
7284 to libtool 1.3.2 plus a few patches.
7285 * config/config.guess, config/config.sub: Ditto.
7287 1999-05-26 Mike Grupenhoff <kashmir@munge.com>
7289 * common-src/protocol.c: retry connection failures three times,
7290 waiting five seconds between each attempt. Also, fix a lot
7293 1999-05-26 Mike Grupenhoff <kashmir@munge.com>
7295 * client-src/amandad.c: add a lot more dbprintfs so we know what's
7297 (service_new): use error() instead of dbprintf(); exit()
7300 1999-05-25 Alexandre Oliva <oliva@dcc.unicamp.br>
7302 * docs/FAQ (tar-patch): Mention sparse file problem.
7304 * recover-src/uscan.l: #undef `ECHO' after #include amanda.h; some
7305 system header files may define it.
7306 Reported by Dan Lipofsky <danlip@cyc.com>
7308 * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
7310 * Makefile.am: Create acinclude.m4 in the top-level directory.
7311 * config/Makefile.am: Create link to acconfig.h in the top-level
7313 * configure.in: Add AMANDA_CFLAGS to CFLAGS. Set DUMPER_DIR without
7315 * common-src/Makefile.am: Create genversion.h with #defines, to
7316 avoid genversion-specific CPPFLAGS.
7317 * common-src/genversion.c: #include genversion.h
7319 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7321 * server-src/amandad.c (state2str): string "s_processrep" is 13
7324 1999-05-24 Mike Grupenhoff <kashmir@munge.com>
7326 * server-src/amcheck.c (main): if we reap a bogus pid, print
7327 out the error message we generate, instead of whatever junk
7328 happens to be in the buffer.
7330 1999-05-24 Mike Grupenhoff <kashmir@munge.com>
7332 * common-src/bsd-security.c (bsd_stream_read): remove old
7333 code that was part of something that ended up not happening.
7334 (stream_read_callback): use ssize_t.
7336 1999-05-24 Mike Grupenhoff <kashmir@munge.com>
7338 * common-src/event.c (event_register): restructure asserts, and
7339 for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
7341 1999-05-24 Mike Grupenhoff <kashmir@munge.com>
7343 * common-src/queue.h: move the multiple-inclusion #defines
7344 into application namespace. #undef each macro before defining
7345 it, in case the OS has an identical macro.
7347 1999-05-23 Alexandre Oliva <oliva@dcc.unicamp.br>
7349 * server-src/amindex.h: Keep P macro expression in a single line.
7350 Reported by Patrick Harrold <patrickh@nasco-inc.com>
7352 * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
7354 * common-src/statfs.c (STATFS_SCALE, sys/statvfs.h): If f_frsize is
7355 zero, use f_bsize. It now works with GNU libc 2.1.
7356 Reported by Heikki Vatiainen <hessu@cs.tut.fi>
7358 1999-05-22 Alex Pilosov <alex@pilosoft.com>
7360 * server-src/amindexd.c (is_dump_host_valid): sanitize_name(host)
7361 before doing a stat.
7362 * server-src/tapefile.c (lookup_nb_tape): init pos to 0.
7364 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7366 * server-src/reporter.c: take the orig size from the SUCCESS line.
7367 use value from the infofile only the datestamp are equal.
7368 Write all available value.
7370 1999-05-18 Mike Grupenhoff <kashmir@munge.com>
7372 * common-src/strerror.c (strerror): restructure so that it doesn't
7375 1999-05-17 Mike Grupenhoff <kashmir@munge.com>
7377 * common-src/genversion.c (prvar): prototype declared it static,
7378 but actual function was still extern.
7380 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7382 * server-src/planner.c (pick_inclevel): check for base_level+1 if
7383 we don't have estimate for base_level. Needed for FORCE_BUMP.
7384 * server-src/planner.c (promote_highest_priority_incremental):
7385 Don't promote if we don't have level 0 estimate. No more need
7386 to check for skip_full, DS_NOFULL, DS_INCRONLY or FORCE_BUMP.
7388 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7390 * server-src/amflush.c: ignore SIGPIPE
7391 * server-src/driver.c: ignore SIGPIPE
7392 * server-src/driverio.c (taper_cmd, dumper_cmd): return 0 on error,
7394 * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
7396 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7398 * server-src/dumper.c: make prototypes consistent, (putresult):
7399 make first arg const.
7401 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7403 * server-src/conffile.c (getconf_byname): islower takes an int
7405 * server-src/diskfile.c (upcase): islower takes an int for an
7407 * server-src/driver.c (update_failed_dump_to_tape): prototype.
7408 * server-src/holding.c (insert_dirname, scan_holdingdisk):
7409 prototype and make static, (is_datestr): isdigit takes an int
7412 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7414 * client-src/calcsize.c (basename): make static, prototype, and
7415 only include if BUILTIN_EXCLUDE_SUPPORT is defined and
7416 HAVE_BASENAME is not defined.
7417 * client-src/getfsent.c (dev2rde, samefile): prototype and
7419 * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
7420 (start_backup, end_backup): prototype.
7421 * client-src/sendbackup.c (index_closed, save_fd): prototype
7423 * client-src/versionsuffix.c (main): prototype.
7424 * common-src/alloc.c (internal_vstralloc): prototype.
7425 * common-src/file.c (mk1dir): prototype, make static, and make
7427 * server-src/amadmin.c (check_dumpuser): prototype.
7428 * server-src/amflush.c (get_letter_from_user): prototype and make
7430 * server-src/amindexd.c: prototype and make static numerous local
7432 * server-src/amlabel.c (main): prototype.
7433 * server-src/amtrmidx.c (main): prototype.
7434 * server-src/changer.c (report_bad_resultstr, run_changer_command):
7436 * server-src/conffile.h: properly prototype getconf_holdingdisks()
7437 * server-src/driverio.h: properly prototype init_driverio().
7438 * server-src/find.c (find_compare, parse_taper_datestamp_log):
7440 * server-src/infofile.c (zero_info, open_txinfofile,
7441 close_txinfofile, read_txinfofile, write_txinfofile,
7442 delete_txinfofile): prototype and make static.
7443 * server-src/planner.c (main, askfor): prototype.
7445 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7447 * server-src/server_util.c: include server_util.h for prototypes
7448 * server-src/tapefile.h: properly prototype lookup_nb_tape()
7449 * server-src/driverio.c (childstr): make static, make return
7452 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7454 * server-src/find.h: properly prototype find_log()
7455 * server-src/amtrmlog.c (main): prototype. find_log() takes
7458 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7460 * server-src/reporter.c: make all functions and globals
7461 static. Prototype all functions, and make them consistent wrt
7462 K&R. Place all prototypes together. Place data type
7463 declarations before the prototypes that use them. Remove
7464 unused sort_by_time().
7466 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7468 * server-src/dumper.c (process_dumpline): clean up the error
7470 * server-src/dumper.c (log_msgout): no need to reuse errf global,
7471 it makes me nervous. Also, use amfree instead of free.
7473 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7475 * common-src/packet.c (pkt_cat): remove a bogus assert - len is
7476 a size_t, which is unsigned, so it will always be >= 0.
7478 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7480 * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
7481 A_REPTIMEOUT into just A_TIMEOUT.
7483 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
7485 * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
7486 common-src/rsh-security.c, server-src/driver.c,
7487 server-src/dumper.c: (min, max): consolidate all min/max
7488 definitions into amanda.h
7490 1999-05-14 Alexandre Oliva <oliva@dcc.unicamp.br>
7492 * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
7494 1999-05-12 Mike Grupenhoff <kashmir@munge.com>
7496 * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
7497 const the filename arg to all of the dbmalloc versions of
7498 alloc and io functions
7500 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
7502 * common-src/protocol.c (proto_t): don't need prev and next ptrs
7505 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
7507 * common-src/amanda.h, common-src/alloc.c: remove the static
7508 buffer manager - nothing uses it. It can be resurrected in
7509 the future if needed.
7511 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
7513 * common-src/amanda.h: define stringconcat() macros that
7514 concatenate two const strings together
7515 * common-src/versuff.c.in (versionsuffix, version): generate
7516 data at compile time using stringconcat().
7517 * common-src/genversion.c: simplify, don't need to alloc anything
7518 * common-src/Makefile.am (genversion_LDADD): this doesn't need
7519 alloc.o or error.o anymore
7521 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
7523 * common-src/security.c (security_handleinit, security_streaminit):
7524 change default error message "unknown error" to "unknown protocol
7525 error" or "unknown stream error" to help identify where an
7526 messageless error was triggered.
7528 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
7530 * client-src/amandad.c (main): call initgroups(), and also set
7533 1999-05-10 Mike Grupenhoff <kashmir@munge.com>
7535 * server-src/driver.c (start_some_dumps): if a dumper is
7536 constrained, and some dumpers or the taper are active, register
7538 * server-src/driver.c (handle_taper_result,
7539 handle_dumper_result): wakeup constrained dumpers after we
7540 have freed some resources.
7542 1999-05-10 Mike Grupenhoff <kashmir@munge.com>
7544 * common-src/fileheader.c, common-src/fileheader.h: rework the
7545 fileheader parse and format code to remove a lot of duplicated
7546 code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
7547 arguments, and simplifying parse code.
7549 1999-05-10 Mike Grupenhoff <kashmir@munge.com>
7551 * client-src/sendsize.c (getsize_dump): print out the strerror
7552 if we can't exec killpgrp.
7554 1999-05-10 Mike Grupenhoff <kashmir@munge.com>
7556 * server-src/dumper.c (add_msg_data): first two arguments
7557 to memmove() were backwards.
7559 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7561 * example/amanda.conf.in: typo
7563 1999-05-07 Mike Grupenhoff <kashmir@munge.com>
7565 * common-src/alloc.c (safe_env): allow DISPLAY into the
7566 environment for purify.
7567 * server-src/holding.c (rename_tmp_holding): if fill_buffer
7568 returns 0, don't try to parse a nonexistant header.
7569 * server-src/taper.c (file_reader_side): init datestamp to
7570 NULL, and don't try to free it if it's still NULL on exit.
7572 1999-05-06 Mike Grupenhoff <kashmir@munge.com>
7574 * server-src/driver.c (start_some_dumps): sleep_time is an
7575 offset, not an absolute. Leave it that way when we return from
7578 1999-05-05 Mike Grupenhoff <kashmir@munge.com>
7580 * server-src/amverify.sh.in (pecho): new function. Like echo
7581 but doesn't append newline, and supports \r, etc. Implemented
7583 * server-src/amverify.sh.in: use pecho where we used to use echo -n,
7584 etc. It's nearly impossible to figure out which echo needs what
7585 flags and also know if it supports \r. So we just punt and use
7588 1999-05-04 Mike Grupenhoff <kashmir@munge.com>
7590 * server-src/driver.c: convert to use event handler.
7591 (some_dumps_in_progress, lookup_dumper): nuke.
7592 (sleep_time): make a time_t and static.
7593 (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
7594 (start_some_dumps): make this work on one dumper instead of all.
7595 Call when a dumper is finished and needs more work.
7596 (handle_idle_wait): callback for dumpers waiting for delayed
7598 * server-src/driverio.c: initialize event handles for dumpers
7599 and the taper. Nuke addfd().
7600 * server-src/driverio.h: add event handles for each dumper, and
7601 one global one for the taper. Nuke maxfd and readset globals.
7603 1999-05-04 Mike Grupenhoff <kashmir@munge.com>
7605 * server-src/driver.c (taper_queuedisk): new function that takes
7606 a disk_t, and, if the taper is not busy, tells it to write it out,
7607 or else adds it to the tapeq. Make use_lffo global static.
7608 * server-src/driver.c (handle_taper_result, handle_dumper_result):
7609 call taper_queuedisk() instead of queueing ourself.
7611 1999-04-30 Mike Grupenhoff <kashmir@munge.com>
7613 * server-src/driver.c: make all local functions static.
7614 Exposed two prototypes for nonexistant functions
7615 (diskname2filename, driver_main), and one function (dump_state)
7616 that was never called. #if 0 out dump_state.
7617 Nuke inside_dump_to_tape global - it's value was never used.
7618 Make pending_aborts global a static local in handle_dumper_result.
7620 1999-04-30 Mike Grupenhoff <kashmir@munge.com>
7622 * server-src/driverio.h (dumper_t): merge infd and outfd into
7623 just 'fd'. Comment the other members of the struct.
7624 * server-src/driverio.c: infd/outfd -> fd
7625 * server-src/driver.c (handle_dumper_result): merge some common
7626 code between the FAILED and TRYAGAIN cases. Comment the
7627 ABORT_FINISHED case. Also infd/outfd -> fd.
7629 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7631 * server-src/planner.c (when_overwrite): return a big number (1024)
7632 if the tape is not reusable.
7634 1999-04-29 Alexandre Oliva <oliva@dcc.unicamp.br>
7636 * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
7639 1999-04-29 Mike Grupenhoff <kashmir@munge.com>
7641 * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
7642 case, nothing uses it.
7643 * server-src/driverio.c, server-src/driverio.h: garbage collect
7644 FATAL_TRYAGAIN. static & const cmdstr.
7646 1999-04-28 Mike Grupenhoff <kashmir@munge.com>
7648 * server-src/diskfile.c (read_diskfile): rework to take a
7649 disklist_t * as an argument, and return -1 on error, or 0 on
7650 success. const the filename argument. Kill a few globals.
7651 * server-src/diskfile.c (lookup_host, lookup_disk): const
7653 * server-src/diskfile.h: adjust prototypes for above changes
7654 * server-src/amadmin.c, server-src/amcheck.c,
7655 server-src/amcleanupdisk.c, server-src/amflush.c,
7656 server-src/amindexd.c, server-src/amtrmidx.c,
7657 server-src/amtrmlog.c, server-src/driver.c,
7658 server-src/planner.c, server-src/reporter.c: adjust calls to
7659 read_diskfile() to deal with convention
7661 1999-04-28 Mike Grupenhoff <kashmir@munge.com>
7663 * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
7664 stop reading these streams. We let EOF on the data stream cause
7665 the entire dump to be stopped.
7667 1999-04-27 Mike Grupenhoff <kashmir@munge.com>
7669 * common-src/rsh-security.c (conn_read_callback): cast
7670 event_wakeup() arg to event_id_t.
7672 1999-04-25 Alexandre Oliva <oliva@dcc.unicamp.br>
7674 * common-src/versuff.c.in: Adjust constness to match version.h.
7676 * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
7678 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7680 * server-src/amdump.sh.in: execute amtrmlog.
7682 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7684 * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
7685 we already have a write_tapeheader function in dumper.c
7686 * client-src/sendbackup.h: ditto
7687 * client-src/sendbackup-dump.c: ditto
7688 * client-src/sendbackup-gnutar.c: ditto
7690 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7692 * dumper-src/gnutar.pl.in: add debuging code.
7693 * server-src/planner.c (getsize): send optionstr() for estimate
7695 * client-src/selfcheck.c: init program_is_wrapper to 0.
7696 * client-src/sendsize.c: implement DUMPER-API, support only
7699 1999-04-22 John R. Jackson <jrj@purdue.edu>
7701 * configure.in: add --with-broken-fsf to use a read() loop instead
7702 of the fsf ioctl on some broken systems.
7703 * config/acconfig.h: ditto
7704 * tape-src/tapeio.c (tapefd_fsf): ditto
7706 1999-04-22 Alexandre Oliva <oliva@dcc.unicamp.br>
7708 * docs/SYSTEM.NOTES: Typo
7709 * docs/SAMBA: Update on samba-largefs patch.
7710 * docs/FAQ: New FAQ about promotion of full dumps.
7712 1999-04-20 Alexandre Oliva <oliva@dcc.unicamp.br>
7714 * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
7715 Comment out test that would set filename to /dev/null.
7717 1999-04-18 Alexandre Oliva <oliva@dcc.unicamp.br>
7719 * docs/WISHLIST: Global reformat. Removed fixed issues. Added
7722 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7724 * server-src/server_util.c: use snprintf instead of ap_snprintf.
7726 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7728 * server-src/server_util.c: new file for utility function.
7729 New function construct_datestamp.
7730 * server-src/server_util.h: ditto
7731 * server-src/Makefile.am: link server_util.c with libamserver.
7732 * amcleanupdisk.c (construct_datestamp): remove function.
7733 * server-src/driver.c: ditto
7734 * server-src/dumper.c: ditto
7735 * server-src/amflush.c: ditto
7736 * server-src/planner.c: ditto
7738 1999-04-17 Mike Grupenhoff <kashmir@munge.com>
7740 * common-src/bsd-security.c: this doesn't need queue.h
7742 1999-04-17 Mike Grupenhoff <kashmir@munge.com>
7744 * common-src/event.c: Insert new events at the head of the eventq,
7745 not the tail, so we don't loop forever if a newly registered
7746 event has the same type as the one currently firing. Noticed
7747 and diagnosed by Jean-Louis Martineau.
7748 Use a LIST for the eventq, instead of a TAILQ, since we don't need
7749 to do tail insertions anymore.
7750 Make the eventq_* functions take a queue name so we can also use
7751 them for the handle cache. Rename eventq_append() to eventq_add().
7753 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7755 * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
7757 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7759 * client-src/selfcheck.c: Implement DUMPER-API.
7760 * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
7762 * dumper-src/generic-dumper.pl.in (parse_options): option are
7765 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
7767 * server-src/dumper.c: make dumpsize and headersize static. Rename
7768 nb_header_block to headersize and also make it static. headersize
7769 now counts bytes instead of blocks, just like the other two.
7770 Use SEEK_SET in an lseek instead of hardcoding 0.
7772 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
7774 * configure.in: implement --with-cflags to allow turning on
7775 compiler warnings and optimizations
7777 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
7779 * common-src/event.c (gethandle, puthandle): new functions that
7780 keep a cache of handles to reduce calls to malloc/free.
7782 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
7784 * common-src/alloc.c (dbmalloc_caller_loc): const the file
7785 arg, use the queue macros to maintain the list.
7787 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
7789 * common-src/versuff.c.in: const the return str of version()
7790 and versionsuffix. Bump copyright to 1999.
7792 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
7794 * client-src/amandad.c, client-src/amandad.h,
7795 client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
7796 client-src/sendbackup.c, common-src/bsd-security.c,
7797 common-src/dgram,c, common-src/dgram.h, common-src/event.c,
7798 common-src/event.h, common-src/krb4-security.c,
7799 common-src/krb5-security.c, common-src/packet.c,
7800 common-src/packet.h, common-src/protocol.c, common-src/security.c,
7801 common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
7802 server-src/conffile.h, server-src/dumper.c:
7803 update copyright to 1999 on things I've touched this year.
7805 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
7807 * common-src/amanda.h: remove version_info extern. Bump
7809 * common-src/genversion.c: constify version_info. Emit
7810 {KRB4,KRB5,RSH}_SECURITY. Bump copyright.
7811 * common-src/version.h: const VERSION_COMMENT and version_info.
7812 const return str and fully prototype versionsuffix() and version()
7813 prototypes. Bump copyright.
7814 * server-src/planner.c (main): iterate through version_info using
7815 an index instead of a pointer.
7817 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
7819 * server-src/conffile.c: explicitly give the seen_columnspec global
7820 an int type instead of letting the compiler default to it.
7822 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
7824 * common-src/event.h (event_id_t): a new typedef for the
7825 first arg to event_register. Should be wide enough to
7826 reasonably hold an int or a pointer (but it is ok to trunc
7827 the pointer if necessary). Update proto for event_register()
7829 * common-src/event.c: struct event_handle->data is now an
7831 (event_register, event_wakeup): adjust args for event_id_t)
7832 (event_register): event_id_t is unsigned, no need to assert
7834 * common-src/rsh-security.c (rsh_stream_read): cast first arg to
7835 event_register() to event_id_t.
7838 1999-04-15 Mike Grupenhoff <kashmir@munge.com>
7840 * common-src/event.c (release): nuke, and inline into event_loop.
7841 * common-src/event.c (event_loop): flesh out the timeout comment.
7842 Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
7843 * common-src/event.h: flesh out the event_type_t comment.
7845 1999-04-15 Mike Grupenhoff <kashmir@munge.com>
7847 * common-src/event.c (fire): inline this with a macro. Remove
7848 timestamp arg. eh->lastfired is now only valid for EV_TIME
7849 events. Removes several time() systems from the critical path.
7850 * common-src/event.c (event_wakeup): have this fire EV_WAIT events
7851 directly instead of deferring back to the event loop. Removes the
7852 sequencing restriction for event_wakeup.
7854 1999-04-15 Mike Grupenhoff <kashmir@munge.com>
7856 * server-src/planner.c (getsize): put the hosts disks on the waitq
7857 before sending the request, not after.
7859 1999-04-15 Alexandre Oliva <oliva@dcc.unicamp.br>
7861 * docs/UPGRADE: Update URL for archived message.
7863 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7865 * server-src/amcheck.c (main): should not set real uid to 0.
7867 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7869 * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
7870 number, we don't need ntohs().
7872 1999-04-12 Mike Grupenhoff <kashmir@munge.com>
7874 * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
7877 1999-04-12 Mike Grupenhoff <kashmir@munge.com>
7879 * server-src/amindexd.c: dgram.h not needed
7881 1999-04-12 Mike Grupenhoff <kashmir@munge.com>
7883 * common-src/event.c: fix a bunch of inaccurate comments.
7884 * common-src/event.c (event_loop): prune dead events in the
7885 pre-select pass instead of in the EV_WAIT pass.
7886 * common-src/event.c (fire): factor out all code that fires
7887 events into a 'fire' function.
7888 * common-src/event.c (signal_handler): bounds check the signal
7889 number against the size of sigtable instead of assuming sigtable
7892 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
7894 * client-src/amandad.c (allocstream): if security_stream_server()
7895 fails, dbprintf the error.
7897 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
7899 * configure.in: implement --with-rsh-security
7900 * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
7901 command for dump transport and authentication. Still has lots
7903 * common-src/Makefile.am: build rsh-security.c
7904 * common-src/security.c: add rsh_security_driver to the drivers array
7905 * config/acconfig.h: define RSH_SECURITY
7907 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
7909 * server-src/dumper.c (runcompress): use the proper end of the pipe
7910 for writing and reading. Also, grab errno early on fork error
7911 before calling close.
7912 * server-src/dumper.c (sendbackup_response): make sure the client
7913 at least send us a mesgfd and datafd.
7915 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
7917 * client-src/amandad.c (main): don't dup stdout to db_fd - it might
7918 be needed by the security driver
7919 * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
7920 attempt to event_release a handle we haven't attached yet.
7922 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
7924 * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
7926 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
7928 * client-src/Makefile.am (noinst_HEADERS): add amandad.h
7930 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
7932 * common-src/Makefile.am (libamanda_la_SOURCES): build
7935 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
7937 * configure.in: implement --with-dbmalloc=[dir], where dir is
7938 where the dist is unpacked and built. This could be improved on,
7939 because it doesn't handle the case where it's installed.
7941 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
7943 * client-src/sendbackup.c: security changes:
7944 remove krb4 code and NAUGHTY_BITS macros.
7945 (parse_options): don't look for krb4 options
7946 (main): don't close pipes that were handed to us from amandad.
7947 Don't open stream directly - just use the pipes given to us.
7948 * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
7949 Remove krb4 code and NAUGHTY_BITS macros.
7951 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
7953 * client-src/amandad.h: new file describing the pipes between
7954 amandad and children.
7955 * client-src/amandad.c: rewrite for security changes. Can
7956 now handle multiple requests simultaneously, and has a state
7957 machine to deal with each active request.
7958 This handles all network transmissions and authentication.
7959 Each child process (sendbackup, selfcheck) gets three general
7960 purpose pipes to amandad which it may allocate for anything.
7961 amandad relays these pipes to equivalent security_streams.
7962 Lots of other stuff.
7963 Finally, NEED_KEYPIPE stuff removed.
7965 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
7967 * server-src/dumper.c: security changes:
7968 Remove krb4 includes and NAUGHTY_BITS macros.
7969 Remove no-longer-true comment about DATABUF_SIZE ==
7970 TAPE_BLOCK_BYTES for krb4
7971 Remove file descriptor and event handle from streams array. Add
7972 a security_stream_t.
7973 Remove global read buffer.
7974 (check_options): remove krb4 code.
7975 (service_ports_init): remove, now handled by individual security
7977 (main): remove dgram usage.
7978 (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
7979 bsd driver. schedule reads on the streams using
7980 security_stream_read.
7981 (read_mesgfd,read_datafd,read_indexfd): adapt to
7982 security_stream_read callback interface.
7983 (stop_dump): just call security_stream_close on all non-null
7985 (sendbackup_response): adapt to new protocol layer error return.
7987 (startup_dump): stinky hack to parse the security driver string out of
7988 the options passed to us from driver.
7989 Lookup the security driver with said string.
7991 Free request after calling protocol_sendreq().
7993 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
7995 * server-src/planner.c: security changes:
7996 (main): Remove dgram usage. Call protocol_init(). Remove
7998 (getsize): remove krb4 code. Handle protocol layer api changes.
7999 Lookup security driver/complain if not found. Free request
8000 after calling sendreq. All hosts get put on the waitq since
8001 sendreq never returns an error.
8002 (handle_result): deal with new protocol layer error semantics.
8005 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
8007 * server-src/conffile.c: remove INTERFACE undef hack. Our
8008 namespace isn't polluted by krb4 headers anymore, so it's
8011 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
8013 * server-src/amcheck.c: security changes:
8014 (main): ignore SIGPIPE - some security drivers might get it.
8015 Remove all usages of dgram.
8016 Make our real uid root and our effective uid amanda so we can
8017 get back to root later (on most os's :()
8018 (start_client_checks): remove krb4 bits.
8019 The dump user check should check the effective uid.
8020 Get the name of the security driver for this host out of
8021 host->diskp->security_driver.
8022 Free req after calling protocol_sendreq() because it will internalize
8024 protocol_sendreq doesn't return any errors - they're all returned
8025 via handle_response.
8026 (handle_result): renamed from handle_response for consistency.
8027 The protocol layer doesn't pass us a proto_t anymore, so detect
8028 errors based on pkt being NULL.
8029 Remove krb4 bits - security violations will be indicated by a
8032 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
8034 * common-src/protocol.[ch]: rewrite for security api. The entry
8035 points now have the 'protocol' prefix. See protocol.h for more
8037 * common-src/security.c: rewrite for security api. This now contains
8038 the functions for the 'base class' or some approximation of it.
8039 See security.h for the entry points, or docs/SECURITY-API.
8041 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
8043 * common-src/amanda.h: rip out krb4 defines, headers, and
8044 prototypes. Also, make assert() abort() after calling error().
8045 * common-src/krb4-security.c: stub file that pulls in the real
8046 krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
8048 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
8050 * server-src/conffile.h: aggregate all of the compress defines
8051 (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
8052 Make dumptype_t->compress a comp_t.
8053 * server-src/dumper.c: make srvcompress global a comp_t.
8054 * server-src/dumper.c (runcompress): add a comp_t third arg
8055 that specifies the level of compression for this fd.
8056 * server-src/dumper.c (do_dump): always compress index files
8057 with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
8058 * server-src/dumper.c (read_indexfd): read the indexfd, not the
8059 datafd. Also noted by Jean-Louis Martineau.
8061 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
8063 * server-src/planner.c (main): ignore SIGPIPE. tcp based
8064 security drivers may get this while getting estimates.
8065 Set the real uid to root, and the effective uid to the amanda
8066 user, so we can get back to root later if needed.
8067 * server-src/planner.c (handle_result): rework error logic
8068 so we don't need to use p->state, which will eventually go
8071 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
8073 * server-src/dumper.c: rewrite to use the event handler instead
8074 of a select loop. Also, compress the index output using
8075 runcompress() instead of forking a compress ourselves.
8077 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
8079 * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
8080 streams if krb4_auth if false.
8082 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
8084 * server-src/dumper.c (do_dump): some formatting cleanups. Nuke
8085 'killerr' - we can do without it.
8087 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
8089 * server-src/dumper.c (do_dump): store compresspid inside of
8092 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
8094 * server-src/dumper.c (parse_info_line): parse info lines
8095 from sendbackup directly into the 'file' global. Eliminate
8096 the backup_name, recover_cmd, and compress_suffix globals.
8097 * server-src/dumper.c (finish_tapeheader): nuke usage
8098 of above globals. Nuke unneeded explicit nul terminations (we
8099 memset the whole thing in fn_init).
8101 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
8103 * server-src/dumper.c (process_dumpline): rewrite to use strtok
8104 and const the argument.
8105 * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
8106 and prototype it. Remove the 'type' arg, since it's always
8107 F_DUMPFILE. Remove call to fn_init().
8108 * server-src/dumper.c (do_dump): call fh_init on 'file' while
8109 initializing globals. Call finish_tapeheader after getting info
8112 1999-04-07 John R. Jackson <jrj@purdue.edu>
8114 * tape-src/tapeio.c: allow tapedev to be /dev/null.
8115 * server-src/taper.c: allow tapedev to be /dev/null.
8116 * man/amanda.8.in: allow tapedev to be /dev/null.
8118 1999-04-07 Mike Grupenhoff <kashmir@munge.com>
8120 * server-src/dumper.c: collect got_info_endline, got_sizeline,
8121 got_endline, and header_done into one bitmask global, and make it
8122 static. Also, make 'file' static.
8124 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8126 * server-src/reporter.c (TextRule): Fix to write the full string.
8128 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
8130 * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
8131 calls it libcrypto. Check for both.
8133 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
8135 * common-src/bsd-security.c (check_user): if an .amandahosts
8136 file is missing or unreadable, log this fact to the debug file
8137 instead of claiming that a user doesn't have permission.
8138 * common-src/bsd-security.c (bsd_stream_client): if
8139 DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
8140 be twice the size of our read buffer.
8142 1999-04-06 David Mankins <dm@k12-nis-2.bbn.com>
8144 * common-src/security.c (bsd_security_ok): if an .amandahosts
8145 file is missing or unreadable, log this fact to the debug file
8146 instead of claiming that a user doesn't have permission.
8148 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
8150 * server-src/dumper.c: put all of the streams (data,mesg,index)
8151 into an array with a name tag.
8152 * server-src/dumper.c (stop_dump): new function that cleans up
8153 and shuts down all of the streams.
8154 * server-src/dumper.c (sendbackup_response): make static, pass
8155 response_error through p->datap instead of making it global.
8156 Rewrite the parsing to use strtok() and take advantage of the
8157 streams array instead of repeading code for all three streams.
8159 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
8161 * server-src/dumper.c (main): keep our real uid as 0, and make
8162 our effective uid nonprivlidged, so we can get back to root
8163 later. Don't print what port we bound to. This info won't
8164 always be available or even applicable.
8165 * server-src/dumper.c (do_dump): create the stats line with one
8166 snprintf instead of a huge amount of code.
8168 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
8170 * server-src/dumper.c (startup_dump): make static, and const all
8172 * server-src/dumper.c (do_dump): make static
8174 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
8176 * server-src/dumper.c (do_dump): no need to have a separate buffer
8177 to read the mesgfd - just reuse the one we used for data reads.
8178 Gets rid of one more global. Also, we don't need to leave
8179 space for a NUL anymore.
8180 * server-src/dumper.c (main): wait for children after closing
8181 our fds. Some children may be blocked waiting for EOF on outfd,
8182 effectively causing deadlock between dumper and child.
8184 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
8186 * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
8187 doesn't expect the data to be nul terminated. Also, move
8188 the buffer from global scope into the function, and have a NULL
8189 arg flush it out if there is leftover data at the end. Finally,
8190 resize the buffer in 256 byte chunks.
8192 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
8194 * common-src/stream.c, common-src/stream.h (stream_client): add
8195 yet another arg - if nonzero, do a nonblocking connect
8196 * server-src/dumper.c: catch up with extra arg to stream_client()
8198 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
8200 * common-src/bsd-security.c, common-src/security.h: attempt
8201 to decouple security streams from security handles. Lots of
8202 other restructuring.
8204 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8206 * server-src/amcheck.c: -t should read the tapelist to validate
8209 1999-03-30 Alexandre Oliva <oliva@dcc.unicamp.br>
8211 * patches/samba-largefs.patch: updated to patch that ended up
8212 installed in the Samba CVS tree
8214 * patches/tar-1.12.patch: patch the configure script so that it
8215 requires autoconf and autoheader to be run; improve the
8216 printf_long_long test so that it doesn't get false positives because
8219 * changer-src/scsi-chio.c: since we do not support FreeBSD 3's
8220 camlib.h interface, #ifdef out all the code
8221 Reported by Francis Lam <Francis.Lam@Leitch.com>
8223 * configure.in (VXSYSLOCPATH): apparently a complex path expression
8224 gets AC_PATH_PROGS confused; set the path beforehand
8225 Reported by Francis Lam <Francis.Lam@Leitch.com>
8227 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8229 * server-src/reporter.c: compiler warning.
8231 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8233 * server-src/amtrmlog.c: new program to move unused log
8235 * server-src/Makefile.am: install amtrmlog.
8236 * server-src/find.h: declare find_log().
8237 * server-src/find.c(find_log): new function to return an array of
8238 all the logfile name that are still needed.
8239 * server-src/find.c(search_logfile): special case if output_find==NULL,
8240 return 1 if it the logfile fir the label.
8242 1999-03-25 Neil Crellin <neil@wallaby.cc>
8244 * docs/TAPE.CHANGERS (chg-chs): URL for chs
8246 1999-03-25 Alexandre Oliva <oliva@dcc.unicamp.br>, Tom Schutter <tom@platte.com>, Cloyce D. Spradling <cloyce@headgear.org>
8248 * patches/samba-largefs.patch: updated for Samba 2.0.*
8250 1999-03-25 Charles Owens <owensc@enc.edu>
8252 * changer-src/chg-chio.pl.in (changeTape): do not print status to
8253 both stdout and stderr; this causes failures on FreeBSD
8255 1999-03-23 Mike Grupenhoff <kashmir@munge.com>
8257 * common-src/stream.c, common-src/stream.h (stream_client):
8258 const the hostname arg
8260 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8262 * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
8263 * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
8265 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8267 * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
8268 * Makefile.am: make dumper-src directory
8269 * dumper-src: directory for program that implement the DUMPER-API.
8270 * dumper-src/Makefile.am:
8271 * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
8272 * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
8274 1999-03-21 Elmar Bartel <bartel@Informatik.TU-Muenchen.DE>
8276 * conffile.h, conffile.c: new columnspec option
8277 * reporter.c: use it
8278 * man/amanda.8.in: description and example
8279 * example/amanda.conf.in: ditto
8281 1999-03-20 Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
8283 * configure.in: SAMBA_VERSION is not set correctly.
8285 1999-03-17 Alexandre Oliva <oliva@dcc.unicamp.br>
8287 * client-src/sendbackup-dump.c (re_table): generalize a bit some of
8288 the regular expressions, so as to make us more adaptable to future
8289 minor changes and bugfixes the the output format of some dumps
8291 1999-03-16 Thomas Hepper <th@ant.han.de>
8292 * changer-src/chg-scsi.c: If the open of the TapeDevice fails
8293 the programm is not terminated.
8294 * changer-src/scsi-aix.c: The wrong ident string was checked
8296 * changer-src/scsi-bsd.c: see scsi-aix.c
8297 * changer-src/scsi-linux.c: see scsi-aix.c
8298 * changer-src/scsi-solaris.c: see scsi-aix.c
8299 * changer-src/scsi-changer-driver.c: Added some more debug prints.
8300 Wrong fd passwd to LogSense.
8301 * docs/TAPE.CHANGERS: added note about linux and aha1542
8303 1999-03-15 Mike Grupenhoff <kashmir@munge.com>
8305 * common-src/packet.h: explicitly list the numeric values for
8306 the pktype_t enum, so we can use them on the wire
8308 1999-03-15 Alexandre Oliva <oliva@dcc.unicamp.br>
8310 * config/ltconfig, config/ltmain.sh: updated from libtool 1.2f
8311 * config/libtool.m4i, config/config.guess, config/config.sub: ditto
8312 * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
8314 1999-03-15 Mike Grupenhoff <kashmir@munge.com>
8316 * common-src/bsd-security.c (recv_security_ok): bring over
8317 increased verbosity change from common-src/security.c
8319 1999-03-14 Mathias Herberts <Mathias.Herberts@ago.fr>
8321 * man/amrecover.8.in: document mode and setmode
8323 1999-03-14 Jon Stevens <jon@clearink.com>
8325 * common-src/security.c (bsd_security_ok): increase the verbosity of
8326 failed authentication messages
8328 1999-03-14 Alexandre Oliva <oliva@dcc.unicamp.br>
8330 * configure.in (powerpc-*-linux-*): supported platform
8332 Reported by Jon Stevens <jon@clearink.com>
8334 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8336 * configure.in: new option --with-dumperdir=DIR to specify the
8337 directory for the dumpers (dumper api).
8338 * config/acconfig.h: add def of DUMPER_DIR
8340 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8342 * server-src/conffile.c: accept any string for the program.
8343 * server-src/amcheck.c: add the keyword DUMPER to the request if
8344 the program is not DUMP or GNUTAR.
8345 * server-src/planner.c: ditto
8346 * server-src/dumper.c: ditto
8348 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8350 * server-src/dumper.c (startup_dump): rename dumpname to progname.
8351 the function will use the parameter progname instead of the
8354 1999-03-06 Alexandre Oliva <oliva@dcc.unicamp.br>
8356 * configure.in (openbsd): according to Ralf Gebhart
8357 <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
8358 I assume other openbsd platforms work too.
8360 1999-03-06 Thomas Hepper <th@ant.han.de>
8362 * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
8363 * changer-src/: Get in sync with 2.4.2 Version
8365 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8367 * configure.in: set SAMBA_VERSION
8368 * client-src/sendbackup-gnutar.c (start_backup): use -q flag
8369 if SAMBA_VERSION >= 2
8371 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
8373 * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
8374 * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new
8376 * recover-src/extract_list.c: declare variable samba_extract_method.
8377 * recover-src/extract_list.c (extract_files_child): set dumptype
8378 according to samba_extract_method.
8379 * recover-src/help.c (help_list): print help for new command mode
8381 * recover-src/set_commands.c (set_mode, show_mode): new functions.
8382 * recover-src/uscan.l:
8383 * recover-src/uparse.y:
8385 1999-03-05 Mike Grupenhoff <kashmir@munge.com>
8387 * common-src/amanda.h: use ssize_t in writev return value
8388 * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
8389 use ssize_t over int
8390 * common-src/file.c (areads): use ssize_t to hold read() return val
8391 * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
8393 * common-src/security.h: stream_read's callback now takes a ssize_t
8394 as the third argument.
8395 * common-src/writev.c (writev): return a ssize_t
8397 1999-03-05 Mike Grupenhoff <kashmir@munge.com>
8399 * configure.in: check for ssize_t, make it int if not present
8400 * config/acconfig.h: add def for ssize_t
8402 1999-03-05 Mike Grupenhoff <kashmir@munge.com>
8404 * common-src/base64.c (base64encode): don't cast away a const
8407 1999-03-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8409 * common-src/bsd-security.c (stream_read_callback): change n to int
8410 since ssize_t doesn't exist on all OS.
8412 1999-03-03 Ralf Fassel <ralf@akutech.de>
8414 * common-src/conffile.h: bit field of length 1 should be unsigned int,
8417 1999-03-03 Ralf Fassel <ralf@akutech.de>
8419 * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
8421 1999-03-03 Ralf Fassel <ralf@akutech.de>
8423 * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
8425 1999-03-03 Ralf Fassel <ralf@akutech.de>
8427 * common-src/base64.c (base64encode): remove warning from sgi cc
8430 1999-03-03 Mike Grupenhoff <kashmir@munge.com>
8432 * common-src/bsd-security.c: use EV_WAIT events instead of
8433 maintaining a queue of listeners. Refcnt the dgram read event
8436 1999-03-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8438 * server-src/driverio.h: new parameter level to update_info_taper().
8439 * server-src/driverio.c (update_info_taper): use parameter instead
8440 of sched(dp)->level.
8441 * server-src/driver.c: call update_info_taper with level parameter.
8442 * server-src/amflush.c: call update_info_taper with level parameter.
8443 no longer need to create a sched_t struct.
8445 1999-03-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8447 * server-src/driverio.h: remove declaration of inparallel, cmdstr()
8448 and childstr(), declare init_driverio(), add inparallel parameter
8449 to startup_dump_processes().
8450 * server-src/driverio.c (init_driverio): new function to initialize
8452 * server-src/driverio.c (childstr): scan for all dumpers (MAX_DUMPERS)
8453 instead of only inparallel
8454 * server-src/driverio.c (startup_dump_processes): new parameter
8455 inparallel is used instead of global variable.
8456 * server-src/driver.c (main): call init_driverio.
8457 * server-src/driver.c (main): call startup_dump_processes with
8458 inparallel parameter.
8459 * server-src/amflush.c (main): call init_driverio.
8461 1999-03-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8463 * server-src/amrmtape.sh.in: work with "last_level" and
8464 "consecutive_runs" in the ouput of "amadmin export".
8466 1999-03-01 Mike Grupenhoff <kashmir@munge.com>
8468 * common-src/security.h: implement security_connect callback and
8469 security_status_t changes
8471 1999-03-01 Mike Grupenhoff <kashmir@munge.com>
8473 * common-src/bsd-security.c (bsd_connect): properly munge the uids
8474 to get a reserved port
8475 * common-src/bsd-security.c: adapt to the security_connect
8477 * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
8478 so skip the vstralloc
8480 1999-03-01 Mike Grupenhoff <kashmir@munge.com>
8482 * common-src/event.c: implement EV_WAIT events. Implement macros
8483 for adding/removing/traversing the event queue
8484 * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
8486 1999-02-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8488 * docs/WISHLIST: protocol between the driver and dumpers.
8490 1999-02-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8492 * server-src/amtoc.pl.in: output the datestamp of each dump, because
8493 amflush can flush the same disk multiple date.
8495 1999-02-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8497 * server-src/holding.h: declare struct holding_t. Remove
8498 declaration of insert_dirname, scan_holdingdisk. Declare
8499 new function free_holding_list. pick_datestamp and
8500 pick_all_datestamp now return (holding_t *).
8501 * server-src/holding.c (insert_dirname): new parameter holding_list
8502 where we add the name. Can add more than MAX_DIRS name.
8503 * server-src/holding.c (free_holding_list): new function to free
8505 * server-src/holding.c (scan_holdingdisk): new parameter holding_list.
8506 * server-src/holding.c (pick_all_datestamp, pick_datestamp): return
8507 a list instead of a (char **).
8508 * server-src/find.c (search_holding_disk): use the list return by
8510 * server-src/amflush.c: use the list return by pick_datestamp.
8511 * server-src/amcleanupdisk.c (check_disks): use the list return by
8514 1999-02-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8516 * server-src/driverio.c (addfd): bug fixe.
8518 1999-02-22 Alexandre Oliva <oliva@dcc.unicamp.br>
8520 * client-src/sendbackup-gnutar.c: new regexp for SAMBA
8521 Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
8523 1999-02-17 Alexandre Oliva <oliva@dcc.unicamp.br>
8525 * server-src/amtoc.pl.in: minor fixes for multi-tape runs
8527 1999-02-17 Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
8529 * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
8530 command-line arguments changed
8531 * man/amtoc.8.in: ditto
8533 1999-02-17 Alexandre Oliva <oliva@dcc.unicamp.br>
8535 * changer-src/chg-multi.sh.in: minor portability changes
8536 * docs/TAPE.CHANGERS: originally by James da Silva
8538 1999-02-17 Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
8540 * changer-src/chg-multi.sh.in: various portability changes and
8541 general fixes, particularly for multieject; new cycle mode
8542 * docs/TAPE.CHANGERS: detailed description of chg-multi
8543 * example/chg-multi.conf: updated; added reference to
8544 docs/TAPE.CHANGERS for details
8546 1999-02-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8548 * server-src/driverio.h: remove declaration of addfd.
8549 * server-src/driverio.c (addfd): 2 new arguments, readset and maxfd,
8550 don't use global variable.
8551 * server-src/driverio.c (startup_tape_process, startup_dump_process):
8552 call addfd with new argument.
8554 1999-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8556 * server-src/driverio.c (startup_tape_process): new taper_program
8558 * server-src/driverio.h: remove declaration of taper_program.
8559 * server-src/driver.c (main): declare taper_program.
8560 * server-src/driver.c: call startup_tape_process with the new
8561 taper_program argument.
8562 * server-src/amflush.c (run_dumps): declare taper_program.
8563 * server-src/amflush.c (run_dumps): call startup_tape_process with
8564 the new taper_program argument.
8566 1999-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8568 * server-src/driverio.c (startup_dump_process, startup_dump_processes):
8569 new dumper_program argument.
8570 * server-src/driverio.h: remove declaration of dumper_program.
8571 * server-src/driver.c: declare dumper_program.
8572 * server-src/driver.c: call startup_dump_process and
8573 startup_dump_processes with the new dumper_program argument.
8575 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8577 * server-src/list_dir.h: remove global variable dir_list, declare
8578 new function get_dir_list.
8579 * server-src/list_dir.c (get_dir_list): new function to return dir_list.
8580 * server-src/amindexd.c (opaque_ls): use get_dir_list.
8582 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8584 * server-src/holding.h: remove declaration of get_letter_from_user()
8586 * server-src/holding.c: remove function get_letter_from_user() and
8588 * server-src/holding.c (pick_datestamp): return empty array instead
8589 of calling exit if no directory are found.
8590 * server-src/amflush.c (get_letter_from_user): new function copied
8592 * server-src/amflush.c (confirm): write a message and exit if no
8593 directory were found.
8595 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8597 * server-src/amflush.c (flush_holdingdisk): don't update the database
8598 when flushing a partial dump.
8600 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8602 * server-src/holding.h (get_dumpfile): new function
8603 * server-src/holding.c (get_dumpfile): new function to fill a
8604 dumpfile_t struct from a holding file.
8606 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8608 * server-src/amlabel.c: compiler warning: too many arguments for format
8610 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8612 * server-src/amlabel.c: remove the label from the tapefile in
8613 case it was already there (-f).
8615 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8617 * server-src/dumper.c: make sure holding files are not larger
8620 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8622 * server-src/amcleanupdisk.c: new program to scan and find temporary
8623 file on holding disks.
8624 * server-src/Makefile.am (libexec_PROGRAMS): add amcleanupdisk.
8625 * server-src/amcleanup.sh.in: call amcleanupdisk.
8627 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8629 * server-src/holding.c (pick_all_datestamp): new function to return
8630 all datestamp in the holding disks.
8631 * server-src/holding.h: declare pick_all_datestamp.
8633 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8635 * server-src/diskfile.h (host_t): new start_t field.
8636 * server-src/diskfile.c (read_diskline): set start_t to 0.
8637 * server-src/driver.c (start_some_dumps): Don't start a dump if
8638 the host->start_t > now.
8639 * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
8640 in the future when starting a FILE_DUMP.
8641 * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
8642 the future when starting a PORT_DUMP.
8644 1999-02-10 Alexandre Oliva <oliva@dcc.unicamp.br>
8646 * server-src/amlabel.c (main): try to read just-written tape label
8647 back; if wrendmark overwrote the label, suggest using a
8648 non-rewinding device
8649 * tape-src/tapeio.c (tape_wrendmark): would not close tape device if
8652 1999-02-10 Paul Bijnens <Paul.Bijnens@lant.be>
8654 * server-src/amoverview.pl.in: Y2K fix in output to user
8655 * server-src/amtoc.pl.in (print_info): ditto
8657 1999-02-10 Alexandre Oliva <oliva@dcc.unicamp.br>
8659 * client-src/sendsize.c (getsize_dump): do not redirect standard
8660 output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
8662 1999-02-03 Alexandre Oliva <oliva@dcc.unicamp.br>
8664 * NEWS: fix description of incronly: it won't really perform full
8667 * NEWS: support for ufsdump -S, incronly strategy and new chunksize
8670 * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
8672 * example/amanda.conf.in: ditto
8673 * man/amanda.8.in: ditto
8675 * configure.in (amanda_cv_dump_estimate): check for support for -S
8676 too, and define HAVE_DUMP_ESTIMATE as the estimate switch, if any
8677 * client-src/sendsize.c (re_size): new regexps for Solaris ufsdump
8678 -S and Samba `du'. Restrict regexp that matched Digital Unix'
8679 dump -E so that it doesn't match smbclient's output any more.
8680 Move some regexps around, and only define them if the corresponding
8681 dump program is available
8683 1999-02-01 Alexandre Oliva <oliva@dcc.unicamp.br>
8685 * example/amanda.conf.in: document the behavior of relative
8687 * man/amanda.8.in: ditto
8689 * man/amanda.8.in (exclude list): the GNU tar flag is
8690 --exclude-from, not --exclude-list
8691 Reported by Tom Schutter <tom@platte.com>
8693 * client-src/sendbackup-gnutar.c (re_table): ignore `session request
8694 to' message printed by Samba 2.0.0
8696 1999-01-28 Alexandre Oliva <oliva@dcc.unicamp.br>
8698 * man/amanda.8.in (comprate): it is not used when there is history
8699 information; useful for large disks that compress little
8700 Reported by job bogan <job@piquin.uchicago.edu>
8702 * Makefile.am: select which SUBDIRS to descend to here
8703 * client-src/Makefile.am: removed if WANT_CLIENT
8704 * tape-src/Makefile.am: removed if WANT_TAPE
8705 * server-src/Makefile.am: removed if WANT_SERVER
8706 * changer-src/Makefile.am: ditto
8707 * restore-src/Makefile.am: removed if WANT_RESTORE
8708 * recover-src/Makefile.am: removed if WANT_RECOVER
8709 * amplot/Makefile.am: removed if WANT_AMPLOT
8711 1999-01-27 Alexandre Oliva <oliva@dcc.unicamp.br>
8713 * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
8715 * configure.in (USE_AMANDAHOSTS): enable by default
8716 * example/config.site: ditto
8717 * docs/INSTALL: ditto
8720 * docs/INSTALL: updated URLs for GNU packages and Samba
8721 * docs/SAMBA: note that Samba 2.0.0 is supported
8723 * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
8725 1999-01-27 Thomas Hepper <th@ant.han.de>
8726 * changer-src/scsi-changer-driver.c SCSI_ReadElementStatus
8727 A while loop has to start with while, not if .....
8729 1999-01-27 Alexandre Oliva <oliva@dcc.unicamp.br>
8731 * Makefile.am (EXTRA_DIST): sst was added within contrib
8733 * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
8734 * configure.in: AC_SUBST LIBTOOL_DEPS
8735 * Makefile.am: regen libtool if neded
8737 * Makefile.am: declare that we want automake 1.4 and we're a foreign
8740 * configure.in: require autoconf 2.13, and use
8741 AC_VALIDATE_CACHED_SYSTEM_TUPLE instead of
8742 AC_VALIDATE_CACHE_SYSTEM_TYPE
8743 * config/acinclude.m4i: removed AC_VALIDATE_CACHE_SYSTEM_TYPE
8745 * configure.in (SAMBA_CLIENT): updated check for smbclient to
8748 1999-01-26 Alexandre Oliva <oliva@dcc.unicamp.br>
8750 * server-src/amdump.sh.in (runuser): set to LOGNAME if defined, and
8751 to the output of whoami otherwise
8752 Reported by Tom Schutter <tom@platte.com>
8754 1999-01-26 Thomas Hepper <th@ant.han.de>
8755 * Makefile.am Added sst driver files to EXTRA_DIST
8757 1999-01-26 Thomas Hepper <th@ant.han.de>
8758 * changer-src/Makefile.am added to LDADD
8759 ../tape-src/libamtape.$(LIB_EXTENSION)
8760 * changer-src/chg-scsi.c If statfile is not set try to get the info
8761 about the current loaded tape direct from the changer.
8762 Fixed debug output for the eject value if > 1
8763 * changer-src/libscsi.h Prototype for GetCurrentSlot
8764 * changer-src/scsi-aix.c If the Device we open is not a changer or tape
8765 return NULL, so that the above function can abort. New eject per mtio ioctl.
8766 * changer-src/scsi-bsd.c see scsi-aix.c
8767 * changer-src/scsi-linux.c see scsi-aix.c
8768 * changer-src/scsi-hpux_new.c see scsi-aix.c
8769 * changer-src/scsi-irix.c see scsi-aix.c
8770 * changer-src/scsi-solaris.c see scsi-aix.c and added a retry loop for
8771 the execution of SCSI commands.
8772 * changer-src/scsi-changer-driver.c New Function SCSI_ReadElementStatus
8773 split ReadElementStatus in device and device independed part
8774 New EXB120ElementStatus, renamed ReadElementStatus in GenericElementStatus
8775 added EXB 120 and DLT7000 to the devices list.
8776 Removed the linked list for the element status. Now every element
8777 type has its own array allocated in the *ElementStatus functions.
8778 Check in the functions which sends SCSI commands if the fd is able to
8779 receive SCSI commands.
8780 In GenericEject check which type of eject to use (ioctl/SCSI)
8781 New GetCurrentSlot, try to get the info about the loaded tape direct from
8783 * changer-src/scsi-chio.c Add function GetCurrentSlot (not well tested yet)
8784 * changer-src/scsi-defs.h Added missing decl. in MediumTransportElementDescriptor_T
8785 for LITTLE_ENDIAN_BITFIELDS
8786 new field from in ElementInfo_T
8787 * changer-src/sci-hpux.c EMpty function GetCurrentSlot, do we still need scsi-hpux.c ?
8788 * docs/TAPE.CHANGERS added some notes for HP-UX, expanded list of tested devices
8790 1999-01-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8792 * server-src/conffile.c (init_defaults): default value of runspercycle
8794 * server-src/amadmin.c (balance): use default value of runspercycle.
8795 * server-src/planner.c (main): use default value of runspercycle.
8797 1999-01-22 Martin Apel <apel@tecmath.de>
8799 * example/amanda.conf.in: explanation of incronly strategy.
8800 * man/amanda.8.in: explanation of incronly strategy.
8801 * server-src/amadmin.c: recognize incronly strategy
8802 * server-src/conffile.c: read the incronly strategy in the
8804 * server-src/conffile.h: definition of DS_INCRONLY
8805 * server-src/planner.c: Do planning for incronly strategy:
8806 If the force flag is set perform a full dump, otherwise do
8807 normal incremental processing but avoid full dumps.
8808 * server-src/tapefile.c: Bugfix so only tapes which match
8809 the regular expression for tape labels in the current
8810 configuration are considered for writing.
8812 1999-01-22 Alexandre Oliva <oliva@dcc.unicamp.br>
8814 * common-src/bsd-security.c (check_user): there was no uid variable
8815 here; replace with getuid()
8817 1999-01-22 Alexandre Oliva <oliva@dcc.unicamp.br>
8819 * server-src/planner.c (output_scheduleline): removed `or historical
8820 data' from `no estimate' message; historical data doesn't matter any
8822 Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
8824 1999-01-20 Todd Pfaff <pfaff@mcmaster.ca>
8826 * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
8828 * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message
8830 1999-01-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8832 * server-src/amflush.c: use ap_snprintf instead of snprintf.
8833 * server-src/amflush.c: rotation of new amflush log was broken.
8835 1999-01-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8837 * server-src/reporter.c: always call output_stats(), the problem is
8838 that degraded_mode is set if amflush fills the tape.
8840 1999-01-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8842 * server-src/amflush.c: write debuging info to $logdir/amflush
8843 instead of /dev/null if we run in background.
8844 * server-src/amcleanup.sh.in: rename $logdir/amflush.
8846 1999-01-14 Mike Grupenhoff <kashmir@munge.com>
8848 * server-src/dumper.c (make_tapeheader): explicitly compare
8849 srvcompress against srvcomp_none instead of assuming that
8850 srvcomp_none's value is 0.
8852 1999-01-14 Mike Grupenhoff <kashmir@munge.com>
8854 * server-src/dumper.c: move max() macro to top of file. Add min()
8855 * server-src/dumper.c (databuf_write): use min() to determine the
8857 * server-src/dumper.c (databuf_flush): more clearly calculate the
8858 buffer offset in the write loop
8860 1999-01-14 Mike Grupenhoff <kashmir@munge.com>
8862 * server-src/dumper.c (databuf_write): Egads! Also increment the
8863 source pointer doing a partial buf copy
8865 1999-01-14 Mike Grupenhoff <kashmir@munge.com>
8867 * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
8868 instead of getpwuid(getuid()), in case our caller has not done
8871 1999-01-12 Mike Grupenhoff <kashmir@munge.com>
8873 * server-src/dumper.c (add_msg_data): properly check for half-sent
8876 1999-01-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8878 * server-src/amstatus.pl.in: fix a divide by zero error.
8880 1999-01-11 Mike Grupenhoff <kashmir@munge.com>
8882 * server-src/dumper.c (add_msg_data): clarify and comment. Remove
8883 'len' arg. Const 'str' arg.
8884 * server-src/dumper.c (do_dump): compresspid and indexpid should
8885 be pid_t's. Also, remove len from add_msg_data call.
8887 1999-01-11 Mike Grupenhoff <kashmir@munge.com>
8889 * server-src/fileheader.c (parse_file_header): const the buffer
8891 * server-src/fileheader.h: update parse_file_header proto for const
8894 1999-01-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8896 * server-src/amstatus.pl.in: report the current dump when reporting
8897 the busy time of each dumper.
8899 1998-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8901 * server-src/dumper.c: open temporary holding file with O_TRUNC flags
8904 1998-12-28 John R. Jackson <jrj@purdue.edu>
8906 * server-src/reporter.c: do not drop core generating labels if the
8907 tape label is not defined, e.g. in degraded mode (compliments of
8908 Jan L. Peterson <jlp@Part.NET>).
8910 1998-12-28 John R. Jackson <jrj@purdue.edu>
8912 * server-src/amtape.c: initialize two strings to NULL to avoid a
8913 core dump, compliments of G. Allen Morris III <gam3@acm.org>.
8915 1998-12-27 John R. Jackson <jrj@purdue.edu>
8917 * man/amreport.8.in: remove reference to 8.5x11 paper size for the
8920 1998-12-27 John R. Jackson <jrj@purdue.edu>
8922 * example/3hole.ps: new lbl-templ file for 3 hole punch reports
8923 * example/Makefile.am: add 3hole.ps
8925 1998-12-22 Thomas Hepper <th@icem.de>
8927 * docs/TAPE.CHANGERS Update notes about chg-scsi
8928 * changer-src/chg-scsi.c Added new config option tapestatus,
8929 if set the tape log pages are written to this file.
8930 changed parameter list for get_clean_state/ask_clean,
8931 * changer-src/libscsi.h changed parameter list for get_clean_state
8932 * changer-src/scsi-changer-driver.c Added new functions OpenDevice
8933 CloseDevice LookupDevice.
8934 Added new functions to read and decode the Tape LOG Pages.
8935 Tape Eject and ready check is now done by SCSI calls
8937 * changer-src/scsi-aix.c
8938 * changer-src/scsi-bsd.c
8939 * changer-src/scsi-hpux_new.c
8940 * changer-src/scsi-hpux.c
8941 * changer-src/scsi-irix.c
8942 * changer-src/scsi-solaris.c
8943 Changed all SCSI_OpenDevice/SCSI_CloseDevice functions so that they
8944 fit to the new OpenDevice/CloseDevice calls. Removed mtio.h from
8945 includes, remove Tape_Ready and Tape_Eject
8946 * changer-src/scsi-chio.c
8947 * changer-src/scsi-defs.h
8949 For all changer-src files, removed tabs, run indent (from xemacs)
8950 Added emacs variables to the end (no tab, gnu style)
8952 1998-12-21 John R. Jackson <jrj@purdue.edu>
8954 * man/amanda.8.in: document the lbl-templ tapetype option.
8956 1998-12-21 John R. Jackson <jrj@purdue.edu>
8958 * man/amreport.8.in: fix formatting problem.
8960 1998-12-20 John R. Jackson <jrj@purdue.edu>
8962 * configure.in: define NEED_RESETOFS unless LFS (large file system
8963 support) is available.
8964 * config/acconfig.h: add NEED_RESETOFS tag.
8965 * server-src/taper.c: only reset the tape offset if NEED_RESETOFS
8966 is defined and only once per 2 GBytes.
8968 1998-12-20 Alexandre Oliva <oliva@dcc.unicamp.br>
8970 * server-src/amlabel.c (main): datestamp for new tapes is now 0
8971 * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
8973 * man/amlabel.8.in: document that tapes are added to tapelist
8975 1998-12-19 Mike Grupenhoff <kashmir@munge.com>
8977 * server-src/dumper.c (runcompress): new function. Given an output
8978 file descriptor, inserts a gzip/compress in front of that descriptor.
8979 * server-src/dumper.c (do_dump): if srvcompress is true, insert
8980 the gzip (using runcompress) in front of the output fd instead
8981 of the input fd. Only do this after the tapeheader has been written.
8983 1998-12-19 Mike Grupenhoff <kashmir@munge.com>
8985 * server-src/dumper.c (startup_chunker): new function. When doing
8986 chunking, fork a piped subprocess that reads in a fileheader and
8987 a data stream, and writes out the headered, chunked files. This
8988 allows us to treat unchunked, chunked, and port-dump dumps exactly
8990 * server-src/dumper.c (main): file-dump: if chunksize > 0,
8991 call startup_chunker for our outfd. Otherwise, open the
8992 holding file directly.
8994 1998-12-19 Mike Grupenhoff <kashmir@munge.com>
8996 * server-src/dumper.c (struct databuf): add a chunk_size member,
8997 the size of each chunk. Remove chunksize global.
8998 * server-src/dumper.c (main): add a chunksize local var
8999 * server-src/dumper.c (databuf_init): init the chunk_size member
9000 with the same value as split_size
9001 * server-src/dumper.c (databuf_flush): increment db->split_size
9002 by the amount in db->chunk_size instead of the global chunksize
9004 1998-12-19 John R. Jackson <jrj@purdue.edu>
9006 * server-src/amstatus.pl.in: instead of just displaying why no
9007 dumpers were busy, display reason(s) why N+1 were not busy.
9009 1998-12-18 John R. Jackson <jrj@purdue.edu>
9011 * server-src/amstatus.pl.in: add statistics about how much time
9012 taper and each dumper is busy, how much time N dumpers are busy
9013 and why no dumpers were busy.
9015 1998-12-18 Mike Grupenhoff <kashmir@munge.com>
9017 * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
9018 and 'split_size' members to replace the equivalent globals. Nuke
9020 * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
9021 args to init those members. Init filename_seq to 0.
9022 * server-src/dumper.c (main): declare and init the databuf here
9023 * server-src/dumper.c (databuf_flush): refer to split_size, filename,
9024 and filename_seq in the databuf instead of the globals.
9025 * server-src/dumper.c (do_dump): now takes a databuf instead of an
9026 output file descriptor.
9028 1998-12-18 John R. Jackson <jrj@purdue.edu>
9030 * server-src/amstatus.pl.in: fix two perl warnings.
9032 1998-12-18 John R. Jackson <jrj@purdue.edu>
9034 * server-src/amstatus.pl.in: fix two minor typos. Add percentage
9035 display to the summary comparing real and estimated size and real
9036 versus total estimate (showing how well the estimates are doing and
9037 a rough guess at how far along the run is). Also the percentage of
9038 total holding disk space in use.
9040 1998-12-18 John R. Jackson <jrj@purdue.edu>
9042 * server-src/amstatus.pl.in: take the --file argument as is if it
9043 is an absolute path.
9045 1998-12-18 John R. Jackson <jrj@purdue.edu>
9047 * server-src/driver.c: call short_dump_state() one last time before
9048 quitting so amstatus gets a last good status. Tell taper to quit
9049 after the dumpers since it writes more information to the amdump
9050 file (helps prevent mixed messages).
9052 1998-12-17 Mike Grupenhoff <kashmir@munge.com>
9054 * server-src/dumper.c (databuf_flush): return 0 on success
9056 1998-12-17 Mike Grupenhoff <kashmir@munge.com>
9058 * server-src/dumper.c (databuf_flush): new function. Writes
9059 the contents of the databuf out to its backing file, doing splitting
9061 * server-src/dumper.c (databuf_write): call databuf_flush when the
9062 databuf fills up. Fully complete all writes (no short writes)
9063 * server-src/dumper.c (do_dump): databuf_write now guarantees complete
9064 writes, so remove retry loop. Call databuf_flush() when eof is hit.
9065 Do not close datafd on eof, because our caller (main) passed it to
9066 us and therefore owns it (and main does close it again).
9068 1998-12-17 Mike Grupenhoff <kashmir@munge.com>
9070 * server-src/dumper.c (databuf_init): new function, initializes
9072 * server-src/dumper.c (update_dataptr): rename to databuf_write,
9073 and have it take a buffer and a size, and return how many bytes
9074 of the buffer were written
9075 * server-src/dumper.c (do_dump): use databuf_init to initialize db.
9076 Use databuf_write to add incomign data to the databuf.
9077 Make size1 and size2 local to the blocks they are used in.
9079 1998-12-17 Alexandre Oliva <oliva@dcc.unicamp.br>
9081 * common-src/Makefile.am (noinst_DATA): removed; bogus
9082 * config/config.guess, config/config.sub: config/install-sh,
9083 config/mkinstalldirs: updated to current pre-2.13 autoconf CVS tree
9084 * patches/autoreconf.patch: removed
9085 * config/libtool/libtool.m4: renamed to config/libtool.m4i
9086 * config/acinclude.m4: renamed to config/acinclude.m4i
9087 * config/Makefile.am (EXTRA_DIST): updated to reflect changes
9088 * autogen: build config/acinclude.m4 by concatenating acinclude.m4i
9090 * configure.in: no longer test whether libtool is installed; require
9092 * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
9094 * amplot/Makefile.am (EXTRA_DIST): no longer needed
9095 * changer-src/Makefile.am (chg_scsi_SOURCE): move scsi-defs.h closer
9096 to the beginning of the list
9097 * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
9100 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9102 * common-src/genversion.c (main): rip out krb4 defines. If we
9103 need this info, each driver will have to do it individually.
9105 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9107 * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
9108 element from dumptype_t, and get_auth() lookup func. Add
9109 security_driver to dumptype_t and parse value of AUTH keyword
9111 * server-src/conffile.h: nuke auth_t. Remove auth_t auth, int s_auth
9112 from typetype_t; add char *security_driver, int s_security_driver.
9113 * server-src/diskfile.c: nuke auth_t auth from disk_t, add
9114 char *security_driver. Inherit security_driver from the dumptype_t
9116 * server-src/diskfile.h: ditto
9117 * server-src/amadmin.c (disklist_one): output the security-driver
9118 string in place of the auth type
9119 * server-src/amcheck.c (start_client_checks, handle_response):
9120 enum type hostp->disks->auth is gone. check the string in the
9121 security_driver for this disk for krb4 auth.
9122 * server-src/planner.c (getsize, handle_result): check the string
9123 in hostp->disks->security_driver for the auth type.
9125 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9127 * server-src/amindexd.c: no need to include protocol.h
9129 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9131 * server-src/amindexd.c: remove duplication inclusion of version.h.
9132 Include tapefile.h to get read_tapelist() prototype
9133 * server-src/amindexd.c (build_disk_table): remove a plethora of
9135 * server-src/amindexd.c (main): rename security_ok() call to
9136 check_security(), and define check_security() locally. security_ok
9137 will disappear when the new security api goes in
9139 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9141 * server-src/changer.c (changer_label): make it return void
9142 to keep gcc warning about control reaching the end of a nonvoid
9144 * server-src/changer.c: update changer_label's proto for previous
9146 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9148 * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
9150 * server-src/amadmin.c: use the bitmask macros for setting
9151 and clearing the bits in the infofile command word
9152 * server-src/planner.c: ditto. This fixes a bug in the code that
9153 tried to clear FORCE_FULL with an xor expression that was
9154 never assigned (x ^ FORCE_FULL)
9156 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9158 * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
9159 use %ld to print them.
9161 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9163 * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
9164 * common-src/packet.h: ditto for pkt_cat
9165 * common-src/security.h: likewise for security_seterror
9167 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9169 * common-src/error.c (error): const the format arg
9170 * common-src/amanda.h: mark error with gcc's noreturn attribute, and
9171 const its format arg
9173 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
9175 * common-src/debug.c (debug_printf): const the format arg
9176 * common-src/amanda.h: const debug_printf's format arg
9178 1998-12-14 Alexandre Oliva <oliva@dcc.unicamp.br>
9180 * configure.in (BSD SCSI): test ... -a ... is not portable, and less
9181 so when written test ... -a test ... :-)
9183 1998-12-14 Thomas Hepper <th@icem.de>
9185 * changer-src/Makefile.am Added scsi-bsd.c
9186 * changer-src/chg-scsi.c Initialize *scsitapedevice
9187 * changer-src/scsi-changer-driver.c remove LITTLE_ENDIAN_BITFILEDS
9189 changed RequestSense to pRequestSense (there is a function
9190 called RequestSense)
9191 changed error handling in ResetStatus (fix for IRIX)
9192 FIxed length handling for the pages in ReadElemtStatus
9193 * changer-src/scsi-chio.c get_clean_state only returns 0, the
9194 ioctl to get the clean flag is not portable ;-(
9195 changed all (f)printf to dbprintf
9197 * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
9198 LITTLE endian the same ...
9200 * changer-src/scsi-bsd.c New file for FreeBSD
9202 * changer-src/scsi-irix.c Clean up in the return handling
9203 changed RequestSense to pRequestSense
9204 Removed unused function TapeStatus
9206 * changer-src/scsi-linux.c changed RequestSense to pRequestSense
9207 Removed unused function TapeStatus
9209 * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
9210 Removed unused function TapeStatus
9212 * config/acconfig.h added def for BSD_LIKE_SCSI
9214 * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
9215 added sys/scsiio.h and check for BSD SCSI interface
9217 1998-12-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9219 * server-src/driver.c (handle_dumper_result): rename .tmp files
9220 when receiving ABORT_FINISHED.
9222 1998-12-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9224 * server-src/driver.c (start_some_dumps): Use the holdp returned
9225 by find_diskspace for a big_dumper in degraded mode.
9227 1998-12-11 Alexandre Oliva <oliva@dcc.unicamp.br>
9229 * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
9230 (IRIX): patch for xfsdump estimates
9232 1998-12-10 John R. Jackson <jrj@purdue.edu>
9234 * common-src/amflock.c (main): remove call set_pname() for
9235 CONFIGURE_TEST since error.o is not linked in.
9237 1998-12-10 Mike Grupenhoff <kashmir@munge.com>
9239 * server-src/dumper.c (struct databuf): add a fd member - the file
9240 descriptor that we are buffering
9241 * server-src/dumper.c (update_dataptr): remove
9242 outf arguments, use the fd in the passed databuf. Return 0 on
9243 success, and -1 on error.
9244 * server-src/dumper.c (update_dataptr): rework and comment the
9245 chunk code a bit. Get rid of the cont_filename global.
9246 * server-src/dumper.c (do_dump): init the fd member of the databuf
9247 * server-src/dumper.c (write_dataptr): fold back into update_dataptr
9249 1998-12-10 John R. Jackson <jrj@purdue.edu>
9251 * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
9254 1998-12-10 John R. Jackson <jrj@purdue.edu>
9256 * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
9257 * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
9259 1998-12-10 Mike Grupenhoff <kashmir@munge.com>
9261 * server-src/dumper.c (update_dataptr): remove pointless backups
9262 of the databuf and associated vars when creating next chunk.
9263 Remove duplicate setting of file.cont_filename.
9265 1998-12-10 Mike Grupenhoff <kashmir@munge.com>
9267 * server-src/dumper.c (main): reuse outfd to clear the open files
9268 passed to us. Nuke the fd var.
9269 * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
9272 1998-12-09 Mike Grupenhoff <kashmir@munge.com>
9274 * server-src/dumper.c (write_tapeheader): kill dead code
9275 * server-src/dumper.c (main): remove useless amfree of datestamp.
9276 Add missing break to 'default' case in command loop.
9277 * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
9278 Create a 'struct databuf' that holds all three.
9279 * server-src/dumper.c (write_dataptr, update_dataptr): make
9280 these take a 'struct databuf *' as an argument, and have them
9281 operate on its contents instead of the aforementioned globals
9282 * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
9283 Make it static, because it's large. Use it instead of the
9286 1998-12-09 Mike Grupenhoff <kashmir@munge.com>
9288 * server-src/dumper.c (main): rework the command loop a bit.
9289 Consolidate all duplicated error cleanup into one place at the
9290 end of the loop after each command has been processed. Exit
9291 with exit(), not return.
9293 1998-12-09 Mike Grupenhoff <kashmir@munge.com>
9295 * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
9296 argv globals, pass them as arguments to getcmd() via struct cmdargs.
9297 * server-src/dumper.c (getcmd): make the command lookup table driven.
9298 * server-src/dumper.c (write_dataptr): restructure the command
9299 logic a bit to hopefully clarify things.
9301 1998-12-09 Henning P. Schmiedehausen <henning@tanstaafl.de>
9303 * client-src/sendbackup.c (parse_options): Added check whether the
9304 pathname of the exclude file is relative and if yes, use the
9305 mountpoint of the filesystem as anchor. So you can put your exclude
9306 file in the root of the filesystem to backup.
9307 * client-src/sendsize.c (getsize_gnutar): added the same check as
9308 above so sendsize uses the same exclude file.
9310 1998-12-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9312 * server-src/holding.c (size_holding_files): return size in KB.
9313 * server-src/driver.c (adjust_diskspace): use KB returned by
9315 * server-src/driver.c: rename .tmp file
9316 * server-src/dumper.c: do not rename .tmp file. let the driver do it.
9318 1998-12-09 John R. Jackson <jrj@purdue.edu>
9320 * common-src/stream.c (stream_server): do not request a reserved port
9321 if we are root but PORTRANGE is defined. Also, clean up the code
9322 and make sure *portp is -1 on all error returns.
9324 1998-12-08 John R. Jackson <jrj@purdue.edu>
9326 * Makefile.am: add the user-contributed area.
9327 * contrib/README: describe the user-contributed area.
9328 * contrib/dbbackup.README: README for Oracle database backup system.
9329 * contrib/dbbackup.ksh: Oracle database backup system wrapper.
9330 * contrib/dbbackup.sql: Oracle database backup system setup commands.
9331 * contrib/dbbackup.tcl: Oracle database backup system main body.
9333 1998-12-08 John R. Jackson <jrj@purdue.edu>
9335 * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
9336 compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
9338 1998-12-08 John R. Jackson <jrj@purdue.edu>
9340 * configure.in: fix reversed code for --with-amrecover, compliments
9341 of Yar Tikhiy <yar@radio-msu.net>.
9343 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9345 * common-src/fileheader.h (dumpfile_t): new is_partial field.
9346 * common-src/fileheader.c: add codee for new is_partial field.
9347 * server-src/holding.h (rename_tmp_holding): declare new function.
9348 * server-src/holding.c (rename_tmp_holding): new function.
9349 * server-src/dumper.c (do_dump): return 1 if succeded, otherwise 0.
9350 * server-src/dumper.c (main): open .tmp when dumping to disk,
9351 rename .tmp if do_dump return 1.
9352 * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
9353 * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
9355 1998-12-07 Mike Grupenhoff <kashmir@munge.com>
9357 * server-src/amtape.c (main, usage): make command lookup and usage
9360 1998-12-07 Mike Grupenhoff <kashmir@munge.com>
9362 * server-src/amadmin.c: make command lookup and usage table-driven
9363 * server-src/amadmin.c (balance, tape, bumpsize): add
9364 argc/argv arguments to make them like the rest
9365 * server-src/amadmin.c (show_version): new function, implements
9366 the version command, so it is done like the other commands
9367 * server-src/amadmin.c (main): iterate through cmdtab[] when
9368 looking up the command, instead of a huge if/then/else
9369 * server-src/amadmin.c (usage): iterate through cmdtab[] when
9370 displaying usage strings. Display the "disklist" usage string.
9372 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9374 * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
9376 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9378 * NEWS: document new force-bump, force-no-bump and unforce-bump
9381 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9383 * server-src/holding.c (size_holding_files): new function to
9384 return the sum of the size of all chunk of an image.
9385 * server-src/holding.h (size_holding_files): declare.
9386 * server-src/driver.c (adjust_diskspace): use size_holding_files
9387 instead of doing a stat of only the first chunk.
9389 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9391 * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
9393 * man/amadmin.8.in: document them.
9395 1998-12-05 Alexandre Oliva <oliva@dcc.unicamp.br>
9397 * docs/FAQ (large filesystems): fixed reference to results missing
9398 (results missing): updated to 64Kb UDP packets
9400 1998-12-04 Mike Grupenhoff <kashmir@munge.com>
9402 * common-src/amanda.h: implement WIFSIGNALED() if not already
9404 * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
9405 WTERMSIG(), and WIFSIGNALED(). These are already handled in amanda.h
9406 * server-src/changer.c: ditto
9408 1998-12-03 Mike Grupenhoff <kashmir@munge.com>
9410 * common-src/bsd-security.c (recv_security_ok): only check for
9411 a reserved port for REQ packets
9413 1998-12-03 Mike Grupenhoff <kashmir@munge.com>
9415 * common-src/bsd-security.c (recvpkt_callback): only compare
9416 the sin_addr and sin_port fields in the sockaddr when determining
9417 what handle an incoming packet belongs to.
9418 * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
9419 since it's a string.
9421 1998-12-03 Mike Grupenhoff <kashmir@munge.com>
9423 * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
9424 the 'SECURITY USER' line in the packet
9425 * common-src/bsd-security.c (check_user): fix many bugs
9426 in the USE_AMANDAHOSTS case
9428 1998-12-03 Mike Grupenhoff <kashmir@munge.com>
9430 * configure.in: AC_REPLACE_FUNCS(writev)
9432 1998-12-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9434 * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
9435 * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
9436 * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
9438 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
9440 * config/acconfig.h: add KRB5_SECURITY. Update comment above
9441 krb4 define to make clear that they are for krb4
9443 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
9445 * configure.in: if we're doing krb4 and -lcom_err is there, pull
9447 * configure.in: implement --with-krb5-security.
9449 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
9451 * common-src/dgram.c (dgram_cat): now can take printf-style
9453 * common-src/dgram.g (dgram_cat): update prototype
9455 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
9457 * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
9458 * common-src/bsd-security.c (bsd_connect): catch up with
9459 security interface changes - upper layer now allocates our handle
9460 Also, pass up useful error message about why connects failed
9461 via the handle we are given
9462 * common-src/bsd-security.c (gethandle): rename to inithandle,
9463 since we are now passed the handle's memory. No need to allocate
9464 memory or initialize the error msg pointer
9465 * common-src/bsd-security.c (bsd_close): now an empty function - no
9467 * common-src/bsd-security.c (recvpkt_callback): allocate the handle
9468 before calling inithandle() (nee gethandle()).
9469 * common-src/bsd-security.c (stream_read_callback): put
9470 strerror(errno) in the handle's error buffer before passing a
9471 read error up to the caller
9473 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
9475 * common-src/krb5-security.c: new stub file that pulls in the
9476 krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
9479 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
9481 * common-src/base64.{c,h}: new files, implement base64 encoding
9482 and decoding. Implementation based on routines in bind, and so
9483 copyright is held by ISC and IBM (but is BSD-like).
9485 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
9487 * common-src/security.h: add 'handlesize' to the driver struct, also
9488 make the connect function pointer return int and take a handle
9490 * common-src/security.h (security_connect): addd a 'const char **'
9491 errmsg argument for returning connect errors
9493 1998-12-01 John R. Jackson <jrj@purdue.edu>
9495 * server-src/amcheck.c: make -t mean do the tape checks, add new -l
9496 option for doing just the local server (non-tape) checks. Have -w
9497 turn on -t. Have -cs (or -sc) do both server and client checks.
9498 * man/amcheck.8.in: document above changes and clean up some minor
9501 1998-12-01 Mike Grupenhoff <kashmir@munge.com>
9503 * common-src/event.c (release): nuke bogus comment about signal
9505 * common-src/event.c (event_loop): move the reentrancy assert
9506 after the empty queue check. Otherwise, calling event_loop()
9507 with an empty event queue would cause the entry count to get
9508 out of sync. Also, on exit, assert that the entry count has
9510 * common-src/event.c (event_loop): fix bogus comment about event
9513 1998-12-01 Mike Grupenhoff <kashmir@munge.com>
9515 * common-src/arglist.h: implement arglist_function3()
9517 1998-11-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9519 * server-src/driver.c (start_some_dumps): In degraded mode,
9520 a big dumper should do high priority dump before low priority.
9521 * server-src/driver.c (sort_by_priority_reversed): sort by
9522 time if priority is equal.
9524 1998-11-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9526 * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
9528 * server-src/amadmin.c (force_one,unforce_one,info_one): work
9529 with info.command with bit operator.
9530 * server-src/planner.c (setup_estimate): work with info.command
9531 with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
9533 1998-11-27 Thomas Hepper <th@icem.de>
9535 * changer-src/scsi-aix.c Some changes in the error handling in
9536 scsi command execution
9537 * changer-src/scsi-changer-driver.c More debug prints.
9538 removed Endian16/Endian24 (replaced with macros)
9539 * changer-src/scsi-chio.c make get_clean_state work on linux
9540 * changer-src/scsi-defs.h added macros for converting from/to
9542 * docs/TAPE.CHANGERS add note about AIX and chg-scsi
9544 1998-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9546 * server-src/amadmin.c(export_one): export the last_level and
9547 consecutive_runs field.
9548 * server-src/amadmin.c(import_one): import the last_level and
9549 consecutive_runs field.
9551 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
9553 * common-src/amanda.h: uhh, every other decl has a leading
9554 'extern' so writev() should as well
9556 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
9558 * common-src/amanda.h: if no writev() decl exists, declare one
9560 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
9562 * configure.in: check for <sys/uio.h>, check for a writev() decl
9563 in <unistd.h> and/or <sys/uio.h>
9565 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
9567 * common-src/writev.c (writev): new file, implements writev for
9568 systems that lack it
9570 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
9572 * common-src/amanda.h: include <sys/uio.h> if it exists. Otherwise,
9575 1998-11-24 John R. Jackson <jrj@purdue.edu>
9577 * server-src/amlabel.c: insist on being run as the dump user (ala
9578 amlabel) to keep permissions straight.
9580 1998-11-24 John R. Jackson <jrj@purdue.edu>
9582 * server-src/amadmin.c: fix minor message format problem.
9584 1998-11-24 John R. Jackson <jrj@purdue.edu>
9586 * server-src/amlabel.c: insist on being run as the dump user (ala
9587 amflush) to keep permissions straight.
9589 1998-11-24 John R. Jackson <jrj@purdue.edu>
9591 * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
9592 amdump) to keep permissions straight.
9594 1998-11-24 John R. Jackson <jrj@purdue.edu>
9596 * server-src/amadmin.c: issue a warning for update commands that might
9597 leave ownership incorrect.
9599 1998-11-24 John R. Jackson <jrj@purdue.edu>
9601 * server-src/amcheck.c: add a "-t" option to disable tape tests in the
9602 server checks. This lets server checks be done without mounting a
9603 tape. Add lots more sanity checks, in particular, ownership and
9604 permissions of the index area and text format database. Warn if
9605 amcheck is not run as the dump user listed in amanda.conf. Minor
9606 consistency cleanup in the messages.
9607 * man/amcheck.8.in: document the changes.
9609 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
9611 * common-src/dgram.c (dgram_bind): always try to get a reserved
9612 port, even if KRB4_SECURITY is defined
9614 1998-11-23 Mike Grupenhoff <kashmir@munge.com>
9616 * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
9617 to 'char proto_handle[32]' because the remote client might generate
9618 handles that aren't completely numerical
9619 * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
9621 * common-src/bsd-security.c (bsd_connect): convert our generated
9622 handle into a string to pass to gethandle()
9623 * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
9624 strtok(). Parse the handle as a string instead of trying to
9625 convert it into a number
9627 1998-11-20 Alexandre Oliva <oliva@dcc.unicamp.br>
9629 * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
9630 renamed if it exists, even if no log file could be found.
9632 1998-11-20 Mike Grupenhoff <kashmir@munge.com>
9634 * common-src/bsd-security.c: define STREAM_BUFSIZE to be
9635 the size of the tcp socket buffers
9636 * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
9637 adapt to the stream_server() interface changes. Set socket
9638 buffers to STREAM_BUFSIZE.
9640 1998-11-20 Alexandre Oliva <oliva@dcc.unicamp.br>
9642 * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
9643 updated to current CVS libtool
9645 1998-11-19 John R. Jackson <jrj@purdue.edu>
9647 * server-src/conffile.c (get_holdingdisk, init_holdingdisk_defaults):
9648 set the default chunksize and the "0" and "-1" special chunksizes
9649 to 64 KBytes less than the maximum to allow the final read at EOF.
9650 * server-src/dumper.c (main): leave the chunksize as it is when it
9651 comes in except to truncate it to a 32 KByte boundary.
9652 * man/amanda.8.in: add some chunksize comments and clean up a few
9653 minor odds and ends.
9655 1998-11-19 Mike Grupenhoff <kashmir@munge.com>
9657 Give amrecover its own security bits. It has different needs
9658 and a different protocol than the rest of amanda, so it shouldn't
9659 try to reuse the security bits
9660 * recover-src/amrecover.c (get_security): new function, implements
9662 * recover-src/amrecover.c (main): call get_security()
9663 * recover-src/amrecover.h: get_security() prototype
9664 * recover-src/extract_list.c (extract_files_setup): call
9666 * restore-src/amidxtaped.c (check_security): new function, implements
9667 * restore-src/amidxtaped.c (main): call check_security()
9669 1998-11-19 Mike Grupenhoff <kashmir@munge.com>
9671 * common-src/stream.c (stream_server, stream_client): cast 4th
9672 arg of setsockopt() to (void *) to quash a compiler warning
9675 1998-11-19 John R. Jackson <jrj@purdue.edu>
9677 * recover-src/amrecover.c (main): use set_host to find the initial
9678 host name so we get the same alias resolution at startup as the
9680 * recover-src/set_commands.c (set_host): report alternate names being
9681 attempted and only clear the directory list if a host is found.
9683 1998-11-19 Alexandre Oliva <oliva@dcc.unicamp.br>
9685 * server-src/driverio.c (update_info_dumper): do not update
9686 compression or dump rates when called from
9687 update_failed_dump_to_date
9688 Reported by Michael Schmitz <mschmitz@sema.de>
9690 1998-11-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9692 * server-src/dumper.c (main): reduce the size of the chunksize by
9695 1998-11-18 Alexandre Oliva <oliva@dcc.unicamp.br>
9697 * configure.in: hack for paxutils was not working; fixed
9699 1998-11-18 Michael Povel <mcp@ladyada.han.de>
9701 * server-src/changer.h added new functions:changer_query
9702 ,changer_search,changer_find, changer_label
9703 * server-src/changer.c added changer_query, changer_search,
9704 changer_find, changer_label
9705 * server-src/amcheck.c (taper_scan) now uses changer_find
9706 * server-src/amtape.c (load_label and taper_scan) now use changer_find
9707 * server-src/taper.c (taper_scan) now uses changer_find
9708 * server-src/amlabel.c (main) added call to changer_label
9709 which is only an empty dummy at the moment
9711 1998-11-18 Thomas Hepper <th@icem.de>
9713 * changer-src/chg-scsi.c Added debug print option
9714 * changer-src/chg-scsi.c If the load fails do not continue
9715 * changer-src/scsi-aix.c changed #include <config.h> to <amanda.h>
9716 * changer-src/scsi-aix.c Added debug prints to SCSI_ExecuteCommand
9717 * changer-src/scsi-changer-driver.c changed #include <config.h> to
9719 * changer-src/scsi-changer-driver.c Added debugging prints
9720 * changer-src/scsi-changer-driver.c Remove unused funktion TestUnitReady
9721 * changer-src/scsi-chio.c added missing funktion Tape_Ready
9722 * changer-src/scsi-hpux.c removed #include "config.h", is already done
9724 * changer-src/scsi-hpux_new.c changed #include <config.h> to
9726 * changer-src/scsi-irix.c changed #include <config.h> to
9728 * changer-src/scsi-linux.c changed #include <config.h> to
9730 * changer-src/scsi-solaris.c changed #include <config.h> to
9733 1998-11-17 Alexandre Oliva <oliva@dcc.unicamp.br>
9735 * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
9738 1998-11-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9740 * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
9741 to shift the tpsave array.
9743 1998-11-17 Alexandre Oliva <oliva@dcc.unicamp.br>
9745 * example/amanda.conf.in: document that infofile is supposed to be a
9746 directory with the default database format
9747 * docs/FAQ: New questions: `infofile update failed' and `using the
9748 same host in different configurations'
9750 1998-11-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9752 changer-src/scsi-linux.c (Tape_Ready): typo, the argument Device
9753 to the SCSI_CloseDevice() is not defined, I changed it to tapedev.
9755 1998-11-17 Brendan M Coffey <bcoffey@connix.com>
9757 * common-src/stream.c (stream_server): add requested send and receive
9758 socket size parameters.
9759 * common-src/stream.h (stream_server): ditto
9760 * server-src/taper.c (file_reader_side): set a large receive socket
9762 * client-src/sendbackup.c (main): set a large send and receive socket
9763 buffer size for the data path, use defaults for the message and index
9766 1998-11-16 Alexandre Oliva <oliva@dcc.unicamp.br>
9768 * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
9770 1998-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9772 * server-src/infofile.h (get_dumpdate): rename record parameter to info.
9773 * server-src/infofile.h (get_info): rename record parameter to info.
9774 * server-src/infofile.h (put_info): rename record parameter to info.
9775 * server-src/infofile.c (get_dumpdate): rename rec parameter to info.
9776 * server-src/infofile.c (zero_info): rename ip parameter to info.
9777 * server-src/infofile.c (get_info): rename record parameter to info.
9778 * server-src/infofile.c (put_info): rename record parameter to info.
9779 * server-src/infofile.c (dump_rec): rename r parameter to info.
9780 * server-src/infofile.c (dump_db): rename record variable to info.
9781 * server-src/planner.c (last_level): rename ip parameter to info.
9782 * server-src/planner.c (next_level0): rename ip parameter to info.
9783 * server-src/planner.c (runs_at): rename ip parameter to info.
9784 * server-src/planner.c (askfor): rename inf parameter to info.
9785 * server-src/planner.c (setup_estimate): rename inf variable to info.
9786 * server-src/driverio.c (update_info_dumper): rename inf parameter
9788 * server-src/driverio.c (update_info_taper): rename inf parameter
9790 * server-src/amadmin.c (next_level0): rename ip parameter to info.
9791 * server-src/amadmin.c (force_one): rename inf variable to info.
9792 * server-src/amadmin.c (unforce_one): rename inf variable to info.
9793 * server-src/amadmin.c (delete_one): rename inf variable to info.
9794 * server-src/amadmin.c (info_one): rename inf variable to info.
9795 * server-src/amadmin.c (due_one): rename inf variable to info.
9796 * server-src/amadmin.c (balance): rename inf variable to info.
9798 1998-11-11 Thomas Hepper <th@icem.de>
9800 * configure.in: amanda_cv_hpux_scsi was double defined.
9801 Replaced it in the chio check with amanda_cv_hpux_scsi_chio
9802 * docs/TAPE.CHANGERS: update the notes about chg-scsi
9803 * changer-src/chg-scsi.c: Unload the cleaning tape only
9805 Pass the changerdev and tapedev Tape_Ready, so we can check
9806 if changerdev=tapedev. In this case the fd is already open.
9807 * changer-src/scsi-aix.c: cleanup and first parts are running :-)
9808 * changer-src/scsi-changer-driver.c: Pass back the scsi status
9809 field to the calling function, not the result from the ioctl
9810 if the return form the ioctl is >= 0
9811 * changer-src/scsi-hpux.c: Add additional param to Tape_Ready
9812 fill Tape_Ready with live
9813 * changer-src/scsi-hpux_new.c: Return the scsi status if
9814 the ioctl result is >=0. Add new Parameter to Tape_Ready
9815 * changer-src/scsi-irix.c: same as scsi-hpux_new.c
9816 * changer-src/scis-linux.c: Add additional param to Tape_Ready
9817 * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
9819 1998-11-11 Mike Grupenhoff <kashmir@munge.com>
9821 * server-src/security.h: add driver entry points and macros
9822 for security_stream_accept() and security_stream_auth()
9823 * server-src/bsd-security.c: implement security_stream_accept()
9824 and security_stream_auth() for bsd security
9826 1998-11-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9828 * server-src/driver.c (main): redo my patch about total_disksize that
9829 Alexendre has undone, only the 2.4.1 branch was broken.
9831 1998-11-10 Alexandre Oliva <oliva@dcc.unicamp.br>
9833 * server-src/driver.c (main): total_disksize was only added after
9834 the loop terminated, i.e., when hdp was NULL -> crash. fixed.
9836 1998-11-09 John R. Jackson <jrj@purdue.edu>
9838 * server-src/reporter.c (main): ignore SIGPIPE so if a child process
9839 dies we do not also go away. Also fix a core dump if amanda.conf
9840 cannot be processed, and clean up a few error messages.
9842 1998-11-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9844 * server-src/infofile.h (struct info_s): add last_level and
9846 * server-src/infofile.c: support new last_level and consecutive_runs
9847 * server-src/planner.c (last_level): return ip->last_level.
9848 * server-src/planner.c (runs_at): return ip->consecutive_runs.
9849 * server-src/driverio.c (update_info_dumper): update inf.last_level
9850 and inf.consecutive_runs.
9852 1998-11-09 Mike Grupenhoff <kashmir@munge.com>
9854 * client-src/sendbackup-dump.c (start_backup): don't close indexf
9855 if it was never open
9856 * client-src/sendbackup-gnutar.c (start_backup): ditto
9858 1998-11-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9860 * server-src/driver.c (main): add hdp->disksize to total_disksize
9861 even when we create the datestamp dir. (reserve was unusable).
9863 1998-11-07 Alexandre Oliva <oliva@dcc.unicamp.br>
9865 * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
9867 * docs/STRATEGY-API: new file
9869 * configure.in (GNUTAR): accept tar from Free paxutils, the new name
9872 1998-11-07 Alexandre Oliva <oliva@dcc.unicamp.br>
9874 * changer-src/scsi-solaris.c: added missing #endif
9876 * configure.in: merge with camlib.h patch from Oct 31
9877 remove all uses of test ... -a ...; this is not portable.
9878 (AC_CHECK_HEADERS) added header files for Linux and Solaris
9880 1998-11-07 Thomas Hepper <th@icem.de>
9882 * changer-src/chg-scsi: Add config option scsidev
9883 * changer-src/chg-scsi: Remove function tape_ready
9884 * changer-src/chg-scsi: Add new parameter tapedev to function
9886 * changer_src/scsi-hpux.c: changed HAVE_HPUX_SCSI to
9887 HAVE_HPUX_SCSI_CHIO, changed in configure.in too
9888 * changer-src/libscsi.h: Expand definition for get_clean_state
9889 * new files in /changer-src:
9890 scsi-aix.c, scsi-changer-driver.c, scsi-defs.h
9891 scsi-hpux_new.c, scsi-irix.c, scsi-linux.c, scsi-solaris.c
9892 * configure.in checks for scsi ioctl added, check for header files
9893 for the scsi suport added
9894 * config/acconfig.h new:
9895 HAVE_HPUX_LIKE_SCSI, HAVE_HPUX_SCSI_CHIO, HAVE_LINUX_LIKE_SCSI
9896 HAVE_IRIX_LIKE_SCSI, HAVE_SOLARIS_LIKE_SCSI, HAVE_AIX_LIKE_SCSI
9897 removed: HAVE_HPUX_SCSI
9898 * changer-src/Makefile.am: New conditional for building chg-scsi-chio
9899 and chg-scsi. chg-scsi-chio is the old chg-scsi
9901 1998-11-06 Mike Grupenhoff <kashmir@munge.com>
9903 * common-src/bsd-security.c (bsd_stream_write): callback's third
9904 arg should now be an int.
9905 * common-src/bsd-security.c: quash some gcc -Wall warnings
9907 1998-11-06 Mike Grupenhoff <kashmir@munge.com>
9909 * common-src/security.h: the callback to stream_read should
9910 take signed type as its 'length' argument so errors can be
9911 expressed as a negative number.
9913 1998-11-06 Mike Grupenhoff <kashmir@munge.com>
9915 * common-src/bsd-security.c (stream_read_callback): do reads into
9916 a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
9917 buffer in the stream handle instead of on the stack, since it's
9920 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
9922 * common-src/event.c (event_loop): Consider error conditions on
9923 file descriptors as read or write events. The caller will be
9924 able to differentiate when they call read or write and it
9927 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
9929 * common-src/event.c (event_loop): print out WHY select failed
9931 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
9933 * common-src/bsd-security.c: adjust for the recvpkt timeout
9935 * common-src/bsd-security.c (handleq_remove): add a missing ; after
9937 * common-src/bsd-security.c (gethandle): initialize the error buffer
9938 in the security handle, since errors may be set before the handle
9939 is passed up to the general security layer
9940 * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
9941 called several times, or when no recvpkt was scheduled
9943 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
9945 * common-src/security.h: define security_recvpkt_status_t
9946 * common-src/security.h: security_driver_t->recvpkt() now
9947 takes a timeout argument, and its callback takes a
9948 security_recvpkt_status_t
9949 * common-src/security.h: adjust the security_recvpkt() macro
9950 for the above changes
9952 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
9954 * common-src/event.c (event_loop): assert that we are not firing
9957 1998-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9959 * recover-src/amrecover.c: remove declaration of errstr.
9961 1998-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9963 * server-src/amindexd.c (build_disk_table): call find_dump() instead
9964 of popen("amadmin <conf> find ...")
9966 1998-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9968 * server-src/holding.h: rename dir_list to holding_list because
9969 dir_list is also declared in amflush.c
9970 * server-src/holding.c: ditto
9971 * server-src/find.c: ditto
9973 1998-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9975 * server-src/amstatus.pl.in: remove warning.
9977 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
9979 * common-src/event.c (event_register): delete some improper debug
9980 code that shouldn't have made it in
9982 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
9984 * common-src/bsd-security.c: new file: security driver that
9985 implements "BSD" security.
9987 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
9989 * common-src/security.h: new file: the security api header
9991 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
9993 * common-src/event.c: new file: the event handler. Handles file
9994 descriptor io, signals, and timed events.
9995 * common-src/event.h: new file: interface for the event handler.
9997 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
9999 * common-src/packet.c: new file: description of pkt_t's and routines
10001 * common-src/packet.h: new file: header for common-src/packet.c
10003 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
10005 * common-src/queue.h: new file: the 4.4BSD queue macros, with
10006 additions from NetBSD
10008 1998-11-04 John R. Jackson <jrj@purdue.edu>
10010 * server-src/amverify.sh.in: tolerate extra amtape output.
10012 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br>
10014 * configure.in: bumped to 2.5.0
10016 * server-src/taper.c (read_file): if a new tape cannot be found,
10017 report a no-tape error to the log file and exit, just like it does
10020 1998-11-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10022 * server-src/planner.c (pick_inclevel): return base_level even
10023 when the estimate failed.
10024 * server-src/planner.c (output_scheduleline): test for degr_size
10025 instead of degr_level.
10027 1998-11-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10029 * server-src/planner.c (last_level): update last_date otherwise only
10030 level 0 or the highest is returned.
10032 1998-11-03 Mike Grupenhoff <kashmir@munge.com>
10034 * common-src/alloc.c: const arguments to the stralloc functions
10035 * common-src/amanda.h: update stralloc prototypes for const
10038 1998-11-03 John R. Jackson <jrj@purdue.edu>
10040 * server-src/dumper.c (do_dump): do not report FAILED back to driver
10041 when it sent us ABORT. Clean up and send back ABORT-FINISHED.
10043 1998-11-03 John R. Jackson <jrj@purdue.edu>
10045 * server-src/driver.c (handle_dumper_result): do not abort a dumper
10046 that reports NO-ROOM if taper is busy since some holding disk space
10047 will eventually be released (this code it not used when PORT-DUMP is
10050 1998-11-03 John R. Jackson <jrj@purdue.edu>
10052 * server-src/taper.c (write_buffer): calling lseek after every tape
10053 write is wasteful and makes utilities like lsof less useful. Only
10054 reset the offset when the amount written is about to go over 2 GBytes.
10056 1998-11-02 John R. Jackson <jrj@purdue.edu>
10058 * server-src/driver.c (main, start_degraded_mode): fix rounding problem
10059 that made the code think there was a little room for full dumps in
10060 degraded mode, and fix the code that decides whether to do a full dump
10063 1998-11-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10065 * server-src/amstatus.pl.in: initialize variable to remove warning.
10067 1998-11-02 Alexandre Oliva <oliva@dcc.unicamp.br>
10069 * client-src/Makefile.am (CLIENT_SCRIPTS): rename to
10070 CLIENT_SCRIPTS_OPT, because *_SCRIPTS is interpreted by automake
10071 * configure.in (CLIENT_SCRIPTS): ditto
10072 Reported by Thomas Hepper <Thomas.Hepper@icem.de>
10074 * configure.in (LIBTOOL_M4): no longer defined
10075 (LIBTOOL_M4_MACRO_DIR): defined assuming CWD is top_srcdir
10076 * Makefile.am (ACLOCAL_M4_FROM_SRCDIR): relative to srcdir
10077 (ACLOCAL_M4): defined and created using ACLOCAL_M4_FROM_SRCDIR
10078 Reported by Thomas Hepper <Thomas.Hepper@icem.de>
10080 * client-src/sendbackup.c (backup_program): rename to
10081 gnutar_program, that's the name it should have had from the
10083 * client-src/sendbackup-gnutar.c (backup_program): ditto
10085 1998-10-31 Michael Schmitz <mschmitz@iname.com>
10087 * configure.in: let configure check whether strcasecmp is
10089 * common-src/strcasecmp.c: new file which contains a definition
10091 * common-src/amanda.h: added code to declare strcasecmp in
10092 case it's not declared in a standard header
10094 1998-10-31 Alexandre Oliva <oliva@dcc.unicamp.br>
10096 * configure.in (snprintf): arrange that it is included in the
10097 distribution automatically
10098 * common-src/Makefile.am (EXTRA_DIST): removed, not needed
10100 * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
10103 * configure.in (NO_SCSI_CHANGER_MODE): chg-scsi does not support the
10104 new FreeBSD 3.0 chio.h, so disable it if camlib.h is found.
10105 * docs/SYSTEM.NOTES (FreeBSD 3.0): add a note about this
10106 (SunOS 4.x): libtool will no longer find incorrect library versions
10108 1998-10-30 John R. Jackson <jrj@purdue.edu>
10110 * common-src/security.c (bsd_security_ok): change error message to
10111 reflect that it is a host name we were looking up rather than an
10112 address (also makes the two similar messages unique).
10114 1998-10-28 Alexandre Oliva <oliva@dcc.unicamp.br>
10116 * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates
10118 1998-10-28 John R. Jackson <jrj@purdue.edu>
10120 * recover-src/set_commands.c (set_host): if the host given by the user
10121 does not work, try the canonical name and aliases returned by
10124 1998-10-28 John R. Jackson <jrj@purdue.edu>
10126 * configure.in: use "df /" instead of just "df" when trying to find
10127 the device that has the root file system to avoid things like NFS
10128 hangs that df sometimes suffers from.
10130 1998-10-27 Mike Grupenhoff <kashmir@munge.com>
10132 * common-src/stream.c (stream-client): add a 'localport' argument
10133 in which we can get the port this stream is bound to locally
10134 * common-src/stream.h (stream-client): update prototype
10135 * server-src/dumper.c: update stream-client calls
10137 1998-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10139 * client-src/amandad.c (main): better logging of received packet,
10140 do not send a P_ACK when the received packet is not a P_REQ.
10142 1998-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10144 * client-src/amandad.c (main): terminate immediately if started
10145 by a P_ACK packet without sending a P_NAK packet.
10147 1998-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10149 * server-src/conffile.h (dtimeout): new keyword
10150 * server-src/conffile.c (dtimeout): ditto
10151 * server-src/dumper.c: use dtimeout instead of READ_TIMEOUT
10152 * example/amanda.conf.in: document it
10153 * man/amanda.8.in: ditto
10156 1998-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10158 * server-src/dumper.c (sendbackup_response): a nak error will
10159 be a TRY-AGAIN instead of a FAILED.
10161 1998-10-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10163 * server-src/amlabel.c: move declaration of vtbl_no, datestr
10164 and slotcommand to the main function.
10166 1998-10-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10168 * server-src/amlabel.c: remove declaration of pname.
10170 1998-10-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10172 * server-src/amcheckdb.sh.in: modify to match new tapelist file
10173 format (keyword reuse and no-reuse). Probably no-one use this
10176 1998-10-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10178 * server-src/driver.c (handle_dumper_result): Add sleep time
10179 when a dumper failed, it could be a temporary network problem,
10180 such as NIS or NFS, better wait a few seconds before retrying.
10182 1998-10-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10184 * server-src/driverio.h: remove declaration of argc et argv.
10185 * server-src/driverio.h (getresult): add parameters result_argc,
10186 result_argv and max_arg.
10187 * server-src/driverio.c (getresult): use new parameters.
10188 * server-src/amflush.c (flush_holdingdisk, run_dumps): declare
10189 and use result_argc and result_argv instead of global variables
10191 * server-src/driver.c (main, handle_taper_result,
10192 handle_dumper_result, dump_to_tape): ditto
10194 1998-10-24 John R. Jackson <jrj@purdue.edu>
10196 * server-src/amstatus.pl.in: do not be quite so accurate in matching
10197 the log file lines since messages may be intermixed. Turn on perl
10198 -w switch and make first cut at cleaning up warnings.
10200 1998-10-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10202 * server-src/driverio.h: remove datestamp declaration.
10203 * server-src/amcheck.c: remove 'extern' to datestamp declaration.
10204 * server-src/amflush.c: declare datestamp.
10205 * server-src/amtape.c: remove 'extern' to datestamp declaration.
10206 * server-src/driver.c: declare datestamp.
10207 * server-src/dumper.c: remove 'extern' to datestamp declaration.
10208 * server-src/reporter.c: remove 'extern' to datestamp declaration.
10210 1998-10-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10212 * server-src/driverio.h: remove declaration of tok.
10213 * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
10215 * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
10216 dump_to_tape): declare tok locally.
10218 1998-10-23 John R. Jackson <jrj@purdue.edu>
10220 * configure.in: disable the -E and -h dump estimate checks if $DUMP
10223 1998-10-19 John R. Jackson <jrj@purdue.edu>
10225 * server-src/amindexd.c (is_config_valid): fix core dump by moving
10226 amfree of conf_dir later in case it is needed in an error message.
10228 1998-10-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10230 * server-src/reporter.c: remove declaration of curlinenum,
10231 curlog, curprog and curstr.
10233 1998-10-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10235 * server-src/amflush.c (main): move declaration of diskqp from
10238 1998-10-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10240 * server-src/amcheck.c (main): move declaration of mailout and
10241 tempfname from global to local.
10243 1998-10-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10245 * server-src/amadmin.c (search_logfile): remove declaration
10247 1998-10-15 Mike Grupenhoff <kashmir@munge.com>
10249 * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
10252 1998-10-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10254 * server-src/conffile.h: remove declaration of holdingdisks and
10255 num_holdingdisks, declare getconf_holdingdisks().
10256 * server-src/conffile.c: define getconf_holdingdisks(),
10257 * server-src/holding.c: use getconf_holdingdisks
10258 * server-src/find.c: ditto
10259 * server-src/amcheck.c: ditto
10260 * server-src/amflush.c: ditto
10261 * server-src/driver.c ditto
10263 1998-10-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10265 * server-src/driver.c: remove verbose and force_parameters
10268 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10270 * server-src/dumper.c: remove declaration of pid.
10271 * server-src/dumper.c(do_dump): move declaration of runtime,
10272 dumptime, compresspid, indexpid and killerr from global to local.
10274 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10276 * server-src/planner.c: remove declaration of total_waiting and
10278 * server-src/planner.c(main): move declaration of initial_size from
10281 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10283 * server-src/driverio.h,server-src/driver.c: move declaration
10284 of big_dumpers, degraded_mode and reserved_space from
10285 driverio.h to driver.c
10287 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10289 * server-src/driverio.h (optionstr): remove declaration
10291 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10293 * configure.in (SAMBA_CLIENT): fix typo
10295 1998-10-14 John R. Jackson <jrj@purdue.edu>
10297 * restore-src/amrestore.c (read_file_header): make a couple of error
10298 messages clearer that they refer to problems with a header rather
10299 than the image data.
10301 1998-10-13 Alexandre Oliva <oliva@dcc.unicamp.br>
10303 * client-src/Makefile.am (libamclient_a_SOURCES): missing since
10306 1998-10-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10308 * docs/INTERNALS (driver and dumper): document <dumpdate> in
10309 FILE-DUMP and PORT-DUMP request, document <chunksize> in
10312 1998-10-12 John R. Jackson <jrj@purdue.edu>
10314 * server-src/amtape.c (usage, main, show_device): apply patch from
10315 Chris Jones <cjones@clydesdale.math.montana.edu> to support "device"
10316 as an option to return the drive device name as reported by the
10318 * man/amtape.8: document the new "device" option.
10319 * server-src/amverify.sh.in: use the new amtape "device" option to
10320 better handle tape changers. Overhaul for general cleanup and some
10321 security issues, plus amverify now tries to support non-tar images.
10322 * man/amverify.8.in: document non-tar image issues.
10324 1998-10-08 John R. Jackson <jrj@purdue.edu>
10326 * example/amanda.conf.in: fix runspercycle example and comments
10328 1998-10-08 Alexandre Oliva <oliva@dcc.unicamp.br>
10330 * configure.in (SAMBA_CLIENT): try to find it by default; minimal
10332 * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
10334 * docs/SAMBA: document that --with-smbclient is no longer required
10335 to enable SAMBA support
10337 * docs/FAQ: about inconsistencies in active filesystems
10339 1998-10-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10341 * docs/DUMPER-API: add `no-record' option to the `backup' command.
10343 1998-10-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10345 * docs/DUMPER-API: subdivise section 3.1.
10347 1998-10-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10349 * docs/DUMPER-API: New `index-<mode>' options.
10350 define `support parse-estimate' and `support parse-backup' subcommand.
10351 New 'estimate-direct', `estimate-parse', `backup-direct' and
10352 `backup-parse' options.
10353 Remove PARSE keyword from estimate and backup command.
10355 1998-10-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10357 * docs/DUMPER-API: define PARSE keyword in stderr of the backup
10360 1998-10-03 Alexandre Oliva <oliva@dcc.unicamp.br>
10362 * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not
10363 generated by autoconf get into the distribution
10365 1998-10-02 Josef Karthauser <joe@pavilion.net>
10367 * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression
10368 for $line; the trailing `s' of slots was missing
10370 1998-10-02 John R. Jackson <jrj@purdue.edu>
10372 * server-src/amstatus.pl.in: fix error message.
10374 1998-10-02 John R. Jackson <jrj@purdue.edu>
10376 * server-src/taper.c (write_file): fix a problem with tha taper
10377 stats where the times were all the same. The wallclock_str function
10378 returns a pointer to a static area so it cannot be called more
10379 than once as an argument to a function.
10381 1998-10-01 John R. Jackson <jrj@purdue.edu>
10383 * common-src/protocol.c (parse_integer): allow negative numbers.
10385 1998-10-01 John R. Jackson <jrj@purdue.edu>
10387 * server-src/amstatus.pl.in: add timestamps.
10389 1998-10-01 Alexandre Oliva <oliva@dcc.unicamp.br>
10391 * docs/DUMPER-API: define `support index', to be used instead of the
10392 previous `index-*' sub-commands
10394 1998-09-30 Alexandre Oliva <oliva@dcc.unicamp.br>
10396 * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use
10397 backslashes for continuation; this seems to break automake :-(
10399 1998-09-30 John R. Jackson <jrj@purdue.edu>
10401 * man/amanda.8.in: minor typo in "reserve" description.
10403 1998-09-29 John R. Jackson <jrj@purdue.edu>
10405 * server-src/taper.c (end_tape): do not rewind the tape when done.
10407 1998-09-29 Alexandre Oliva <oliva@dcc.unicamp.br>
10409 * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER,
10410 WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
10412 * amplot/Makefile.am: use them
10413 * changer-src/Makefile.am: ditto
10414 * client-src/Makefile.am: ditto
10415 * common-src/Makefile.am: ditto
10416 * man/Makefile.am: ditto
10417 * recover-src/Makefile.am: ditto
10418 * restore-src/Makefile.am: ditto
10419 * server-src/Makefile.am: ditto
10420 * tape-src/Makefile.am: ditto
10422 * Makefile.am: don't print commands that work around old aclocal bug
10424 * docs/DUMPER-API: remove environment variables, and mention a
10425 program that will help translating disklist entries to device names,
10426 mount points and filesystem types
10428 * recover-src/extract_list.c (extract_files_child): do not crash
10429 after failing to read the dump file header
10430 Reported by Jose Cheng <jcheng@math.ist.utl.pt>
10432 1998-09-28 Alexandre Oliva <oliva@dcc.unicamp.br>
10434 * server-src/taper.c (taperscan_slot): initialize scan_datestamp, to
10435 avoid amfree of uninitialized pointer
10436 Reported by Lance A. Brown <brown9@niehs.nih.gov>
10438 1998-09-27 Alexandre Oliva <oliva@dcc.unicamp.br>
10440 * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
10441 (estimate, estimate-parse): can print `KILL' after the estimate
10443 * docs/DUMPER-API: various suggestions from Eric Siegerman
10444 <erics@now.com> and some explanations added
10446 1998-09-27 Andy Farkas <andyf@speednet.com.au>
10448 * man/amlabel.8.in (labelstr): fix typo
10450 1998-09-26 Alexandre Oliva <oliva@dcc.unicamp.br>
10452 * recover-src/extract_list.c (extract_files_child): fix-up
10453 no_initial_params if password or domain information is not found
10454 Reported by Jose Cheng <jcheng@math.ist.utl.pt>
10456 * docs/DUMPER-API: extended `index' to `index-from-output' or
10457 `index-from-image', as suggested by Dale Hagglund <rdh@best.com>.
10458 Explained that the dumptype option `program' is the name of the
10461 1998-09-25 John R. Jackson <jrj@purdue.edu>
10463 * configure.in: fix --with-dump-honor-nodump test. Patch by
10464 Jonas Oberg <jonas@coyote.org>.
10466 1998-09-24 John R. Jackson <jrj@purdue.edu>
10468 * example/disklist: document the "spindle" and "interface" fields.
10469 Reported by Brendan M Coffey <bcoffey@connix.com>.
10471 1998-09-24 Alexandre Oliva <oliva@dcc.unicamp.br>
10473 * docs/DUMPER-API: added draft description of the DUMPER API
10474 * Makefile.am (EXTRA_DIST): add it to the distribution
10476 * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
10477 cached values for host, build and target system types match with the
10479 * configure.in: use it
10481 1998-09-23 John R. Jackson <jrj@purdue.edu>
10483 * server-src/amstatus.pl.in: sort the host and partition names.
10484 From David Wolfskill <dhw@whistle.com>.
10486 1998-09-23 Alexandre Oliva <oliva@dcc.unicamp.br>
10488 * server-src/taper.c (getcmd): typo in last DEBUGging patch
10490 1998-09-22 Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>, Alexandre Oliva <oliva@dcc.unicamp.br>
10492 * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
10494 1998-09-22 Alexandre Oliva <oliva@dcc.unicamp.br>
10496 * changer-src/chg-mtx.sh.in: replace rew with rewind
10497 * changer-src/chg-zd-mtx.sh.in: ditto
10498 Reported by Henning Holtschneider <hh@loca.net>
10500 * client-src/sendsize.c: remove usage of #error
10501 Reported by Jay Orr <orr@vss.fsi.com>
10503 1998-09-21 John R. Jackson <jrj@purdue.edu>
10505 * man/amanda.8.in: document the new "tapebufs" parameter.
10507 1998-09-21 Kelly Setzer <setzer@telalink.net>
10509 * server-src/taper.c (NBUFS): replaced with conf_tapebufs
10510 (THRESHOLD): now means `empty bufs' instead of `full bufs'
10511 * server-src/conffile.c: add support for the "tapebufs" option
10512 * server-src/planner.c: ditto
10513 * examples/amanda.conf.in: add sample "tapebufs" entry
10515 * server-src/amlabel.c (main): adds entry to tapelist with date
10518 1998-09-20 Alexandre Oliva <oliva@dcc.unicamp.br>
10520 * server-src/taper.c (getcmd): print DEBUGging output to stderr
10521 Reported by Henning Holtschneider <hh@loca.net>
10523 1998-09-19 Eric Doutreleau <Eric.doutreleau@int-evry.fr>
10525 * server-src/driverio.h (MAX_DUMPERS): increased from 15 to 63 in
10526 order to launch more dumper in parallel
10527 * example/amanda.conf.in (inparallel): Add the fact that it is
10528 limited by MAX_DUMPERS
10530 1998-09-18 Alexandre Oliva <oliva@dcc.unicamp.br>
10532 * common-src/Makefile.am (libamanda_la_LDFLAGS): use libtool
10533 -release instead of -version_info, so as to encode the Amanda
10534 release number in the library name. Problems related with
10535 pre-installed libraries should disappear, and separate releases can
10536 now be installed into the same directory without the risk of one
10537 using libraries from the other.
10539 1998-09-18 Michael C. Povel <Michael.Povel@hub.de>
10541 * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
10542 until success or timeout
10543 (ask_clean, main): use it
10545 1998-09-18 Alexandre Oliva <oliva@dcc.unicamp.br>
10547 * client-src/selfcheck.c (check_options): don't require runtar for
10550 * client-src/rundump.c: fix support for VDUMP-only installation
10551 * client-src/selfcheck.c (check_options): fix detection of advfs
10552 * client-src/sendsize.c (getsize_dump): ditto
10553 * client-src/sendbackup-dump.c (start_backup): ditto
10554 Reported by Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>
10556 1998-09-16 John R. Jackson <jrj@purdue.edu>
10558 * man/amadmin.8.in: document that "hostname" is optional for "info".
10559 Reported by David Wolfskill <dhw@whistle.com>.
10561 1998-09-15 Alexandre Oliva <oliva@dcc.unicamp.br>
10563 * docs/FAQ: common compile-time and link-time errors
10565 1998-09-11 John R. Jackson <jrj@purdue.edu>
10567 * server-src/tapefile.c (lookup_last_reusable_tape): use new
10568 calling sequence that passes how old a tape to return. Remove
10569 lookup_previous_reusable_tape().
10570 * server-src/tapefile.h (lookup_last_reusable_tape): use new
10571 calling sequence that passes how old a tape to return. Remove
10572 lookup_previous_reusable_tape().
10573 * server-src/amadmin.c (tape): use new lookup_last_reusable_tape
10575 * server-src/amcheck.c (taper_scan, start_server_check): use new
10576 lookup_last_reusable_tape calling sequence.
10577 * server-src/amflush.c (confirm): use new lookup_last_reusable_tape
10579 * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
10581 * server-src/reporter.c (output_tapeinfo): use new
10582 lookup_last_reusable_tape calling sequence.
10583 * server-src/taper.c (taper_scan): use new lookup_last_reusable_tape
10586 1998-09-11 Alexandre Oliva <oliva@dcc.unicamp.br>
10588 * client-src/sendbackup-gnutar.c (re_table): ignore
10589 `load_client_codepage' message from SAMBA
10591 1998-09-11 John R. Jackson <jrj@purdue.edu>
10593 * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
10594 problems. Reported by David Eckelkamp <davide@locutus.tradewave.com>.
10596 * man/amstatus.8.in (all): fix minor typos.
10598 1998-09-10 John R. Jackson <jrj@purdue.edu>
10600 * configure.in (LFS): add code that might support configuring large
10603 1998-09-10 Alexandre Oliva <oliva@dcc.unicamp.br>
10605 * server-src/conffile.c (dump_configuration): runspercycle is not a
10606 member of dumptype_t
10607 (init_holdingdisk_defaults): init chunksize with documented default,
10608 not -1, because it wouldn't be recalculated
10610 * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
10612 1998-09-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10614 * docs/SAMBA: 1.9.18p10 has a bug
10616 1998-09-09 Terje Malmedal <tm@funcom.com>
10618 * common-src/stream.c (stream_server, stream_client): added
10619 SO_KEEPALIVE option so we get an error if the other side crashes
10621 1998-09-09 Alexandre Oliva <oliva@dcc.unicamp.br>
10623 * configure.in (CHIO): look for chio and AC_SUBST it
10624 (MT, CHS): if not found, use just the program name
10626 1998-09-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10628 * server-src/planner.c (last_level): return the last level
10629 even it is still on holding disk if reserve < 100.
10631 1998-09-09 Alexandre Oliva <oliva@dcc.unicamp.br>
10633 * server-src/reporter.c (divzero, divzero_wide): print `#'s on
10636 * server-src/amtape.c (show_init): no longer print `scanning'
10638 (show_init_show, current_init_all): call show_init, then print the
10639 appropriate `scanning' message
10640 Reported by David Wolfskill <dhw@whistle.com>
10642 * changer-src/chg-scsi.c (main): use new multi-configuration
10643 mechanism only if tape_device contains only a single digit
10645 1998-09-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10647 * server-src/planner.c (setup_estimate): Don't write a
10648 "mismatch: no tapelist record, but curinfo next_level0" message
10649 and force a level 0 when reserve < 100.
10651 1998-09-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10653 * server-src/holding.h (get_amanda_names): return a filetype_t
10655 * server-src/holding.c (get_amanda_names): return the filetype_t
10656 of the file or F_UNKNOWN if it's not an amanda file.
10657 * server-src/find.c (search_holding_disk): Use the new return
10658 type of get_amanda_names.
10659 * server-src/amflush.c (flush_holdingdisk): Don't write a
10660 "ignoring cruft file" message for chunk files,
10661 filetype is F_CONT_DUMPFILE.
10663 1998-09-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10665 * recover-src/extract_list.c (extract_files_child): don't write
10666 the samba password to the debug file.
10668 1998-09-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10670 * server-src/driverio.c (update_info_dumper): set inf.command to
10671 NO_COMMAND if reserve< 100 because if you force a level 0 with
10672 'amadmin force', it will do level 0 every days until you flush them
10675 1998-09-03 Matthias Urlichs <smurf@noris.net>
10677 * recover-src/uscan.l: recognize "?" as alias for "help"
10679 * configure.in (MAILER): recognize "mail" as well as "Mail" and
10682 * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
10683 sizes of directories and files
10685 * client-src/amandates.c (start_amandates): create amandates if
10686 error is either EINTR or ENOENT
10688 * common-src/dgram.c (dgram_send_addr): handle ECONNREFUSED by not
10689 dying when receiving, and retrying when sending, a packet. The
10690 server may get this error when a client reboots and hasn't started
10692 * common-src/protocol.c (handle_incoming_packet): ditto
10694 * server-src/driver.c (read_schedule): catch cases when the time
10695 goes negative. Some operators have the bad habit of syncing clocks
10698 * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
10700 * client-src/amandad.c (main): read the pipe from the child
10701 incrementally: the pipe buffer of many OSes is shorter than
10702 MAX_DGRAM. Instead of SIGCHLD, note end-of-data by way of
10704 (sigchild_jump, sigchild_flag): removed
10705 * client-src/sendbackup.c (main): instead of fork-and-exit, tell
10706 amandad to process our data by closing our end of the pipe
10708 1998-09-03 Alexandre Oliva <oliva@dcc.unicamp.br>
10710 * NEWS: another typo (too late :-(
10712 1998-09-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10714 * server-src/driver.c: amanda will not use an holding disk
10715 if the directory with the datestamp already exist.
10717 1998-09-03 Alexandre Oliva <oliva@dcc.unicamp.br>
10719 * Amanda 2.4.1 released
10721 1998-08-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10725 1998-08-27 Alexandre Oliva <oliva@dcc.unicamp.br>
10727 * docs/INSTALL: update some version numbers; SAMBA 1.9.18p10 has
10728 fixed the bug in p8; using p8 is not recommended any more
10729 * docs/SAMBA: ditto
10731 * config/config.guess: updated to libtool 1.2b's, in order to
10732 auto-detect some recent architectures
10733 * config/config.sub: ditto
10735 * server-src/amcleanup.sh.in (sbindir): amreport now lives in
10736 sbindir; added it to PATH and removed full pathnames to binaries
10738 1998-08-27 Blair Zajac <blair@gps.caltech.edu>
10740 * configure.in: Add the directory /usr/lib/fs/vxfs to the search
10741 path where configure looks for vxdump and vxrestore. This is for
10742 Solaris so it can automatically handle vxfs filesystems.
10743 * client-src/sendbackup-dump.c: add missing last NULL argument to
10745 * server-src/dumper.c: add missing last NULL argument to
10747 * NEWS: reorder 2.4.1 items into most to least important for most
10749 * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
10750 include systems where the Veritas filesystem is used.
10752 1998-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
10754 * man/amanda.8.in (nofull): only level 1 incrementals
10756 1998-08-20 Alexandre Oliva <oliva@dcc.unicamp.br>
10758 * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
10760 * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
10762 * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
10763 * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
10764 (chg-mtx): mentioned chg-zd-mtx
10766 1998-08-20 Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
10768 * changer-src/chg-zd-mtx.sh.in: new changer script for
10769 Zubkoff/Dandelion version of mtx.
10771 1998-08-19 Alexandre Oliva <oliva@dcc.unicamp.br>
10773 * docs/SAMBA: updated; documented new patch (sambatar.diff,
10774 available in the patches page) and requirements about backup user.
10775 * docs/INSTALL: documented new patch
10777 1998-08-18 Alexandre Oliva <oliva@dcc.unicamp.br>
10779 * client-src/sendsize.c (regex_s): refuse to compile if SAMBA_CLIENT
10780 and HAVE_DUMP_ESTIMATE are both defined: the regexp that matches the
10781 estimate from DU 4.0's dump also matches an output line from
10782 smbclient, that provides an incorrect estimate.
10783 * docs/SYSTEM.NOTES: document the problem
10785 1998-08-14 John R. Jackson <jrj@purdue.edu>
10787 * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
10789 1998-08-13 Alexandre Oliva <oliva@dcc.unicamp.br>, Marcel Hild <hild@id-pro.de>
10791 * configure.in (--with-portrange): validate and define PORTRANGE
10792 * example/config.site: document it
10793 * config/acconfig.h (PORTRANGE): prepare for configure define
10794 * common-src/stream.c (stream_server): use PORTRANGE to limit TCP
10795 unreserved server sockets
10797 1998-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
10799 * docs/FAQ: working around `dumps way too big'
10801 1998-08-11 Alexandre Oliva <oliva@dcc.unicamp.br>, Gunnar Gunnarsson <gunnar@ki.ericsson.se>
10803 * common-src/token.h (rxquote, shquote): new functions
10804 * common-src/token.c (rxquote) quotes a string into an equivalent
10806 (shquote): quotes all shell special meta-characters, so that a
10807 string can be safely passed down for shell interpretation in
10808 system() or popen()-like calls
10809 * server-src/amindexd.c (build_disk_table): quote the disk_name with
10810 both rxquote and shquote
10812 1998-08-11 John R. Jackson <jrj@purdue.edu>
10814 * changer-src/chg-manual.sh.in: put the debug file in DEBUG_DIR for
10815 security. Clean up and enhance logging. Fix locations of the
10816 changer files. Source the changerfile into the script so it can
10817 override the request() function and allow alternatives to /dev/tty
10818 (e.g. E-mail, syslog). Issue rewind before status (Solaris does
10819 not give a good status report right after a tape is loaded).
10821 1998-08-10 Nick Hibma <nick.hibma@jrc.it>
10823 * changer-src/chg-chio.pl.in: move to first slot if last is unused
10825 1998-08-07 Alexandre Oliva <oliva@dcc.unicamp.br>
10827 * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
10829 1998-08-07 Günter Felkel <G.Felkel@edelmann.de>
10831 * example/DIN-A4.ps: new file
10833 1998-08-06 Alexandre Oliva <oliva@dcc.unicamp.br>
10835 * tape-src/tapetype.c (initrandombytes): use random() instead of
10836 rand(), its low-order bits are more random
10837 (main): call srandom(seed) instead of srand(seed)
10838 (USE_RAND): if defined, reverts to using rand() and srand(seed)
10840 * docs/FAQ: some notes about driving real tape changers
10842 1998-08-05 Alexandre Oliva <oliva@dcc.unicamp.br>
10844 * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
10846 1998-08-04 Alexandre Oliva <oliva@dcc.unicamp.br>
10848 * client-src/sendsize.c: revert 1998-08-01's change, it wouldn't
10849 even compile, as amfree() expands to a statement, not an expression,
10850 so it cannot be used as the `increment' part of a for loop.
10852 * server-src/planner.c (main): if runs_per_cycle is set to zero or
10853 negative, set it to 1, in order to avoid division by zero.
10854 * server-src/amadmin.c (balance): ditto
10856 1998-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
10858 * client-src/sendsize.c: replace free(line) with amfree(line),
10859 because line is not ensured to be non-NULL
10861 * docs/FAQ: amandad: error receiving message
10863 * docs/FAQ: difference between skip-full and strategy nofull
10865 1998-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
10867 * docs/FAQ: software or hardware compression?
10869 * server-src/driver.c (adjust_diskspace): do not abort just because
10870 a holding disk file is missing
10871 (main): report warning if holding disk directory could not be
10872 created, and do not use it
10873 Reported by Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
10875 * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
10877 Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
10879 * server-src/conffile.c (get_holdingdisk): define chunksize 0 as
10880 INT_MAX/1024, and chunksize -1 as -INT_MAX/1024
10881 * server-src/driver.c (find_diskspace): accept negative chunksizes
10882 as the maximum size (in modulus) for using the holding disk
10883 * man/amanda.8.in (chunksize): document the usage of negative
10884 values, and improve the explanation of chunking
10885 * example/amanda.conf.in: ditto
10887 1998-07-29 Alexandre Oliva <oliva@dcc.unicamp.br>
10889 * docs/FAQ: disk offline
10891 1998-07-27 Alexandre Oliva <oliva@dcc.unicamp.br>
10893 * restore-src/amidxtaped.c (main): use tape_rewind() instead of
10896 * server-src/amcleanup.sh.in (reporter): update to call amreport.
10897 (amdump.<n>) update to use the same renaming technique introduced in
10898 June 30's change to amdump.
10900 1998-07-25 Michael Graff <explorer@vix.com>
10902 * changer-src/Makefile.am (install-exec-hook): support $(DESTDIR)
10903 * client-src/Makefile.am (install-exec-hook): ditto
10904 * man/Makefile.am (install-data-hook): ditto
10905 * recover-src/Makefile.am (install-exec-hook): ditto
10906 * restore-src/Makefile.am (install-exec-hook): ditto
10907 * server-src/Makefile.am (install-exec-hook): ditto
10909 * configure.in: link krb5 and com_err in for Kerberos support, if
10912 1998-07-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10914 * server-src/reporter.c (copy_template_file): add braces to
10916 * tape-src/tapeio.h: declare is_zftape to remove warning in
10917 amlabel.c and taper.c
10919 1998-07-23 Alexandre Oliva <oliva@dcc.unicamp.br>
10921 * server-src/driver.c (any_delayed_disk): new variable, to ensure
10922 that we do not leave the main driver loop if there are delayed disks
10923 but there are no active dumpers
10924 (main): instead of checking whether idle_reason is IDLE_START_WAIT,
10925 check whether there is any_delayed_disk for remaining in the loop
10926 (start_degraded_mode): set any_delayed_disk when needed
10927 Reported by Peter Walker <peter@talarian.com>
10929 1998-07-23 John R. Jackson <jrj@purdue.edu>
10931 * server-src/reporter.c (main): handle LPRCMD being undefined.
10933 1998-07-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10935 * client-src/selfcheck.c (check_suid): new function to check if a
10936 program is SUID root.
10937 * client-src/selfcheck.c (check_overall): check that runtar and
10938 rundump are SUID root.
10940 1998-07-22 Alexandre Oliva <oliva@dcc.unicamp.br>
10942 * configure.in: version number set to 2.4.1
10944 * recover-src/Makefile.am (LDADD): libamtape imports symbols from
10945 libamanda, so it must be listed first
10947 * changer-src/Makefile.am (LDADD): remove duplication of libamserver
10948 and libamanda, as they no longer provide symbols for each other
10949 * server-src/Makefile.am (LDADD): ditto
10951 1998-07-21 Blair Zajac <blair@gps.caltech.edu>
10953 * server-src/amrmtape.sh.in: now use amanda.conf's tapelist variable
10954 * server-src/amcheckdb.sh.in: now use amanda.conf's tapelist variable
10955 * server-src/amfreetapes.sh.in: now use amanda.conf's tapelist variable
10956 * server-src/amtoc.pl.in: now use amanda.conf's tapelist variable,
10957 make perl4 compatible
10959 1998-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
10961 * docs/FAQ (results missing): suggestions to work around the UDP
10964 1998-07-16 Alexandre Oliva <oliva@dcc.unicamp.br>
10966 * docs/FAQ (amrecover): a config name may have to be specified
10967 Reported by digital messiah <dmessiah@silcon.com>
10969 1998-07-15 Blair Zajac <blair@gps.caltech.edu>
10971 * server-src/reporter.c (main): declare optind
10973 1998-07-15 Alexandre Oliva <oliva@dcc.unicamp.br>
10975 * configure.in: created Amanda 2.4.1 branch
10977 * example/amanda.conf.in: strategy noinc is not implemented yet
10979 1998-07-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10981 * NEWS: new runspercycle keyword
10982 * server-src/conffile.h: new runspercycle keyword
10983 * server-src/conffile.c: new runspercycle keyword
10984 * server-src/amadmin.c (balance): new runspercycle keyword
10985 * server-src/planner.c (main): new runspercycle keyword
10986 * man/amanda.8.in: document new runspercycle keyword
10987 * example/amanda.conf.in: example for new runspercycle keyword
10989 1998-07-13 Alexandre Oliva <oliva@dcc.unicamp.br>
10991 * docs/FAQ: What to do if DUMP program is not available.
10992 * client-src/selfcheck.c (check_overall): if a needed program is
10993 missing, print an error message.
10994 Reported by Klaus Hoffmann <handatalog@csi.com>
10996 * */Makefile.am: checked library version numbers, no need for update
10998 * configure.in: version number set to 2.4.1b1
11000 1998-07-11 Alexandre Oliva <oliva@dcc.unicamp.br>
11002 * docs/FAQ: new entries: how to label tapes, (not) spanning large
11003 filesystems across tapes, how to enable index generation,
11004 overwriting selected tapes, cleaning up databases, selecting tape
11007 1998-07-10 Alexandre Oliva <oliva@dcc.unicamp.br>
11009 * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
11011 * configure.in (AC_OUTPUT): generate chg-chio.pl
11012 * changer-src/Makefile.am (EXTRA_DIST): removed chg-chio.c
11013 * changer-src/chg-chio.c: removed, as it was confusing make
11015 1998-07-10 Nick Hibma <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
11017 * changer-src/chg-chio.pl.in: new script, created to replace old
11018 chg-chio written in C
11019 * docs/TAPE.CHANGERS (chg-chio): document it
11020 * changer-src/Makefile.am (EXTRA_SCRIPTS): add chg-chio
11021 (EXTRA_DIST): still include chg-chio.c, just in case it is useful
11022 * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): add chg-chio
11024 1998-07-08 Alexandre Oliva <oliva@dcc.unicamp.br>
11026 * server-src/reporter.c (main): if no arguments are given, preserve
11027 original behavior; require config name otherwise. Perform better
11029 * example/DLT.ps (DrawHost): discard additional argument introduced
11030 in Steven Freed's modification
11031 * example/EXB-8500.ps (DrawHost): ditto
11032 * example/HP-DAT.ps (DrawHost): ditto
11034 * server-src/Makefile.am (amreport_SOURCES): build from reporter.c
11035 (driver_SOURCES) removed, no longer needed
11036 * man/Makefile.am (EXTRA_DIST): added amreport.8
11038 1998-07-08 Steven Freed <sfreed@gilasoft.com>
11040 * server-src/reporter.c (usage): new function
11041 (main): accept command-line arguments for selecting config name,
11042 output file, log file name to read from, postscript file to write
11044 (output_summary): print tape labels list, tape section numbers and
11046 * server-src/amdump.sh.in: run amreport
11047 * server-src/amflush.c (main): ditto
11049 * configure.in (BUILD_SERVER_PROGS_SBIN): add amreport
11050 (BUILD_SERVER_PROGS_LIBEXEC): remove reporter
11051 * man/amreport.8.in: new file
11052 * man/Makefile.am (man_MANS): added amreport.8
11053 * example/8.5x11.ps: new file
11055 1998-07-08 Alexandre Oliva <oliva@dcc.unicamp.br>
11057 * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
11059 1998-07-07 John R. Jackson <jrj@purdue.edu>
11061 * changer-src/scsi-chio.c: move #include's so this will compile on
11062 systems without <sys/mtio.h> (e.g. AIX).
11064 1998-07-06 John R. Jackson <jrj@purdue.edu>
11066 * client-src/sendsize.c (handle_dumpline): allow the dump block
11067 count estimate to be negative. Found by Lance A. Brown
11068 <brown9@niehs.nih.gov> on NeXT.
11070 * common-src/Makefile.am, common-src/security.c: add TEST code to
11071 security.c so people can do "make security" and have a test program
11072 to track down why they are getting "access as XXX not allowed from
11075 * common-src/security.c (bsd_security_ok): allow the remote user
11076 field in .amandahosts to be empty ala .rhosts.
11078 1998-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11080 * server-src/amcheck.c (start_server_check): report space use for
11081 holding disk if a negative value is given in the use parameter.
11083 * server-src/driver.c (main): compute holding disk space if
11084 a negative value is given in the use parameter..
11086 * man/amanda.8.in (use) : document negative use paramater for
11089 * example/amanda.conf.in (use): document negative use paramater for
11092 1998-07-04 Alexandre Oliva <oliva@dcc.unicamp.br>
11094 * man/amanda.8.in (reserve): document it
11095 * example/amanda.conf.in (reserve, gigabytes): ditto
11096 (etimeout) negative number stands for total estimate time
11098 * NEWS: documented major changes since amanda 2.3.0.4
11100 * docs/INSTALL: refer to patch-system for editing services and
11103 * docs/FAQ: added entries for common amdump and amcheck errors
11105 * COPYRIGHT: updated to 1998, refer to Amanda Development Team
11106 * AUTHORS: who is the Amanda Development Team
11108 1998-07-03 John R. Jackson <jrj@purdue.edu>
11110 * docs/SYSTEM.NOTES: add comment about using the variable device name
11111 on IRIX. Otherwise, IRIX will write 4KByte physical blocks, which
11112 it appears to read OK, but not if you take the tape to some other
11113 system that does what you tell it. Discovered by Steve E. Khoo
11114 (steve@gordian.com).
11116 1998-07-02 Alexandre Oliva <oliva@dcc.unicamp.br>
11118 * server-src/planner.c (setup_estimate): handle new disks with
11119 skip-full correctly.
11121 * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
11122 force it to be newer on distributions.
11124 1998-07-01 John R. Jackson <jrj@purdue.edu>
11126 * server-src/driverio.h: change reserved_space to unsigned long to
11127 match free_space() and avoid a compiler warning.
11129 1998-06-30 John R. Jackson <jrj@purdue.edu>
11131 * man/amanda.8.in: fix amrecover synopsis and add a short description.
11132 Noted by Brendan M Coffey <bcoffey@connix.com>.
11134 * example/amanda.conf.in: make tapecycle example fit dumpcycle value
11135 better. Noted by Tom.Croll@radisys.com and suggested comments from
11136 Alexandre Oliva <oliva@dcc.unicamp.br>.
11138 1998-06-30 Alexandre Oliva <oliva@dcc.unicamp.br>
11140 * server-src/amdump.sh.in (maxdays): set up with tapecycle+2
11141 (days): loops from 1 to $maxdays, but stops if amdump.$days does not
11142 exist, so that we only rename amdump log files that exist. This
11143 prevents too long loops in case of an infinite tapecycle.
11144 Reported by Nick Hibma <nick.hibma@jrc.it>
11146 1998-06-28 Alexandre Oliva <oliva@dcc.unicamp.br>
11148 * common-src/security.c (bsd_security_ok): accept case mismatches
11149 when comparing hostnames and usernames from amandahosts, and assume
11150 localuser if username is missing.
11151 * docs/INSTALL: clarify BSD security and amandahosts, WRT to
11153 Reported by Chris Shenton <chris@absinthe.shenton.org>
11155 * server-src/reporter.c (output_tapeinfo): degraded mode no longer
11156 implies incremental dumps only.
11157 Reported by Randy Dees <rrd@amherst.com>
11159 1998-06-26 John R. Jackson <jrj@purdue.edu>
11161 * configure.in: fix BSD/OS Kerberos include file location.
11163 1998-06-26 Alexandre Oliva <oliva@dcc.unicamp.br>
11165 * config/ltmain.sh: install official patch to libtool 1.2a
11167 * configure.in: do not set max file size for Solaris 2.6, it is no
11170 1998-06-26 Tim McNerney <mumbly@netcom.com>
11172 * common-src/fileheader.c (parse_file_header): accept missing
11173 PROGRAM in tape section header, for backward compatibility.
11175 1998-06-25 Blair Zajac <blair@gps.caltech.edu>
11177 * server-src/amflush.c: fix mismatch arguments to error()
11179 1998-06-24 Steven Freed <sfreed@gilasoft.com>
11181 * configure.in (dump-honor-nodump): fix test for `-h' support
11183 1998-06-24 Scott Mesches <mesches@allison.Colorado.EDU>
11185 * example/DLT.ps: new file
11186 * example/Makefile.am (EXTRA_DIST): add DLT.ps
11188 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
11190 * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
11192 * recover-src/extract_list.c (extract_files_child): handle
11193 IS_UNKNOWN dumptype as IS_DUMP
11195 * client-src/sendsize.c (getsize_dump): always create pipe for
11198 * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
11201 * amplot/amplot.awk: ignore `interface-state'
11202 Reported by Peter Walker <peter.walker@talarian.com>
11204 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
11206 * server-src/amrmtape.sh.in: enable verbose by default; implement -q
11208 * man/amrmtape.8.in: ditto
11209 Suggested by Nick Hibma <nick.hibma@jrc.it>
11211 1998-06-24 Nick Hibma <nick.hibma@jrc.it>
11213 * server-src/amrmtape.sh.in: better error reporting for incorrect
11216 1998-06-24 Dan Swartzendruber <dswartz@druber.com>
11218 * server-src/conffile.h (RESERVE): new keyword.
11219 * server-src/conffile.c (RESERVE): ditto.
11220 (getconf_seen): recognize "reserve" keyword.
11221 (getconf_int): return value of "reserve" keyword.
11222 (read_confline): parse "reserve" line.
11223 * server-src/driverio.h (reserved_space): new global
11224 * server-src/driver.c (main): compute holding disk space to reserve
11225 for degraded dumps.
11226 (start_degraded_mode): if we haven't hit degraded mode reservation
11227 limit, allow full dump.
11229 1998-06-18 Blair Zajac <blair@gps.caltech.edu>
11231 * config/ltconfig: update to 1.2a
11232 * config/ltmain.sh: update to 1.2a
11233 * config/libtool/libtool.m4: update to 1.2a
11235 1998-06-17 John R. Jackson <jrj@purdue.edu>
11237 * server-src/dumper.c (write_tapeheader): comment out some variables
11238 to get rid of a compiler warning.
11240 1998-06-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11242 * server-src/amadmin.c (bumpsize): write wrong equation for bump
11245 1998-06-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11247 * man/amanda.8.in: add info about the chunksize parameter
11248 of the holdingdisk.
11249 * man/amanda.8.in: add info about amstatus command
11251 1998-06-13 Alexandre Oliva <oliva@dcc.unicamp.br>
11253 * common-src/Makefile.am (libamanda_version): updated
11254 * tape-src/Makefile.am (libtape_version): updated
11255 * client-src/Makefile.am (libclient_version): updated
11256 * server-src/Makefile.am (libserver_version): updated
11258 * server-src/taper.c (read_file): if switching to the next file
11259 fails or there's no next file, do not send a `W' to taper writer.
11261 * server-src/changer.h (changer_clean): new function
11262 * server-src/changer.c (changer_clean): ditto
11264 1998-06-13 Michael C. Povel <mcp@ladyada.han.de>
11266 * changer-src/chg-scsi.c: added ejetct_tape and sleep for external
11267 tape devices, and changed some code to allow multiple drives to use
11268 their own slots. Also added support for reserverd slots.
11269 * changer-src/libscsi.h (get_clean_state, eject_tape): new functions
11270 * changer-src/scsi-chio.c (get_clean_state, eject_tape): implemented
11272 * changer-src/scsi-hpux.c (get_clean_state, eject_tape): do nothing,
11273 until someone implements them
11274 * changer-src/scsi-proto.c (get_clean_state, eject_tape): new
11276 * docs/TAPE.CHANGERS: document new configuration file format
11277 * example/chg-scsi.conf: sample configuration file
11278 * example/Makefile.am: add chg-scsi.conf to the distribution
11279 * server-src/amtape.c: add support for `clean' command
11281 1998-06-13 Alexandre Oliva <oliva@dcc.unicamp.br>
11283 * docs/SYSTEM.NOTES: clean-up
11285 * docs/FAQ: new file
11286 * docs/SUNOS4.BUG: removed
11287 * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
11289 * example/amanda.conf.in (bumpmult): fixed equation for threshold
11290 * man/amanda.8.in (bumpsize): fix threshold example.
11291 problem reported by Brian McEntire <brianm@fsg1.nws.noaa.gov>
11293 * server-src/logfile.c (open_log): open log file with mode 0600.
11295 * server-src/amdump.sh.in: refuse to run if either amdump or log
11297 * server-src/amflush.c (main): refuse to run if log exists.
11298 * server-src/amcheck.c (start_server_check): do not perform tape
11299 testing if amdump and/or log exist in logdir.
11301 1998-06-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11303 * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
11304 should not dup2( A, B ); aclose(A) when A == B
11306 1998-06-10 Alexandre Oliva <oliva@dcc.unicamp.br>
11308 * client-src/sendsize.c (getsize_dump): use killpgrp
11309 unconditionally, so we're not bitten by setuid dump programs.
11310 * client-src/killpgrp.c: enable unconditionally.
11312 * tape-src/tapetype.c: new program: calculates tapetype parameters.
11313 * tape-src/Makefile.am (EXTRA_PROGRAMS): added tapetype.
11314 * example/amanda.conf.in: point to tapetype program.
11316 1998-06-09 Alexandre Oliva <oliva@dcc.unicamp.br>
11318 * docs/SAMBA: added notes about (not) backing up registry files and
11320 * docs/INSTALL: point to docs/SAMBA for usage and limitations
11322 1998-06-08 Alexandre Oliva <oliva@dcc.unicamp.br>
11324 * configure.in (amanda_cv_print_command): removed; using PRINT
11327 1998-06-07 Todd Kover <kovert@omniscient.com>
11329 * add --with-owner option to allow installed binaries to be owned
11330 by someone other than the amanda user
11332 * add GB as valid holding disk size.
11334 1998-06-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11336 * server-src/amadmin.c (info): don't need to specify an host.
11338 * server-src/amadmin.c (due): new due command to write when a
11339 filesystem is due ffor next level 0 or how much days it is
11342 * server-src/amstatus.pl.in (dump_size): new function to report
11343 the size of a dump split on multiple files.
11345 1998-06-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11347 * recover-src/extract_list.c (read_buffer): write a message
11348 when amrecover timeout waiting for amrestore to send the dump.
11350 1998-06-04 John R. Jackson <jrj@purdue.edu>
11352 * client-src/getfsent.c (main): use a dynamically allocated string
11353 for the lookups since dev2rdev alters it on the fly and some systems
11354 drop core for trying to write into read only memory. Also add the
11355 capability of passing additional lookups on the command line.
11357 * common-src/Makefile.am, common-src/file.c (main),
11358 common-src/token.c (main), server-src/conffile.c (dump_configuration,
11359 main), server-src/diskfile.c (main), server-src/infofile.c (main):
11360 Clean up compiler warnings in the test programs and make them all
11363 1998-06-03 Alexandre Oliva <oliva@dcc.unicamp.br>
11365 * amplot/amplot.sh.in: modified command line argument parsing
11366 mechanism, so as to prevent shell quoting problems and unportable
11368 Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
11370 1998-06-02 John R. Jackson <jrj@purdue.edu>
11372 * server-src/amcheck.c (main), server-src/reporter.c (main): make
11373 sure internal errors, such as the mail command failing, get
11374 reported. In the case of amcheck, they go to stderr even if -m is
11375 set since there didn't seem to be anyplace better to do so and if
11376 this is running from a cron job it might get back to a real user.
11377 For reporter, the errors go to .../amdump along with everything
11378 else from the amdump script, and they should also go to .../log,
11379 except since it's reporter that's having the trouble, they probably
11380 will not make it into the mail report.
11382 1998-06-01 John R. Jackson <jrj@purdue.edu>
11384 * client-src/killpgrp.c: clean up minor compiler warnings by not
11385 building term_kill_{soft,hard} unless they are needed.
11387 * server-src/driverio.c (dumper_cmd): clean up compiler warning
11388 in printf format by forcing argument to always be long and using %ld.
11390 * server-src/driver.c: include <holding.h> to get declaration for
11391 unlink_holding_files and avoid a compiler warning.
11393 * common-src/amanda.h, common-src/match.c (validate_glob, match_glob,
11394 glob_to_regex), recover-src/amrecover.h, recover-src/extract_list.c
11395 (add_glob, add_regex, add_file, delete_glob, delete_regex,
11396 delete_file), recover-src/help.c (help_list), recover-src/uparse.y,
11397 recover-src/uscan.l, man/amrecover.8.in: add shell wildcard support
11398 for the add/delete amrecover commands. Add addx/deletex commands
11399 that use regular expressions. Support more characters in path names.
11401 1998-06-01 Dan Swartzendruber <dswartz@druber.com> via John R. Jackson
11403 * server-src/amlabel.c (main): check argc before referencing too
11404 far into argv for "-f".
11406 1998-06-01 Alexandre Oliva <oliva@dcc.unicamp.br>
11408 * docs/SYSTEM.NOTES: advise Linux users to use dump without
11411 * docs/INDEXING: update dumptype syntax
11413 1998-05-29 John R. Jackson <jrj@purdue.edu>
11415 * server-src/amindexd.c (uncompress_file, process_ls_dump,
11416 build_disk_table, is_dir_valid_opaque, opaque_ls): fix file
11417 descriptor leak, log the amadmin find command, fix error reporting
11418 from routines that do not generate system errors.
11419 * common-src/amanda.h: make sure errno is saved through amfree().
11421 1998-05-28 Alexandre Oliva <oliva@dcc.unicamp.br>
11423 * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
11424 * patches/tar-1.12.patch: ditto.
11426 * server-src/taper.c (endtape): do not log amount of used tape after
11427 entering degraded mode.
11429 * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
11432 1998-05-28 Paul R. Johnson <prj@mit.edu>
11434 * client-src/sendbackup.c (check_status): when checking whether
11435 return status 1 is valid for dump, make sure it was *not* tar that
11438 1998-05-28 Tom Lear <toml@accesscom.com>, John R. Jackson <jrj@purdue.edu>
11440 * man/amcheck.8.in: document new -Maddress command line flag.
11441 * server-src/amcheck.c (usage, main): add -Maddress command line
11442 flag to send mail to a specific address instead of mailto from
11445 1998-05-27 John R. Jackson <jrj@purdue.edu>
11447 * man/amrestore.8: update for host/disk/date triplets.
11448 * recover-src/extract_list.c (extract_files_setup): pass datestamp
11449 argument in new position and without -d.
11450 * restore-src/amidxtaped.c (main): remove -d checks.
11451 * restore-src/amrestore.c (restore, usage, main): fix file descriptor
11452 leak, move datestamp to host/disk triplet and allow all to be repeated.
11454 1998-05-27 Alexandre Oliva <oliva@dcc.unicamp.br>
11456 * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
11459 * client-src/sendsize.c (getsize_dump): close the other end of
11460 killpgrp's stdin pipe before trying to kill it, because we just
11463 * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
11464 supports HP/UX-like changer commands.
11466 * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
11467 interface is supported.
11469 * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
11472 1998-05-25 Allen Briggs <briggs@canolog.ninthwonder.com>
11474 * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
11477 1998-05-23 Alexandre Oliva <oliva@dcc.unicamp.br>
11479 * client-src/sendsize.c (getsize_dump): killpgrp must be direct
11480 child of sendsize, otherwise sendsize won't be able to kill it.
11482 1998-05-23 Alexandre Oliva <oliva@dcc.unicamp.br>
11484 * configure.in (bcopy, bzero, fread, fwrite, vfprintf, vprintf,
11485 vsprintf): check for these in stdlib.h
11486 (memmove): check for it in strings.h
11488 * common-src/amanda.h (memmove): fix declaration of memmove, so as
11489 to be compatible with the ones in common-src/memmove.c and
11490 regex-src/fake/memmove.c
11492 reported by Tim Potter <tpot@acsys.anu.edu.au>
11494 1998-05-20 Alexandre Oliva <oliva@dcc.unicamp.br>
11496 * client-src/sendbackup.c (check_status): when checking whether dump
11497 returned 1, make sure it was not tar; #ifdef'ed out the code that
11498 ignores exit status 2 from gnutar (will be compiled in only if
11499 IGNORE_TAR_ERRORS is defined)
11500 * client-src/sendbackup-gnutar.c (GNUTAR active filesystem errors):
11501 updated comment; compile in GNUTAR error messages as DMP_NORMAL if
11502 IGNORE_TAR_ERRORS is defined; compile in SMBCLIENT error messages as
11503 DMP_NORMAL if IGNORE_SMBCLIENT_ERRORS is defined.
11505 1998-05-20 Tom Lear <toml@accesscom.com>
11507 * client-src/sendbackup.h (tarpid): new variable, used to check
11508 whether it is gnutar that is running
11509 * client-src/sendbackup-gnutar.c (start_backup): set tarpid when
11511 * client-src/sendbackup.c (check_status): if gnutar returns 2,
11514 1998-05-19 Jean-Louis Martineau <martineau@IRO.UMontrealCA>
11516 * client-src/amandad.c: set parse_errmsg when unexpected packet
11517 * recover-src/amrecover.c: overflow in clean_pathname()
11518 * recover-src/extract_list.c: add log in delete_file().
11519 small bug when call clean_pathname()
11520 * server-src/amindexd.c: ORLD command is not working
11521 * server-src/dumper.c: fixe overflow
11523 1998-05-17 Alexandre Oliva <oliva@dcc.unicamp.br>
11525 * configure.in: do not check for MAXFILESIZE
11526 * config/acconfig.h: do not define MAXFILESIZE
11527 * server-src/conffile.c: use INT_MAX instead of MAXFILESIZE
11528 * example/amanda.conf.in: ditto
11530 * server-src/driver.c (interface_state): new function; print the
11531 free bandwidth for each interface.
11532 (short_dump_state): call interface_state before holdingdisk_state
11534 * ChangeLog: renamed from CHANGES. Original entries follow.
11536 fix skip-incr handling so that reporter reports SKIPPED
11537 instead of missing result.
11538 -Jim Simmons <s4i@sws6.ctd.ornl.gov>
11540 split big dumps ( > MAXFILESIZE ) in multiple files on holding disk.
11541 new chunksize parameter in holdingdisk description of
11542 the amanda.conf file.
11543 -J-L Martineau <martineau@IRO.UMontreal.CA>
11545 an amstatus command that give the current state of a run.
11546 -J-L Martineau <martineau@IRO.UMontreal.CA>
11548 possibility to amflush multiple runs on one tape.
11549 possibility to select dump by datestamp in amrestore (-d datestamp).
11550 -J-L Martineau <martineau@IRO.UMontreal.CA>
11552 amidxtrm keep index of all active tapes as listed in tapelist file.
11553 -J-L Martineau <martineau@IRO.UMontreal.CA>
11555 the tapelist file keep every active tapes.
11556 "amadmin reuse" and "amadmin no-reuse" to mark tapes you want
11557 to keep for a long time.
11558 -J-L Martineau <martineau@IRO.UMontreal.CA>
11560 amlabel will not overwrite an amanda tape.
11561 The -f flag allow to overwriting an amanda tape.
11562 -J-L Martineau <martineau@IRO.UMontreal.CA>
11564 be consistent and use 1048576 as a dump size everyplace instead of
11565 100000 in some places (mostly cosmetic). -JJ
11567 negative numbers are now accepted in the configuration file
11570 allow a total estimate time-out to be specified. -oliva
11571 Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
11573 fix amtoc behavior in case of failed reads.
11574 -Niek Rijnbout <niek@knoware.nl>
11576 index files are now stored in a directory tree ala curinfo instead
11577 of a flat namespace. -JJ
11579 amrecover will now restore files using SAMBA.
11580 -Rob Riggs <rob@devilsthumb.com>
11582 VXDUMP needs not be run as root, so it no longer enables
11583 rundump automatically. -oliva
11585 new `killpgrp' setuid-root program. It is used to kill
11586 VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
11588 -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
11590 fixed amrmtape so that it will delete from tapelist only the
11591 entry that corresponds to the specified tape, not others that
11592 contain the tape name as a substring.
11593 -Nick Hibma <nick.hibma@jrc.it> & oliva
11595 Added support for FreeBSD dump -h flag (honor nodump).
11596 -James E. Housley <housley@pr-comm.com>
11598 Added support for ZFTAPE on Linux.
11599 -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
11601 Added support for printing tape labels.
11602 -Scott Mesches <mesches@allison.Colorado.EDU>
11604 Do not let amrecover die because of SIGPIPE if the pager terminates
11605 early during a long listing. Use the PAGER environment variable if
11606 available, else "more". -JJ
11608 Change log() calls to log_add() so it does not conflict with the math
11609 function of the same name. Replace pname global variable with two
11610 functions to set/get. Get rid of libamnolog. -JJ
11612 chg-chio was renamed to chg-scsi, and now it will support not
11613 only chio.h, but also tape changer interfaces available on
11614 HPUX, Solaris 2.5, IRIX and possibly others. Currently, only
11615 chio and HPUX are implemented.
11616 -Eric Schnoebelen <eric@cirr.com>
11618 Numerous bugs/errors were fixed in chg-chio/chg-scsi. it now
11619 properly responds to -eject requests, among other things.
11620 -Eric Schnoebelen <eric@cirr.com>
11624 updated to libtool 1.2a. -oliva
11626 fix kerberos encryption to work. -Chris Ross <cross@uu.net>
11628 add --with-owner option to optionally not have things owned by
11629 the amanda user. (meant to be in 2.4.0) -kovert
11631 only call initgroups() if it is available. -oliva
11633 check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
11634 -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
11636 amindexd no longer considers prefixes of hostnames as valid
11639 fix strappend2 so that it accepts a NULL first argument.
11640 -Rob Riggs <rob@devilsthumb.com>
11642 pass kerberos encryption switch to client.
11643 -Fredrik Jönsson <fjo@nada.kth.se>
11645 rename afree to amfree, to work around IRIX 6.4's afree.
11646 -oliva, reported Stephan P. Martin <smartin@schlund.de>
11648 implement `strategy skip' just like `ignore'.
11650 reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
11652 amcheck now checks whether COMPRESS_PATH is executable, which
11653 would prevent server-compression and indexing from working.
11654 -oliva, reported by Peter Schultze <peter@mbi.ucla.edu>
11656 fixed dump estimate regular expression for DU 4.0.
11657 -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
11661 fixed memory corruption error in amtape.
11664 fixed VXDUMP support.
11665 -Andrew Ivanov <ivanov@mics.msu.su> & oliva
11667 typos fixed in chg-chs.
11668 -David Barr <dbarr@simplex.com>
11670 chg-mtx now prints error message if tapedev or changerdev must
11672 -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
11674 fixed amflush problem, reported by Dietmar Goldbeck
11675 <dietmar@telemedia.de> -oliva
11677 Version 2.4.0-980319
11679 chg-mtx should use changer-dev if specified.
11680 -Steve Khoo <steve@gordian.com>
11682 flex-related backward-compatibility problem fixed.
11683 -Norman K Scherer <nsche@seros-48.hac.com>
11685 ported to RISCOS 4BSD. -Harlan Stenn <Harlan.Stenn@pfcs.com>
11687 when amrecover starts up, it will warn you $CWD is not the root
11688 of the selected filesystem. -oliva
11690 removed all uses of #elif, because some C compilers won't
11691 handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
11693 fixed VDUMP-only (no DUMP defined) estimates.
11694 -Joern Behrens <jbehren@umpa05.gwdg.de>
11696 ported to UnixWare. -Jeff Moscow <jeff@rtr.com>
11698 improved vxdump support so that rundump will be used for vxfs
11699 filesystems only, and it will be enabled automatically. -oliva
11701 various portability problems fixed.
11703 taper will now log reason for tape error to log.<DATE> file,
11704 in addition to amdump.<n>.
11705 -Liudvikas Bukys <bukys@cs.rochester.edu>
11707 amflush now correctly updates the info database. -oliva
11708 reported by Liudvikas Bukys <bukys@cs.rochester.edu>
11710 sendsize now wait()s for tar and samba child processes. -oliva
11711 reported by Brian Morris <brian@mvhs.fuhsd.org>
11713 ensure that `amadmin find' reports multiple backups performed on
11714 the same day in the correct sequence.
11715 -Liudvikas Bukys <bukys@cs.rochester.edu>
11717 if backup server has multiple IP addresses, security code
11718 might reject it. -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
11720 vdump would not work. -oliva
11722 kerberos support was broken. -mike
11724 Version 2.4.0-980222
11726 retry tape open on AIX if it fails with EAGAIN errno.
11727 -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
11729 fix amrmtape so that it behaves well when files to amflush
11730 remain. Reported by Dietmar Goldbeck <dietmar@telemedia.de>
11732 retry tape rewind on FreeBSD. -Bob Willcox <bob@prm.com>
11734 read all output from amrestore otherwise, instead of the
11735 beginning of the next tape section, it would read garbage.
11736 -Terje Malmedal <tm@odin.funcom.com> & oliva
11738 formatting error in amoverview fixed.
11739 -Terje Malmedal <tm@odin.funcom.com>
11743 use vdump to dump advfs filesystems only. add support for vdump
11745 -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
11747 change index generation commands so that they are less prone
11748 to be fooled by blanks or strange characters in filenames.
11751 check whether exclude-list file exists before calling gnutar.
11752 If it does not, log a message to debugging file and discard it.
11753 selfcheck should check for that too, and print a warning message,
11754 but this is left for a future version. -oliva
11756 fix sendbackup-gnutar crashing problem. -oliva
11758 ensure that, in case of tape failure when dumping to tape, no
11759 incremental relative to the failed backup is performed.
11760 -oliva & Liudvikas Bukys <bukys@cs.rochester.edu>
11762 Fix buffer use and write() error handling in the index pipeline.
11763 -Dietmar Goldbeck <dietmar@telemedia.de>
11764 & Lars Fenneberg <lf@elemental.net>
11766 new index generation commands. -oliva
11770 accept curses and ncurses in addition to termcap for readline
11771 support, just as readline itself does. -oliva
11773 fix NO-ROOM handling when Kerberos encryption is enabled.
11774 -oliva & Eric Siegerman <erics@now.com>
11776 patch file for automake 1.2d provided. -oliva
11778 sendbackup.debug now contains the argument list of child
11781 wait() for child processes, such as server compressor, before
11782 accepting other commands.
11783 -Liudvikas Bukys <bukys@cs.rochester.edu>
11785 amrecover will print an error message if it is not run by root.
11786 It will not crash if you `pwd' before selecting a disk. -oliva
11788 updated to libtool 1.0i. -oliva
11790 fixed tape block size of vxdump on HPUX 10.20.
11791 -Andrew Ivanov <ivanov@mics.msu.su>
11793 Use "a" mode instead of "w" for the fdopen of the debug file.
11794 -David Lamkin <drl@net-tel.co.uk>
11796 allow multiple concurrent gnutar backups, by fixing amandates
11798 -Liudvikas Bukys <bukys@cs.rochester.edu>
11800 amdump should check for a hold file, as says the man-page.
11803 fix automatic enabling of USE_RUNDUMP for systems that require
11804 this. xfsdump support no longer requires USE_RUNDUMP to be
11805 defined, rundump will be enabled and used for xfs filesystems
11806 even if USE_RUNDUMP is not defined, unless XFSDUMP is not defined.
11807 This seems to have completely solved the xfsdump problems.
11810 when USE_RUNDUMP is enabled, instead of checking for read or write
11811 access in selfcheck, just test for the existence of disk devices.
11814 fixed code that computed the dump size when incomplete
11815 writes occurred in dumper. -Eric Siegerman <erics@now.com>
11817 amplot no longer crashes if there's no holding disk. -oliva
11821 fix xfsdump index generation command.
11822 -Robert Tarrall <tarrall@bamboo.colorado.edu>
11824 tape device wouldn't rewind if opened O_WRONLY.
11825 -Palle Girgensohn <girgen@partitur.se> & oliva
11827 use setpgid instead of setpgrp if available
11828 -Mark Woodford <woodford@uniprise.com> & oliva
11830 chg-mtx will check whether slot 6 is a cleaning tape or not.
11831 -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
11833 amrmtape updated to text database. -oliva
11835 incorrect NO-ROOM error when dumping directly to tape fixed.
11838 --with-user and --with-group become are now required. -oliva
11840 patch-system script much more configurable. -oliva
11842 amindexd must get an exact match for diskname.
11843 -Richard Kail <e8903122@student.tuwien.ac.at> & oliva
11845 fix serial number message in amflush
11846 -Liudvikas Bukys <bukys@cs.rochester.edu>
11848 removed backslashes from inside macro calls.
11849 un-indented # directives.
11850 -Gregory Neil Shapiro <gshapiro@WPI.EDU>
11852 bsd-security is now enabled by default. -oliva
11854 fixed estimate command for XFSDUMP.
11855 -Mark Radleigh <radleigh@image.ucr.edu>
11856 & Jeff Moskow <jeff@rtr.com>
11860 documented etimeout configuration option. -oliva&jrj
11862 prevent a few crashes in dumper and reporter. -jrj
11864 reporter would report the same host and disk for RESULTS MISSING.
11867 fix a few file-locking configure bugs. -oliva
11869 chg-multi updates and bugfixes.
11870 -Liudvikas Bukys <bukys@cs.rochester.edu>
11874 amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
11876 New --disable-libtool configure option, for those who really don't
11877 want libraries to be installed. Shared libraries won't be
11878 built, of course. -oliva
11880 samba-related bugfixes.
11881 -Klaus Thiele <kth@becker-software.com>
11883 xfsdump, DNS and amidxtaped bugfixes. -martineau
11885 exclude-list support was broken, the filename was not copied
11886 to the gnutar argument list.
11887 -Stefan Bohm <Stefan.Bohm@rp-online.de>
11889 chg-chio still thought it was seagate-changer, and contained a
11890 few bugs. -Tim Tsai <tim@futuresouth.com>
11892 New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
11896 Make sure amverify waits for the tape device to be ready before it
11897 starts reading each section. -oliva
11899 Fix amrecover so that it accepts filenames with blanks.
11900 -J. Shirk <jshirt@ksu.edu> & oliva
11902 Add a TIMEOUT config file parameter to replace the hard coded value
11903 in planner. -Daniel David Benson <bensond@ucdavis.edu>
11905 Change amrecover/amindexd/amidxtaped to require a SECURITY
11906 exchange if --with-bsd-security is enabled. It is done on a
11907 reserved port, which means amrecover must be run as root and that
11908 amindexd/amidxtaped need an entry for the incoming amrecover in
11909 either .rhosts or .amandahosts (Kerberos is not yet supported). --JJ
11911 Make our internal TEXTDB the default database style for the infofile.
11912 If you wish to keep using a dbm style database use the configure
11913 option "--with-db={db,dbm,gdbm,ndbm}".
11916 Sanitise the disk name in the TEXTDB code.
11917 **NOTE** if your infofile database uses TEXTDB (which has only been
11918 available since Amanda-2.4.0b1) and you have '/'s in the
11919 first field in disklist you will need to 'amadmin export'
11920 the data using the old version of Amanda, 'mv' the old
11921 database out of the way and 'amadmin import' it back again
11922 using the new version. When you are happy with the new
11923 version you may delete the old database.
11926 Get rid of DEV_ROOT/DEV_RROOT and figure out the raw name on the
11927 fly by trying a leading 'r' before each path element one at a time
11928 until we find a character device. This should handle all the current
11929 cases plus things like Solaris DiskSuite that have /dev/md/rdsk/xxx
11932 Change kill logic in sendsize to try TERM first, then KILL if that
11933 does not get dump's attention. This fixes a problem on AIX 4.x
11934 where dump was always getting a KILL and leaving orphaned message
11935 queues, which would eventually run the system out of resources. -JJ
11937 Extensive buffer management, bug and defensive coding overhaul
11939 * Use proper fgets/fread/read buffer size.
11940 * Wrote agets and areads to get a line without buffer overflow
11941 and changed most gets/fgets and some read calls to use it.
11942 * Replaced all *scanf("...%s...") with explicit pointer work.
11943 * Replaced most fixed size buffers with dynamic ones. This has
11944 no doubt introduced some memory leaks.
11945 * Replaced most sprintf calls with vstralloc (new routine).
11946 * Added overflow checks to some remaining explicit buffer
11948 * Made almost all read() and write() calls into loops to handle
11949 short and broken up transfers.
11950 * Fixed potentially uninitialized fstype field.
11951 * Added more sanity checks when parsing various things, including
11952 converting some assert() calls to real code.
11953 * The pattern amtrmidx used to find old index files to delete
11954 thought the date field was YYYY-MM-DD, but it is YYYYMMDD,
11955 so no files were being deleted.
11956 * Limited the number of directories listed by amflush to 26 to
11957 avoid funny characters in the user prompt.
11958 * Changed some of the amrecover routines to soak up the rest of
11959 the continuation lines after an error.
11960 * If a dumper dies, driver still tries to send a QUIT command
11961 which fails because the file descriptor has been closed.
11962 * Wrote afree macro that calls free and then sets the pointer
11963 to NULL. Changed most free calls to afree.
11964 * Wrote aclose/afclose/apclose macros to do the associated close
11965 and then set the argument to something invalid (-1 or NULL).
11966 * Check the file descriptor before calling FD_ISSET in dumper.
11967 Otherwise it goes to -1 on EOF and FD_* doesn't like that.
11968 * Call aclose() after FD_CLR (so the descriptor is not -1).
11970 * Added some TEXTDB support code to the infofile test program.
11971 * Set it up so -DPROTO_DEBUG could come from the compiler command
11972 line instead of having to modify the source.
11973 * Added -t command line flag code to sendbackup.c to support some
11975 * Added a test to amcheck to see if the log file is writable
11976 (if it already exists). During debugging, I keep leaving one
11977 around owned by root :-).
11978 * Changed upper limit on close loops from 255 to FD_SETSIZE.
11979 This probably needs some more study.
11982 If krb4 auth was compiled in but not enabled, clients would hang
11983 forever. -Aidan Cully <aidan@panix.com>
11985 Make sure SAMBA will not clear archive bits when performing an
11986 incremental backup, so any incremental will be a level 1.
11989 Add a LOGDIR option to amanda.conf and use it to replace the
11990 --with-logdir option to configure (this was only used for the
11991 amdump files) and the logfile option in amanda.conf. Log
11992 files are now LOGDIR/log and amdump files are LOGDIR/amdump.
11993 Note: if there is a LOGFILE option in amanda.conf it has its
11994 filename removed and is used as the LOGDIR (eg, if you have
11995 "logfile /usr/adm/amanda/log" in amanda.conf it is translated to
11996 "logdir /usr/adm/amanda" instead). This should not cause a
11997 problem for most sites.
12000 Remove --with-dbdir option from configure. This was only used
12001 to setup things for the man pages and example files. Oh.. and
12002 amrmtape. Fix this as well.
12005 Remove --with-indexdir option from configure. This is obtained
12006 from amanda.conf at run time. Also fix things so that it *is*
12007 obtained from amanda.conf in all cases.
12010 This is no longer tested on configure.in, since it is
12011 expressly forbidden to include kernel headers under glibc,
12012 according to Matthias Urlichs <smurf@noris.de>. However, Eric
12013 Doutreleau <ed@cti.ecp.fr> said he needed to include this
12014 header file in order to build amanda on
12015 sparc-unknown-linux-gnu. -oliva
12017 It is now possible to specify a username to be used to backup
12019 -Jean-Louis Martineau <martinea@iro.umontreal.ca>
12021 Make sure dumper replies with ABORT_FINISHED when a PORT-DUMP
12022 is aborted because of tape error.
12023 -Michael C. Povel <Michael.Povel@hub.de>
12025 Amcheck checks only for the needed features.
12026 -Jean-Louis Martineau <martinea@iro.umontreal.ca>
12028 Performance and memory-usage improvements to amrecover.
12029 -Jean-Louis Martineau <martinea@iro.umontreal.ca>
12031 Use extended regular expressions.
12032 -Noel Hunt <noel@jpmorgan.com>
12034 Fixed regular expressions for samba support.
12035 -Brian Fernald <fernald@nsi.edu>
12037 Fixed a few bugs that caused arithmetic exceptions in planner.
12038 -Bob Willcox <bob@luke.pmr.com>, Evan Champion
12039 <evanc@synapse.net>, scott and oliva
12041 amrecover should now be able to handle GNUtar restores.
12042 -Jean-Louis Martineau <martinea@iro.umontreal.ca>, plus
12043 incremental (-G) patch by Lars Fenneberg <lf@elemental.net>
12045 Ported to SINIX (Reliant Unix V5.43).
12046 -Michael Schmitz <mschmitz@iname.com>
12048 Configure now looks for large file support and will use it under
12049 Solaris 2.6 and above.
12050 -Blair Zajac <blair@gps.caltech.edu>
12052 Compatibility problems fixed for:
12053 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
12057 New changerfile and changerdev configuration keywords, that
12058 allow changer scripts to be configured in the main amanda
12059 configuration file. Each changer script has been adapted, so
12060 that it uses those flags whenever possible. Also,
12061 documentation about built-in scripts has been added to
12062 docs/TAPE.CHANGERS. -oliva & Eric Schnoebelen
12063 <eric@egsner.cirr.com>
12065 --with-debugging now accepts a directory name, where debugging
12066 files should be stored. -John R. Jackson <jrj@cc.purdue.edu>
12068 Compatibility problems fixed for:
12069 NextStep 3.3: Fabrice GAILLARD <gaillard@ina.fr>
12070 SCO OpenServer V5: Christopher B. Olsen <colsen@compus.com>
12071 AIX: Georg Rehfeld <georg@wmd.de>
12073 Planner would core dump if it had to delay dumps. -Georg
12074 Rehfeld <georg@wmd.de>
12076 Added patch for samba to support very long filenames. -Todd
12077 Pfaff <todd@edge.cis.mcmaster.ca>
12079 Added VXDUMP support to estimate program. -oliva & John
12080 R. Jackson <jrj@cc.purdue.edu>
12082 Fixed amflush so that it cd's to the configuration directory
12083 before invoking reporter. -oliva
12085 driver no longer opens the infofile, so a deadlock is
12086 prevented. -oliva & John R. Jackson <jrj@cc.purdue.edu>
12088 Fixed typo in sendbackup-dump that would prevent compilation
12089 if either xfsdump or vxdump were enabled. -oliva
12091 Debugging messages produced by sendbackup are no longer
12092 included in the dump stream. -oliva
12094 amrestore should wait for the child process to die before
12095 re-opening the tape device. -Dietmar Braun
12096 <dietmar@tin-lizzy.hig>
12100 fixed race condition in debug file open operation. -oliva and
12103 exclude-list and exclude-file are correctly handled by
12104 sendsize. -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
12106 fix some kerberos4 problems; no longer require low ports for
12107 kerberized connections; now use amanda@REALM instead of
12108 amanda.amanda@REALM in .klogin's. -kovert
12110 amrecover no longer depends on GNU flex library. -oliva
12112 Ensure that malloc(0) is not called. -Wolfram Schmidt
12113 <Wolfram.Schmidt@iao.fhg.de>
12115 Compression is now performed where specified, and server
12116 compress best specifications are obeyed. -oliva
12118 genversion now correctly recognizes the selected locking scheme.
12119 -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
12123 Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
12125 AIX's restore support added to amrecover. -David B. Anderson
12126 <dbanders@mail.physics.utah.edu>
12128 Dump process would not be killed unless it supported the -E
12129 flag (flipped #ifdef): fixed. -Steve Bower <sbower@raytheon.com>
12131 --with-testing now supports a trailing argument, that
12132 specifies the a string to be appended to service names. -oliva
12134 Recent versions of Samba require additional arguments so that
12135 estimates and total sizes are logged to stdout, not to syslog.
12136 -Ernie Oporto <ernie_oporto@MENTORG.COM> & Norbert Holzknecht
12137 <Holzknecht@fs31.vdeh-bfi.de>
12141 Improved planner backup-delaying mechanism. -scott
12143 Concurrent estimates are now supported. -oliva
12145 Shared library support included with GNU libtool. -oliva
12147 New hard-link-based locking mechanism for operating systems
12148 that do not support standard locking system calls. -scott
12150 New configuration file format, simpler and easier to
12153 New curinfo database format that uses only text files. The
12154 old dbm format is used by default, though. -scott
12156 DGUX support. -Brian Harvey <bharvey@raven.phs.com>
12158 Tentative HPUX vxdump support. -oliva
12160 Integrated amgetidx into dumper/sendbackup protocol. This
12161 ***breaks backward compatibility***! -oliva
12163 Have sendbackup-dump and sendbackup-gnutar list the actual
12164 program that should be used to restore a file from a backup
12165 instead of just listing restore or gtar. -blair&oliva
12167 Have configure check for the initgroups() declaration in
12168 unistd.h in addition to grp.h and sys/types.h, which is where
12169 some OSes have the declaration. -blair
12171 SAMBA backups wouldn't succeed if GNUTAR listed incrementals
12172 were enabled. SAMBA password file can now specify workgroup
12173 and may contain comments. -oliva
12175 Fixed xfsdump support. -oliva
12177 Fixed srvcompress option. -oliva
12179 Fixed exclude/exclude-list support. -oliva
12181 Change umask to 066 before creating index file in /tmp. -oliva
12183 Fixed autoconf for gdbm on linux. -oliva
12185 configure now seeks out a few possible locations for
12186 kerberos4 includes and tries to find the correct path if
12187 the kerberos bits have been installed. It's possible for
12188 someone to just specify the root of a kerberos tree for
12189 where the bits live, as well. -kovert
12193 Have bsd_security_ok() in amandad return 1 when BSD security is
12194 not turned on. Patch from Michael C. Grant
12195 <mcgrant@rascals.Stanford.EDU>.
12197 Add a configure option, --with-db, which lets the user specify
12198 the database library to use. The available codes to look for
12199 are db,dbm,gdbm,ndbm. The new configure code goes to a lot
12200 more length to find pairs of header files and libraries. If a
12201 header file exists and the library does not, but dbm_open() is
12202 found by linking against -lc, then that header file is used.
12203 Patch from Blair Zajac <blair@gps.caltech.edu>.
12205 Fixed bug at line 158 where selfcheck was testing that the
12206 result returned by open() was nonzero. The correct thing to do
12207 is check for non-negative values returned by open(). Changed
12208 the "ERROR" in line 169 to "OK" to prevent selfcheck from
12209 flagging the non-existence of /etc/amandapass as an error.
12210 Using "OK" in this line flags this condition as an informative
12211 statement rather than an error - which is to say this will be
12212 reported along with other errors but it isn't enough in itself
12213 to generate an error report. The reason that I think this is
12214 the right fix is because although every Amanda client is
12215 capable of backing up PCs using smbclient it isn't the case
12216 that we will back up PCs with every Amanda client. This also
12217 implies that we don't want to have /etc/amandapass files on all
12218 these machines either. If an Amanda client does have a samba
12219 "//host/share" entry in its disklist file then selfcheck will
12220 flag the non-existence of the /etc/amandapass file on line 105
12221 when it attempts to check that partition, so I believe that
12222 this is a safe fix. Patch from Michael Brantley
12223 <Michael-Brantley@deshaw.com>.
12225 Have all calls to gethostname() leave the result in character
12226 arrays of length 1025. This will make sure that gethostname
12227 behaves correctly. Patch from blair Zajac
12228 <blair@gps.caltech.edu>.
12230 Have amrecover.c include history.h or readline/history.h if
12231 configure finds it. Patch from blair Zajac
12232 <blair@gps.caltech.edu>.
12234 Have Amanda use cat if gzip and compress cannot be found. In
12235 this case, do not #define COMPRESS_FAST_OPT, COMPRESS_BEST_OPT,
12236 or UNCOMPRESS_OPT as "" since cat will look look for a file by
12237 the name of "". Place #ifdef's around code that uses any of
12238 the _OPT defines. Patch from Blair Zajac
12239 <blair@gps.caltech.edu>.
12241 Rewrite amgetidx to use amandad instead of rsh/rcp. amgetidx
12242 now only gets the index files from a given day. It now takes
12243 two optionally arguments <on day> or <ago days>. <on day> lets
12244 the user specify the day in one of the forms YYYYMMDD MMDD DD
12245 YYYY-MM-DD --MM-DD ---DD. <ago days> gets the files from days
12246 days ago. Have configure look for an appropriate directory to
12247 use for the temporary files on the clients. Use /var/tmp, then
12248 /usr/tmp, and if neither of those exist, then use /tmp. Have
12249 selfcheck check if the index holding directory has enough space
12250 in it. Add a new program called sendindex which sends the
12251 index files. Add the file docs/INDEXING which describes the
12252 index code. Patch from Alan McIvor <alan@auck.irl.cri.nz>.
12254 Have configure set up mt to use either the -f or the -t option
12255 depending upon the operating system. Patch from Blair Zajac
12256 <blair@gps.caltech.edu>.
12258 Include the amanda_tapetypes.txt file as docs/TAPETYPES. File
12259 composed by Chris Stacey <chris@snrc.uow.edu.au>.
12261 Allow certain dumptypes to be kicked off at specific times.
12262 Add a new, optional, parameter to the dumptype description in
12263 the config file. The parameter is called "starttime" and takes
12264 one argument which is a time of day (local timezone) formated
12265 as either hhmm or hmm (no `.'s, no `:'s, just an integer).
12266 define dumptype comp-user-2am {
12267 comment "Non-root partitions on fast machines"
12268 options compress-fast
12272 Any partitions listed in disklist with this dumptype will be
12273 fired off no earlier than 2am. If 2am today is less than 43200
12274 seconds past (12 hours ago) it will assume you meant 2am today
12275 and fire the dumps off right away. But if 2am today is more
12276 than 12 hours in the past, it will wait till 2am tomorrow.
12277 Patch from Brad Huntting <huntting@misc.glarp.com>.
12279 Totally rewrite the socket buffering code for dumper.
12280 Eliminate SO_SNDTIMEO and SO_RCVTIMEO setsockopt calls. Remove
12281 the check for HAVE_SO_SNDTIMEO from configure. Add a new
12282 option to configure named --enable-buffered-dump to enable this
12283 code. Patch from Brad Huntting <huntting@misc.glarp.com>.
12285 Have amflush call setsid() to detach amflush from the
12286 controlling terminal. Patch from Ken Laprade
12287 <klaprade@harris.com>.
12289 Have configure correctly work on systems where dbm_open is in
12290 libc. Patch from Farzad Farid <farzy@sgip.fr>.
12292 Patches to amrmtape which remove C style comments and let the
12293 script remove a tape if there is only one tape in the tapelist
12294 file. Patch from Andrew A. Ivanov <IVANOV@mics.msu.su>.
12296 Sprintf formatting error in amgetidx fixed. Patch from Yossi
12297 Gottlieb <yogo@xpert.com>.
12299 I'm using a Sony SDT/STL-7000 4mm DAT changer. I could not
12300 find any method of directly controlling the device, except for
12301 simply using the 'offline' mt command for advancing to the next
12302 tape. Using this method, however, I could not go beyond the
12303 last cassette (that is, to roll back to the first one). This
12304 means the device is currently being used as a simple gravity
12305 changer, only able to change forward. The chg-generic.conf
12306 should list the default tape device for all slots, disable
12307 'needeject', enable 'gravity' and enable the new option named
12308 'multieject'. Patch from Yossi Gottlieb <yogo@xpert.com>.
12310 Update the example chg-generic.conf file to include comments
12311 that describe how to use the multieject feature of the script.
12312 Patch from Yossi Gottlieb <yogo@xpert.com>.
12314 Protocol seems to loop when a A_TIMEOUT occurs because
12315 p->reqtries was not being decremented. Problem noted by Neal
12316 Becker <neal@ctd.comsat.com>.
12318 About half the calls to gethostname() in Amanda fail to
12319 null-terminate properly. This patch makes them all
12320 consistent. In addition it updates sendbackup-dump and
12321 sendbackup-gnutar so they handle USE_FQDN is a way consistent
12322 with the amindex stuff. In particular when USE_FQDN is set,
12323 the dump clients will not truncate their hostname before
12324 putting it in the dump headers. My patches to amflush are
12325 already in the Amanda betas so amflush should be able to match
12326 up both FQDN and non-FQDN clients against FQDN and non-FQDN
12327 disklist files. I also fixed an error message that was
12328 attributed to gethostname when it actually came from
12329 getpeername. Patches from James Mathiesen
12330 <james@nyc.deshaw.com>.
12332 I have run into the problem, on a Linux system, where the first
12333 time I run configure it generates valid Makefiles and Amanda
12334 compiles without problem. If I run configure again, or I alter
12335 a Makefile.in or something which causes autoconf to be called,
12336 the resulting Makefiles are no good - the programs in
12337 server-src don't finish linking because there is no dbm
12338 library. That is, the first time through configure -lgdbm is
12339 added to LIBS but the second, and any subsequent times, it is
12340 not. Patch from Alan McIvor <alan@auck.irl.cri.nz>.
12342 I've just found a bug that has prevented Amanda from running on
12343 my site for almost one week. Just after a dumper replied that
12344 it timed-out, the driver would send it another dump request.
12345 Then the driver would log to amdump an event of receiving a
12346 message from the dumper, but that message would be empty, the
12347 holding file for the requested filesystem would not exist, and
12348 driver would quit. It turned out that the problem was that
12349 dumper started to close its sockets (datafd, mesgfd and outfd)
12350 since release 2.3.0.4b3. outfd is initialized before invoking
12351 startup_dump, but it is sendbackup_response, intended to be
12352 invoked by the amandad protocol driver, that opens sockets and
12353 initializes datafd and mesgfd. If sendbackup_response is never
12354 run (because the amandad request times out), datafd and mesgfd
12355 will not be initialized, so they may contain already closed
12356 (and possibly already reopened) file descriptor numbers or
12357 still be uninitialized, containing any garbage, but usually 0
12358 --- but 0 is stdin, used for reading commands from the driver,
12359 it should not be closed! I've solved the problem by
12360 initializing them to -1 in startup_dump. Patch from Alexandre
12361 Oliva <oliva@dcc.unicamp.br>.
12363 Include declarations for select(), bind(), connect(), fread(),
12364 fwrite(), getopt(), getpeername(), getsockname(), getsockopt(),
12365 initgroups(), listen(), lstat(), mktemp(), mktime(), puts(),
12366 recvfrom(), select(), sendto(), setpgrp(), setsockopt(),
12367 shmat(), shmctl(), shmdt(), shmget(), socketpair(), sscanf(),
12368 strftime(), strncasecmp(), system() if the system does not
12369 declare these in any header files. Patch from Blair Zajac
12370 <blair@gps.caltech.edu>.
12372 Have configure correctly substitute for DB_DIR and LOG_DIR in
12373 example/amanda.conf when --prefix was not used. Problem noted
12374 by Philippe Charnier <charnier@xp11.frmug.org>.
12376 Include seagate-changer.c from Larry D. Pyeatt
12377 <pyeatt@cs.colostate.edu>. This program was written to control
12378 the Seagate/Conner/Archive autoloading DAT drive. This drive
12379 normally has 4 tape capacity but can be expanded to 12 tapes
12380 with an optional tape cartridge. This program may also work on
12381 other drives. This program works for me under Linux with Gerd
12382 Knorr's <kraxel@cs.tu-berlin.de> SCSI media changer driver
12383 installed as a kernel module. The kernel module is available
12385 http://sunsite.unc.edu/pub/Linux/kernel/patches/scsi/scsi-changer*
12386 Since the Linux media changer is based on NetBSD, this program
12387 should also work for NetBSD, although I have not tried it. It
12388 may be necessary to change the IOCTL calls to work on other
12391 Add a new configure option, --with-group, which tells Amanda
12392 the group to install all files as. Patch from Alexandre Oliva
12393 <oliva@dcc.unicamp.br>.
12395 If --with-bsd-security was not set, then dumper would not find
12396 the amanda/udp port to use to connect to clients. Patch from
12397 Alan McIvor <alan@auck.irl.cri.nz>.
12399 The order of dump programs to search for (ufsdump, vdump, dump,
12400 backup) didn't work on AIX systems, where backup should be used
12401 but a program named dump exists on the system. Patch by Blair
12402 Zajac <blair@gps.caltech.edu>.
12404 The configure --with-mmap was not working properly since
12405 configure was using the wrong variable to see if the system had
12406 a working mmap(). Problem noted by Keith Mitchell
12407 <kmitch@weenix.guru.org>.
12411 Save the results of getchar() into int's instead of char's in
12412 amidxtaped.c. Patch by Blair Zajac <blair@gps.caltech.edu>.
12414 Fix sendbackup-gnutar so that it can be compiled with a K&R
12415 compiler. Patch by Blair Zajac <blair@gps.caltech.edu>.
12417 Since I installed Amanda 2.3.0.4b3, I noticed some annoying
12418 messages in amdump:
12419 dumper: pid 8696 setsockopt(SO_SNDTIMEO): Invalid argument
12420 This is because Solaris 2.5 does declare SO_SNDTIMEO in
12421 sys/socket.h, but fails to setsockopt with the given
12422 arguments. Unfortunately, it is not documented, so I could not
12423 find out the correct way to do this, so I just added a test in
12424 configure to check whether SO_SNDTIMEO works as expected or
12425 not. Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12427 Include amplot-2.2.6 written by Olafur Gudmundsson
12428 <ogud@tis.com> into Amanda. Have amplot be configured using
12429 configure instead of amplot.conf. It will be installed if
12430 gnuplot and the version of awk configure finds can handle
12431 variable assignment from the command line. I also changed some
12432 of the command line options so that the amdump files will not
12433 be compressed unless amplot is told to do so on the command
12434 line. It also takes a new command line option, -t, which lets
12435 the user set the time of the right side of the plot. Work done
12436 by Blair Zajac <blair@gps.caltech.edu>.
12438 Made rth-changer check all system calls for valid returns.
12439 Patch by Blair Zajac <blair@gps.caltech.edu>.
12441 amrestore.c and sendbackup-common.c would do an ifdef on
12442 HAVE_GZIP, which was no longer being defined if Amanda was
12443 using gzip. Now, define HAVE_GZIP if gzip is being used.
12444 Patch by Blair Zajac <blair@gps.caltech.edu>.
12446 Include a script, amoverview, that outputs an overview of all
12447 of the backups done on all of the disks. Script written by
12448 Dave Disser <disser@sdd.hp.com>.
12450 The prototype for amname_to_fstype() is missing in
12451 createindex-dump.c when xfsdump is available. Patch from Ken
12452 Laprade <klaprade@harris.com>.
12454 Apparently SGI provides a dummy libsun.a that does not really
12455 have anything in it. I guess this tricks configure into adding
12456 it to the Makefile. Have configure not check for libsun.a on
12457 SGI systems. Patch from Ken Laprade <klaprade@harris.com>.
12459 The global variable overwrite in amcheck.c apparently is seen
12460 as a potential conflict with the overwrite() curses function
12461 which is apparently in SGI's libtermcap.a. Declaring the
12462 variable static eliminates the warning. Patch from Ken Laprade
12463 <klaprade@harris.com>.
12465 Add a new configure option, --with-fqdn, which allows Amanda to
12466 back up systems in different domains. This requires that the
12467 disklist file have the fully qualified domain names (FQDNs)
12468 listed. Patch from Joe Ammond <Joe.Ammond@ee.gatech.edu>.
12470 Include rundump, a setuid program that runs dump as root. This
12471 is used under OSF1 systems. Patch from Alexandre Oliva
12472 <oliva@dcc.unicamp.br>.
12474 Install setuid files executable only by the owner and group of
12475 the files. This stops other users from running these programs,
12476 making security tighter. Patch from Alexandre Oliva
12477 <oliva@dcc.unicamp.br>.
12479 On FreeBSD 3.0, amanda.h needs to include <sys/types.h> before
12480 <dirent.h>. Problem noted by Keith Mitchell
12481 <kmitch@weenix.guru.org>.
12483 Amanda had a bug regarding the recent addition of support for
12484 excluding files in GNUTAR. planner and sendsize did not
12485 understand each other about empty exclusion lists, so there
12486 were failures using gnutar, as dump does not support excludes.
12487 Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12489 Fixed a problem in configure where DUMP was being set to
12490 /no/restore/available when no restore program could be found
12491 instead of setting RESTORE to this. Patch from Alexandre Oliva
12492 <oliva@dcc.unicamp.br>.
12494 Have no-changer and hp-changer check for the existence of the
12495 logging directory before trying to use it. Patch by Blair
12496 Zajac <blair@gps.caltech.edu>.
12498 Patches to have nicer looking Samba support code. Patch from
12499 Michael Zucchi <cismpz@cis.unisa.edu.au>.
12501 Got Amanda to compile fine on a m88k-motorola-sysv4 system.
12502 Patches from Blair Zajac <blair@gps.caltech.edu>.
12504 In amandad.c, pk_t dupmsg was conflicting with dupmsg in
12505 /usr/include/sys/stream.h on an m88k-motorola-sysv4 system.
12506 Rename dupmsg to dup_msg. To keep things consistent, rename
12507 inmsg to in_msg and outmsg to out_msg. Patch by Blair Zajac
12508 <blair@gps.caltech.edu>.
12510 Check for the dbm_open declaration in any header file that may
12511 contain it. If it doesn't exist, then declare it and all of
12512 the other dbm_ functions. Check if struct datum is declared in
12513 any header files and if it isn't then declare it. Patch from
12514 Blair Zajac <blair@gps.caltech.edu>.
12516 Have runtar make sure that it is being invoked by the
12517 CLIENT_LOGIN user, since it is a suid executable. Patch from
12518 Alexandre Oliva <oliva@dcc.unicamp.br>.
12520 Have selfcheck check for /etc/vdumpdates if vdump is being
12521 used. Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12523 If we're on an Ultrix system, then define STATFS_ULTRIX. Patch
12524 by Blair Zajac <blair@gps.caltech.edu>.
12526 amadmin export produces a full version number (2.3.0.4b2, for
12527 instance), while amadmin import expects three integers
12528 separated by dots, so it fails to import an exported file by
12529 itself. Patch by Alexandre Oliva <oliva@dcc.unicamp.br>.
12531 Sendsize.c would loop forever if debugging was not turned on.
12532 Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12534 Define STATFS_OSF1 if we are on a *-dec-osf-* system. Change
12535 ifdef OSF1_HANG_BUG to ifdef OSF1_VDUMP, since I'd rather not
12536 have too many defines floating around. Patch by Blair Zajac
12537 <blair@gps.caltech.edu>.
12539 There was a bug in selfcheck.c when Blair installed the Samba
12540 support. I deleted an extra space that was added after
12541 SAMBA_CLIENT when the command was being put together. Fix by
12542 Michael Zucchi <cismpz@cis.unisa.edu.au>.
12544 Add a needed ; to client-src/Makefile.am and
12545 server-src/Makefile.am. Patch from Alexandre Oliva
12546 <oliva@dcc.unicamp.br>.
12548 Have planner.c and amcheck.c always get the amanda port number
12549 even if BSD security is turned off. Patch by Blair Zajac
12550 <blair@gps.caltech.edu>.
12552 Change the way amgetidx caches host up/down information. It
12553 used to stralloc() a string depending on if the host was up or
12554 down. Now, create two static character arrays, one holding
12555 "down" and the other holding "up" and simply point the
12556 hostinfo->up pointer to one of the two arrays. This should
12557 save a little memory. Patch by Blair Zajac
12558 <blair@gps.caltech.edu>.
12560 The Bourne shell in FreeBSD can't handle setting IFS to : and
12561 expanding $LOCPATH:$SYSPATH. Create two new variables before
12562 their use called $LOCSYSPATH and $SYSLOCPATH. Patch by Blair
12563 Zajac <blair@gps.caltech.edu>.
12565 Have open_fstab for BSD systems return the value of setfsent.
12566 Patch by Blair Zajac <blair@gps.caltech.edu>.
12568 Configure was searching for the dump program in the following
12569 order: ufsdump, vdump, backup, dump. On HP-UX systems,
12570 configure would find backup, which is a valid program but does
12571 not do what dump does. So switch the order of the programs to
12572 ufsdump, vdump, dump, backup. Patch by Blair Zajac
12573 <blair@gps.caltech.edu>.
12575 Fixed some dbprintf(()) bugs in amgetidx.c. Patch by Blair
12576 Zajac <blair@gps.caltech.edu>.
12578 Have amrecover.c always declare
12579 extern char *optarg;
12581 This makes amrecover.c compile on Ultrix systems. Problem
12582 noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
12584 Patch to configure to have it recognize gnutar version 1.11.2.
12585 Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12589 Have amcleanup, no-changer, and hp-changer find out where the
12590 logging directory, or amdump error file is from getconf instead
12591 of using @LOG_DIR@ or @DB_DIR@ from configure. Problem noted
12592 by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
12594 Remove VarDir=@DB_DIR@ from amrmtape.sh.in, since amrmtape
12595 figures out where the curinfo files are from the amanda.conf
12596 file. Problem noted by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
12598 Include rth-changer, a tape changer script for the Robotic Tape
12599 Handling system OEM'd by Andataco (RTH-406). Script written by
12600 Erik Frederick <edf@tyrell.mc.duke.edu>.
12602 Add a new configure option called --with-pid-debug-files which
12603 has Amanda append the process ID to the debugging files placed
12604 in /tmp. The PID will not be appended unless this option is
12605 used. Suggestion by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
12607 Add a new #define UNCOMPRESS_OPT to pass to UNCOMPRESS_PATH to
12608 get compressed standard input decompressed and pass it to
12609 standard output. The configure script only recognized gzip and
12610 compress right now, so it will set UNCOMPRESS_OPT to -dc and
12611 set UNCOMPRESS_PATH to the same value as COMPRESS_PATH. Edit
12612 all of the files that make use of UNCOMPRESS_PATH to also make
12613 use of UNCOMPRESS_OPT now. Patch by Blair Zajac
12614 <blair@gps.caltech.edu>.
12616 The readline() substitute in amrecover.c when the real
12617 readline() code is not available did not return to the caller
12618 what the user typed in. It now does so. Patch from Blair
12619 Zajac <blair@gps.caltech.edu>.
12621 Avoid -lnsl on Irix. On IRIX 5.x and 6.x systems that have the
12622 svr4net module installed, there will be a /usr/lib/libnsl.so
12623 present on the system. The configure script looks for this and
12624 tosses into the library list if it's there. It is not
12625 advisable to link against libnsl on IRIX unless you really need
12626 it for SVR4 networking (TLI/STREAMS). If you _do_ link against
12627 it, you should use include '-lc' _before_ '-lnsl'. The reason
12628 for this is that libnsl.so also contains the SysV TI-RPC code,
12629 which is RPC based on STREAMS/TLI rather than sockets. (Solaris
12630 2.x now uses this by default.) TI-RPC has some compatibility
12631 functions with the same names as older RPC functions, such as
12632 clnt_call(), clnt_create(), clnt_destroy(), and these conflict
12633 with the functions in libc.so. The main place this will hose
12634 you is NIS: NIS v2 expects the underlying RPC code to use
12635 sockets, not STREAMS, and it fails if the TI-RPC symbols in
12636 libnsl.so override the RPC symbols in libc.so. Again, you
12637 don't need libnsl.so unless you're actually using STREAMS/TLI
12638 or TI-RPC, so in Amanda's case it's safe to just ignore it. If
12639 you _do_ need it, you must do 'cc -o foo foo.c -lc -lnsl' in
12640 order to make sure the linker resolves the RPC symbol
12641 references correctly. The primary symptom of this problem is
12642 that things like getpwent(), getgrent() and getnetgrent() stop
12643 working in an NIS environment. To make a long story short: on
12644 IRIX, avoid using libnsl. Amanda doesn't need it anyway. So far
12645 I haven't encountered a problem with this, but you never know.
12646 Note from Bill Paul <wpaul@ctr.columbia.edu>.
12648 Include patches to have Amanda do incrementals of gnutar based
12649 backups. Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12651 Delete the GNUTAR_BROKEN_PIPE from configure and acconfig.h
12652 since no code was testing for it. Patch by Blair Zajac
12653 <blair@gps.caltech.edu>.
12655 Have configure check for the number of arguments that
12656 gettimeofday takes and have clock.c use the appropriate number
12657 of arguments. Patch by Blair Zajac <blair@gps.caltech.edu>.
12659 Have sendbackup-common.c include tapeio.h instead of defining
12660 BUFFER_SIZE. Fix by Philip Guenther <guenther@gac.edu>.
12662 Put in more support for AIX by defining AIX_BACKUP if the
12663 system is an AIX system. Fix createindex-dump.c to pass the -B
12664 flag to restore to have it read from standard input. Problem
12665 noted by Bill Paul <wpaul@ctr.columbia.edu>. Patch by Blair
12666 Zajac <blair@gps.caltech.edu>.
12668 Add a regexp for AIX 4's backup in sendbackup-dump.c and
12669 sendsize.c. Patch from Bill Paul <wpaul@ctr.columbia.edu>.
12671 Add a comment to tapeio.h about BUFFER_SIZE and what it is used
12672 for and how people should not change it. Noted by Bill Paul
12673 <wpaul@ctr.columbia.edu>.
12675 Added a --with-mmap option to force the use of mmap() instead
12676 of shared memory support. Requested by wpaul@ctr.columbia.edu
12677 <Bill Paul>. Patch by Blair Zajac <blair@gps.caltech.edu>.
12679 On FreeBSD 2.x and 3.x, the SO_SNDTIMEOUT value is too large in
12680 dumper.c. Looking at the kernel source, the maximum value for
12681 tv_sec is about 227. The value used is READ_TIMEOUT/4, or
12682 (30*60)/4 == 450 seconds. This causes setsockopt() to return
12683 EDOM (Numerical argument out of domain), and again everything
12684 grinds to a halt. I changed the value from READ_TIMEOUT/4 to
12685 READ_TIMEOUT/8, which reduces the SO_SNDTIMEO value to 225. I
12686 haven't extensively tested this yet, but based on eyeballing
12687 the kernel source it should work. Patch from Bill Paul
12688 <wpaul@ctr.columbia.edu>.
12690 In dumper.c:do_dump(), there is code to set the transmission
12691 timeout, receive buffer size and receive low water mark on the
12692 data socket using setsockopt(). For SO_RECVBUF, the receive
12693 buffer size (recbuf) is set to DATABUF_SIZE * 4, which is
12694 32*1024*4, or 131072. On SunOS 4.1.x, this value is too
12695 large: dumper generates a 'no buffer space available' error
12696 and everything grinds to a halt. I took away the '*4', which
12697 reduces the size to 32767 bytes, which seems to work. I'm
12698 surprised nobody else has noticed this since it breaks SunOS
12699 Amanda servers. I can only surmise that people aren't using
12700 SunOS machines as servers these days. :) Patch from Bill Paul
12701 <wpaul@ctr.columbia.edu>.
12703 Have Amanda include either readline.h or readline/readline.h
12704 Fix suggested by Neal Becker <neal@ctd.comsat.com>.
12706 Have --with-includes put the -I flags into $CPPFLAGS and
12707 $CFLAGS so that AC_CHECK_HEADERS will find other include
12708 files. Problem noted by Neal Becker <neal@ctd.comsat.com>.
12710 Fixed common-src/Makefile.am to put the extra libamanda.a
12711 sources into the EXTRA_libamanda_a_SOURCES variable instead of
12712 EXTRA_DIST. Fix from Tom Tromey <tromey@drip.Colorado.EDU>.
12714 When compiling amgetidx.c with some compilers, trigraph
12715 substitutions were being made when they should not have been.
12716 Protect the code from this. Patch from Blair Zajac
12717 <blair@gps.caltech.edu>.
12719 Test for flock support in the following order:
12720 1) POSIX fcntl file locking
12723 The common-src/flock.c file will only be used if the lockf type
12724 locking is needed on this system. Patch from Blair Zajac
12725 <blair@gps.caltech.edu>.
12727 Have Samba support compile in only if requested by the user.
12728 Patch from Blair Zajac <blair@gps.caltech.edu>.
12730 Configure was not using $CFLAGS and $CPPFLAGS when trying to
12731 calculate the select argument type. Patch from Blair Zajac
12732 <blair@gps.caltech.edu>.
12734 Updated amanda.h to include alloca.h if the system has it and
12735 if it's ok to include. Also protect more include files with
12736 #ifdefs found by configure. Patch from Blair Zajac
12737 <blair@gps.caltech.edu>.
12739 Linux does not use the raw device names to do backups.
12740 configure now checks to see if it can find a raw disk device
12741 file whose name is built from root's mount point. If it can't,
12742 then set RDEV_PREFIX to use /dev/ instead of /dev/r. Fix
12743 suggested by Brian <brian.s.mogged@uwrf.edu> and Ken Latta
12744 <latta@parc.xerox.com>.
12746 Fixed const cast message from regex.c. Problem noted by Ken
12747 Laprade <klaprade@harris.com>. Patch from Blair Zajac
12748 <blair@gps.caltech.edu>.
12750 Configure was not checking for the OSF1_VDUMP #ifdef used in
12751 Amanda. It now will set OSF1_VDUMP if vdump is found on the
12752 system. However, it does not check if the system is really a
12753 OSF system. Patch from Blair Zajac <blair@gps.caltech.edu>.
12755 Have configure check for asm/byteorder.h for
12756 sparc-unknown-linux-gnu. Problem noted by Eric Doutreleau
12759 Remove the check for libintl.h from configure. It was only
12760 being used for regex.c, which really didn't need it. Patch
12761 from Blair Zajac <blair@gps.caltech.edu>.
12763 Convert all code to K&R C by trying to compile Amanda using
12764 /usr/bin/cc on a SunOS 4.1.1 machine. Have configure check if
12765 the compiler can handle the volatile keyword and if it can't,
12766 #define it to empty in the config.h file. Patch from Blair
12767 Zajac <blair@gps.caltech.edu>.
12769 Move the contents of versuff.h into version.h and remove
12770 versuff.h. Add a new function called version() which returns
12771 the version string. Use version() in some of the programs.
12772 Patch from Blair Zajac <blair@gps.caltech.edu>.
12774 m88k-motorola-sysv4 systems define L_FAIL, which is used by
12775 logfile.h. Undefine it in logfile.h. Patch from Blair Zajac
12776 <blair@gps.caltech.edu>.
12778 Include amindex-1.0 from Alan McIvor. It includes these
12779 improvements over 0.3:
12780 Amrecover now provides the ability to restore files
12781 from the tapes, via the "extract" command.
12783 Support for gnutar based index generation (but not file
12786 Numerous bug fixes.
12788 Have amgetidx try to open a socket to the shell/tcp port on the
12789 remote machine and cache if it succeeds. If it connection
12790 attempt succeeds, then attempt to get the index files over from
12791 the client. Patch from Blair Zajac <blair@gps.caltech.edu>.
12793 Update patch-system to include the amidxtape service at
12794 10083/tcp. Patch from Blair Zajac <blair@gps.caltech.edu>.
12796 Configure said that the server configuration was OK and then
12797 next said it wasn't. Remove these checks. Patch from Blair
12798 Zajac <blair@gps.caltech.edu>.
12800 Fixed building Amanda for multiple architectures in
12801 subdirectories of Amanda. Problem noted by Thomas Hepper
12802 <Thomas.Hepper@icem.de>.
12806 Fix a problem with `amadmin <conf> balance' dumping core. If
12807 some disks are overdue, they are stored in the sequence array
12808 with a negative index. This has the potential to cause memory
12809 corruption, and it makes the reported balance figures not add up
12810 to the same as the total. Since overdue disks are really going
12811 to be candidated for today's backups, they are thrown in the
12812 bin for those. Patch from Ken Laprade <klaprade@harris.com>.
12814 Add Samba client support using smbclient to Amanda. Samba must
12815 be patched with the file patches/samba-1.9.16p2.1.patch - this
12816 is a patch for 1.9.16p2 of Samba, and modifies the way the
12817 'dir' command works, and adds totals to both the dir command
12818 and the tar command, via stderr. These are used by amanda to
12819 estimate and count backup sizes. This should be installed on
12820 an amanda 'client' host, that will act as the 'samba server'
12821 host. This will most likely be the same machine as the Amanda
12822 master server. Patches from Michael Zucchi
12823 <zucchi@cis.unisa.edu.au>.
12825 Amrmtape converted from Bash to Bourne shell. Patch from Blair
12826 Zajac <blair@gps.caltech.edu>.
12828 Fix the indexing code to use "arglist.h" instead of <stdarg.h>
12829 Patch from Blair Zajac <blair@gps.caltech.edu>.
12831 Have amdump call amgetidx and amtrmidx. Put amgetidx and
12832 amtrmidx into the libexec directory instead of the bin
12833 directory, since Amanda users will not use these by hand.
12834 Patch from Blair Zajac <blair@gps.caltech.edu>.
12836 Modified diskfile.c to match hostname in the backup header
12837 against the fully qualified domain name in disklist file,
12838 because amflush fails in a multidomain backup environment, as
12839 backup headers have only the hostname. Patch from Karl
12840 Lehenbauer <karl@neosoft.com>.
12842 Have autoconf figure out if some functions are not declared and
12843 if they are not, then declare them. Patch from Blair Zajac
12844 <blair@gps.caltech.edu>.
12846 Add security fixes to amandad.c. It now checks the forward and
12847 reverse DNS names for consistency. Added a configure option
12848 --amandahosts to use Michael's code to use .amandahosts instead
12849 of .rhosts. Patch from Michael Douglass <mikedoug@texas.net>.
12851 Add amverify, a simple shell script to check Amanda tapes -
12852 gnutar driven backups only. Patch from Thomas Hepper
12853 <Thomas.Hepper@icem.de>.
12855 Add the version option to amadmin (eg amadmin <conf> version).
12856 Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12858 Add the current option to amtape (eg amtape <conf> current).
12859 This let's you the label of the current tape only without using
12860 dd. Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12862 Gnutar support for amindex added. Patch from Thomas Hepper
12863 <Thomas.Hepper@icem.de>.
12865 Calcsize supports exclude-list (gtar). The source was
12866 extracted from gnutar itself to be 100% compatible. Patch from
12867 Thomas Hepper <Thomas.Hepper@icem.de>.
12869 Calcsize checks the file type and ignores special files and
12870 pipes. Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12872 Calcsizes calculation for gnu tar archives had a bug (gtar file
12873 blocks always are a multiple of 2k). Patch from Thomas Hepper
12874 <Thomas.Hepper@icem.de>.
12876 `amandates.c': amdandad suffered by missing AMANDATES_FILE.
12877 Now it creates this file before missing it. Patch from Thomas
12878 Hepper <Thomas.Hepper@icem.de>.
12880 `createindex-gnutar.c' added. Patch from Thomas Hepper
12881 <Thomas.Hepper@icem.de>.
12883 alloca(), strdup.c and getcwd added for those system who don't
12884 have them. Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12886 A dirty hack for BSD based systems without sigaction(), see
12887 amanda.h. Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12889 Add two scripts, hp-changer and no-changer. hp-changer is a
12890 tape changer script for a HP DAT changer. Every 10th tape a
12891 taper clean runs. no-changer is a changer-like script for
12892 single tape streamer. It makes Amanda see a tape changer unit
12893 with an infinite count of tapes (and requires an operator to
12894 change the tapes :-)). Every 10 tapes the operator is
12895 recommended to insert a cleaning tape. Patch from Thomas
12896 Hepper <Thomas.Hepper@icem.de>.
12898 The version suffix adding is done with a seperate function
12899 versionsuffix() also available as standalone program. Patch
12900 from Thomas Hepper <Thomas.Hepper@icem.de>.
12902 Several files got debug support. Patch from Thomas Hepper
12903 <Thomas.Hepper@icem.de>.
12905 Added an idle type file-too-large to driver.c to avoid dumping
12906 files to the holding disk(s) which exceed the maximum file size
12907 (2 GB on the most 32-bit machines). Patch from Thomas Hepper
12908 <Thomas.Hepper@icem.de>.
12910 Some minor bug fixes, mostly regarding missing or wrong casts
12911 confusing c compilers (shmat()/shmdt(), select()). Patch from
12912 Thomas Hepper <Thomas.Hepper@icem.de>.
12914 Genversion gives some more information. Patch from Thomas
12915 Hepper <Thomas.Hepper@icem.de>.
12917 getfsent.c and statfs.c have been cleaned up. The have to be
12918 checked on non-Irix/Solaris/NextStep/HPUX/AIX/Linux-systems.
12919 Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12921 Simple support if readline.a is missing. NEVER TESTED! Patch
12922 from Thomas Hepper <Thomas.Hepper@icem.de>.
12924 Linux requires libdb.a and ndbm.h to handle database files. Not
12925 really what I expected. Patch from Thomas Hepper
12926 <Thomas.Hepper@icem.de>.
12928 Here's a simple patch which fixes a problem that causes amflush
12929 to erroneously complain "ignoring cruft file" about good dump
12930 files on the holding disk, and fail to flush them to tape.
12931 This happens if your holding disk directory has a long name,
12932 and the dump file also has a long name (i.e. if you use
12933 filesystem mount points in disklist). The problem occurs if
12934 the holding directory + filename exceeds 80 bytes. The patch
12935 still leaves a length limitation, but at least it matches the
12936 size limit imposed by driver (and thus dumper & taper) of 128
12937 bytes. Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
12939 Use regex.h and regex.c from
12940 ftp://prep.ai.mit.edu/sh-utils-1.15.tar.gz instead of the regex
12941 checking code in the system. This code includes re_comp and
12942 re_exec calls, so it will work on any system. Patch by Blair
12943 Zajac <blair@gps.caltech.edu>.
12945 Amadmin find reports the wrong tape file numbers after when a
12946 dump is amflush'ed to tape. Patch by Ralf Fassel
12947 <ralf@atg.venture.de>.
12949 Fix a bug where dumps of disks on the Amanda server are counted
12950 against the available network bandwidth. Patch from Marion
12951 Hakanson <hakanson@cse.ogi.edu>.
12953 Tell gnutar to not exit with a nonzero value if a read failed.
12954 This prevents backups from aborting if a file disappeared
12955 before gnutar could save it. Patch from Hal Snyder
12958 Fix dumper which can cause the entire amdump run to hang after
12959 dumper issues a "TRY-AGAIN" message to driver while dumping
12960 directly to tape. Patch from Marion Hakanson's
12961 <hakanson@cse.ogi.edu>.
12963 Added Marion Hakanson's <hakanson@cse.ogi.edu> patches to fix
12964 problems when amanda dumps directly to tape (i.e. when holding
12965 space is full, or you're backing up a huge filesystem, etc.).
12966 The bug occurs in the way taper determines it has succeeded
12967 when doing a PORT-WRITE operation (i.e. dumping directly to
12968 tape). It used to assume that an EOF meant no more data --
12969 true if it's reading from a file, but when reading from a port
12970 (i.e. directly from a dump process), an EOF could signal
12971 abnormal exit as well as a normal one. So, I extended the
12972 protocol between driver and taper when dumping directly to tape
12973 (see dump_to_tape() in driver.c) so the taper will wait for the
12974 driver to pass PORT-WRITE-SUCCESS or PORT-WRITE-FAILURE to the
12975 taper (since driver gets OK/not-OK from the dumper) before the
12976 taper records success or failure. Note that this change
12977 affects only the PORT-WRITE case in taper. FYI, the bug
12978 resulted in the curinfo database for a failed port-dump to have
12979 the tape-label & file-number fields updated with the location
12980 of the failed dump, even though the timestamp & dump statistics
12981 still have the values of the last successful dump (the latter
12982 fields are updated by dumper itself).
12984 Patches from George Scott <George.Scott@cc.monash.edu.au> to
12985 fix the following problems in planner.c.
12986 1) Initialise total_size, total_lev0 and balanced_size. They
12987 are updated in analyze_estimates() but never initialised. Zero
12988 them before the first call.
12989 2) Remove oversize dumps. If there is a dump whose estimated
12990 size is larger than the tape the planner would tend to throw
12991 away all the other dumps and then probably generate an
12992 unworkable plan anyway. (The standard 2.2.6 planner probably
12993 tossed these dumps fairly quickly for other reasons, but my
12994 next fix made this one almost mandatory!) The fix is to drop
12995 these enormous dumps right at the begining. This shouldn't be
12996 triggered for anyone with a sane configuration.
12997 3) Promote hills. There are two ways to create a balanced
12998 cycle. The first is to fill in any holes and the second is to
12999 remove any hills. The original planner is good at doing the
13000 first but doesn't even attempt the second. A quick look at
13001 "amadmin balance" would show big hills quite clearly. This fix
13002 effectively does an "amadmin balance" and promotes a dump from
13003 one of the "hills". This type of promotion is quite
13005 - don't bother if we already plan to do any level 0 dumps
13006 - don't promote a dump if it was going to be the only level 0
13007 to be done on that run (ie, ignore hills that are only one
13009 - only promote one level 0 by this method
13010 - don't exceed tape_length
13011 The key to it is the first restriction. Large sites (with
13012 large numbers of disks and a large balanced_size) will have at
13013 least one level 0 scheduled for each day in the dump cycle and
13014 will already have a balanced cycle. This code will not
13015 activate for them. Small sites will probably not have a level
13016 0 scheduled and will benefit. The second restriction will stop
13017 Amanda from constantly promoting dumps when the schedule is as
13018 balanced as it will go. The third restriction will stop Amanda
13019 over reacting. Promoting one dump by this method would take
13020 total_lev0 larger that balanced_size. If it wouldn't then the
13021 first stage promotion didn't work like it should.
13022 4) Initialise got_estimate for all cases. This fix was from
13023 der Mouse <mouse@collatz.mcrcim.mcgill.edu>. "got_estimate"
13024 wasn't being initialised for skipped disks. Later in the code
13025 it was being used in all cases. The fix is to move its
13026 initialisation up a few lines.
13027 5) Explicitly ignore off-line disks. If a disk is off-line
13028 when the planner is run it gets -1 for all dump sizes. These
13029 were ignored at a later stage. This fix explicitly ignores
13031 6) Ignore down machines. If a machine is down when the planner
13032 is run it guesses from historical data what the size of
13033 tonights dump is likely to be and schedules a dump anyway. The
13034 dumper then usually discovers that the machine is still down
13035 and ends up with a half full tape. Unfortunately the planner
13036 had to delay another dump because it thought that the tape was
13037 full. The fix here is for the planner to discard unavailable
13038 machines totally rather than just ignore the fact that they are
13040 7) Keep at least one total. Amanda moves level 0 dumps back to
13041 incrementals to try and fit everything onto the tape.
13042 Unfortunately if all your incrementals are too big (or your
13043 tape too small) it can move all of your level 0 dumps. This
13044 ends up being a kind of deadlock since, unless a level 0 gets
13045 done, the incrementals will not reduce in size and until the
13046 incrementals reduce in size there will not be enough room to
13047 fit in a level 0. (This is not quite accurate since a level 4
13048 dump can get bumped to a level 5 which reduces its size.
13049 However, this deadlock has happened to me and for many days in
13050 a row.) The fix is to pick on the highest priority level 0 and
13051 not let it be moved. This change will not affect users with
13052 reasonably sized tapes since Amanda would not have moved all
13053 their disks to incrementals.
13054 8) Make usage of total_lev0 consistent. "total_lev0" is a
13055 double and doesn't include tape_mark's. Make it so.
13057 Add a fflush(outf) to amcheck.c. Patch from Mike Russell
13058 <Michael_Russell@Brown.EDU>.
13060 Fix problems with amhpfixdevs. Patch from Michael Schmitz
13061 <mschmitz@iname.com>.
13063 Have DEC OSF1 use installbsd instead of install. Patch from
13064 Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
13066 Have amcontrol take the first command line argument as the
13067 configuration to use. If there are no command line arguments,
13068 then use daily. Patch from Thomas Schmeidl
13069 <schmeidl@nwp.kwu.siemens.de>.
13071 Removed --atime-preserve from sendbackup-gnutar.c so that
13072 incremental backups of filesystems will work. Patch from
13073 Alexandre Oliva <oliva@dcc.unicamp.br>.
13075 Change all #if __STDC__ to #ifdef __STDC__ for those systems
13076 that define __STDC__ to 0, such as Solaris using cc -Xt, cc
13077 -Xa. Patch from Blair Zajac <blair@gps.caltech.edu>.
13079 Increase the socket buffer size, and set a low watter mark at
13080 32k. This cut the number of syscalls done to process one 32k
13081 block from dozens down to 4 (select, read, lseek, write).
13082 Patch from Brad Huntting <huntting@glarp.com>.
13084 Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
13086 Add the "srvcompress" option to compress dumps on the tape host
13087 instead of on the client machines. This may be useful when a
13088 fast tape host is backing up slow clients. The patches add a
13089 dump-type option, analogous to "compress-fast" or
13090 "compress-best" - the way to use it is to create a new dumptype
13091 in your amanda.conf that includes "srvcompress" and use the new
13092 dumptype for those filesystems you wish to have compressed on
13093 the tape server. For example, in amanda.conf:
13094 define dumptype srvcomp-user {
13095 comment "Partitions on slow machines, compressed on tapehost"
13096 options srvcompress
13099 Patches from Eric Volpe <epv@panix.com>.
13101 Increase the planner timeout for one estimate from 30 seconds
13102 to 120 seconds. Patch from Michael Schmitz
13103 <mschmitz@iname.com>.
13105 The select(2) prototype on HPUX specifies 'int' as argument
13106 type of the filedescriptor arguments. All other systems I know
13107 of use 'fd_set'. This has been fixed by having configure check
13108 the argument type to select and adding casts to the select(2)
13109 calls. Patch from Michael Schmitz <mschmitz@iname.com>.
13111 Improve the diagnostic output and increase the robustness of
13112 the system by adding better error checking on communication
13113 between taper & driver, and among the two taper processes.
13114 Patches from Marion Hakanson <hakanson@cse.ogi.edu>.
13116 Convert all flock() calls to use POSIX-style locks via the
13117 fcntl(2) call. This operation was prompted by the fact that
13118 the flock() emulation in the Amanda-provided common-src/flock.c
13119 was broken for read-only file descriptors, and the fcntl(2)
13120 locks are widely available. This patch makes it possible to
13121 have a read-only lock on the /etc/amandates file on systems
13122 which want to use it. I've built and tested the patched code
13123 on Amanda servers running on Digital Unix v3.2B (on Alpha
13124 hardware) and on SPARC Solaris-2.5.1. It's also been compiled
13125 here on SPARC's running SunOS-4.1.3u1b, HP-UX 9.0[345], and
13126 NeXTstep-3.3 (NeXT hardware). Note that the patches also
13127 remove all trace of the NEED_FLOCK define, and I have removed
13128 the file common-src/flock.c from our source tree here. Patch
13129 from Marion Hakanson <hakanson@cse.ogi.edu>.
13131 For disk/filesystem names which are wider than 14 characters,
13132 have reporter print out the rightmost characters of the disk
13133 name, which is usually more meaningful in a daily backup
13134 summary. Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
13136 Lets amflush work in a wider variety of cases than was
13137 previously true (it used to work if the disklist contains only
13138 the first token of each hostname). sendbackup-dump.c and
13139 sendbackup-gnutar.c now do not trim the domain name from the
13140 host name that is sent back to the server. amflush now looks
13141 for an exact match, in the database. If it can't find one it
13142 strips the last token off the dump header hostname and keeps
13143 trying until it finds a match in the disklist or runs out of
13144 tokens. This also has the advantage that if gethostname()
13145 returns FQDNs and you specify the same FQDNs in the disklist,
13146 then amflush will always work. It will also work as long as
13147 the disklist and gethostname() on the clients return enough
13148 information to be unambiguous. Patch from James Mathiesen
13149 <james@deshaw.com>.
13151 Increase the READ_TIMEOUT in dumper.c to 30 minutes. This
13152 needs to be longer than the longest amount of time dump will
13153 not produce output. People have observed dumps taking more
13154 than 10 minutes to finish mapping some of the passes
13155 sometimes. Patch from James Mathiesen <james@deshaw.com>.
13157 Added Adrian T. Filipi-Martin's <atf3r@cs.virginia.edu>
13158 amrmtape script, which allows you to invalidate the contents of
13159 an existing backup tape within the Amanda current tape
13160 database. This is meant as a recovery mecanism for when a good
13161 backup is damaged either by faulty hardware or user error,
13162 i.e. the tape is eaten by the tape drive, or the tape has been
13163 overwritten. Blair Zajac wrote a quick little manual page for
13166 amrmtape was using the return value from amadmin and amadmin
13167 was exiting with a non-zero value, causing amrmtape to quit.
13168 Added a return 0 statement to amadmin.c. Patch from Blair
13169 Zajac <blair@gps.caltech.edu>.
13171 Went through all of the files and changed void main()'s to int
13172 main()'s. Patch from Blair Zajac <blair@gps.caltech.edu>.
13174 Removed the 50 tape file limit in amcleanup and amdump.
13176 createindex-dump and sendbackup-dump did not always take into
13177 account the version suffix. This is now handled. Patch from
13178 Philippe Charnier <charnier@lirmm.fr>
13180 Compile and install amrecover and amrestore as client programs,
13181 not a server program. The motovation for this is that
13182 amrecover is truly a program for all of the users on the
13183 system, while the remaining amanda programs could be used by
13184 only the system administrator. Patch from Alexandre Oliva
13185 <oliva@dcc.unicamp.br>.
13187 The program amtrmidx fails to close some of the pipes it uses,
13188 and this can lead to failure on systems with large numbers of
13189 disks with incomplete database sets, and file descriptor
13190 ulimits set. Patch from Alan McIvor <alan@auck.irl.cri.nz>.
13194 Expanded the width of the DISK column from the reporter
13195 output. I like to use mount points like /export/home?? instead
13196 of device names to back up. Since the width of the disk name
13197 field from reporter's output is pretty small, I couldn't easily
13198 figure out the statistics for a particular partition. Patch
13199 from Blair Zajac <blair@gps.caltech.edu>.
13201 Included Eric Doutreleau <ed@cti.ecp.fr> patch's for amadmin to
13202 handle multiple tapes better. The patch that he posted on used
13203 a hardwired value of 6 for runtapes, which I changed.
13205 Included Marion Hakanson's <hakanson@cse.ogi.edu> patches to
13206 amadmin.c and amadmin.8 to let amadmin use the same disk
13207 regular expression matching as amrestore. So now "^/$" will
13208 match only the root partition, not all of the disks.
13210 Added a patch from George.Scott@cc.monash.edu.au which makes
13211 new disks and forces dump with a higher priority.
13213 Changed tools/munge to delete blank lines and the commented
13214 lines that the C preprocessor generates (i.e. # 123). We also
13215 remove the space after the = sign that can be generated by cpp
13218 Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
13219 with the following patches:
13221 Fix problem so that rsh'ing on a hpux host works.
13222 Patch from Neal Becker <neal@ctd.comsat.com>. This
13223 patch includes a new #define for RSH_COMMAND, which is
13224 set to rsh in config-common.h and defined as remsh in
13227 Fix bugs in createindex-dump.c when comparing errno to
13228 EINTR. The code was using = instead of ==. Patch from
13229 Neal Becker <neal@ctd.comsat.com>. I'm guessing this
13230 might fix some of the runaway createindex-dump
13231 processes that I have seen on my system.
13233 On my system, we use MAE which likes to generate path
13234 names with spaces in them. I patched
13235 createindex-dump.c so that filenames with spaces have
13236 the whole filename listed. Patch from Blair Zajac
13237 <blair@gps.caltech.edu>.
13239 Patch amtrmidx.c so that backups using the mount points
13240 for disks instead of the device name have the /'s
13241 replaced with _'s. Patch from Blair Zajac
13242 <blair@gps.caltech.edu>.
13246 Changed the signals being sent to xfsdump for Irix so that it
13247 will be killed without dumping a core.
13249 Fixed a typo in the definition of XFSDUMP in config.h-irix.
13251 Removed the extra option.s-* and copied options.h to
13254 Moved the amrestore manual page into the man directory so it
13255 would get installed.
13259 amindex-0.1 written by Alan McIvor <alan@kauri.auck.irl.cri.nz>
13260 installed. amindex generates an index of all of the files that
13261 were dumped. It is nice to see what files were dumped before
13262 you restore a whole bunch of tapes looking for a file. I
13263 patched some of this code. Here are some of the changes:
13265 Switched the Imakefile to Makefile and Makefile.in to
13266 be more consistent with the system used by the rest of
13269 Moved the configuration #defines out of the specific
13270 files (such as amrecover.c) into options.h, so that
13271 people installing this version of amanda would be able
13272 to see the required changes more easily and not have to
13273 edit multiple files.
13275 Made some changes to the codes to remove #include's
13276 where amanda.h would include them and also check if the
13277 system had the particular include file.
13279 Added code to set_commands.c and amgetidx.c to change
13280 /'s in disk names to _'s.
13282 Added code to amrecover.c to properly compile on
13285 With the -Xc compiler option on Solaris and with
13286 amindex, the sigaction structure was not being
13287 declared. Added -D__EXTENSIONS__ to config.h-sunos5 so
13288 that sigaction would be declared.
13290 I changed a bunch of fprintf to perrors.
13292 Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
13295 Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
13297 Installed Ken Laprade's <klaprade@harris.com> patches for
13298 amanda to handle both EFS and XFs file systems on the same
13299 client. The only change from his patch is to #ifdef XFSDUMP
13300 the kill(-dumppid, SIGTERM) so the SIGTERM signal will be used
13301 on other systems, while SIGQUIT will be used on Irix systems.
13303 Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
13304 the main config file to include subsidiary config files.
13306 On Solaris, sometimes the hdr->handle variable in amandad.c
13307 would be null, causing core dumps when it was used in a sprintf
13308 statement. The code now checks if hdr->handle is null and
13309 prints a "" if it is null. This was only done in amandad.c.
13311 Fix a problem where new disks would be added but not backed up
13312 concurrently. Changes to diskfile.c. I forgot who put this
13313 patch up on the mailing list.
13315 I made some changes to options.h to allow the user to more
13316 easily install the programs under a different user. This meant
13317 defining two new #defines, MK_AMANDA_USER and
13318 MK_QUOTED_AMANDA_USER which are used in the appropriate
13321 Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
13322 for multiple tapes.
13324 Included Joachim Loehr's <Joachim.Loeh@stadt-mh.de>
13325 script to automatically figure out which kind of HP-UX file
13326 system is being dumped. Look in tools for the script and a