Imported Upstream version 2.5.0
[debian/amanda] / ChangeLog
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
5
6 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
7         * server-src/dumper.c: wait for compress/index/encryp subprocess.
8
9 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
10         * server-src/amstatus.pl.in: Parse PARTIAL reply.
11
12 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
13         * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
14
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)
18           might not terminate.
19
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.
24
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.
28
29 2006-03-15  Jean-Louis Martineau <martineau@zmanda.com>
30         * server-src/conffile.c: Fix heritage of auth.
31
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.
37
38 2006-03-14  Jean-Louis Martineau <martineau@zmanda.com>
39         * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
40                                           fe_amrecover_FEEDME
41         * common-src/amfeatures.c (am_init_feature_set): Set
42                                                          fe_amrecover_FEEDME.
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
47                                                 support it.
48
49 2006-03-11  Jean-Louis Martineau <martineau@zmanda.com>
50         * server-src/driverio.c : Fix errors found using Coverity tools.
51
52 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
53         * server-src/taperscan.c: Fix Coverity fix.
54
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.
61
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.
66
67 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
68         * restore-src/restore.c: Fix errors found using Coverity tools.
69
70 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
71         * server-src/holding.c: Fix John fix.
72
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.
76
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.
97
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.
117
118 2006-03-07  Paddy Sreenivasan <paddy@zmanda.com>
119         * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
120
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.
123
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.
129
130 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
131         * server-src/taperscan.c (scan_slot): append slotstr to
132           ct->error_message.
133         * server-src/taperscan.c: Add a '\n' after each slot error message.
134
135 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
136         * server-src/reporter.c (handle_error): Handle error from taper.
137
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.
141
142 2006-03-03  Ian Turner <ian@zmanda.com>
143         * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and 
144           MAX_TAPE_LABEL_BUF.
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.
153
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.
159
160 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
161         * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
162                                              of a PREP.
163
164 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
165         * server-src/driver.c: Print dumper TRY_AGAIN message.
166
167 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
168         * server-src/planner.c: Don't print estimate size if estimate failed.
169
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.
173
174 2006-02-20  Kevin Till <ktill@zmanda.com>
175         * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
176                                       Orion Poplawski.
177         * common-src/krb5-security.c: ditto.
178
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 
184
185 2006-02-10  Kevin Till <ktill@zmanda.com>
186         * man/xml-source/amanda.8.xml: replace informaltable with literallayout 
187
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.
192
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
196
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().
200  
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
206           build paths.
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.
212  
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.
216           Also reindent.
217
218 2006-02-06 Kevin Till <ktill@zmanda.com> 
219         * restore-src/restore.c: fix comment formatting on version 1.2.1
220
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 "}"
227         
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.
235
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
243
244 2006-02-03  John Franks <jrfranks@zmanda.com>
245         * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
246
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.
251
252 2006-02-02 Kevin Till <ktill@zmanda.com>
253         * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem 
254                                        to be fixed.
255         * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
256
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 
262           change.
263
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.
267
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.
271
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.
277
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 
282           patch.
283
284 2006-01-25  Paddy Sreenivasan <paddy@zmanda.com>
285         * common-src/amanda.h:     Removed unnecessary header include files.
286
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)
292
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.
296
297 2006-01-25  Kevin Till<ktill@zmanda.com>
298         * common-src/bsd-security.c: move check_security to bsd_security.c, 
299                                      fix faulty return
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 
306                                      for now
307         * restore-src/restore.c:     set outfd correctly for amfetchdump cases
308                                      Thanks to Paul Bijnens
309
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.
315
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.
320
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
325         
326 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
327         * server-src/disk_history.c: Fix memory leak.
328
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.
338
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
360                                      get_client_line_fd.
361         * restore-src/restore.c:     Remove SIGPIPE handler.
362                                      Loop on I/O if EINTR or EAGAIN.
363                                      Remove shutdown functions.
364                                      Simplify read loop.
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.
374
375 2006-01-13  Jean-Louis Martineau <martineau@zmanda.com>
376         * server-src/amcheck.c (start_server_check): Remove unused variable
377           errstr.
378         * restore-src/restore.c (restore): Remove unused variable s, l and
379           dataeof.
380
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.
385
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
392                                 before failure.
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.
404
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.
409
410 2006-01-09  Ian Turner <ian@zmanda.com>
411         * server-src/taperscan.c: When doing taper-scan algorithm, properly
412           accept new tapes.
413
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.
417
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.
421
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.
429
430 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
431         * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
432
433 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
434         * restore-src/restore.c (flush_open_outputs): Another shutdown is
435           required.
436
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.
445
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.
462
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.
466
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.
471
472 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
473         * restore-src/restore.c (flush_open_outputs): Call shutdown before
474           close.
475
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. 
486
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.
490
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.
505   
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
509
510 2005-12-29  Ian Turner <ian@zmanda.com>
511         * man/xml-source/amanda.conf.5.xml: Document label_new_tapes 
512           config option.
513
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.
519
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.
526
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.
531         
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
541           mis-configuration
542
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
547
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. 
551
552 2005-12-23  John Franks <jrfranks@zmanda.com>
553         * recover-src/restore.c  Remove inapproriate aclose which caused
554           broken restore pipe.
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.
561
562 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
563
564         * restore-src/restore.c (restore): Remova an aclose.
565
566 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
567
568         * restore-src/amidxtaped.c (cleanup): Function registered with atexit
569           to remove the log file.
570
571 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
572
573         * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
574
575 2005-12-20  John Franks <jrfranks@zmanda.com>
576
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
587                                   checks for NULL.
588                                  Commented out reference to auto_pos which
589                                   is assigned but never used...
590
591 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
592
593         * common-src/fileheader.c (parse_file_header): Parse '/' in part.
594         * common-src/fileheader.c (build_header): Add space ' ' before "part".
595
596 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
597
598         * server-src/reporter.c: Fix report of output size.
599
600 2005-12-19  Ian Turner <ian@zmanda.com>
601         * server-src/taperscan.c: Check that automatic tape labels satisfy
602         the labelstr.
603
604 2005-12-19  Ian Turner <ian@zmanda.com>
605         * server-src/fileheader.c: Fix broken split-dump file headers.
606
607 2005-12-18  Jean-Louis Martineau <martineau@zmanda.com>
608         Patch by Paul Bijnens
609
610         * server-src/amcheck.c: Tapelist file is regular file.
611
612 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
613
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,
617            outpipe2, i.
618
619 2005-12-17  John R. Franks <jrfranks@zmanda.com>
620
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.
627
628 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
629         With Kevin Till <ktill@zmanda.com>
630
631         * common-src/fileheader.c (parse_file_header): Fix parsing of first
632           line.
633         * common-src/fileheader.c (build_header): Print crypt after programi
634            and only if it is needed.
635
636 2005-12-14  Ian Turner <ian@zmanda.com>
637
638         * common-src/alloc.c: Add new function vstrextend, which extends an
639           existing string.
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
644           amcheck -w.
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
654           of using globals.
655         * server-src/changer.h: Declare and document new changer_find
656           interface.
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
666           interface.
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.
670
671 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
672
673         * server-src/reporter.c (handle_success): On a taper line, the outsize
674           should only count dump to tape, not flush.
675
676 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
677
678         * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
679
680 2005-12-09  John Franks <jrfranks@zmanda.com>
681
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.
686
687 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
688
689         * configure.in: Move the size detection after detection of large
690           file support. That change the size of off_t.
691
692 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
693
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.
696
697 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
698
699         * configure.in: Set LL_FMT correctly.
700         * server-src/conffile.c: Use LL_FMT.
701
702 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
703
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.
707
708 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
709
710         * configure.in: Check for sizeof of many type. Check printf format of
711           a 64-bit integers.
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.
716
717 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
718
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.
723
724 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
725
726         * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
727           str_buffer_sizebuf instead of sizeof(bug).
728
729 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
730
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
733           FINISH line.
734
735 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
736
737         * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
738
739 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
740
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.
744
745 2005-12-04  Jean-Louis Martineau <martineau@zmanda.com>
746
747         * server-src/logfile.c (logtype_str): Add important ','.
748
749 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
750
751         * server-src/planner.c (setup_estimate): Fix wrong order for argument.
752
753 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
754
755         * server-src/driver.c (start_some_dumps): Don't test for
756           cur_idle == NOT_IDLE.
757
758 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
759
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.
765
766 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
767         Patch by Franz Fischer
768
769         * config/acinclude.m4i: Fix for __alpha.
770
771 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
772
773         * common-src/util.c: Debug must end with '\n'.
774
775 2005-12-01  Jean-Louis Martineau <martineau@zmanda.com>
776
777         * configure.in: Amanda support x86_64-unknown-linux-gnu.
778
779 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
780
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.
784
785 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
786
787         * client-src/rundump.c: undef USE_RUNDUMP before define.
788
789 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
790         Patch by Franz Fischer
791
792         * client-src/amqde.c: Fix compiler warning.
793
794 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
795         Patch by Franz Fischer
796
797         * common-src/event.h: Fix compiler warning.
798         * server-src/conffile.h: Fix compiler warning.
799
800 2005-11-30  Kevin Till  <ktill@zmanda.com>
801         
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
823         
824 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
825
826         * config/libtool.m4i: libtool 1.5.20
827         * config/ltmain.sh: libtool 1.5.20
828
829 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
830         Patch by Franz Fischer
831
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.
839
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.
847
848 2005-11-20  Jean-Louis Martineau <martineau@zmanda.com>
849         Patch by Jon H. LaBadie
850
851         * changer-src/chg-disk.sh.in: Check permission on file access.
852
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.
857
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.
864
865 2005-11-15  Paddy Sreenivasan <paddy@zmanda.com>
866
867         * configure.in:  Changed defaults for tape_dev and nr_tape_dev.
868         * example/amanda.conf.in: Leave only changerfile definition
869           uncommented.
870         * man/xml-source/amanda.conf.5.xml: Updated defaults for 
871           tapedev and rawtapedev
872
873 2005-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
874
875         * server-src/planner.c: Fix incronly.
876
877 2005-11-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
878
879         * man/Makefile.am: Set man_MANS,
880
881 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
882
883         * man/Makefile.am: Set man5_MANS and man8_MANS,
884           install-data-hook use them.
885
886 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
887         Patch by Olivier Cherrier
888
889         * man/Makefile.am (install-data-hook): Set protection correclty
890           for man5 and man8.
891
892 2005-10-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
893
894         * common-src/util.c (bind_portrange): Increase port in all case.
895
896 2005-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
897
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.
902
903
904 2005-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
905
906         * Amanda 2.5.0b1 released.
907         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
908         * NEWS: Update for 2.5.0b1.
909
910 2005-10-25  Ian Turner <ian@zmanda.com>
911         
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.
918         
919 2005-10-24  Jean-Louis Martineau <martineau@zmanda.com>
920
921         * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
922           the argvchild array.
923
924 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
925
926         * server-src/server_util.c (getcmd): Print DEBUG to stderr.
927
928 2005-10-20  Ian Turner <ian@zmanda.com>
929
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
985
986 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
987
988         * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
989           phase.
990         * server-src/driver.c: Start autoflush while waiting for estimate.
991         * server-src/planner.c: Write FLUSH line before estimate.
992
993 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
994         Patch by John R. Franks <jrfranks@zmanda.com>
995
996         * server-src/taper.c (create_split_buffer): Should not use sizeof().
997
998 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
999
1000         * server-src/taper.c (read_file): Move the putresult(DONE) to the
1001           right place, some cleanup.
1002
1003 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
1004
1005         * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
1006
1007 2005-10-17  Ian Turner <ian@zmanda.com>
1008
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
1012           number.
1013         * common-src/tapelist.c: Do proper memory management of strings.
1014           Otherwise really bad stuff happens.
1015
1016 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
1017
1018         * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
1019           handle it correctly.
1020
1021 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
1022
1023         * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
1024           is done by exit.
1025
1026 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
1027
1028         * server-src/driverio.c (serial2disk): Print str if error.
1029
1030 2005-10-15  Paddy Sreenivasan <paddy@zmanda.com>
1031
1032         * server-src/taper.c: Shared memory need not be removed in normal paths.
1033           Done as part of atexit. 
1034
1035 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
1036         Patch by John R. Franks <jrfranks@zmanda.com>
1037
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
1059           "fopen() == NULL".
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
1063           function...
1064         * tape-src/tapeio.h: Prototype for tape_open.
1065
1066 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
1067         Patch by Paddy Sreenivasan <paddy@zmanda.com>
1068
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.
1072
1073 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
1074
1075         * regex-src/regcomp.c (findmust): Initialized start to NULL.
1076
1077 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
1078         Patch by John R. Franks <jrfranks@zmanda.com>
1079
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.
1089
1090 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
1091         Patch by John R. Franks <jrfranks@zmanda.com>
1092
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.
1097
1098 2005-10-13  Jean-Louis Martineau <martineau@zmanda.com>
1099
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.
1106
1107 2005-10-12  Jean-Louis Martineau <martineau@zmanda.com>
1108
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.
1112
1113 2005-10-11  Ian Turner <ian@zmanda.com>
1114         Patch by  Jean-Louis Martineau <martineau@zmanda.com>
1115         
1116         * restore-src/amfetchdump.c: Remove unused variable debug.
1117         * restore-src/amidxtaped.c: Remove lock_logfile(), which is also 
1118           in restore.c.
1119         * restore-src/Makefile.am: Include libamanda twice, to fix build 
1120           on some machines.
1121
1122 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1123
1124         * restore-src/Makefile (noinst_HEADERS): Add restore.h.
1125         * restore-src/restore.c (search_tapes): Add the fourth argument to
1126           read_file_header.
1127
1128 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1129
1130         * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
1131           to 0.
1132         * server-src/reporter.c (handle_partial): Set repdata to the result
1133           of handle_success.
1134         * server-src/taper.c: Set the first-file.
1135
1136 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1137
1138         * client-src/client_util.c, server-src/amcheck.c,
1139           server-src/reporter.c: Add missing type for arguments.
1140
1141 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1142
1143         * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
1144
1145 2005-10-10  Ian Turner <ian@zmanda.com>
1146
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
1202
1203 2005-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1204
1205         * server-src/taper.c: Change message: on new tape due to
1206
1207 2005-10-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1208         Patch by John R. Franks 
1209
1210         * common-src/amflock.c (main): Don't call safe_fd, it's not needed
1211           during configure.
1212         * configure.in: '#include <sys/types.h>' in the check
1213           'for Linux like scsi support (sg)'
1214
1215 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1216
1217         * client-src/amandad.c (writebuf): Call waitpid in the parent.
1218
1219 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1220
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.
1224
1225 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1226
1227         * common-src/rsh-security.c: rshprintf should call dbprint.
1228         * common-src/ssh-security.c: rshprintf should call dbprint, add many
1229           rshprintf.
1230         * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
1231           to the log. 
1232
1233 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1234
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.
1242
1243 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1244
1245         * server-src/reporter.c: Don't trunk hostname/diskname in
1246           'FAILURE AND STRANGE DUMP SUMMARY' section.
1247
1248 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1249
1250         * server-src/chunker.c (main): Remove outfd.
1251
1252 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1253
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.
1257
1258 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1259
1260         * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
1261
1262 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1263
1264         * common-src/sl.c (insert_sort_sl). Typo.
1265
1266 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1267
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.
1276
1277 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1278
1279         * common-src/bsd-security.c: Fix small bug.
1280
1281 2005-09-22  John R. Jackson <jrj@purdue.edu>
1282
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.
1287
1288 2005-09-21  John R. Jackson <jrj@purdue.edu>
1289
1290         * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
1291           "amgetconf build.CLIENT_LOGIN".
1292
1293 2005-09-21  John R. Jackson <jrj@purdue.edu>
1294
1295         * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
1296           is defined.
1297
1298 2005-09-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1299
1300         * server-src/amlabel.c: 'int fd' is needed.
1301
1302 2005-09-20  John R. Jackson <jrj@purdue.edu>
1303
1304         * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
1305           <Scott.Burns@Netcontech.Com>.
1306
1307 2005-09-20  John R. Jackson <jrj@purdue.edu>
1308
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".
1355
1356 2005-09-20  John R. Jackson <jrj@purdue.edu>
1357
1358         * client-src/calcsize.c: Fix format string.
1359         * server-src/diskfile.c: Fix compiler warnings.
1360         * server-src/planner.c: Fix compiler warnings.
1361
1362 2005-09-20  John R. Jackson <jrj@purdue.edu>
1363
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
1369           descriptors.
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).
1373
1374 2005-09-20  John R. Jackson <jrj@purdue.edu>
1375
1376         * client-src/sendbackup-dump.c: Ignore a new message from Solaris
1377           vxdump.
1378
1379 2005-09-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1380
1381         * common-src/bsd-security.c: Generate a unique event_id, thei
1382           proto_handle is not always unique.
1383
1384 2005-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1385
1386         * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
1387
1388 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1389
1390         * server-src/driverio.c: Don't save history with size < 0.
1391
1392 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1393         Patch by Geert Uytterhoeven <geert@linux-m68k.org>
1394
1395         * server-src/planner.c: Don't use history with size < 0.
1396
1397 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1398         Patch Paul Bijnens <paul.bijnens@xplanation.com>
1399
1400         * server-src/planner.c(delay_dumps): Delay incremental dump also
1401           larger than tape.
1402
1403 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1404         Patch by Orion Poplawski <orion@cora.nwra.com>
1405
1406         * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
1407         * man/amoverview.8: Document -last, -num0 and -togo0.
1408
1409 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1410         Patch by Orion Poplawski <orion@cora.nwra.com>
1411
1412         * server-src/driver.c: Make tape_length and tape_left unsigned long.
1413
1414 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1415         Patch by Stefan G. Weichinger <monitor@oops.co.at>
1416
1417         * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
1418
1419 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1420
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.
1424
1425 2005-06-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1426         Patch by Jay Fenlason <fenlason@redhat.com>
1427
1428         * client-src/sendsize.c: Fix dbprintf call.
1429
1430 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1431             Stefan G. Weichinger <monitor@oops.co.at>
1432
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
1436                                   sense anymore.
1437
1438 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1439
1440         * server-src/amverifyrun.sh.in: Remove buggy space.
1441
1442 2005-05-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1443
1444         * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
1445
1446 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1447
1448         * example/amanda.conf.in: Update from 2.4.5.
1449
1450 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1451
1452         * docs/*: New documentation from xml-docs.
1453         * docs/Makefile.am (pkgdata_DATA): Update for new files.
1454
1455 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1456
1457         * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
1458
1459 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1460
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
1467
1468 2005-05-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1469
1470         * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
1471           nothing more.
1472         * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
1473           nothing more.
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.
1478
1479 2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1480
1481         * changer-src/chg-zd-mtx.sh.in: Improve handling of
1482           "Unknown Storage Element Loaded".
1483
1484 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1485         - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
1486
1487         * server-src/amverifyrun.sh.in: Filter changer log file.
1488
1489 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1490
1491         * server-src/amcheck.c: Improve messages.
1492
1493 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1494
1495         * client-src/sendsize.c (generic_calc_estimates): Use amname instead
1496           of dirname in message.
1497
1498 2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1499
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.
1508
1509 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1510
1511         * server-src/infofile.h (history_t): Add secs field.
1512         * server-src/infofile.c (read_txinfofile): Parse info file with secs
1513           in history.
1514         * server-src/infofile.c (write_txinfofile): Write secs in history.
1515         * server-src/driverio.c (update_info_dumper): Update secs in history.
1516
1517 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1518
1519         * server-src/planner.c: Improve server estimate.
1520         * server-src/planner.c: Write server estimate like others estimate.
1521
1522 2005-02-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1523
1524         * server-src/amstatus.pl.in: last_level is negative, on new disk.
1525
1526 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1527
1528         * server-src/amstatus.pl.in: Use '-?' to match negative values
1529           instead of '-*'.
1530
1531 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1532         Patch by Orion Poplawski <orion@cora.nwra.com>
1533
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.
1537
1538 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1539         Patch by Phil Homewood <pdh@snapgear.com>
1540
1541         * server-src/amoverview.pl.in: Add -skipmissed option.
1542
1543 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1544
1545         * server-src/driver.c: Print the chunksize to the log.
1546
1547 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1548
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.
1552
1553 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1554         Patch by Franz G. Fischer
1555
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.
1562
1563 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1564
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.
1570
1571 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1572
1573         * client-src/calcsize.c: Improve estimate for sparse file and count
1574           space for filenames.
1575
1576 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1577
1578         * server-src/planner.c: Improve message if no incremental estimate.
1579
1580 2004-12-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1581         Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
1582
1583         * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
1584           before calling error().
1585
1586 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1587
1588         * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
1589
1590 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1591
1592         * server-src/driver.c: Typo.
1593
1594 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1595
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.
1599
1600 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1601
1602         * server-src/driver.c: tape_left should not become negative.
1603
1604 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1605         Patch by Orion Poplawski <orion@cora.nwra.com>
1606
1607         * server-src/diskfile.c: Parse negative spindle (-1).
1608
1609 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1610
1611         * server-src/amadmin.c: Balance subcommand use displayunit.
1612         * server-src/amcheck.c: Small cleanup.
1613
1614 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1615
1616         * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
1617           the file: dirver.
1618
1619 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1620
1621         * server-src/amstatus.pl.in: Remove trace.
1622
1623 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1624
1625         * server-src/diskfile.c: Compilation fix.
1626
1627 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1628
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.
1636
1637 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1638
1639         * server-src/reporter.c: Change 'Daily' for 'Incr.'.
1640
1641 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1642
1643         * server-src/amstatus.pl.in Fix for level -1.
1644
1645 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1646         Patch by Daniel Widyono <widyono@seas.upenn.edu>
1647
1648         * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
1649
1650 2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1651
1652         * restore-src/amrestore.c: Read empty file.
1653
1654 2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1655
1656         * tape-src/tapetype.c: Use new tape.
1657
1658 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1659
1660         * server-src/amstatus.pl.in: Display partial estimate.
1661
1662 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1663
1664         * server-src/diskfile.c (read_diskline): A spindle must be numerical.
1665
1666 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1667
1668         * server-src/holding.c (rename_tmp_holding): Always rename files.
1669
1670 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1671
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.
1675
1676 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1677
1678         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
1679           if dumper returns DONE and taper returns TRYAGAIN.
1680
1681 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1682
1683         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
1684           if dumper returns TRYAGAIN and taper returns DONE.
1685
1686 2004-10-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1687
1688         * server-src/amflush.c: Don't start a driver if nothing to flush.
1689
1690 2004-10-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1691         Patch by Eric Siegerman <erics@telepres.com>
1692
1693         * example/3hole.ps: Fix for multiple tape.
1694
1695 2004-10-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1696
1697         * server-src/amverify.sh.in: Terminate if no tape online.
1698
1699 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1700
1701         * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
1702
1703 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1704
1705         * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
1706
1707 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1708
1709         * server-src/planner.c (promote_hills): Use dumpcycle instead of
1710           tapecycle.
1711         * example/amanda.conf.in: Remove warning for tapecyle set to inf.
1712
1713 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1714
1715         * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
1716           big.
1717
1718 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1719
1720         * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
1721           tape without -o.
1722         * man/amtapetype.8.in: Document new -o option.
1723
1724 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1725
1726         * server-src/amstatus.pl.in: Works with failed dump to tape.
1727
1728 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1729
1730         * client-src/sendbackup-gnutar.c (end_backup): Write warning message
1731           in not fatal error.
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.
1735
1736 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1737
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.
1740
1741 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1742         Patch by Joe Rhett <jrhett@isite.net>
1743
1744         * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
1745
1746 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1747         Patch by Orion Poplawski <orion@cora.nwra.com>
1748
1749         * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
1750
1751 2004-08-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1752
1753         * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
1754
1755 2004-08-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1756
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
1761           it is needed.
1762         * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
1763           if it support fe_selfcheck_calcsize.
1764
1765 2004-08-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1766
1767         * man/amanda.8.in: Document 'estimate' dumptype option.
1768
1769 2004-08-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1770
1771         * server-src/amrmtape.sh.in: Understand history info.
1772
1773 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1774
1775         * server-src/driver.c: Typo.
1776
1777 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1778
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).
1781
1782 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1783
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
1789           command.
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
1793           serial for a dp.
1794         * server-src/driverio.h (free_serial_dp): Prototype.
1795         * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
1796           command.
1797
1798 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1799
1800         * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
1801           CALCSIZE estimate.
1802
1803 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1804
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
1812           estimate.
1813
1814 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1815
1816         * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
1817           for estimate type.
1818         * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
1819         * server-src/conffile.c (get_estimate): New function to parse estimate
1820           type, ....
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.
1824
1825 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1826
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.
1830
1831 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1832
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.
1840
1841 2004-05-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1842         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
1843
1844         * server-src/planner.c: Log L_DISK for autoflush disk.
1845
1846 2004-05-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1847
1848         * server-src/planner.c (handle_result): Add dp to pestq at the
1849           correct place.
1850
1851 2004-04-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1852
1853         * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
1854
1855 2004-04-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1856
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.
1861
1862 2004-04-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1863
1864         * configure.in: Fix for automake 1.8.4.
1865         * config/acinclude.m4i: Fix for automake 1.8.4.
1866
1867 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1868
1869         * configure.in: Result of autoupdate.
1870
1871 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1872
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.
1881
1882 2004-04-26  Marc Mengel <mengel@fnal.gov>
1883
1884         * tape-src/output-rait.c: Verify reads correctly.
1885
1886 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1887
1888         * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
1889         fill up when in degraded mode.
1890
1891 2004-04-23  Eric Siegerman <eric_97@pobox.com>
1892
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.
1900
1901 2004-04-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1902
1903         * server-src/planner.c (setup_estimate): Typo.
1904
1905 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1906
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.
1915
1916 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1917         Fix by Paul Bijnens <paul.bijnens@xplanation.com>
1918
1919         * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
1920           if strategy is noinc.
1921
1922 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1923         Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
1924
1925         * man/amoverview.8.in: Document results.
1926
1927 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1928         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
1929
1930         * server-src/amoverview.pl.in: Print last two characters.
1931
1932 2004-04-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1933
1934         * changer-src/chg-disk.sh.in: Fix for sh compatibility.
1935
1936 2004-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1937         Fix by John Koyle <jkoyle@rfpdepot.com>
1938
1939         * common-src/dgram.c: Fix EAGAIN on Linux.
1940
1941 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1942
1943         * server-src/amadmin.c (bumpsize): Typo.
1944
1945 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1946
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.
1955
1956 2004-04-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1957
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.
1965
1966 2004-03-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1967
1968         * amplot/amplot.awk: Parse "driver: tape size" line.
1969
1970 2004-03-22  Stefan G. Weichinger <monitor@oops.co.at>
1971
1972         * server-src/amcheck.c (start_host): Added warning for hostname
1973           localhost.
1974         * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
1975
1976 2004-03-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1977
1978         * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
1979
1980 2004-03-18  Stefan G. Weichinger <monitor@oops.co.at>
1981
1982         * docs/TOP-TEN-QUESTIONS: New file.
1983
1984 2004-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1985
1986         * server-src/reporter.c (handle_success): Set stats[i].coutsize
1987           correctly.
1988         * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
1989
1990 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1991
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.
1996
1997 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1998
1999         * server-src/amcheck.c: Do labelstr check in correct order.
2000
2001 2004-03-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2002
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
2009           of event_wakeup.
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.
2015
2016 2004-03-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2017
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.
2022
2023 2004-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2024
2025         * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
2026
2027 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2028         Reported by Allen Liu <allen@bellglobal.com>
2029
2030         * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
2031
2032 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2033
2034         * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
2035         * server-src/taper.c: Ditto
2036
2037 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2038
2039         * server-src/driver.c (dump_schedule): Print complete name.
2040
2041 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2042
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.
2054
2055 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2056         Reported by Jason Brooks <jason.brooks@windriver.com>
2057
2058         * server-src/reporter.c: Remove duplicate setting of cd to
2059           &ColumnData[Level].
2060
2061 2004-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2062         Patch by Philippe Charnier <charnier@xp11.frmug.org>
2063
2064         * server-src/amtrmidx.c: Add '\n'.
2065
2066 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2067
2068         * recover-src/set_commands.c (cd_glob): Fix memory leak.
2069
2070 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2071
2072         * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
2073         * recover-src/uscan.l: Fix double amfree.
2074
2075 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2076
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.
2082
2083 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2084
2085         * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
2086
2087 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2088
2089         * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
2090           to verify.
2091
2092 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2093
2094         * server-src/amdump.sh.in: Do not redirect to /dev/null.
2095
2096 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2097
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.
2101
2102 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2103
2104         * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
2105
2106 2004-01-29  Christoph Pospiech <pospiech@de.ibm.com>
2107
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.
2113
2114 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2115
2116         * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
2117
2118 2004-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2119
2120         * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
2121         * example/amanda.conf.in: Update record documentation.
2122         * man/amanda.8.in: Update record documentation.
2123
2124 2004-01-14  Stefan G. Weichinger <monitor@oops.co.at>
2125
2126         * docs/INSTALL: Add config for xinetd.
2127
2128 2004-01-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2129
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.
2133
2134 2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2135
2136         * docs/HOWTO-FILE-DRIVER: New file.
2137         * docs/TAPE.CHANGERS: Explain chg-disk.
2138         * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
2139
2140 2003-12-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2141
2142         * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
2143
2144 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2145         Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
2146
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.
2150
2151 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2152
2153         * tape-src/tapetype.c: extern int optind.
2154         * tape-src/tapeio.c: extern int optind.
2155
2156 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2157         Patch by C.Scheeder <christoph.scheeder@scheeder.de>
2158
2159         * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
2160
2161 2003-11-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2162
2163         * server-src/driver.c: Print the tape size.
2164         * server-src/amstatus.pl.in: print % of tape use.
2165
2166 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2167
2168         * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
2169
2170 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2171
2172         * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
2173
2174 2003-11-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2175
2176         * server-src/amcheck.c (taperscan_slot): Deal with label not in
2177           tapelist case.
2178         * server-src/amtape.c (taperscan_slot): Ditto.
2179         * server-src/taper.c (taperscan_slot): Ditto.
2180
2181 2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2182
2183         * server-src/driver.c (handle_taper_result): Always call
2184           continue_dumps() in TRYAGAIN case.
2185
2186 2003-11-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2187
2188         * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
2189         if no tape in drive.
2190
2191 2003-11-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2192
2193         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
2194
2195 2003-11-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2196         Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
2197
2198         * client-src/selfcheck.c: Skip accessibility check for AFS entries.
2199         * docs/HOWTO-AFS: New file.
2200
2201 2003-11-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2202
2203         * server-src/amadmin.c (tape): Display the next new tapes.
2204         * server-src/reporter.c (output_tapeinfo): Ditto.
2205
2206 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2207
2208         * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
2209
2210 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2211
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.
2218
2219 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2220
2221         * server-src/amcheck.c: Use stralloc(optarg).
2222         * tape-src/ammt.c: Use stralloc(optarg).
2223         * tape-src/tapetype.c: Use stralloc(optarg).
2224
2225 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2226         Patch by Jay Fenlason <fenlason@redhat.com>
2227
2228         * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
2229
2230 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2231         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
2232
2233         * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
2234
2235 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2236
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.
2243
2244 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2245
2246         * server-src/amlogroll.c: set_pname("amlogroll").
2247
2248 2003-10-24  Todd M. Kover <kovert@omniscient.com>
2249
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.
2254
2255 2003-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2256
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
2260           tp->datestamp > 0.
2261         * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
2262
2263 2003-10-23  Todd Kover <kovert@omniscient.com>
2264
2265         * make amrecover link against readline rather than libamanda so
2266           only amrecover would require the shared library (if it's found)
2267
2268 2003-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2269         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2270
2271         * client-src/amandates.c (finish_amandates): Call error() if the
2272           close of amdf fail.
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
2275           fail.
2276         * server-src/tapefile.c (write_tapelist): Return 1 if the close of
2277           tapef fail.
2278
2279 2003-10-14  John R. Jackson (jrj@purdue.edu)
2280
2281         * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
2282           size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
2283
2284 2003-10-14  John R. Jackson (jrj@purdue.edu)
2285
2286         * client-src/sendsize.c: Handle case where PID's get re-used.
2287
2288 2003-10-14  John R. Jackson (jrj@purdue.edu)
2289
2290         * configure.in: Need to check for sys/gscdds.h on AIX to enable
2291           SCSI changer.
2292
2293 2003-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2294
2295         * common-src/genversion.c (prundefvar): New function to print an
2296           undefined variable.
2297         * common-src/genversion.c: Print undefined variable.
2298         * server-src/amcheck.c: Improve message for no LPRCMD defined.
2299
2300 2003-07-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2301
2302         * restore-src/amidxtaped.c: Don't clea re_label before checking
2303           for the changer.
2304
2305 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2306         Patch by Scott Mcdermott <smcdermott@questra.com>
2307
2308         * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
2309           variable to add a pause after a tape loading.
2310
2311 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2312         Fix by John E. Hein <jhein@timing.com>
2313
2314         * changer-src/chg-manual.sh.in: Quote @EGREP@.
2315         * changer-src/chg-null.sh.in: Quote @EGREP@.
2316
2317 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2318
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
2322           debug file.
2323
2324 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2325
2326         * changer-src/chg-chio.pl.in: Fix next/prev command.
2327
2328 2003-07-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2329         patch by Paul Bijnens <paul.bijnens@xplanation.com>
2330
2331         * client-src/client_util.c (add_include): Count include with 2 /,
2332           Fix descriptor leak.
2333
2334 2003-06-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2335
2336         * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
2337
2338 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2339
2340         * server-src/holding.c: Fix compiler error.
2341         * server-src/planner.c: Use snprintf.
2342
2343 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2344         patch by Paul Bijnens <paul.bijnens@xplanation.com>
2345
2346         * tape-src/tapetype.c: Avoid a numerical overflow for large tape
2347           capacities.
2348
2349 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2350
2351         * server-src/amstatus.pl.in: Fix to failed tape.
2352
2353 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2354
2355         * server-src/planner.c (delay_dumps): Delay not delay forced full
2356           before forced full.
2357
2358 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2359
2360         * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
2361
2362 2003-06-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2363
2364         * server-src/amverify.sh.in: Do not advance to next tape.
2365
2366 2003-06-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2367         patch by Eric Siegerman <eric_97@pobox.com>
2368
2369         * server-src/planner.c: Make promote_hills() honour maxpromotedays.
2370
2371 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2372
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.
2376
2377 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2378
2379         * client-src/noop.c: #include "util.h".
2380
2381 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2382
2383         * server-src/amflush.c: Implement new -b and -s options.
2384         * man/amflush.8.in: Document it.
2385
2386 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2387
2388         * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
2389           taper reply DONE.
2390
2391 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2392
2393         * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
2394
2395 2003-06-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2396
2397         * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
2398
2399 2003-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2400         Bug reported by Sven Rudolph <rudsve@drewag.de>
2401
2402         * server-src/holding.c (mkholdingdir): New function to create a holding
2403           directory.
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
2407           writing.
2408
2409 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2410         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2411
2412         * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
2413
2414 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2415         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2416
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.
2420
2421 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2422
2423         * tape-src/output-file.c (check_online): Write error if opendir failed.
2424
2425 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2426         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2427
2428         * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
2429           of parsing the disklist file.
2430
2431 2003-05-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2432
2433         * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
2434           previous patch.
2435
2436 2003-05-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2437
2438         * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
2439
2440 2003-05-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2441
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.
2445
2446 2003-05-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2447
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.
2451
2452 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2453
2454         * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
2455           linux/ftape-vendors.h et linux/ftape.h.
2456
2457 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2458         Patch by Darin Dugan <dddugan@iastate.edu>
2459
2460         * server-src/amcheck.c: Change subject in email if no error.
2461
2462 2003-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2463
2464         * common-src/error.c (output_error_message): Always prepend program
2465           name.
2466
2467 2003-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2468
2469         * server-src/amstatus.pl.in: Fix for estimate disk.
2470
2471 2003-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2472
2473         * server-src/taper.c: Read holding file correctly if blocksize != 32k.
2474
2475 2003-04-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2476         New file by Robert C Dege <RDege@northropgrumman.com>
2477
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.
2485
2486 2003-04-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2487
2488         * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
2489           configure option.
2490
2491 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2492
2493         * server-src/amverifyrun.sh.in: Run the amverify command.
2494
2495 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2496         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2497
2498         * server-src/reporter.c: Get the filenumber correct.
2499
2500 2003-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2501         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2502
2503         * server-src/reporter.c: Print a postscript label for each tape used.
2504
2505 2003-03-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2506
2507         * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
2508           define DEV_PREFIX and RDEV_PREFIX.
2509
2510 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2511
2512         * configure.in: Typo.
2513
2514 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2515         Patch by Gert Doering <gert@greenie.muc.de>
2516
2517         * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
2518
2519 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2520
2521         * configure.in: Compile on *-sco3.2v4*
2522
2523 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2524
2525         * configure.in: Use '=' instead of '=='.
2526
2527 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2528
2529         * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
2530           file: and tape: as driver, not host name.
2531
2532 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2533
2534         * server-src/amrmtape.sh.in: Print better output.
2535
2536 2003-03-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2537
2538         * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
2539
2540 2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2541
2542         * client-src/client_util.c (add_include): If include contain 2 '/' then
2543           use at asis, don't try to match it.
2544
2545 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2546
2547         * server-src/changer.h (changer_label): Return an int.
2548         * server-src/changer.h (changer_label): First parameter is char *.
2549
2550 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2551
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
2558           master_fd.
2559         * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
2560
2561 2003-03-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2562
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.
2582
2583 2003-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2584
2585         * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
2586           before opening the file for writing.
2587
2588 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2589
2590         * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
2591
2592 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2593
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.
2598
2599 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2600
2601         * recover-src/extract_list.c: Fix the name of the
2602           amidxtaped.<timestamp>.debug file.
2603
2604 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2605         Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
2606         
2607         * restore-src/amidxtaped.c: Use the device sent by the changer.
2608
2609 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2610
2611         * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
2612           all failure path.
2613
2614 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2615
2616         * server-src/changer.c: Sync with 2.4.4.
2617
2618 2003-02-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2619
2620         * client-src/client_util.c: Print error except ENOENT for
2621           exclude/include files.
2622
2623 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2624
2625         * tape-src/tapetype.c: Use %ld to print some variable.
2626
2627 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2628
2629         * server-src/conffile.c (init_defaults): conf_printer.s must be set
2630           with stralloc("").
2631
2632 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2633         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2634
2635         * tape-src/tapetype.c: Document -c option.
2636
2637 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2638
2639         * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
2640
2641 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2642
2643         * server-src/tapefile.c (read_tapelist): return 1 if can't open the
2644           tapelist file.
2645
2646 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2647
2648         * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
2649
2650 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2651
2652         * server-src/amcheck.c: New -a option.
2653         * man/amcheck.8.in: Document it.
2654
2655 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2656
2657         * server-src/amindexd.c (build_disk_table): Compare the level.
2658
2659 2003-02-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2660         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2661
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.
2665
2666 2003-02-09  John R. Jackson (jrj@purdue.edu)
2667
2668         * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
2669           This helps performance on some OS's.
2670
2671 2003-02-08  John R. Jackson (jrj@purdue.edu)
2672
2673         * restore-src/amrestore.c: Clean up strtol() argument processing.
2674
2675 2003-02-08  John R. Jackson (jrj@purdue.edu)
2676
2677         * docs/INSTALL: Clean up supporting package versions and URL's.
2678
2679 2003-02-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2680
2681         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
2682
2683 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2684         Patch by Christophe Kalt <kalt@taranis.org>
2685
2686         * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
2687         * client-src/sendsize.c: New re_size for NetApp.
2688
2689 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2690         Fix by Colin Henein <cmh@>
2691
2692         * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
2693
2694 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2695         Patch by Doug Kingston <dpk@randomnotes.org>
2696
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.
2700
2701 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2702         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
2703
2704         * man/amtapetype.8.in: Fix example.
2705
2706 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2707
2708         * common-src/amanda.h: #define S_ISDIR if not already defined.
2709
2710 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2711         File from Doug Kingston <dpk@randomnotes.org>
2712
2713         * docs/HOWTO-CYGWIN.html: New file.
2714
2715 2003-01-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2716
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.
2721
2722 2003-01-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2723
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.
2727
2728 2003-01-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2729         Reported by Doug Kingston <dpk@randomnotes.org>
2730
2731         * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
2732
2733 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2734
2735         * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
2736
2737 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2738
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.
2751
2752 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2753
2754         * server-src/taper.c (read_file): Don't count header in filesize.
2755
2756 2003-01-25  John R. Jackson (jrj@purdue.edu)
2757
2758         * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
2759           by indeterminate compiler order of evaluation.
2760
2761 2003-01-25  John R. Jackson (jrj@purdue.edu)
2762
2763         * restore-src/amidxtaped.c: Log errno when tape_stat fails.
2764         * restore-src/amrestore.c: Ditto.
2765         * tape-src/output-rait.c: Ditto.
2766
2767 2003-01-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2768
2769         * server-src/amstatus.pl.in: print an usage by tape.
2770
2771 2003-01-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2772
2773         * recover-src/extract_list.c (add_extract_item, delete_extract_item):
2774           Check also for level when comparing label.
2775
2776 2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2777
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).
2781
2782 2003-01-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2783
2784         * configure.in: disable amrestore if --without-server is set.
2785
2786 2003-01-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2787
2788         * client-src/amandad.c: Use the dbfd macro instead of the external
2789           variable db_fd.
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.
2798
2799 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2800
2801         * recover-src/amrecover.c: Fix memory leak.
2802
2803 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2804
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
2811           s_maxpromoteday.
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.
2817
2818 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2819         Reported by Josh More <jmore@remote-print.com>
2820
2821         * client-src/client_util.c (add_exclude, add_include): Remove the
2822           need for MAXPATHLEN.
2823
2824 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2825         Fix by Josh More <jmore@remote-print.com>
2826
2827         * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
2828
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.
2831
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.
2835
2836 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2837
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.
2866
2867 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2868
2869         * amplot/amplot.awk: Many fix.
2870
2871 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2872
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.
2876
2877 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2878         Patch by Brad Roberts <braddr@puremagic.com>
2879
2880         * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
2881         * server-src/holding.c (get_flush): Ditto.
2882
2883 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2884
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
2889           tape.
2890
2891 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2892
2893         * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
2894
2895 2002-12-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2896
2897         * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
2898
2899 2002-12-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2900
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.
2906
2907 2002-12-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2908
2909         * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
2910
2911 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2912
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.
2915
2916 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2917
2918         * amplot/amplot.awk: Parse newer log lines.
2919
2920 2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca> 
2921         * server-src/reporter.c (output_stats): Typo.
2922
2923 2002-12-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2924
2925         * server-src/reporter.c: Print an usage by tape.
2926
2927 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2928
2929         * tape-src/tapeio.c (do_read): Init count to 0.
2930
2931 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2932
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.
2938
2939 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2940
2941         * tape-src/ammt.c (optind): Add prototype.
2942         * tape-src/amdd.c (optind): Add prototype.
2943
2944 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2945
2946         * common-src/arglist.h (printf_arglist_function,
2947           printf_arglist_function1, printf_arglist_function2): Define if
2948           STDC_HEADERS is not defined.
2949
2950 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2951
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
2955          largest.
2956
2957 2002-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2958
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.
2962
2963 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2964
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.
2972
2973 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2974
2975         * tape-src/tapetype.c: Cast time_t to long for printing.
2976
2977 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2978
2979         * server-src/amflush.c: Write a "amflush: start at ???" line.
2980         * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
2981
2982 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2983
2984         * server-src/planner.c (delay_dumps): Use snprintf.
2985
2986 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2987
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.
2990
2991 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2992
2993         * docs/TAPE.CHANGERS: Sync with 2.4.3.
2994
2995 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
2996
2997         * server-src/amadmin.c: Cleanup.
2998
2999 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3000
3001         * man/amadmin.8.in: Document new --days option of balance subcommand.
3002
3003 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3004
3005         * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
3006         * server-src/amadmin.c (balance): Improve output.
3007
3008 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3009
3010         * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
3011
3012 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3013
3014         * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
3015
3016 2002-11-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3017
3018         * server-src/reporter.c: Fix for LPRCMD not defined.
3019
3020 2002-11-14  Marc Mengel <mengel@fnal.gov>
3021
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,
3025         then cleans up.
3026
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.
3032
3033 2002-11-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3034         Patch by Orion Poplawski <orion@colorado-research.com>
3035
3036         * server-src/planner.c (delay_dumps): Add the estimate size to all call
3037           of delay_one_dump.
3038
3039 2002-11-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3040
3041         * server-src/reporter.c: Increase width of some field.
3042
3043 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3044
3045         * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
3046
3047 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3048
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.
3068
3069 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3070
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.
3075
3076 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3077
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.
3084
3085 2002-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3086
3087         * restore-src/amidxtaped.c: Fix restore from file.
3088
3089 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3090
3091         * restore-src/amidxtaped.c: Fix newline in string literal.
3092
3093 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3094
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.
3100
3101 2002-11-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3102
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.
3117
3118 2002-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3119
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
3124
3125 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3126
3127         * configure.in: Remove --disable-libtool.
3128         * */Makefile.am: Remove WANT_LIBTOOL.
3129
3130 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3131
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.
3152
3153 2002-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3154
3155         * man/amrestore.8: Amrestore doesn't use a changer.
3156
3157 2002-11-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3158
3159         * configure.in (SHELL): Don't set it, libtool do it.
3160
3161 2002-10-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3162
3163         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
3164
3165 2002-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3166
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.
3170
3171 2002-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3172
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.
3177
3178 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3179         Undo patch of 2002-10-24. They are needed by amrecover.
3180
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.
3185
3186 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3187         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
3188
3189         * tape-src/tapetype.c: Detects and warns the user if the tape drive
3190           has hardware compression enabled.
3191
3192 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3193
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.
3197         
3198 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3199
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
3206           in struct DIR_ITEM.
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.
3216
3217 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3218         patch by Doug Kingston <dpk@pobox.com>
3219
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
3228           IGNORE_UID_CHECK.
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.
3231
3232 2002-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3233
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.
3238
3239 2002-10-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3240
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.
3246
3247 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3248
3249         * client-src/Makefile.am: Work around for CYGWIN.
3250         * server-src/Makefile.am: Ditto.
3251
3252 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3253
3254         * configure.in: Remove empty command from $program_transform_name.
3255
3256 2002-10-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3257
3258         * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
3259
3260 2002-09-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3261
3262         * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
3263
3264 2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3265
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.
3274
3275 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3276
3277         * server-src/amverify.sh.in: Accept runtapes as a third argument.
3278         * man/amverify.8.in: Document it.
3279
3280 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3281
3282         * config/missing: Updated from automake-1.5.
3283
3284 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3285
3286         * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
3287         * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
3288
3289 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3290
3291         * client-src/sendsize.c (getsize_dump): Print the fstype.
3292         * client-src/sendbackup-dump.c (start_backup): Print the fstype.
3293
3294 2002-09-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3295         Patch by  Florian Hars <hars@bik-gmbh.de>
3296
3297         * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
3298
3299 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3300
3301         * recover-src/extract_list.c (extract_files): print tape drive
3302           and host before asking to load tape.
3303
3304 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3305
3306         * server-src/taper.c (read_file): Initialize file, 
3307           stat(file.cont_filename) before opening it.
3308           
3309 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3310
3311         * server-src/amverify.sh.in: Don't check that the device is
3312           a character device, it could be a file: or rait:
3313
3314 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3315
3316         * common-src/amfeatures.c (am_set_default_feature_set):
3317           fe_rep_options_sendbackup_options is a default feature.
3318
3319 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3320
3321         * server-src/amstatus.pl.in: Sort a disk in datestamp order.
3322
3323 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3324         Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
3325
3326         * docs/EXCLUDE: Improve documentation.
3327
3328 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3329
3330         * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
3331
3332 2002-08-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3333         Patch by Jason Brooks <jason0@mail.wrs.com>
3334
3335         * docs/chg-scsi.notes: New document.
3336         * changer-src/chg-scsi.c: Adding printout of "emubarcode" values 
3337           in the debug file.
3338         * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to 
3339           ChangerIO[].
3340         * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
3341
3342 2002-08-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3343
3344         * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
3345           "/dev/null" instead of filename.
3346
3347 2002-08-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3348
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.
3362
3363 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3364
3365         * recover-src/uparse.y: Fix compiler warning.
3366
3367 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3368
3369         * server-src/amtrmidx.c: Continue if a directory doesn't exist.
3370
3371 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3372
3373         * man/amanda.8.in (tapecycle): Improve documentation.
3374
3375 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3376
3377         * server-src/amstatus.pl.in: Works with features.
3378
3379 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3380
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".
3385
3386 2002-08-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3387
3388         * common-src/file.c (debug_agets): line_free was badly set when
3389         the buffer size in increased.
3390
3391 2002-07-19  John R. Jackson (jrj@purdue.edu)
3392
3393         * common-src/amanda.h: Fix bad #define.
3394
3395 2002-07-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3396         Patch by
3397           David Munro <D.Munro@surrey.ac.uk>
3398
3399         * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
3400           
3401 2002-06-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3402         Bug reported by 
3403           Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
3404
3405         * server-src/reporter.c: Fix psfname filename.
3406
3407 2002-05-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3408
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.
3412
3413 2002-05-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3414         Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
3415
3416         * server-src/taper.c (detach_buffers): Fix compilation with mmap.
3417
3418 2002-04-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3419
3420         * recover-src/extract_list.c (extract_files): Set dump_device_name
3421           after the call of okay_to_continue.
3422
3423 2002-04-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3424
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.
3433
3434 2002-04-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3435
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
3444
3445 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3446
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.
3452
3453 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3454
3455         * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
3456           srvcomp-fast options.
3457
3458 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3459
3460         * server-src/amcheck.c (start_host): Check the todo bit before 
3461           sending noop REQ.
3462
3463 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3464
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):
3468           Declare.
3469         * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
3470
3471 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3472
3473         * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
3474         * client-src/sendbackup.c: Ditto.
3475         * client-src/sendsize.c: Ditto.
3476
3477 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3478
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.
3485
3486 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3487
3488         * server-src/diskfile.c: Improve message for missing features.
3489
3490 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3491
3492         Add many features.
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 
3497           fe_options_auth.
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.
3505
3506 2002-04-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3507
3508         * common-src/amfeatures.c: Include "amfeatures.h"
3509         * common-src/rsh-security.c: Don't assert on undefined variable.
3510
3511 2002-04-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3512
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.
3527
3528 2002-04-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3529
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".
3533
3534 2002-04-13  John R. Jackson (jrj@purdue.edu)
3535
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.
3546
3547 2002-04-13  John R. Jackson (jrj@purdue.edu)
3548
3549         * server-src/diskfile.c: Fix memory leak.
3550
3551 2002-04-13  John R. Jackson (jrj@purdue.edu)
3552
3553         * server-src/amcheck.c: Fix error parsing in packet.
3554
3555 2002-04-13  John R. Jackson (jrj@purdue.edu)
3556
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.
3563           Improve parsing.
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
3569           messages.
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
3576           parsing.
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
3583           parsing.
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
3588           commands.
3589         * server-src/taper.c: Deal with features string in commands.  Improve
3590           parsing.
3591
3592 2002-04-12  John R. Jackson (jrj@purdue.edu)
3593
3594         * server-src/driver.c: Fix crash when only processing a tape queue
3595           (e.g. amflush).
3596
3597 2002-04-11  John R. Jackson (jrj@purdue.edu)
3598
3599         * server-src/driver.c: Protect against crash when taper has died.
3600
3601 2002-04-11  John R. Jackson (jrj@purdue.edu)
3602
3603         * common-src/stream.c: Clean up an error message.
3604
3605 2002-04-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3606
3607         * docs/DUMPER-API: Remove the section about USER and GROUP.
3608
3609 2002-04-09  John R. Jackson (jrj@purdue.edu)
3610
3611         * server-src/driver.c: Fix send of QUIT to taper when it is down.
3612
3613 2002-04-07  John R. Jackson (jrj@purdue.edu)
3614
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.
3618
3619 2002-04-07  John R. Jackson (jrj@purdue.edu)
3620
3621         * client-src/amandad.c: Fix FORCE_USERID to run the service as the
3622           client user if amandad was started as root.
3623
3624 2002-04-07  John R. Jackson (jrj@purdue.edu)
3625
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.
3633
3634 2002-04-07  John R. Jackson (jrj@purdue.edu)
3635
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".
3643
3644 2002-04-07  John R. Jackson (jrj@purdue.edu)
3645
3646         * configure.in: Add /usr/local/sbin to LOCPATH.
3647
3648 2002-03-31  John R. Jackson (jrj@purdue.edu)
3649
3650         * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
3651
3652 2002-03-31  John R. Jackson (jrj@purdue.edu)
3653
3654         * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
3655         * changer-src/scsi-solaris.c: Ditto.
3656
3657 2002-03-31  John R. Jackson (jrj@purdue.edu)
3658
3659         * client-src/amandad.c: Fix arguments to pkt_cat.
3660         * common-src/bsd-security.c: Ditto.
3661
3662 2002-03-31  John R. Jackson (jrj@purdue.edu)
3663
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.
3692
3693 2002-03-31  John R. Jackson (jrj@purdue.edu)
3694
3695         * client-src/sendsize.c: Pay attention to the spindle number.
3696
3697 2002-03-30  John R. Jackson (jrj@purdue.edu)
3698
3699         * server-src/planner.c: General delay_dumps code cleanup.
3700
3701 2002-03-30  John R. Jackson (jrj@purdue.edu)
3702
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>.
3706
3707 2002-03-29  John R. Jackson (jrj@purdue.edu)
3708
3709         * man/amanda.8.in: Move "comment" in tapetype after inclusion of
3710           previous definition.  Found by Uncle George <gatgul@voicenet.com>.
3711
3712 2002-03-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3713
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
3717           fixup_relative.
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
3720           if optional is set.
3721
3722 2002-03-24  John R. Jackson (jrj@purdue.edu)
3723
3724         * common-src/debug.c: Change dbopen() message slightly to match what
3725           amdump generates, making it easier to parse.
3726
3727 2002-03-24  John R. Jackson (jrj@purdue.edu)
3728
3729         * common-src/Makefile.am: Move clock routines to common-src so
3730           everyone may use them.
3731         * server-src/Makefile.am: Ditto.
3732
3733 2002-03-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3734
3735         * client-src/sendbackup-gnutar.c: Fix use of no_record.
3736
3737 2002-03-24  John R. Jackson (jrj@purdue.edu)
3738
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.
3742
3743 2002-03-24  John R. Jackson (jrj@purdue.edu)
3744
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.
3761
3762 2002-03-23  John R. Jackson (jrj@purdue.edu)
3763
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.
3779
3780 2002-03-23  John R. Jackson (jrj@purdue.edu)
3781
3782         * client-src/selfcheck.c: Fix a compiler warning.
3783         * client-src/sendbackup.c: Ditto.
3784         * client-src/sendsize.c: Ditto.
3785
3786 2002-03-23  John R. Jackson (jrj@purdue.edu)
3787
3788         * client-src/getfsent.c (close_fstab()): Call endfsent() instead
3789           of fclose(), if available.
3790
3791 2002-03-23  John R. Jackson (jrj@purdue.edu)
3792
3793         * common-src/dbprintf (debug_printf): Make sure errno is preserved
3794           across dbprint() calls.
3795
3796 2002-03-23  John R. Jackson (jrj@purdue.edu)
3797
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.
3800
3801 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3802
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
3814           result is not DONE.
3815
3816 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3817
3818         * server-src/tapefile.c (write_tapelist): Write to a temp file and
3819           rename it.
3820         * server-src/amlabel.c: Do not rename the tapelist file.
3821         * server-src/taper.c (label_tape): Do not rename the tapelist file.
3822
3823 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3824
3825         * client-src/client_util.c (parse_options): Do not check if the
3826           exclude file exist, it's done later.
3827
3828 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3829
3830         * client-src/client_util.c (parse_options): Parse exclude-optional and
3831           include-optional.
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
3844           bits are used.
3845
3846 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3847
3848         * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
3849           taper failed.
3850
3851 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3852
3853         * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
3854
3855 2002-03-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3856         Patch from Michael Frankowski <mfrankow@winternet.com>
3857
3858         * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
3859
3860 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3861
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.
3865
3866 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3867
3868         * client-src/client-util.c: Check for include and exclude files.
3869
3870 2002-03-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3871
3872         * server-src/amstatus.pl.in: Fix.
3873         * server-src/conffile.c(get-compress): Change message for bad 
3874           compress argument.
3875
3876 2002-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3877
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.
3883
3884 2002-03-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3885
3886         * client-src/sendbackup-dump.c: use amdevice as argument to
3887           amname_to_fstype.
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.
3890
3891 2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3892
3893         * server-src/amindexd.c: Compilation fix.
3894
3895 2002-03-07 John R. Jackson (jrj@purdue.edu)
3896
3897         * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
3898           Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
3899
3900 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3901
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.
3910
3911 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3912
3913         * server-src/amstatus.pl.in: Better output for autoflush.
3914
3915 2002-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3916
3917         * server-src/amstatus.pl.in: Fix.
3918
3919 2002-03-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3920
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
3930           device to client.
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):
3936           New prototype.
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.
3945
3946 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3947
3948         * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
3949           is requested.
3950
3951 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3952
3953         * server-src/amstatus.pl.in: Fix for failed tape.
3954
3955 2002-02-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3956
3957         * man/amanda.8.in: Document multiple exclude.
3958         * man/amanda.8.in: Document include.
3959
3960 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3961
3962         * client-src/client-util.c (add_include): Include are glob expression.
3963
3964 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3965
3966         * common-src/debug.c (debug_open); Don't try to renmae an already 
3967           renamed file.
3968
3969 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3970
3971         * server-src/conffile.c (dump_configuration): Print multiple 
3972           exclude and include.
3973
3974 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3975
3976         * client-src/client_util.c (add_exclude, add_include): Typo.
3977
3978 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3979
3980         * client-src/client_util.c (build_include, build_exclude): Fix for 
3981           bad eof detection.
3982
3983 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3984
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
3989           the exclude file.
3990         * client-src/client_util.c (add_include): Add an include to the
3991           include file.
3992         * client-src/client_util.c (build_exclude): Concat all excludes in 
3993           one file.
3994         * client-src/client_util.c (build_include): Concat all includes in 
3995           one file.
3996         * client-src/client_util.h (build_exclude, build_include): Prototype.
3997         * client-src/selfcheck.c.diff (check_options): Call build_exclude 
3998           and build_include.
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.
4003
4004 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4005
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.
4008
4009 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4010
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.
4014
4015 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4016
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.
4029
4030 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4031
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.
4036
4037 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4038
4039         * client-src/sendbackup.h: Remove bad stuff introduced in previous
4040           patch.
4041         * client-src/sendbackup-gnutar.c: Ditto.
4042
4043 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4044
4045         * client_src/client_util.c (parse_options): Function to parse 
4046           the option string. 
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.
4061
4062 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4063
4064         * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
4065
4066 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4067
4068         * common-src/pipespawn.c (pipespawnv): New funtion taking an 
4069           argv argument.
4070         * common-src/pipespawn.h (pipespawnv): Prototype.
4071
4072 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4073
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.
4080
4081 2002-02-11 John R. Jackson (jrj@purdue.edu)
4082
4083         * configure.in: AIX needs the "other" getconf argument to find out
4084           about large file support (XBS5_ILP32_OFFBIG instead of LFS).
4085
4086 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4087
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
4091
4092 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4093
4094         * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
4095
4096 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4097
4098         * common-src/fileheader.c (build_header): Typo.
4099
4100 2002-02-10 John R. Jackson (jrj@purdue.edu)
4101
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.
4112
4113 2002-02-10 John R. Jackson (jrj@purdue.edu)
4114
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.
4118
4119 2002-02-10 John R. Jackson (jrj@purdue.edu)
4120
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.
4140
4141 2002-02-10 John R. Jackson (jrj@purdue.edu)
4142
4143         * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
4144         * docs/TAPE.CHANGERS: Cleanup.
4145
4146 2002-02-09 John R. Jackson (jrj@purdue.edu)
4147
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.
4166
4167 2002-02-09 John R. Jackson (jrj@purdue.edu)
4168
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).
4172
4173 2002-02-09 John R. Jackson (jrj@purdue.edu)
4174
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.
4177
4178 2002-02-08 John R. Jackson (jrj@purdue.edu)
4179
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.
4184
4185 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4186
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.
4191
4192 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4193
4194         * server-src/holding.c (scan_holdingdir): Create the list in 
4195           datestamp order.
4196
4197 2002-02-02 John R. Jackson (jrj@purdue.edu)
4198
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
4201           running OSF1 v5.1
4202
4203 2002-02-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4204         Reported by Roland E. Lipovits <rel@lipo.at0.net>
4205
4206         * server-src/amstatus.pl.in: Don't double-counts the failed 
4207           estimate partitions.
4208
4209 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4210
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
4213
4214 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4215
4216         * common-src/fileheader.c (build_header): Never write the
4217           BLOCKSIZE= line.
4218         * common-src/fileheader.c (parse_file_header): Do not parse the
4219           BLOCKSIZE= line.
4220
4221 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4222
4223         * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
4224           after the dd if=... line.
4225
4226 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4227
4228         * server-src/driver.c: Init code to 0.
4229
4230 2002-01-29 John R. Jackson (jrj@purdue.edu)
4231
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.
4235
4236 2002-01-25 John R. Jackson (jrj@purdue.edu)
4237
4238         * server-src/driver.c: Log non-zero exit codes and signals from all
4239           the dumpers and taper.
4240
4241 2002-01-25 John R. Jackson (jrj@purdue.edu)
4242
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).
4246
4247 2002-01-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4248
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 
4252           DISK_BLOCK_BYTES.
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.
4262
4263 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4264
4265         * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
4266           set ret to -1.
4267
4268 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4269
4270         * server-src/planner.c: Check for dp->todo.
4271
4272 2002-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4273         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
4274
4275         * changer-src/chg-scsi.c: Typo.
4276
4277 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4278
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.
4283
4284 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4285         Reported by Geert Uytterhoeven <geert@linux-m68k.org>
4286
4287         * README: Amanda compile on Linux/m68k.
4288
4289 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4290
4291         * changer-src/chg-rth.pl.in: Typo. fi -> }.
4292
4293 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4294         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
4295
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.
4299
4300 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4301
4302         * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
4303           at end of string.
4304
4305 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4306
4307         * server-src/amoverview.pl.in: Ignore some line from amadmin.
4308
4309 2002-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4310
4311         * common-src/event.c: Use ASSERTIONS not ASSERT.
4312
4313 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4314
4315         * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
4316           Init rc to -1.
4317         * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
4318         * common-src/match.c (clean_regex): Cast to int.
4319
4320 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4321         Reported by <ian.willis@sge.net>
4322
4323         * common-src/rsh-security.c: Fix for RSH_DEBUG.
4324
4325 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4326
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.
4336
4337 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4338         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
4339
4340         * configure.in: Add missing [.
4341
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>
4345
4346         * common-src/bsd-security.c (check_user_amandahosts): improve message.
4347
4348 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4349
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.
4352
4353 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4354
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
4366           FILEMARK.
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 *).
4378
4379 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4380
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.
4387
4388 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4389
4390         * configure.in: Set MAX_TAPE_BLOCK_KB on linux
4391
4392 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4393         Patch by Blaz Zupan <blaz@amis.net>
4394
4395         * changer-src/chg-zd-mtx.sh.in: typo.
4396
4397 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4398
4399         * client-src/selfcheck.c (check_access): New function (old check_file
4400           function).
4401         * client-src/selfcheck.c (check_file): Check that the filename is a
4402           file.
4403         * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
4404
4405 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4406         Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
4407
4408         * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
4409           AMANDA_TMPDIR directory.
4410
4411 2001-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4412
4413         * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
4414         * server-src/amrmtape.sh.in: Ditto.
4415
4416 2001-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4417
4418         * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
4419
4420 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4421
4422         * server-src/amstatus.pl.in: Work with amflush log.
4423
4424 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4425
4426         * server-src/driver.c (nodump): new argument, Don't start the dumpers
4427           if set.
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.
4431
4432 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4433
4434         * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
4435
4436 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4437
4438         * recover-src/extract_list.c: You can change the tape device
4439           between each tape.
4440
4441 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4442
4443         * restore-src/amrestore.c (restore): try to find the next chunk 
4444           in the current directory.
4445
4446 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4447
4448         * example/amanda.conf.in: typo.
4449
4450 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4451
4452         Patch by Roland E. Lipovits <rel@lipo.at0.net>
4453         * example/amanda.conf.in: typo.
4454
4455 2001-12-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4456
4457         * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
4458         Replace TRY_AGAIN by TRYAGAIN.
4459
4460 2001-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4461         Patch by Michael D. Beynon <beynon@ll.mit.edu>
4462
4463         * server-src/driver.c (main): Take care of empty tapeq.
4464
4465 2001-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4466
4467         * server-src/diskfile.c (lookup_host): Match must be exact.
4468
4469 2001-11-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4470
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.
4478
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
4489         verbose argument.
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
4501         of files to flush.
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
4506         structure.
4507         * server-src/taper.c: Add datestamp to FAIL line.
4508
4509 2001-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4510
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.
4517
4518 2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4519
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.
4527
4528 2001-09-26 John R. Jackson (jrj@purdue.edu)
4529
4530         * server-src/reporter.c: Fix problem when column sizes are negative.
4531
4532 2001-09-21 John R. Jackson (jrj@purdue.edu)
4533
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.
4537
4538 2001-09-17 John R. Jackson (jrj@purdue.edu)
4539
4540         * server-src/getconf.c: Add capabilities to amgetconf to return
4541           build environment values and also to open and close a debug file
4542           (e.g. for scripts).
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.
4549
4550 2001-09-17 John R. Jackson (jrj@purdue.edu)
4551
4552         * server-src/planner.c: Make sure we do not attempt to bump beyond
4553           level 9.
4554
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 
4565         to slot_file.
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..
4574
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
4580
4581 2001-09-01 John R. Jackson (jrj@purdue.edu)
4582
4583         * client-src/sendsize.c: Fix memory allocation problem.
4584
4585 2001-08-31 John R. Jackson (jrj@purdue.edu)
4586
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>.
4591
4592 2001-08-30 John R. Jackson (jrj@purdue.edu)
4593
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>.
4597
4598 2001-08-24 John R. Jackson (jrj@purdue.edu)
4599
4600         * server-src/amverify.sh.in: Fix missing backtick error.
4601
4602 2001-08-24 John R. Jackson (jrj@purdue.edu)
4603
4604         * server-src/taper.c: Allocate buffers on page boundaries.
4605
4606 2001-08-22 John R. Jackson (jrj@purdue.edu)
4607
4608         * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
4609           so they end up like all the other Amanda programs.
4610
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
4616         eject function.
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
4619
4620 2001-08-14 John R. Jackson (jrj@purdue.edu)
4621
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.
4625
4626 2001-08-14 John R. Jackson (jrj@purdue.edu)
4627
4628         * docs/PORT.USAGE: New document about how Amanda ports are used.
4629
4630 2001-08-14 John R. Jackson (jrj@purdue.edu)
4631
4632         * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
4633
4634 2001-08-14 John R. Jackson (jrj@purdue.edu)
4635
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
4642           stream_client().
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.
4646
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
4651         exit.
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
4656         in eject/unload.
4657         Reworked the way how the updates of the labelfile are done.
4658
4659 2001-08-01 John R. Jackson (jrj@purdue.edu)
4660
4661         * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
4662           patch.
4663         * client-src/sendbackup-gnutar.c: Ditto.
4664         * client-src/sendsize.c: Ditto.
4665
4666 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
4667
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.
4676
4677 2001-08-01 John R. Jackson (jrj@purdue.edu)
4678
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.
4682
4683 2001-08-01 John R. Jackson (jrj@purdue.edu)
4684
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
4689           stderr.
4690
4691 2001-08-01 John R. Jackson (jrj@purdue.edu)
4692
4693         * common-src/debug.c: Only rename files that end in ".debug".
4694
4695 2001-08-01 John R. Jackson (jrj@purdue.edu)
4696
4697         * common-src/pipespawn.c: Show empty pipespawn() args as "".
4698
4699 2001-07-31 John R. Jackson (jrj@purdue.edu)
4700
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
4710           TAPE_BLOCK_BYTES.
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
4718           size.
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
4738           TAPE_BLOCK_SIZE.
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
4752           fails.
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
4760           structure.
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
4765           aborts.
4766
4767 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
4768
4769         * recover-src/amrecover.c: Improve the "Unexpected server end of file"
4770           message.
4771
4772 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
4773
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.
4781
4782 2001-07-25 John R. Jackson <jrj@purdue.edu>
4783
4784         * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
4785           document the new (but optional) searchable features.
4786
4787 2001-07-19 John R. Jackson <jrj@purdue.edu>
4788
4789         * common-src/error.c: Fix function prototype error.
4790
4791 2001-07-19 John R. Jackson <jrj@purdue.edu>
4792
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.
4798
4799 2001-07-19 John R. Jackson <jrj@purdue.edu>
4800
4801         * server-src/amadmin.c: Improve the error message when read_conffile()
4802           fails.
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.
4817
4818 2001-07-19 John R. Jackson <jrj@purdue.edu>
4819
4820         * server-src/driverio.c: Make the name "ps" reports match the dumper
4821           name (e.g. "dumper3").
4822
4823 2001-07-18 John R. Jackson <jrj@purdue.edu>
4824
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>.
4828
4829 2001-07-18 John R. Jackson <jrj@purdue.edu>
4830
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
4834           xfsrestore bug.
4835
4836 2001-07-18 John R. Jackson <jrj@purdue.edu>
4837
4838         * man/amanda.8.in: Describe the .amandahosts format better.  Clean up
4839           a couple of minor typos.
4840
4841 2001-07-13 John R. Jackson <jrj@purdue.edu>
4842
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.
4846
4847 2001-07-12 John R. Jackson <jrj@purdue.edu>
4848
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:").
4852
4853 2001-07-12 John R. Jackson <jrj@purdue.edu>
4854
4855         * Makefile.am: Fix automake warning.
4856
4857 2001-07-11 John R. Jackson <jrj@purdue.edu>
4858
4859         * tape-src/tapetype.c: Use tapefd_write() instead of write().
4860
4861 2001-07-11 John R. Jackson <jrj@purdue.edu>
4862
4863         * common-src/file.c: Fix a memory leak.  Grab exponentially larger
4864           chunks of memory up to a point, then level out.
4865
4866 2001-07-11 John R. Jackson <jrj@purdue.edu>
4867
4868         * tape-src/tapetype.c: Only report a pass summary when stderr is not
4869           a tty.  Deal with some obscure end cases.
4870
4871 2001-07-10 John R. Jackson <jrj@purdue.edu>
4872
4873         * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
4874         * changer-src/scsi-solaris.c: Ditto.
4875
4876 2001-07-10 John R. Jackson <jrj@purdue.edu>
4877
4878         * server-src/amcheck.c: Move user name check before attempt to create
4879           temp files so more appropriate error message is generated.
4880
4881 2001-07-09 John R. Jackson <jrj@purdue.edu>
4882
4883         * common-src/dgram.c: Fix error end case unitialized variable.
4884
4885 2001-07-05 John R. Jackson <jrj@purdue.edu>
4886
4887         * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
4888           that -slot and -eject unload and put the current tape away.
4889
4890 2001-07-02 John R. Jackson <jrj@purdue.edu>
4891
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.
4894
4895 2001-06-29 John R. Jackson <jrj@purdue.edu>
4896
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
4918           real open.
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
4923           real open.
4924
4925 2001-06-27 John R. Jackson <jrj@purdue.edu>
4926
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
4929           than the buffer.
4930         * changer-src/chg-mtx.sh.in: Ditto.
4931
4932 2001-06-21 John R. Jackson <jrj@purdue.edu>
4933
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.
4939
4940 2001-06-19 John R. Jackson <jrj@purdue.edu>
4941
4942         * server-src/holding.c: Use fullread() instead of read() to read the
4943           holding disk file.
4944
4945 2001-06-19 John R. Jackson <jrj@purdue.edu>
4946
4947         * server-src/amtape.c: Document "slot advance" in the help output.
4948
4949 2001-06-19 John R. Jackson <jrj@purdue.edu>
4950
4951         * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
4952           consistent with other Amanda usage.
4953
4954 2001-06-19 John R. Jackson <jrj@purdue.edu>
4955
4956         * server-src/amverify.sh.in: Better cross platform tar detection.
4957
4958 2001-06-19 John R. Jackson <jrj@purdue.edu>
4959
4960         * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
4961
4962 2001-06-19 John R. Jackson <jrj@purdue.edu>
4963
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.
4972
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
4981         
4982 2001-06-18 John R. Jackson <jrj@purdue.edu>
4983
4984         * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
4985           flag to vrestore.  Some versions do not like it.
4986
4987 2001-06-18 John R. Jackson <jrj@purdue.edu>
4988
4989         * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
4990           other Amanda code.
4991         * common-src/stream.c: Ditto.
4992
4993 2001-06-18 John R. Jackson <jrj@purdue.edu>
4994
4995         * changer-src/chg-manual.sh.in: Add yet another online regex.  Found
4996           by George Herson <gherson@snet.net>.
4997
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
5004         
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 !!)
5012         
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.
5021         
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.
5025
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.
5043         
5044 2001-06-01 John R. Jackson <jrj@purdue.edu>
5045
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.
5048
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
5053         interface is used
5054
5055 2001-05-29 John R. Jackson <jrj@purdue.edu>
5056
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>.
5060
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
5076         
5077 2001-05-18 John R. Jackson <jrj@purdue.edu>
5078
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>.
5081
5082 2001-05-16 John R. Jackson <jrj@purdue.edu>
5083
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.
5088
5089 2001-05-14 John R. Jackson <jrj@purdue.edu>
5090
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.
5096
5097 2001-05-11 John R. Jackson <jrj@purdue.edu>
5098
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.
5102
5103 2001-05-07 John R. Jackson <jrj@purdue.edu>
5104
5105         * client-src/sendbackup-dump.c: Do not use full path to sed.  Found by
5106           Roland E. Lipovits (rel@lipo.at0.net).
5107
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
5119         the sgen driver.
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
5122         
5123 2001-05-04 John R. Jackson <jrj@purdue.edu>
5124
5125         * config/depcomp: Fix problem with argument*  processing and update to
5126           latest version.
5127
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.
5132         
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)
5141         
5142 2001-04-26 Thomas Hepper <th@ant.han.de>
5143
5144         * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
5145         error condition. 
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.
5152         
5153 2001-04-25 John R. Jackson <jrj@purdue.edu>
5154
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.
5159
5160 2001-04-24 John R. Jackson <jrj@purdue.edu>
5161
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>.
5164
5165 2001-04-23 John R. Jackson <jrj@purdue.edu>
5166
5167         * client-src/selfcheck.c: Allow Samba shares with no password.
5168         * client-src/sendbackup-gnutar.c: Ditto.
5169         * client-src/sendsize.c: Ditto.
5170
5171 2001-04-15 Thomas Hepper <th@ant.han.de>
5172         * Makefile.am: Added contrib/gsc files to EXTRA_DIST
5173         
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
5195         
5196 2001-04-15 Thomas Hepper <th@ant.han.de>
5197         *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
5198
5199 2001-04-13 John R. Jackson <jrj@purdue.edu>
5200
5201         * example/amanda.conf.in: Fix multiple holding disks comment.
5202
5203 2001-04-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5204
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 
5213         for check_dev.
5214
5215 2001-04-10 John R. Jackson <jrj@purdue.edu>
5216
5217         * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
5218           <lhecking@nmrc.ie>.
5219
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
5227         
5228 2001-04-08  Alexandre Oliva  <aoliva@redhat.com>
5229
5230         * client-src/getfsent.c (search_fstab): Don't skip entry just
5231         because device stats failed.
5232
5233 2001-04-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5234
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.
5238
5239 2001-04-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5240
5241         * config/depcomp: new file for automake.
5242
5243 2001-04-03 John R. Jackson <jrj@purdue.edu>
5244
5245         * Makefile.am: Remove *.test.c from the distribution.
5246
5247 2001-04-02 John R. Jackson <jrj@purdue.edu>
5248
5249         * NEWS: Update some of the 2.4.2 items.
5250
5251 2001-03-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5252
5253         * client-src/getfsent.c (search_fstab): If the device doesn't 
5254         exist, it will take the entry from /etc/mtab.
5255
5256 2001-03-26 John R. Jackson <jrj@purdue.edu>
5257
5258         * server-src/amtape.c: Do not rewind for slot "advance".  Do not report
5259           device name (which is bogus) for slot "advance".
5260
5261 2001-03-23 John R. Jackson <jrj@purdue.edu>
5262
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.
5265
5266 2001-03-21 John R. Jackson <jrj@purdue.edu>
5267
5268         * recover-src/extract_list.c (extract_files_child): Fix problem that
5269           caused xfsrestore arg list to not be NULL terminated.
5270
5271 2001-03-19 John R. Jackson <jrj@purdue.edu>
5272
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
5279           they are seen.
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.
5296
5297 2001-03-15 John R. Jackson <jrj@purdue.edu>
5298
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.
5301
5302 2001-03-14 John R. Jackson <jrj@purdue.edu>
5303
5304         * server-src/amcheck.c: Change message from NOTE to WARNING when
5305           the hold file exists.
5306         * man/amcheck.8.in: Ditto.
5307
5308 2001-03-14 John R. Jackson <jrj@purdue.edu>
5309
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
5313           sendbackup.
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
5318           handling.
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
5322           handling.
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.
5327
5328 2001-03-13 John R. Jackson <jrj@purdue.edu>
5329
5330         * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
5331           argument list processing.
5332
5333 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5334
5335         * server-src/dumper.c (read_datafd): set errstr and return on
5336         databuf_write error.
5337
5338 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5339
5340         * server-src/dumper.c (read_indexfd): Ignore error while writing
5341         to the index file. Log an L_INFO message.
5342
5343 2001-03-09 John R. Jackson <jrj@purdue.edu>
5344
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.
5349
5350 2001-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5351         Reported by Eric Schnoebelen <eric@cirr.com>
5352
5353         * server-src/changer.c (changer_command): Fix fd leak.
5354
5355 2001-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5356
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.
5371
5372 2001-03-05 John R. Jackson <jrj@purdue.edu>
5373
5374         * common-src/util.c: The fullread() and fullwrite() functions should
5375           call read() and write(), not tapefd_read() and tapefd_write().
5376
5377 2001-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5378
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.
5381
5382 2001-02-27 John R. Jackson <jrj@purdue.edu>
5383
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.
5391
5392 2001-02-27 John R. Jackson <jrj@purdue.edu>
5393
5394         * common-src/dgram.c: Add lots more error logging to help track down
5395           problems.
5396
5397 2001-02-27 John R. Jackson <jrj@purdue.edu>
5398
5399         * common-src/stream.c: Add lots more error logging to help track down
5400           problems.
5401
5402 2001-02-27 John R. Jackson <jrj@purdue.edu>
5403
5404         * server-src/amtape.c: Rewind after loading a slot either by slot
5405           or by label.
5406
5407 2001-02-27 John R. Jackson <jrj@purdue.edu>
5408
5409         * configure.in: Add some commentary about why pushdef/popdef are
5410           needed around AC_CHECK_TYPE.
5411
5412 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5413         Patch by Alex Pilosov <alex@pilosoft.com>
5414
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.
5418         
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>
5422
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
5428         file into script.
5429
5430 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5431
5432         * server-src/amindexd.c (uncompress_file): remove uncompressed
5433         index file if the command failed.
5434
5435 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5436
5437         * restore-src/amrestore.c (main): init r to 0.
5438
5439 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5440
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.
5444
5445 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5446
5447         * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
5448
5449 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5450
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.
5454
5455 2001-02-17 Thomas Hepper <th@ant.han.de>
5456
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
5464           config file.
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
5473         
5474 2001-02-09 John R. Jackson <jrj@purdue.edu>
5475
5476         * server-src/diskfile.c: Fix core dump in test program.
5477
5478 2001-02-09 John R. Jackson <jrj@purdue.edu>
5479
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.
5484
5485 2001-02-08 Thomas Hepper <th@ant.han.de>
5486
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
5493
5494 2001-02-04 John R. Jackson <jrj@purdue.edu>
5495
5496         * man/amanda.8.in: Fix mailto to space separated, not comma.
5497
5498 2001-02-03 John R. Jackson <jrj@purdue.edu>
5499
5500         * .cvsignore: Add entries to keep CVS quiet.
5501         * */.cvsignore: Ditto.
5502
5503 2001-02-03 John R. Jackson <jrj@purdue.edu>
5504
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.
5511
5512 2001-02-03 John R. Jackson <jrj@purdue.edu>
5513
5514         * server-src/diskfile.c: Fix test program compilation error and bug
5515           when just a config name was given on the command line.
5516
5517 2001-02-02 John R. Jackson <jrj@purdue.edu>
5518
5519         * server-src/reporter.c: Fix problem with enum being unsigned on
5520           some systems.
5521
5522 2001-01-29 John R. Jackson <jrj@purdue.edu>
5523
5524         * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
5525           is now "the way".
5526
5527 2001-01-29 John R. Jackson <jrj@purdue.edu>
5528
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).
5533
5534 2001-01-26 John R. Jackson <jrj@purdue.edu>
5535
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.
5543
5544 2001-01-23 John R. Jackson <jrj@purdue.edu>
5545
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.
5619
5620 2001-01-24 John R. Jackson <jrj@purdue.edu>
5621
5622         * client-src/amandad.c: Improve packet logging.
5623
5624 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5625
5626         * server-src/driver.c (start_some_dumps): typo.
5627
5628 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5629
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
5632           no_space is set.
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.
5636
5637 2001-01-23 John R. Jackson <jrj@purdue.edu>
5638
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.
5642
5643 2001-01-22  Marc W. Mengel <mengel@fnal.gov>
5644
5645         * recover-src/extract_list.c: Added -U to tar recover options
5646         to reduce errors recovering shared libs and/or binaries on
5647         active filesystems.
5648
5649 2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5650
5651         * docs/INSTALL: Notes about tar-1.13.19
5652
5653 2001-01-17  Thomas Hepper <th@ant.han.de>
5654
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.
5662         not used yet.
5663         * changer-src/scsi-solaris.c: Changed the return value to
5664         Command.uscsi_status in SCSI_ExecuteCommand if the return from the
5665         ioctl is not 0;
5666         
5667 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5668
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.
5679
5680 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5681
5682         * server-src/diskfile.c (match_disklist): Return if no args.
5683
5684 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5685
5686         * server-src/diskfile.c (match_disklist): Fix.
5687
5688 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5689
5690         * server-src/diskfile.c (match_disklist): Updated for
5691           [host [disk]*]* syntax.
5692
5693 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5694
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.
5699
5700 2001-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5701
5702         * common-src/match.c (match_word): Support for leading ^ and
5703           trailing $.
5704
5705 2001-01-04 John R. Jackson <jrj@purdue.edu>
5706
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.
5710
5711 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5712
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
5716            rait_debug
5717         * taper-src/tapeio.c(many): Remove unused tfd variable.
5718         * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
5719
5720 2001-01-04 John R. Jackson <jrj@purdue.edu>
5721
5722         * client-src/killpgrp.c: Calls to error() do not need a newline.
5723
5724 2001-01-04 John R. Jackson <jrj@purdue.edu>
5725
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.
5730
5731 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5732
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
5737           write_tapeheader().
5738
5739 2001-01-04 John R. Jackson <jrj@purdue.edu>
5740
5741         * server-src/conffile.c (main): Fix conffile test program so it builds
5742           and works again.
5743
5744 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5745
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.
5749
5750 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5751
5752         * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
5753           ABORT-FINISHED result.
5754
5755 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5756
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.
5760
5761 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5762         Patch by Andreas F Mueller <afm@othello.ch>
5763
5764         * server-src/amadmin.c (force_no_bump_one): Fix message.
5765
5766 2001-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5767
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 *"
5776
5777 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5778
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().
5785
5786 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5787
5788         * configure.in: Don't check krb5 include if krb5 is not selected.
5789
5790 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5791
5792         * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
5793
5794 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5795
5796         * server-src/amadmin.c (diskloop): typo.
5797
5798 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5799
5800         * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
5801         * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
5802         instead of argv[0].
5803
5804 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5805
5806         * server-src/amflush.c (main):log DISK after checking if logfile exist.
5807
5808 2000-12-30 John R. Jackson <jrj@purdue.edu>
5809
5810         * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
5811           when things go wrong.  Add support for "bsdsecurity" test program
5812           in common-src.
5813         * common-src/Makefile.am: Ditto.
5814         * common-src/amanda.h: Ditto.
5815         * restore-src/amidxtaped.c: Ditto.
5816         * server-src/amindexd.c: Ditto.
5817
5818 2000-12-30 John R. Jackson <jrj@purdue.edu>
5819
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.
5825
5826 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5827
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.
5835
5836 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5837
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.
5846
5847 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5848
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.
5852
5853 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5854
5855         * common-src/match.c (match_word, match_host, match_disk): 
5856         new functions.
5857         * common-src/amanda.h (match_host, match_disk): prototype.
5858
5859 2000-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5860
5861         * server-src/planner.c (analyze_estimate): pick incremental level
5862         if no estimate of level 0.
5863
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.
5869
5870 2000-12-24 John R. Jackson <jrj@purdue.edu>
5871
5872         * server-src/getconf.c: Fix free() of static text string (BUGGY) when
5873           the parameter being looked up is bad.
5874
5875 2000-12-23 David Wolfskill  <dhw@whistle.com>
5876
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.
5882
5883 2000-12-12 John R. Jackson <jrj@purdue.edu>
5884
5885         * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
5886           or tabs.
5887
5888 2000-12-12 John R. Jackson <jrj@purdue.edu>
5889
5890         * Makefile.am: Work around problem with automake 1.4 not including
5891           pkgdata_DATA.
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.
5900
5901 2000-12-08 Marc Mengel <mengel@fnal.gov>
5902
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.
5938
5939 2000-12-04 John R. Jackson  <jrj@purdue.edu>
5940
5941         * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
5942           problem.
5943
5944 2000-12-04 John R. Jackson  <jrj@purdue.edu>
5945
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.
5949
5950 2000-12-03 John R. Jackson  <jrj@purdue.edu>
5951
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.
5956
5957 2000-11-30 Marc Mengel <mengel@fnal.gov>
5958
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 
5973                 in changer scripts.
5974           (tape_open): Ifdef-out mode flag clearing, so you can pass 
5975                 O_TRUNC, etc.  in for am-dd.
5976
5977 2000-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5978
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.
5995
5996 2000-11-22 John R. Jackson  <jrj@purdue.edu>
5997
5998         * contrib/dbbackup.ksh: Deal with adm being a symlink.
5999         * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
6000
6001 2000-11-22 John R. Jackson  <jrj@purdue.edu>
6002
6003         * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
6004           of files to put in a distribution.
6005
6006 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6007
6008         * recover-src/extract_list.c (extract_files_child): Add support for
6009           XFSRESTORE.
6010
6011 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6012
6013         * server-src/amcheck.c: Minor message wording changes.
6014
6015 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6016
6017         * configure.in: Forgot to check in this part of new amgetconf.8.in.
6018
6019 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6020
6021         * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
6022         * contrib/sst/sst.c: Attempt at letting gcc compile sst.
6023
6024 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6025
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.
6044
6045 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6046
6047         * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
6048
6049 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6050
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
6054
6055 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6056
6057         * server-src/driver.c (start_some_dumps): don't check free_kps if
6058         curusage == 0.
6059         * server-src/driver.c (free_kps): remove the kludge.
6060
6061 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6062
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.
6068
6069 2000-11-03 John R. Jackson  <jrj@purdue.edu>
6070
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.
6074
6075 2000-11-01 John R. Jackson  <jrj@purdue.edu>
6076
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.
6079
6080 2000-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6081
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.
6085
6086 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6087
6088         * server-src/driver.c (handle_chunker_result): The dumpsize is
6089         the third argument, not the fourth.
6090
6091 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6092
6093         * server-src/driver.c (handle_chunker_result): don't check
6094         pending_aborts, call event_release() ob ABORT-FINISHED.
6095
6096 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6097
6098         * server-src/chunker.c (databuf_flush): workaround to prevent a
6099         hang on a ABORT command.
6100
6101 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6102
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.
6106
6107 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6108
6109         * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
6110
6111 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6112
6113         * server-src/amstatus.pl.in: add '&' when calling &usage() 
6114         or &dump_size().
6115
6116 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6117         reported by The Hermit Hacker <scrappy@hub.org>
6118
6119         * changer-src/chg-chio.pl.in: remove unused $libexecdir.
6120
6121 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6122         reported by The Hermit Hacker <scrappy@hub.org>
6123
6124         * changer-src/chg-chio.pl.in: remove comma after LOG, 
6125         typo: r should be 0.
6126
6127 2000-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6128
6129         * docs/INDEXING: doc updated.
6130
6131 2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6132
6133         * AUTHORS: add Thomas Hepper.
6134
6135 2000-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6136
6137         * server-src/driverio.c (chunker_cmd): send ABORT command.
6138
6139 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6140
6141         * server-src/amverify.sh.in: grep only the first line of the header.
6142
6143 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6144
6145         * server-src/amverify.sh.in: verify with tar even if the
6146         server and the client are not configured with the same path.
6147
6148 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6149
6150         * NEWS: A new `ctimeout' keyword in amanda.conf to replace 
6151         the CHECK_TIMEOUT constant in amcheck.c.
6152
6153 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6154
6155         * server-src/amlabel.c: Don't set tape_ok to 0 if 
6156         tape_wrlabel is successful.
6157
6158 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6159
6160         * server-src/taper.c: amfree(strclosing).
6161
6162 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6163
6164         * server-src/driver.c: typo.
6165
6166 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6167
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.
6176
6177 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6178
6179         * server-src/taper.c: give better message when failing 
6180         to open a chunk.
6181
6182 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6183
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.
6189
6190 2000-10-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6191
6192         * AUTHORS: fix my email address.
6193
6194 2000-09-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6195
6196         * server-src/amcheck.c: Don't accept -m or -M option if MAILER
6197         is not defined.
6198         * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
6199
6200 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6201         patch by <jeg@time.ucsc.edu>
6202
6203         * server-src/reporter.c (output_summary): check for tape_labels.
6204
6205 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6206
6207         * server-src/amindexd.c: use strcasecmp to compare hostname.
6208
6209 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6210
6211         * server-src/amstatus.pl.in: fix plural misuse.
6212
6213 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6214
6215         * man/amanda.8.in: add all pages in the SEE ALSO section.
6216
6217 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6218
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.
6224
6225 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6226
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.
6230
6231 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6232
6233         * example/amanda.conf.in: chunk should not be larger than
6234         MAX_FILE_SIZE - 1Mb.
6235
6236 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6237
6238         * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
6239         variable.
6240         * server-src/amlabel.c (main): init errstr to NULL, 
6241         fix compiler warning.
6242
6243 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6244         patch by jason Thomas <jet@users.sourceforge.net>
6245
6246         * tape-src/tapetype.c: fix help message.
6247
6248 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6249         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
6250
6251         * common-src/file.c (mkpdir): check p != NULL
6252         * man/amstatus.8.in: typo
6253
6254 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6255         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
6256
6257         * client-src/calcsize.c:sets correct program name,
6258         prevent coredumps and some improrer command line error mesages
6259
6260 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6261
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().
6266
6267 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6268
6269         * server-src/amcheck.c: (start_server_check): check for the oldlog
6270         directory.
6271
6272 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6273
6274         * server-src/amtrmlog.c: better check of the oldlog directory.
6275
6276 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6277
6278         * server-src/amcheck.c: (start_server_check): don't check the tape
6279         if tapedev is /dev/null.
6280
6281 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6282
6283         * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
6284
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>
6299
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.
6302
6303 2000-07-18 John R. Jackson  <jrj@purdue.edu>
6304
6305         * server-src/taper.c (file_reader_side): detach and destroy shared
6306         memory areas on an error condition.  Found by Patrik Andersin
6307         <cat@iki.fi>.
6308
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
6312         (bus:target:lun)
6313         SCSI_ExecuteCommand now returns the correct sense buffer.
6314
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
6323         (OpenFiles_T)
6324
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
6337
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 
6342          struct too.
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)
6354
6355 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6356
6357         * server-src/list_dir.c (add_dir_list_item): add at head of list.
6358
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 
6373         
6374 2000-06-12  Jeroen Ruigrok van der Werven  <asmodai@wxs.nl>
6375
6376         * server-src/amlabel.c (main): Do not amfree(config_name).
6377
6378 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6379
6380         * server-src/holding.c (pick_datestamp): convert ch to upper.
6381
6382 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6383
6384         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
6385           delay call to dumper_result().
6386
6387 2000-05-28  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6388
6389         * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
6390         messages.
6391
6392 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6393
6394         * chunker.c: allow chunk to be written on different holding disk.
6395         * server-src/driver.c: allow chunk to be written on different
6396           holding disk.
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.
6409         
6410 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6411
6412         * server-src/driver.c (chunker_program): new variable.
6413
6414 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6415
6416         * server-src/amstatus.pl.in: handle chunker line.
6417
6418 2000-04-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6419
6420         * recover-src/Makefile.am (LDADD): Removed libamtape.
6421         Reported by Paul Yeatman <pyeatman@ucsd.edu>
6422
6423 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6424
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):
6430         new functions.
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.
6437
6438 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6439
6440         * server-src/taper.c: don't crash if the tapelist file
6441         doesn't exist.
6442
6443 2000-04-09  Frank Wojcik  <fwojcik@lucent.com>
6444
6445         * server-src/taper.c (detach_buffers): Fixed typo in error message.
6446
6447         * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
6448         should have been `InfoFile'.
6449
6450 2000-04-09  Davide Marchignoli  <marchign@di.unipi.it>
6451   
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
6457         of CHECK_TIMEOUT.
6458
6459 2000-04-09  Stan Brown  <stanb@awod.com>
6460
6461         * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
6462         it is actually a prefix of fsname.
6463
6464 2000-04-09  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6465
6466         * server-src/amlabel.c (main): Check label *after* writing end mark.
6467
6468 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6469
6470         * server-src/amlabel.c: don't crash if the tapelist file 
6471         doesn't exist.
6472
6473 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6474
6475         * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
6476
6477 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6478
6479         * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
6480         and FORCE_BUMP are mutually exclusive.
6481
6482 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6483
6484         * server-src/driver.c (main): use the holding disk even if the
6485         datestamped directory already exist.
6486
6487 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6488
6489         * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
6490         twice to avoid warnings of possible typo.
6491
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.
6495
6496         * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
6497         errors.
6498         Reported by David Wolfskill <dhw@whistle.com>
6499
6500         * man/amtoc.8.in: Document -w.
6501
6502 2000-01-21  David Wolfskill  <dhw@whistle.com>
6503
6504         * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
6505
6506 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6507
6508         * man/amlabel.8.in: Tapes are no longer requested in reverse order
6509         of amlabeling.
6510         Reported by Brad Guillory <round@baileylink.net>
6511
6512         * server-src/amstatus.pl.in: New option --stats, to display
6513         statistics about dumpers and taper.
6514         * man/amstatus.8.in: Document it.
6515
6516 2000-01-21  David Wolfskill  <dhw@whistle.com>
6517
6518         * server-src/amstatus.pl.in: Sort dumpers by number.
6519
6520 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6521
6522         * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
6523
6524         * configure.in (MAILER): Warn or print an error if not found,
6525         depending on whether server code is disabled or not.
6526
6527         * server-src/reporter.c (output_tapeinfo): Report used tapes
6528         regardless of tape errors.
6529
6530         * config/acinclude.m4i (CF_WAIT): Simplify the test.  Declare wait()
6531         in the global scope.
6532
6533 2000-01-21  Garrett Wollman  <wollman@khavrinen.lcs.mit.edu>
6534
6535         * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
6536         where `union wait' works but is deprecated.
6537
6538 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6539
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
6547         /dev/null.
6548         * recover-src/amrecover.c (tape_device_name): Default to
6549         server-determined default.
6550
6551 2000-01-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6552
6553         * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
6554
6555         * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
6556         Allow for `make tapetype' before libamanda is built.
6557
6558         * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
6559
6560 2000-01-06  David Wolfskill  <dhw@whistle.com>
6561
6562         * docs/TAPETYPES: Typo.
6563         
6564 2000-01-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6565
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.
6570
6571 1999-12-12 John R. Jackson  <jrj@purdue.edu>
6572
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
6576         line to ignore.
6577
6578 1999-12-12 John R. Jackson  <jrj@purdue.edu>
6579
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.
6583
6584 1999-11-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6585
6586         * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
6587         Samba messages unless SAMBA_VERSION < 2.
6588
6589 1999-11-29  John E.P.Hynes  <john@hytronix.ne.mediaone.net>
6590
6591         * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
6592
6593 1999-11-25 John R. Jackson  <jrj@purdue.edu>
6594
6595         * server-src/amflush.c (main): conf_logdir should not be free'd
6596           (found by Espen H Wiborg <espenhw@infotek.no>).
6597
6598 1999-11-10 John R. Jackson  <jrj@purdue.edu>
6599
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.
6604
6605 1999-11-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6606
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.
6611
6612         * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
6613
6614 1999-11-10 John R. Jackson  <jrj@purdue.edu>
6615
6616         * server-src/amindexd.c (build_disk_table): need to clear the old
6617           disk history list before building a new one.
6618
6619 1999-11-10 John R. Jackson  <jrj@purdue.edu>
6620
6621         * server-src/taper.c (label_tape): issue a warning when tapedev is
6622           set to /dev/null.
6623         * server-src/amcheck.c (start_server_check): make warning message
6624           text the same for amcheck and taper when tapedev is /dev/null.
6625
6626 1999-11-10 John R. Jackson  <jrj@purdue.edu>
6627
6628         * server-src/amcleanupdisk.c (main): try to remove empty holding disk
6629           areas.
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.
6633
6634 1999-11-10  James FitzGibbon  <james@targetnet.com>
6635
6636         * server-src/infofile.c (put_info): d.size should have been
6637         d.dsize.
6638
6639 1999-11-09 John R. Jackson  <jrj@purdue.edu>
6640
6641         * server-src/amcheck.c (start_server_check): test tapedev for
6642           "/dev/null" and issue warning that dumps will be thrown away.
6643
6644 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
6645
6646         * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
6647         should have been CNF_INFOFILE; fixed.
6648
6649 1999-11-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6650
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>
6654
6655         * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
6656         * docs/INSTALL: Likewise.
6657
6658 1999-11-02  Ricardo Malta  <rmalta@bigfoot.com>
6659         
6660         * contrib/set_prod_link.pl: Create the links for a configuration
6661         with --with-suffix.
6662
6663 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
6664
6665         * common-src/rsh-security.c (net_writev): The result of a cast is
6666         not an lvalue; fixed.
6667
6668 1999-10-26  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
6669
6670         * server-src/amtoc.pl.in: Correct a bug for total report.
6671
6672 1999-11-01 John R. Jackson  <jrj@purdue.edu>
6673
6674         * server-src/amcleanupdisk.c (main): do not free the config name (it
6675           was never alloc-d).
6676
6677 1999-10-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6678
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.
6681
6682 1999-10-11  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
6683
6684         * server-src/amtoc.pl.in: Add new options -i and -t.  Print original
6685         size, instead of size on tape.
6686
6687 1999-10-07 John R. Jackson  <jrj@purdue.edu>
6688
6689         * common-src/stream.c (stream_server): remove reference to portrange
6690           variable.  Compliments of Randy Dees <rrd@amherst.com>.
6691
6692 1999-10-03 John R. Jackson  <jrj@purdue.edu>
6693
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.
6702
6703 1999-10-03 John R. Jackson  <jrj@purdue.edu>
6704
6705         * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
6706
6707 1999-10-03 John R. Jackson  <jrj@purdue.edu>
6708
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.
6712
6713 1999-10-03 John R. Jackson  <jrj@purdue.edu>
6714
6715         * common-src/amanda.h: protect the close macros and areads* from
6716           out of range file descriptors.
6717         * common-src/file.c: ditto.
6718
6719 1999-10-02 John R. Jackson  <jrj@purdue.edu>
6720
6721         * server-src/amindexd.c (build_disk_table): only "OK" results from
6722           find_dump should be considered.
6723
6724 1999-10-02 John R. Jackson  <jrj@purdue.edu>
6725
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
6734
6735 1999-10-02 John R. Jackson  <jrj@purdue.edu>
6736
6737         * server-src/amlogroll.c: fix minor memory leak.
6738
6739 1999-09-29 John R. Jackson  <jrj@purdue.edu>
6740
6741         * server-src/dumper.c (do_dump): closed the dump messages file too
6742           soon.
6743
6744 1999-09-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6745
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.
6750
6751 1999-09-22 John R. Jackson  <jrj@purdue.edu>
6752
6753         * configure.in: wrong variable when processing LIBRARY_DIRS.  Fix
6754           compliments of John M. Vogtle <jmvogtle@kodak.com>.
6755
6756 1999-09-20 John R. Jackson  <jrj@purdue.edu>
6757
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.
6770
6771 1999-09-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6772
6773         * amlogroll.c: It was missing; copied from the 2.4.2 branch.
6774
6775         * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
6776
6777 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6778
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.
6783
6784 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6785
6786         * server-src/amverify.sh.in: put back an "mt status" wait loop I
6787           erroneously removed, but protect it from AIX.
6788
6789 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6790
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.
6798
6799 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6800
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).
6803
6804 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6805
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.
6809
6810 1999-09-18 John R. Jackson  <jrj@purdue.edu>
6811
6812         * configure.in: several compress/uncompress variables were not being
6813           set properly.
6814
6815 1999-09-18 John R. Jackson  <jrj@purdue.edu>
6816
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.
6823
6824 1999-09-15 John R. Jackson  <jrj@purdue.edu>
6825
6826         * server-src/amtoc.pl.in: handle an image failing on one tape and
6827           succeeding on the next.
6828
6829 1999-09-15 John R. Jackson  <jrj@purdue.edu>
6830
6831         * server-src/amstatus.pl.in: generalize the "driver: state" parsing
6832           so it can handle current and future information.
6833
6834 1999-09-15 John R. Jackson  <jrj@purdue.edu>
6835
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).
6840
6841 1999-09-14 John R. Jackson  <jrj@purdue.edu>
6842
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
6847           other programs.
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.
6916
6917 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6918
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.
6925
6926         * server-src/reporter.c (sDivZero): Change from float to double, to
6927         build with DEC cc.
6928
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.
6935
6936         * config/Makefile.am: Remove all traces of acconfig.h.
6937
6938         * server-src/changer.c (changer_command): Fix for amwait_t != int.
6939
6940 1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6941
6942         * config/acinclude.m4i: Added comments for config/config.h.in to all
6943         AC_DEFINEs.
6944         * configure.in: Likewise.
6945         * config/acconfig.h: Deleted.
6946         * autogen: Updated.
6947
6948 1999-09-05 John R. Jackson  <jrj@purdue.edu>
6949
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.
6955
6956 1999-09-05 John R. Jackson  <jrj@purdue.edu>
6957
6958         * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
6959
6960 1999-09-05 John R. Jackson  <jrj@purdue.edu>
6961
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
6965           abort.
6966         * recover-src/extract_list.c: make sure errno is preserved.
6967
6968 1999-09-05 John R. Jackson  <jrj@purdue.edu>
6969
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
6973           if dump program is.
6974         * common-src/genversion.c: assume restore program is present if
6975           dump program is.
6976
6977 1999-09-05 John R. Jackson  <jrj@purdue.edu>
6978
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.
6982
6983 1999-09-05 John R. Jackson  <jrj@purdue.edu>
6984
6985         * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
6986           and XFSRESTORE support.
6987
6988 1999-09-05 John R. Jackson  <jrj@purdue.edu>
6989
6990         * server-src/conffile.c: add several common abbreviations to config
6991           file processing.
6992
6993 1999-09-01 John R. Jackson  <jrj@purdue.edu>
6994
6995         * server-src/amtoc.pl.in: allow multiple -s entries.
6996
6997 1999-09-01 John R. Jackson  <jrj@purdue.edu>
6998
6999         * server-src/reporter.c: handle/report a common columnspec syntax
7000           error instead of dumping core.
7001
7002 1999-09-01 John R. Jackson  <jrj@purdue.edu>
7003
7004         * man/amanda.8.in: typo in columnspec description.
7005
7006 1999-09-01 John R. Jackson  <jrj@purdue.edu>
7007
7008         * common-src/dgram.h: expressions in #define should be protected by
7009           parenthesis.
7010
7011 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
7012
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>
7016
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
7024         starts with `{'.
7025         (main): Update.
7026         * man/amanda.8.in (disklist): Document it.
7027         * NEWS: Likewise.
7028         * example/disklist: Exemplify it.
7029
7030 1999-08-23 John R. Jackson  <jrj@purdue.edu>
7031
7032         * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
7033         * recover-src/extract_list.c (extract_files_setup): ditto.
7034
7035 1999-08-23 John R. Jackson  <jrj@purdue.edu>
7036
7037         * server-src/reporter.c (copy_template_file): make sure all data is
7038           written to label template pipeline.
7039
7040 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
7041
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.
7045
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.
7050
7051         * common-src/Makefile.am (genversion.o): Revert last change, it was
7052         just a bug in automake's --disable-dependency-tracking.
7053
7054 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7055
7056         * README (platforms): Added OpenBSD.
7057         Reported by Ian Darwin <ian@sq.com>
7058         (platforms): Added SunOS 5.7.
7059
7060 1999-08-15  Derek Ney <derek@hipgraphics.com>, Alexandre Oliva  <oliva@dcc.unicamp.br>
7061
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.
7066
7067 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7068
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>
7072
7073 1999-08-15  Jon LaBadie  <jon@jgcomp.com>
7074         
7075         * tape-src/tapetype.c: Speed it up by using larger sections in the
7076         second pass.
7077
7078 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7079
7080         * man/amanda.8.in (skip-full, incronly): Document existing bugs.
7081
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>
7085
7086         * server-src/planner.c (setup_estimate): Typo.
7087         (next_level0): Typo.
7088
7089         * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
7090
7091         * example/amanda.conf.in: Clarify holdingdisk::use 0.
7092
7093         * config/missing: Update from automake 1.4a.
7094
7095 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7096
7097         * man/amanda.8.in: typo.
7098
7099 1999-06-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
7100
7101         * man/amrestore.8: Document holding-file usage.
7102
7103 1999-06-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
7104
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>
7111
7112         * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
7113         keyboard time-out, lsof.
7114
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>
7118
7119 1999-06-19  Alexander Zangerl  <az@Austria.EU.net>
7120
7121         * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
7122         output.
7123
7124 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7125
7126         * server-src/dumper.c (read_indexfd): typo
7127
7128 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7129
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.
7136
7137 1999-06-15  Adam Hammer  <hammer@math.purdue.edu>
7138
7139         * server-src/amverify.sh.in: Wait until device becomes ready after
7140         rewinding.
7141
7142 1999-06-15  Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva  <oliva@dcc.unicamp.br>
7143
7144         * client-src/calcsize.c (ROUND): Rewrite, it was broken.
7145         Reported by Erik Lindahl <erik@theophys.kth.se>
7146
7147 1999-06-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7148
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>
7152
7153         * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
7154         for availability.
7155
7156         * configure.in (bcopy, bzero): Check whether they're available.
7157         * common-src/amanda.h (bcopy, bzero): If not, use memmove and
7158         memset.
7159         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
7160
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.
7163
7164 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
7165
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>
7169
7170 1999-06-08  Mike Grupenhoff <kashmir@munge.com>
7171
7172         * restore-src/amrestore.c: second arg to restore() is a char *, not
7173         a string_t.  Adjust prototype accordingly.
7174
7175 1999-06-07  Mike Grupenhoff <kashmir@munge.com>
7176
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
7181         bind_portrange().
7182         (dgram_bind): use bind_portrange() instead of bind_reserved(), and
7183         try user specified ports first, then reserved ports, then regular
7184         ports.
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
7189         ports.
7190         * recover-src/amrecover.c (main): use bind_portrange() instead
7191         of bind_reserved(), and verify that the port it gives us is
7192         a reserved one.
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.
7196
7197 1999-06-07  Mark F. Vlems  <mvlems@vbox.xs4all.nl>
7198
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.
7203
7204 1999-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
7205
7206         * server-src/driver.c (dump_to_tape): Tell hard from soft
7207         (retryable) failures in both dumper and taper results, and behave
7208         accordingly.
7209
7210         * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is 
7211         slightly different.
7212         Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
7213
7214 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
7215
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.
7227
7228 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
7229
7230         * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
7231         close the stream.  If the other stream is also closed, shut
7232         down.
7233
7234 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
7235
7236         * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
7237         machines.
7238         (exit_check): remove waitpid(), let the service reap its own
7239         children.
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
7243         it down here.
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
7246         down the service.
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().
7250
7251 1999-06-01  Mike Grupenhoff <kashmir@munge.com>
7252
7253         * server-src/taper.c (write_buffer): assert properly
7254
7255 1999-06-01  John Williams  <williams@morinda.com>
7256
7257         * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
7258
7259 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
7260
7261         * docs/INSTALL: Point to the patches page.  Update version numbers.
7262
7263         * example/config.site: Document UDPPORTRANGE.
7264
7265 1999-06-01  Jens Persson  <jens.persson@btj.se>
7266
7267         * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
7268         * config/acconfig.h: Add UDPPORTRANGE.
7269         * common-src/dgram.c: Implement it.
7270
7271 1999-05-27  Mike Grupenhoff <kashmir@munge.com>
7272
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
7279         size_t changes.
7280
7281 1999-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
7282
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.
7286
7287 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
7288
7289         * common-src/protocol.c: retry connection failures three times,
7290         waiting five seconds between each attempt.  Also, fix a lot
7291         of untrue comments.
7292
7293 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
7294
7295         * client-src/amandad.c: add a lot more dbprintfs so we know what's
7296         going on.
7297         (service_new): use error() instead of dbprintf(); exit()
7298
7299
7300 1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
7301
7302         * docs/FAQ (tar-patch): Mention sparse file problem.
7303
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>
7307
7308         * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
7309         AMANDA_CFLAGS.
7310         * Makefile.am: Create acinclude.m4 in the top-level directory.
7311         * config/Makefile.am: Create link to acconfig.h in the top-level
7312         directory.
7313         * configure.in: Add AMANDA_CFLAGS to CFLAGS.  Set DUMPER_DIR without 
7314         trying to run it.
7315         * common-src/Makefile.am: Create genversion.h with #defines, to
7316         avoid genversion-specific CPPFLAGS.
7317         * common-src/genversion.c: #include genversion.h
7318
7319 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7320
7321         * server-src/amandad.c (state2str): string "s_processrep" is 13
7322         caracters.
7323
7324 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
7325
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.
7329
7330 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
7331
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.
7335
7336 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
7337
7338         * common-src/event.c (event_register): restructure asserts, and
7339         for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
7340
7341 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
7342
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.
7346
7347 1999-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
7348
7349         * server-src/amindex.h: Keep P macro expression in a single line.
7350         Reported by Patrick Harrold <patrickh@nasco-inc.com>
7351
7352         * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
7353
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>
7357
7358 1999-05-22 Alex Pilosov <alex@pilosoft.com>
7359
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.
7363
7364 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7365
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.
7369
7370 1999-05-18  Mike Grupenhoff <kashmir@munge.com>
7371
7372         * common-src/strerror.c (strerror): restructure so that it doesn't
7373         need to malloc.
7374
7375 1999-05-17  Mike Grupenhoff <kashmir@munge.com>
7376
7377         * common-src/genversion.c (prvar): prototype declared it static,
7378         but actual function was still extern.
7379
7380 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7381
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.
7387
7388 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7389
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, 
7393         1 on success.
7394         * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
7395
7396 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7397
7398         * server-src/dumper.c: make prototypes consistent, (putresult):
7399         make first arg const.
7400
7401 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7402
7403         * server-src/conffile.c (getconf_byname): islower takes an int
7404         for an arg.
7405         * server-src/diskfile.c (upcase): islower takes an int for an
7406         arg.
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
7410         for an arg.
7411
7412 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7413
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
7418         make static.
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
7422         and make static.
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
7426         first arg const.
7427         * server-src/amadmin.c (check_dumpuser): prototype.
7428         * server-src/amflush.c (get_letter_from_user): prototype and make
7429         static.
7430         * server-src/amindexd.c: prototype and make static numerous local
7431         functions.
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):
7435         prototype.
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):
7439         prototype.
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.
7444
7445 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7446
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
7450         val const.
7451
7452 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7453
7454         * server-src/find.h: properly prototype find_log()
7455         * server-src/amtrmlog.c (main): prototype.  find_log() takes
7456         no arguments.
7457
7458 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7459
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().
7465
7466 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7467
7468         * server-src/dumper.c (process_dumpline): clean up the error
7469         return code
7470         * server-src/dumper.c (log_msgout): no need to reuse errf global,
7471         it makes me nervous.  Also, use amfree instead of free.
7472
7473 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7474
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.
7477
7478 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7479
7480         * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
7481         A_REPTIMEOUT into just A_TIMEOUT.
7482
7483 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7484
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
7489
7490 1999-05-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
7491
7492         * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
7493
7494 1999-05-12  Mike Grupenhoff <kashmir@munge.com>
7495
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
7499
7500 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7501
7502         * common-src/protocol.c (proto_t): don't need prev and next ptrs
7503         anymore
7504
7505 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7506
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.
7510
7511 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7512
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
7520
7521 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7522
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.
7527
7528 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7529
7530         * client-src/amandad.c (main): call initgroups(), and also set
7531         the real gid.
7532
7533 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
7534
7535         * server-src/driver.c (start_some_dumps): if a dumper is
7536         constrained, and some dumpers or the taper are active, register
7537         a EV_WAIT event.
7538         * server-src/driver.c (handle_taper_result,
7539         handle_dumper_result):  wakeup constrained dumpers after we
7540         have freed some resources.
7541
7542 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
7543
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.
7548
7549 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
7550
7551         * client-src/sendsize.c (getsize_dump): print out the strerror
7552         if we can't exec killpgrp.
7553
7554 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
7555
7556         * server-src/dumper.c (add_msg_data): first two arguments
7557         to memmove() were backwards.
7558
7559 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7560
7561         * example/amanda.conf.in: typo
7562
7563 1999-05-07  Mike Grupenhoff <kashmir@munge.com>
7564
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.
7571
7572 1999-05-06  Mike Grupenhoff <kashmir@munge.com>
7573
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
7576         this function.
7577
7578 1999-05-05  Mike Grupenhoff <kashmir@munge.com>
7579
7580         * server-src/amverify.sh.in (pecho): new function.  Like echo
7581         but doesn't append newline, and supports \r, etc.  Implemented
7582         using perl.
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
7586         perl.
7587
7588 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
7589
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
7597         disks to start up.
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.
7602
7603 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
7604
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.
7610
7611 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
7612
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.
7619
7620 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
7621
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.
7628
7629 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7630
7631         * server-src/planner.c (when_overwrite): return a big number (1024)
7632         if the tape is not reusable.
7633
7634 1999-04-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
7635
7636         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
7637         from libtool 1.3.
7638
7639 1999-04-29  Mike Grupenhoff <kashmir@munge.com>
7640
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.
7645
7646 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
7647
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
7652         arguments
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
7660
7661 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
7662
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.
7666
7667 1999-04-27  Mike Grupenhoff <kashmir@munge.com>
7668
7669         * common-src/rsh-security.c (conn_read_callback): cast
7670         event_wakeup() arg to event_id_t.
7671
7672 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
7673
7674         * common-src/versuff.c.in: Adjust constness to match version.h.
7675
7676         * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
7677
7678 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7679
7680         * server-src/amdump.sh.in: execute amtrmlog.
7681
7682 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7683
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
7689
7690 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7691
7692         * dumper-src/gnutar.pl.in: add debuging code.
7693         * server-src/planner.c (getsize): send optionstr() for estimate 
7694         with a wrapper.
7695         * client-src/selfcheck.c: init program_is_wrapper to 0.
7696         * client-src/sendsize.c: implement DUMPER-API, support only
7697          estimate-direct.
7698
7699 1999-04-22 John R. Jackson  <jrj@purdue.edu>
7700
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
7705
7706 1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
7707
7708         * docs/SYSTEM.NOTES: Typo
7709         * docs/SAMBA: Update on samba-largefs patch.
7710         * docs/FAQ: New FAQ about promotion of full dumps.
7711
7712 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
7713
7714         * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
7715         Comment out test that would set filename to /dev/null.
7716
7717 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
7718
7719         * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
7720         auto-flush mode.
7721
7722 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7723
7724         * server-src/server_util.c: use snprintf instead of ap_snprintf.
7725
7726 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7727
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
7737
7738 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
7739
7740         * common-src/bsd-security.c: this doesn't need queue.h
7741
7742 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
7743
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().
7752
7753 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7754
7755         * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
7756
7757 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7758
7759         * client-src/selfcheck.c: Implement DUMPER-API.
7760         * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
7761         is not implemented.
7762         * dumper-src/generic-dumper.pl.in (parse_options): option are
7763         separated by ;
7764
7765 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7766
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.
7771
7772 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7773
7774         * configure.in: implement --with-cflags to allow turning on
7775         compiler warnings and optimizations
7776
7777 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7778
7779         * common-src/event.c (gethandle, puthandle): new functions that
7780         keep a cache of handles to reduce calls to malloc/free.
7781
7782 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7783
7784         * common-src/alloc.c (dbmalloc_caller_loc): const the file
7785         arg, use the queue macros to maintain the list.
7786
7787 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7788
7789         * common-src/versuff.c.in: const the return str of version()
7790         and versionsuffix.  Bump copyright to 1999.
7791
7792 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7793
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.
7804
7805 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7806
7807         * common-src/amanda.h: remove version_info extern.  Bump
7808         copyright to 1999
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.
7816
7817 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7818
7819         * server-src/conffile.c: explicitly give the seen_columnspec global
7820         an int type instead of letting the compiler default to it.
7821
7822 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7823
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()
7828         and event_wakeup().
7829         * common-src/event.c: struct event_handle->data is now an
7830         event_id_t.
7831         (event_register, event_wakeup): adjust args for event_id_t)
7832         (event_register): event_id_t is unsigned, no need to assert
7833         positivity anymore.
7834         * common-src/rsh-security.c (rsh_stream_read): cast first arg to
7835         event_register() to event_id_t.
7836
7837
7838 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
7839
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.
7844
7845 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
7846
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.
7853
7854 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
7855
7856         * server-src/planner.c (getsize): put the hosts disks on the waitq
7857         before sending the request, not after.
7858
7859 1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7860
7861         * docs/UPGRADE: Update URL for archived message.
7862
7863 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7864
7865         * server-src/amcheck.c (main): should not set real uid to 0.
7866
7867 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7868
7869         * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
7870         number, we don't need ntohs().
7871
7872 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
7873
7874         * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
7875         anymore, gc them.
7876
7877 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
7878
7879         * server-src/amindexd.c: dgram.h not needed
7880
7881 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
7882
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
7890         is NSIG big.
7891
7892 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7893
7894         * client-src/amandad.c (allocstream): if security_stream_server()
7895         fails, dbprintf the error.
7896
7897 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7898
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
7902         of "issues"
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
7906
7907 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7908
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.
7914
7915 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7916
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.
7921
7922 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7923
7924         * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
7925
7926 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7927
7928         * client-src/Makefile.am (noinst_HEADERS): add amandad.h
7929
7930 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7931
7932         * common-src/Makefile.am (libamanda_la_SOURCES): build
7933         krb4-security.c
7934
7935 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7936
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.
7940
7941 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7942
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.
7950
7951 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7952
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.
7964
7965 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7966
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
7976         drivers.
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
7984         streams.
7985         (sendbackup_response): adapt to new protocol layer error return.
7986         Remove krb4 code.
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.
7990         Remove krb4 code.
7991         Free request after calling protocol_sendreq().
7992
7993 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7994
7995         * server-src/planner.c: security changes:
7996         (main): Remove dgram usage.  Call protocol_init().  Remove
7997         krb4 code.
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.
8003         Remove krb4 code.
8004
8005 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8006
8007         * server-src/conffile.c: remove INTERFACE undef hack.  Our
8008         namespace isn't polluted by krb4 headers anymore, so it's
8009         unneeded.
8010
8011 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8012
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
8023         it.
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 
8030         NULL pkt.
8031
8032 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8033
8034         * common-src/protocol.[ch]: rewrite for security api.  The entry
8035         points now have the 'protocol' prefix.  See protocol.h for more
8036         info.
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.
8040
8041 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8042
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.
8047
8048 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8049
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.
8060
8061 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8062
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
8069         away.
8070
8071 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8072
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.
8076
8077 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8078
8079         * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
8080         streams if krb4_auth if false.
8081
8082 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8083
8084         * server-src/dumper.c (do_dump): some formatting cleanups.  Nuke
8085         'killerr' - we can do without it.
8086
8087 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8088
8089         * server-src/dumper.c (do_dump): store compresspid inside of
8090         the databuf
8091
8092 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8093
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).
8100
8101 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8102
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
8110         endline.
8111
8112 1999-04-07 John R. Jackson  <jrj@purdue.edu>
8113
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.
8117
8118 1999-04-07  Mike Grupenhoff <kashmir@munge.com>
8119
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.
8123
8124 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8125
8126         * server-src/reporter.c (TextRule): Fix to write the full string.
8127
8128 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8129
8130         * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
8131         calls it libcrypto.  Check for both.
8132
8133 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8134
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.
8141
8142 1999-04-06  David Mankins <dm@k12-nis-2.bbn.com>
8143
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.
8147
8148 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8149
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.
8158
8159 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8160
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.
8167
8168 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8169
8170         * server-src/dumper.c (startup_dump): make static, and const all
8171         of the string args
8172         * server-src/dumper.c (do_dump): make static
8173
8174 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8175
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.
8183
8184 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8185
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.
8191
8192 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8193
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()
8197
8198 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8199
8200         * common-src/bsd-security.c, common-src/security.h: attempt
8201         to decouple security streams from security handles.  Lots of
8202         other restructuring.
8203
8204 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8205
8206         * server-src/amcheck.c: -t should read the tapelist to validate
8207         the label.
8208
8209 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
8210
8211         * patches/samba-largefs.patch: updated to patch that ended up
8212         installed in the Samba CVS tree
8213
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 
8217         of endianness
8218
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>
8222
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>
8226
8227 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8228
8229         * server-src/reporter.c: compiler warning.
8230
8231 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8232
8233         * server-src/amtrmlog.c: new program to move unused log 
8234         to logdir/oldlog.
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.
8241
8242 1999-03-25  Neil Crellin  <neil@wallaby.cc>
8243
8244         * docs/TAPE.CHANGERS (chg-chs): URL for chs
8245
8246 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>, Tom Schutter  <tom@platte.com>, Cloyce D. Spradling  <cloyce@headgear.org>
8247
8248         * patches/samba-largefs.patch: updated for Samba 2.0.*
8249
8250 1999-03-25  Charles Owens  <owensc@enc.edu>
8251
8252         * changer-src/chg-chio.pl.in (changeTape): do not print status to
8253         both stdout and stderr; this causes failures on FreeBSD
8254
8255 1999-03-23  Mike Grupenhoff <kashmir@munge.com>
8256
8257         * common-src/stream.c, common-src/stream.h (stream_client):
8258         const the hostname arg
8259
8260 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8261
8262         * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
8263         * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
8264
8265 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8266
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.
8273
8274 1999-03-21  Elmar Bartel  <bartel@Informatik.TU-Muenchen.DE>
8275
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
8280
8281 1999-03-20  Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
8282
8283         * configure.in: SAMBA_VERSION is not set correctly.
8284
8285 1999-03-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
8286
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
8290
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
8295         for 0 termination.
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
8302
8303 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
8304
8305         * common-src/packet.h: explicitly list the numeric values for
8306         the pktype_t enum, so we can use them on the wire
8307
8308 1999-03-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
8309
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
8313
8314 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
8315
8316         * common-src/bsd-security.c (recv_security_ok): bring over
8317         increased verbosity change from common-src/security.c
8318
8319 1999-03-14  Mathias Herberts  <Mathias.Herberts@ago.fr>
8320
8321         * man/amrecover.8.in: document mode and setmode
8322
8323 1999-03-14  Jon Stevens  <jon@clearink.com>
8324
8325         * common-src/security.c (bsd_security_ok): increase the verbosity of 
8326         failed authentication messages
8327
8328 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
8329
8330         * configure.in (powerpc-*-linux-*): supported platform
8331         * README: ditto
8332         Reported by Jon Stevens <jon@clearink.com>
8333
8334 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8335
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
8339
8340 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8341
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
8347
8348 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8349
8350         * server-src/dumper.c (startup_dump): rename dumpname to progname.
8351         the function will use the parameter progname instead of the
8352         global variable.
8353
8354 1999-03-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
8355
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.
8359
8360 1999-03-06 Thomas Hepper <th@ant.han.de>
8361
8362         * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
8363         * changer-src/: Get in sync with 2.4.2 Version
8364
8365 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8366
8367         * configure.in: set SAMBA_VERSION
8368         * client-src/sendbackup-gnutar.c (start_backup): use -q flag
8369         if SAMBA_VERSION >= 2
8370
8371 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
8372
8373         * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
8374         * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new 
8375         constant.
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
8380         and showmode.
8381         * recover-src/set_commands.c (set_mode, show_mode): new functions.
8382         * recover-src/uscan.l:
8383         * recover-src/uparse.y:
8384
8385 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
8386
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()
8392         return val
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
8396
8397 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
8398
8399         * configure.in: check for ssize_t, make it int if not present
8400         * config/acconfig.h: add def for ssize_t
8401
8402 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
8403
8404         * common-src/base64.c (base64encode): don't cast away a const
8405         needlessly.
8406
8407 1999-03-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8408
8409         * common-src/bsd-security.c (stream_read_callback): change n to int
8410         since ssize_t doesn't exist on all OS.
8411
8412 1999-03-03  Ralf Fassel <ralf@akutech.de>
8413
8414         * common-src/conffile.h: bit field of length 1 should be unsigned int,
8415         not int.
8416
8417 1999-03-03  Ralf Fassel <ralf@akutech.de>
8418
8419         * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
8420
8421 1999-03-03  Ralf Fassel <ralf@akutech.de>
8422
8423         * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
8424
8425 1999-03-03  Ralf Fassel <ralf@akutech.de>
8426
8427         * common-src/base64.c (base64encode): remove warning from sgi cc
8428         compiler.
8429
8430 1999-03-03  Mike Grupenhoff <kashmir@munge.com>
8431
8432         * common-src/bsd-security.c: use EV_WAIT events instead of
8433         maintaining a queue of listeners.  Refcnt the dgram read event
8434         handle.
8435
8436 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8437
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.
8444
8445 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8446
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
8451         dmptable and taper.
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.
8460
8461 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8462
8463         * server-src/amrmtape.sh.in: work with "last_level" and
8464         "consecutive_runs" in the ouput of "amadmin export".
8465
8466 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
8467
8468         * common-src/security.h: implement security_connect callback and
8469         security_status_t changes
8470
8471 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
8472
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
8476         callback changes
8477         * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
8478         so skip the vstralloc
8479
8480 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
8481
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()
8485
8486 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8487
8488         * docs/WISHLIST: protocol between the driver and dumpers.
8489
8490 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8491
8492         * server-src/amtoc.pl.in: output the datestamp of each dump, because
8493         amflush can flush the same disk multiple date.
8494
8495 1999-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8496
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
8504         a holding list.
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
8509         pick_all_datestamp.
8510         * server-src/amflush.c: use the list return by pick_datestamp.
8511         * server-src/amcleanupdisk.c (check_disks): use the list return by
8512         pick_all_datestamp.
8513
8514 1999-02-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8515
8516         * server-src/driverio.c (addfd): bug fixe.
8517
8518 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
8519
8520         * client-src/sendbackup-gnutar.c: new regexp for SAMBA
8521         Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
8522
8523 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
8524
8525         * server-src/amtoc.pl.in: minor fixes for multi-tape runs
8526
8527 1999-02-17  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
8528
8529         * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
8530         command-line arguments changed
8531         * man/amtoc.8.in: ditto
8532
8533 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
8534
8535         * changer-src/chg-multi.sh.in: minor portability changes
8536         * docs/TAPE.CHANGERS: originally by James da Silva
8537
8538 1999-02-17  Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
8539
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
8545
8546 1999-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8547
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.
8553
8554 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8555
8556         * server-src/driverio.c (startup_tape_process): new taper_program
8557         argument.
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.
8565
8566 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8567
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.
8574
8575 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8576
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.
8581
8582 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8583
8584         * server-src/holding.h: remove declaration of get_letter_from_user()
8585         and select_dir().
8586         * server-src/holding.c: remove function get_letter_from_user() and
8587         select_dir().
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
8591         from holding.c.
8592         * server-src/amflush.c (confirm): write a message and exit if no
8593         directory were found.
8594
8595 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8596
8597         * server-src/amflush.c (flush_holdingdisk): don't update the database
8598         when flushing a partial dump.
8599
8600 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8601
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.
8605
8606 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8607
8608         * server-src/amlabel.c: compiler warning: too many arguments for format
8609
8610 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8611
8612         * server-src/amlabel.c: remove the label from the tapefile in
8613         case it was already there (-f).
8614
8615 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8616
8617         * server-src/dumper.c: make sure holding files are not larger
8618         that chunksize.
8619
8620 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8621
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.
8626
8627 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8628
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.
8632
8633 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8634
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.
8643
8644 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
8645
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 
8650         wrendmark failed
8651
8652 1999-02-10  Paul Bijnens  <Paul.Bijnens@lant.be>
8653
8654         * server-src/amoverview.pl.in: Y2K fix in output to user
8655         * server-src/amtoc.pl.in (print_info): ditto
8656
8657 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
8658
8659         * client-src/sendsize.c (getsize_dump): do not redirect standard
8660         output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
8661
8662 1999-02-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
8663
8664         * NEWS: fix description of incronly: it won't really perform full
8665         backups
8666
8667         * NEWS: support for ufsdump -S, incronly strategy and new chunksize
8668         default
8669
8670         * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
8671         default to 1Gb
8672         * example/amanda.conf.in: ditto
8673         * man/amanda.8.in: ditto
8674
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
8682
8683 1999-02-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
8684
8685         * example/amanda.conf.in: document the behavior of relative
8686         exclude-list files
8687         * man/amanda.8.in: ditto
8688
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>
8692
8693         * client-src/sendbackup-gnutar.c (re_table): ignore `session request 
8694         to' message printed by Samba 2.0.0
8695
8696 1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
8697
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>
8701
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
8710
8711 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
8712
8713         * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
8714
8715         * configure.in (USE_AMANDAHOSTS): enable by default
8716         * example/config.site: ditto
8717         * docs/INSTALL: ditto
8718         * NEWS: ditto
8719
8720         * docs/INSTALL: updated URLs for GNU packages and Samba
8721         * docs/SAMBA: note that Samba 2.0.0 is supported
8722
8723         * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
8724
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 .....
8728
8729 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
8730
8731         * Makefile.am (EXTRA_DIST): sst was added within contrib
8732
8733         * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
8734         * configure.in: AC_SUBST LIBTOOL_DEPS
8735         * Makefile.am: regen libtool if neded
8736
8737         * Makefile.am: declare that we want automake 1.4 and we're a foreign 
8738         package
8739
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
8744
8745         * configure.in (SAMBA_CLIENT): updated check for smbclient to
8746         support Samba 2.0.0
8747
8748 1999-01-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
8749
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>
8753
8754 1999-01-26  Thomas Hepper <th@ant.han.de>
8755         * Makefile.am Added sst driver files to EXTRA_DIST
8756
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
8782         the changer.
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
8789         
8790 1999-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8791
8792         * server-src/conffile.c (init_defaults): default value of runspercycle
8793         is 0.
8794         * server-src/amadmin.c (balance): use default value of runspercycle.
8795         * server-src/planner.c (main): use default value of runspercycle.
8796
8797 1999-01-22  Martin Apel <apel@tecmath.de>
8798
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
8803         configuration file.
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.
8811
8812 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
8813
8814         * common-src/bsd-security.c (check_user): there was no uid variable
8815         here; replace with getuid()
8816
8817 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
8818
8819         * server-src/planner.c (output_scheduleline): removed `or historical
8820         data' from `no estimate' message; historical data doesn't matter any 
8821         more
8822         Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
8823
8824 1999-01-20  Todd Pfaff  <pfaff@mcmaster.ca>
8825         
8826         * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
8827
8828         * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message 
8829
8830 1999-01-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8831
8832         * server-src/amflush.c: use ap_snprintf instead of snprintf.
8833         * server-src/amflush.c: rotation of new amflush log was broken.
8834
8835 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8836
8837         * server-src/reporter.c: always call output_stats(), the problem is
8838         that degraded_mode is set if amflush fills the tape.
8839
8840 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8841
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.
8845
8846 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
8847
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.
8851
8852 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
8853
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
8856         copy size
8857         * server-src/dumper.c (databuf_flush): more clearly calculate the
8858         buffer offset in the write loop
8859
8860 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
8861
8862         * server-src/dumper.c (databuf_write): Egads!  Also increment the
8863         source pointer doing a partial buf copy
8864
8865 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
8866
8867         * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
8868         instead of getpwuid(getuid()), in case our caller has not done
8869         the setuid().
8870
8871 1999-01-12  Mike Grupenhoff <kashmir@munge.com>
8872
8873         * server-src/dumper.c (add_msg_data): properly check for half-sent
8874         msg lines.
8875
8876 1999-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8877
8878         * server-src/amstatus.pl.in: fix a divide by zero error.
8879
8880 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
8881
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.
8886
8887 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
8888
8889         * server-src/fileheader.c (parse_file_header): const the buffer
8890         argument
8891         * server-src/fileheader.h: update parse_file_header proto for const
8892         change
8893
8894 1999-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8895
8896         * server-src/amstatus.pl.in: report the current dump when reporting
8897         the busy time of each dumper.
8898
8899 1998-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8900
8901         * server-src/dumper.c: open temporary holding file with O_TRUNC flags
8902         and with mode 0600.
8903
8904 1998-12-28  John R. Jackson  <jrj@purdue.edu>
8905
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>).
8909
8910 1998-12-28  John R. Jackson  <jrj@purdue.edu>
8911
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>.
8914
8915 1998-12-27  John R. Jackson  <jrj@purdue.edu>
8916
8917         * man/amreport.8.in: remove reference to 8.5x11 paper size for the
8918         3-hole binder.
8919
8920 1998-12-27  John R. Jackson  <jrj@purdue.edu>
8921
8922         * example/3hole.ps: new lbl-templ file for 3 hole punch reports
8923         * example/Makefile.am: add 3hole.ps
8924
8925 1998-12-22  Thomas Hepper <th@icem.de>
8926
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
8936
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
8948
8949         For all changer-src files, removed tabs, run indent (from xemacs)
8950         Added emacs variables to the end (no tab, gnu style)
8951
8952 1998-12-21  John R. Jackson  <jrj@purdue.edu>
8953
8954         * man/amanda.8.in: document the lbl-templ tapetype option.
8955
8956 1998-12-21  John R. Jackson  <jrj@purdue.edu>
8957
8958         * man/amreport.8.in: fix formatting problem.
8959
8960 1998-12-20  John R. Jackson  <jrj@purdue.edu>
8961
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.
8967
8968 1998-12-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
8969
8970         * server-src/amlabel.c (main): datestamp for new tapes is now 0
8971         * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
8972         reusable
8973         * man/amlabel.8.in: document that tapes are added to tapelist
8974
8975 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
8976
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.
8982
8983 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
8984
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
8989         the same.
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.
8993
8994 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
8995
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
9003
9004 1998-12-19  John R. Jackson  <jrj@purdue.edu>
9005
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.
9008
9009 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9010
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.
9014
9015 1998-12-18  Mike Grupenhoff <kashmir@munge.com>
9016
9017         * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
9018         and 'split_size' members to replace the equivalent globals.  Nuke
9019         those globals.
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.
9027
9028 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9029
9030         * server-src/amstatus.pl.in: fix two perl warnings.
9031
9032 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9033
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.
9039
9040 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9041
9042         * server-src/amstatus.pl.in: take the --file argument as is if it
9043         is an absolute path.
9044
9045 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9046
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).
9051
9052 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
9053
9054         * server-src/dumper.c (databuf_flush): return 0 on success
9055
9056 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
9057
9058         * server-src/dumper.c (databuf_flush): new function.  Writes
9059         the contents of the databuf out to its backing file, doing splitting
9060         if necessary
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).
9067
9068 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
9069
9070         * server-src/dumper.c (databuf_init): new function, initializes
9071         a struct databuf.
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.
9078
9079 1998-12-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
9080
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
9089         and libtool.m4i
9090         * configure.in: no longer test whether libtool is installed; require 
9091         newer autoconf
9092         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
9093         libtool 1.2d
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
9098         automake from CVS
9099
9100 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9101
9102         * common-src/genversion.c (main): rip out krb4 defines.  If we
9103         need this info, each driver will have to do it individually.
9104
9105 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9106
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
9110         as a string.
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
9115         for this disk.
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.
9124
9125 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9126
9127         * server-src/amindexd.c: no need to include protocol.h
9128
9129 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9130
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
9134         unused local vars
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
9138
9139 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9140
9141         * server-src/changer.c (changer_label): make it return void
9142         to keep gcc warning about control reaching the end of a nonvoid
9143         function.
9144         * server-src/changer.c: update changer_label's proto for previous
9145
9146 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9147
9148         * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
9149         with bitmasks
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)
9155
9156 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9157
9158         * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
9159         use %ld to print them.
9160
9161 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9162
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
9166
9167 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9168
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
9172
9173 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9174
9175         * common-src/debug.c (debug_printf): const the format arg
9176         * common-src/amanda.h: const debug_printf's format arg
9177
9178 1998-12-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
9179
9180         * configure.in (BSD SCSI): test ... -a ... is not portable, and less 
9181         so when written test ... -a test ... :-)
9182
9183 1998-12-14  Thomas Hepper <th@icem.de>
9184
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
9188         defenition
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
9196
9197         * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
9198         LITTLE endian the same ...
9199
9200         * changer-src/scsi-bsd.c New file for FreeBSD
9201
9202         * changer-src/scsi-irix.c Clean up in the return handling
9203         changed RequestSense to pRequestSense
9204         Removed unused function TapeStatus
9205
9206         * changer-src/scsi-linux.c changed RequestSense to pRequestSense
9207         Removed unused function TapeStatus
9208
9209         * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
9210         Removed unused function TapeStatus
9211
9212         * config/acconfig.h added def for BSD_LIKE_SCSI
9213
9214         * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
9215         added sys/scsiio.h and check for BSD SCSI interface
9216
9217 1998-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9218
9219         * server-src/driver.c (handle_dumper_result): rename .tmp files
9220         when receiving ABORT_FINISHED.
9221
9222 1998-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9223
9224         * server-src/driver.c (start_some_dumps): Use the holdp returned
9225         by find_diskspace for a big_dumper in degraded mode.
9226
9227 1998-12-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
9228
9229         * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
9230         (IRIX): patch for xfsdump estimates
9231
9232 1998-12-10  John R. Jackson  <jrj@purdue.edu>
9233
9234         * common-src/amflock.c (main): remove call set_pname() for
9235         CONFIGURE_TEST since error.o is not linked in.
9236
9237 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
9238
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
9248
9249 1998-12-10  John R. Jackson  <jrj@purdue.edu>
9250
9251         * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
9252         stderr.
9253
9254 1998-12-10  John R. Jackson  <jrj@purdue.edu>
9255
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.
9258
9259 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
9260
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.
9264
9265 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
9266
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
9270         was always set to 1
9271
9272 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
9273
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
9284         globals.
9285
9286 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
9287
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.
9292
9293 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
9294
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.
9300
9301 1998-12-09  Henning P. Schmiedehausen  <henning@tanstaafl.de>
9302
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.
9309
9310 1998-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9311
9312         * server-src/holding.c (size_holding_files): return size in KB.
9313         * server-src/driver.c (adjust_diskspace): use KB returned by
9314         size_holding_files.
9315         * server-src/driver.c: rename .tmp file
9316         * server-src/dumper.c: do not rename .tmp file. let the driver do it.
9317
9318 1998-12-09  John R. Jackson  <jrj@purdue.edu>
9319
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.
9323
9324 1998-12-08  John R. Jackson  <jrj@purdue.edu>
9325
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.
9332
9333 1998-12-08  John R. Jackson  <jrj@purdue.edu>
9334
9335         * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
9336         compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
9337
9338 1998-12-08  John R. Jackson  <jrj@purdue.edu>
9339
9340         * configure.in: fix reversed code for --with-amrecover, compliments
9341         of Yar Tikhiy <yar@radio-msu.net>.
9342
9343 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9344
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.
9354
9355 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
9356
9357         * server-src/amtape.c (main, usage): make command lookup and usage
9358         table-driven
9359
9360 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
9361
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.
9371
9372 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9373
9374         * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
9375
9376 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9377
9378         * NEWS: document new force-bump, force-no-bump and unforce-bump
9379         command in amadmin.
9380
9381 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9382
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.
9388
9389 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9390
9391         * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
9392         command.
9393         * man/amadmin.8.in: document them.
9394
9395 1998-12-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
9396
9397         * docs/FAQ (large filesystems): fixed reference to results missing
9398         (results missing): updated to 64Kb UDP packets
9399
9400 1998-12-04  Mike Grupenhoff <kashmir@munge.com>
9401
9402         * common-src/amanda.h: implement WIFSIGNALED() if not already
9403         defined
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
9407
9408 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
9409
9410         * common-src/bsd-security.c (recv_security_ok): only check for
9411         a reserved port for REQ packets
9412
9413 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
9414
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.
9420
9421 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
9422
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
9427
9428 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
9429
9430         * configure.in: AC_REPLACE_FUNCS(writev)
9431
9432 1998-12-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9433
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
9437
9438 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9439
9440         * config/acconfig.h: add KRB5_SECURITY.  Update comment above
9441         krb4 define to make clear that they are for krb4
9442
9443 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9444
9445         * configure.in: if we're doing krb4 and -lcom_err is there, pull
9446         it in
9447         * configure.in: implement --with-krb5-security.
9448
9449 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9450
9451         * common-src/dgram.c (dgram_cat): now can take printf-style
9452         arguments
9453         * common-src/dgram.g (dgram_cat): update prototype
9454
9455 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9456
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
9466         memory to free
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
9472
9473 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9474
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
9477         defined
9478
9479 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9480
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).
9484
9485 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9486
9487         * common-src/security.h: add 'handlesize' to the driver struct, also
9488         make the connect function pointer return int and take a handle
9489         argument
9490         * common-src/security.h (security_connect): addd a 'const char **'
9491         errmsg argument for returning connect errors
9492
9493 1998-12-01  John R. Jackson  <jrj@purdue.edu>
9494
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
9499         formatting issues.
9500
9501 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
9502
9503         * common-src/event.c (release): nuke bogus comment about signal
9504         handler release
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
9509         gone to 0
9510         * common-src/event.c (event_loop): fix bogus comment about event
9511         removal
9512
9513 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
9514
9515         * common-src/arglist.h: implement arglist_function3()
9516
9517 1998-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9518
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.
9523
9524 1998-11-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9525
9526         * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
9527         as command.
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.
9532
9533 1998-11-27  Thomas Hepper    <th@icem.de>
9534
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
9541         SCSI CDB MSB type
9542         * docs/TAPE.CHANGERS add note about AIX and chg-scsi
9543
9544 1998-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9545
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.
9550
9551 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9552
9553         * common-src/amanda.h: uhh, every other decl has a leading
9554         'extern' so writev() should as well
9555
9556 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9557
9558         * common-src/amanda.h: if no writev() decl exists, declare one
9559
9560 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9561
9562         * configure.in: check for <sys/uio.h>, check for a writev() decl
9563         in <unistd.h> and/or <sys/uio.h>
9564
9565 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9566
9567         * common-src/writev.c (writev): new file, implements writev for
9568         systems that lack it
9569
9570 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9571
9572         * common-src/amanda.h: include <sys/uio.h> if it exists.  Otherwise,
9573         define struct iovec
9574
9575 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9576
9577         * server-src/amlabel.c: insist on being run as the dump user (ala
9578         amlabel) to keep permissions straight.
9579
9580 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9581
9582         * server-src/amadmin.c: fix minor message format problem.
9583
9584 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9585
9586         * server-src/amlabel.c: insist on being run as the dump user (ala
9587         amflush) to keep permissions straight.
9588
9589 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9590
9591         * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
9592         amdump) to keep permissions straight.
9593
9594 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9595
9596         * server-src/amadmin.c: issue a warning for update commands that might
9597         leave ownership incorrect.
9598
9599 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9600
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.
9608
9609 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9610
9611         * common-src/dgram.c (dgram_bind): always try to get a reserved
9612         port, even if KRB4_SECURITY is defined
9613
9614 1998-11-23  Mike Grupenhoff <kashmir@munge.com>
9615
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
9620         is now a string
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
9626
9627 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
9628
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.
9631
9632 1998-11-20  Mike Grupenhoff <kashmir@munge.com>
9633
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.
9639
9640 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
9641
9642         * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
9643         updated to current CVS libtool
9644
9645 1998-11-19  John R. Jackson  <jrj@purdue.edu>
9646
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.
9654
9655 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
9656
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
9661         bsd security
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
9665         get_security()
9666         * restore-src/amidxtaped.c (check_security): new function, implements
9667         * restore-src/amidxtaped.c (main): call check_security()
9668
9669 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
9670
9671         * common-src/stream.c (stream_server, stream_client): cast 4th
9672         arg of setsockopt() to (void *) to quash a compiler warning
9673         under solaris.
9674
9675 1998-11-19  John R. Jackson  <jrj@purdue.edu>
9676
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
9679         sethost command.
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.
9682
9683 1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
9684
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>
9689
9690 1998-11-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9691
9692         * server-src/dumper.c (main): reduce the size of the chunksize by
9693         2 blocks.
9694
9695 1998-11-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
9696
9697         * configure.in: hack for paxutils was not working; fixed
9698
9699 1998-11-18  Michael Povel  <mcp@ladyada.han.de>
9700
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
9710
9711 1998-11-18  Thomas Hepper <th@icem.de>
9712
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 
9718         #include <amanda.h>
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
9723         in amanda.h
9724         * changer-src/scsi-hpux_new.c  changed #include <config.h> to 
9725         #include <amanda.h>
9726         * changer-src/scsi-irix.c changed #include <config.h> to 
9727         #include <amanda.h>
9728         * changer-src/scsi-linux.c changed #include <config.h> to 
9729         #include <amanda.h>
9730         * changer-src/scsi-solaris.c changed #include <config.h> to 
9731         #include <amanda.h>
9732
9733 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
9734
9735         * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
9736         is defined
9737
9738 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9739
9740         * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
9741         to shift the tpsave array.
9742
9743 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
9744
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'
9749
9750 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9751
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.
9754
9755 1998-11-17  Brendan M Coffey <bcoffey@connix.com>
9756
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
9761         buffer size.
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
9764         paths.
9765
9766 1998-11-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
9767
9768         * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
9769
9770 1998-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9771
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 
9787         to info.
9788         * server-src/driverio.c (update_info_taper): rename inf parameter 
9789         to info.
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.
9797
9798 1998-11-11  Thomas Hepper <th@icem.de>
9799
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
9804         if it is loaded
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
9818
9819 1998-11-11  Mike Grupenhoff <kashmir@munge.com>
9820
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
9825
9826 1998-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9827
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.
9830
9831 1998-11-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
9832
9833         * server-src/driver.c (main): total_disksize was only added after
9834         the loop terminated, i.e., when hdp was NULL -> crash.  fixed.
9835
9836 1998-11-09  John R. Jackson  <jrj@purdue.edu>
9837
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.
9841
9842 1998-11-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9843
9844         * server-src/infofile.h (struct info_s): add last_level and 
9845         consecutive_runs.
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.
9851         
9852 1998-11-09  Mike Grupenhoff <kashmir@munge.com>
9853
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
9857
9858 1998-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9859
9860         * server-src/driver.c (main): add hdp->disksize to total_disksize
9861         even when we create the datestamp dir. (reserve was unusable).
9862
9863 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
9864
9865         * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
9866         STRATEGY-API
9867         * docs/STRATEGY-API: new file
9868
9869         * configure.in (GNUTAR): accept tar from Free paxutils, the new name
9870         of GNU tar
9871
9872 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
9873
9874         * changer-src/scsi-solaris.c: added missing #endif
9875
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
9879
9880 1998-11-07  Thomas Hepper  <th@icem.de>
9881
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
9885         ask_clean
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
9900
9901 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
9902
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
9906
9907 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
9908
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.
9912
9913 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
9914
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
9918         huge
9919
9920 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
9921
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
9925         fails.
9926
9927 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
9928
9929         * common-src/event.c (event_loop): print out WHY select failed
9930
9931 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
9932
9933         * common-src/bsd-security.c: adjust for the recvpkt timeout
9934         interface changes
9935         * common-src/bsd-security.c (handleq_remove): add a missing ; after
9936         an assertion
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
9942
9943 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
9944
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
9951
9952 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
9953
9954         * common-src/event.c (event_loop): assert that we are not firing
9955         a dead event
9956
9957 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9958
9959         * recover-src/amrecover.c: remove declaration of errstr.
9960
9961 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9962
9963         * server-src/amindexd.c (build_disk_table): call find_dump() instead
9964         of popen("amadmin <conf> find ...")
9965
9966 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9967
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
9972
9973 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9974
9975         * server-src/amstatus.pl.in: remove warning.
9976
9977 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
9978
9979         * common-src/event.c (event_register): delete some improper debug
9980         code that shouldn't have made it in
9981
9982 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
9983
9984         * common-src/bsd-security.c: new file: security driver that
9985         implements "BSD" security.
9986
9987 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
9988
9989         * common-src/security.h: new file: the security api header
9990
9991 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
9992
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.
9996
9997 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
9998
9999         * common-src/packet.c: new file: description of pkt_t's and routines
10000         for formatting
10001         * common-src/packet.h: new file: header for common-src/packet.c
10002
10003 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
10004
10005         * common-src/queue.h: new file: the 4.4BSD queue macros, with
10006         additions from NetBSD
10007
10008 1998-11-04  John R. Jackson  <jrj@purdue.edu>
10009
10010         * server-src/amverify.sh.in: tolerate extra amtape output.
10011
10012 1998-11-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
10013
10014         * configure.in: bumped to 2.5.0
10015
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
10018         for the first tape
10019
10020 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10021
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.
10026
10027 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10028
10029         * server-src/planner.c (last_level): update last_date otherwise only
10030         level 0 or the highest is returned.
10031
10032 1998-11-03  Mike Grupenhoff  <kashmir@munge.com>
10033
10034         * common-src/alloc.c: const arguments to the stralloc functions
10035         * common-src/amanda.h: update stralloc prototypes for const
10036         poisoning
10037
10038 1998-11-03  John R. Jackson  <jrj@purdue.edu>
10039
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.
10042
10043 1998-11-03  John R. Jackson  <jrj@purdue.edu>
10044
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
10048         in progress).
10049
10050 1998-11-03  John R. Jackson  <jrj@purdue.edu>
10051
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.
10055
10056 1998-11-02  John R. Jackson  <jrj@purdue.edu>
10057
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
10061         in degraded mode.
10062
10063 1998-11-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10064
10065         * server-src/amstatus.pl.in: initialize variable to remove warning.
10066
10067 1998-11-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
10068
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>
10073
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>
10079         
10080         * client-src/sendbackup.c (backup_program): rename to
10081         gnutar_program, that's the name it should have had from the
10082         beginning
10083         * client-src/sendbackup-gnutar.c (backup_program): ditto
10084
10085 1998-10-31  Michael Schmitz <mschmitz@iname.com>
10086
10087         * configure.in: let configure check whether strcasecmp is
10088         present
10089         * common-src/strcasecmp.c: new file which contains a definition
10090         of strcasecmp
10091         * common-src/amanda.h: added code to declare strcasecmp in
10092         case it's not declared in a standard header
10093
10094 1998-10-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
10095
10096         * configure.in (snprintf): arrange that it is included in the
10097         distribution automatically
10098         * common-src/Makefile.am (EXTRA_DIST): removed, not needed
10099
10100         * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
10101         if WANT_CHG_SCSI
10102
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
10107
10108 1998-10-30  John R. Jackson  <jrj@purdue.edu>
10109
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).
10113
10114 1998-10-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
10115
10116         * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates 
10117
10118 1998-10-28  John R. Jackson  <jrj@purdue.edu>
10119
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
10122         gethostbyname.
10123
10124 1998-10-28  John R. Jackson  <jrj@purdue.edu>
10125
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.
10129
10130 1998-10-27  Mike Grupenhoff <kashmir@munge.com>
10131
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
10136
10137 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10138
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.
10141
10142 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10143
10144         * client-src/amandad.c (main): terminate immediately if started
10145         by a P_ACK packet without sending a P_NAK packet.
10146
10147 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10148
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
10154         * NEWS: ditto
10155
10156 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10157
10158         * server-src/dumper.c (sendbackup_response): a nak error will
10159         be a TRY-AGAIN instead of a FAILED.
10160
10161 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10162
10163         * server-src/amlabel.c: move declaration of vtbl_no, datestr
10164         and slotcommand to the main function.
10165
10166 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10167
10168         * server-src/amlabel.c: remove declaration of pname.
10169
10170 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10171
10172         * server-src/amcheckdb.sh.in: modify to match new tapelist file
10173         format (keyword reuse and no-reuse). Probably no-one use this
10174         program.
10175
10176 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10177
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.
10181
10182 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10183
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
10190         argc and argv.
10191         * server-src/driver.c (main, handle_taper_result, 
10192         handle_dumper_result, dump_to_tape): ditto
10193
10194 1998-10-24  John R. Jackson  <jrj@purdue.edu>
10195
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.
10199
10200 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10201
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.
10209
10210 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10211
10212         * server-src/driverio.h: remove declaration of tok.
10213         * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
10214         tok locally.
10215         * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
10216         dump_to_tape): declare tok locally.
10217
10218 1998-10-23  John R. Jackson  <jrj@purdue.edu>
10219
10220         * configure.in: disable the -E and -h dump estimate checks if $DUMP
10221         is not executable.
10222
10223 1998-10-19  John R. Jackson  <jrj@purdue.edu>
10224
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.
10227
10228 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10229
10230         * server-src/reporter.c: remove declaration of curlinenum,
10231         curlog, curprog and curstr.
10232
10233 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10234
10235         * server-src/amflush.c (main): move declaration of diskqp from
10236         global to local.
10237
10238 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10239
10240         * server-src/amcheck.c (main): move declaration of mailout and 
10241         tempfname from global to local.
10242
10243 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10244
10245         * server-src/amadmin.c (search_logfile): remove declaration
10246
10247 1998-10-15  Mike Grupenhoff <kashmir@munge.com>
10248
10249         * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
10250         label not found
10251
10252 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10253
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
10262
10263 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10264
10265         * server-src/driver.c: remove verbose and force_parameters
10266         variables.
10267
10268 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10269
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.
10273
10274 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10275
10276         * server-src/planner.c: remove declaration of total_waiting and
10277         result_socket.
10278         * server-src/planner.c(main): move declaration of initial_size from
10279         global to local.
10280
10281 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10282
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
10286
10287 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10288
10289         * server-src/driverio.h (optionstr): remove declaration
10290
10291 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10292
10293         * configure.in (SAMBA_CLIENT): fix typo
10294
10295 1998-10-14  John R. Jackson  <jrj@purdue.edu>
10296
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.
10300
10301 1998-10-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
10302
10303         * client-src/Makefile.am (libamclient_a_SOURCES): missing since
10304         clean-up; re-added
10305
10306 1998-10-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10307
10308         * docs/INTERNALS (driver and dumper): document <dumpdate> in 
10309         FILE-DUMP and PORT-DUMP request, document <chunksize> in 
10310         FILE-DUMP request.
10311
10312 1998-10-12  John R. Jackson  <jrj@purdue.edu>
10313
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
10317         changer.
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.
10323
10324 1998-10-08  John R. Jackson  <jrj@purdue.edu>
10325
10326         * example/amanda.conf.in: fix runspercycle example and comments
10327
10328 1998-10-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
10329
10330         * configure.in (SAMBA_CLIENT): try to find it by default; minimal
10331         checking
10332         * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
10333         enable findpass.o
10334         * docs/SAMBA: document that --with-smbclient is no longer required
10335         to enable SAMBA support
10336         
10337         * docs/FAQ: about inconsistencies in active filesystems
10338
10339 1998-10-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10340
10341         * docs/DUMPER-API: add `no-record' option to the `backup' command.
10342
10343 1998-10-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10344
10345         * docs/DUMPER-API: subdivise section 3.1.
10346
10347 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10348
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.
10354
10355 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10356
10357         * docs/DUMPER-API: define PARSE keyword in stderr of the backup
10358         command
10359
10360 1998-10-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
10361
10362         * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not 
10363         generated by autoconf get into the distribution
10364
10365 1998-10-02  Josef Karthauser  <joe@pavilion.net>
10366
10367         * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression 
10368         for $line; the trailing `s' of slots was missing
10369
10370 1998-10-02  John R. Jackson  <jrj@purdue.edu>
10371
10372         * server-src/amstatus.pl.in: fix error message.
10373
10374 1998-10-02  John R. Jackson  <jrj@purdue.edu>
10375
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.
10380
10381 1998-10-01  John R. Jackson  <jrj@purdue.edu>
10382
10383         * common-src/protocol.c (parse_integer): allow negative numbers.
10384
10385 1998-10-01  John R. Jackson  <jrj@purdue.edu>
10386
10387         * server-src/amstatus.pl.in: add timestamps.
10388
10389 1998-10-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
10390
10391         * docs/DUMPER-API: define `support index', to be used instead of the
10392         previous `index-*' sub-commands
10393
10394 1998-09-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
10395
10396         * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use 
10397         backslashes for continuation; this seems to break automake :-(
10398
10399 1998-09-30  John R. Jackson  <jrj@purdue.edu>
10400
10401         * man/amanda.8.in: minor typo in "reserve" description.
10402
10403 1998-09-29  John R. Jackson  <jrj@purdue.edu>
10404
10405         * server-src/taper.c (end_tape): do not rewind the tape when done.
10406
10407 1998-09-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
10408
10409         * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER, 
10410         WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
10411         conditionals
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
10421
10422         * Makefile.am: don't print commands that work around old aclocal bug
10423
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
10427
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>
10431
10432 1998-09-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
10433
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>
10437
10438 1998-09-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10439
10440         * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
10441         (estimate, estimate-parse): can print `KILL' after the estimate
10442         
10443         * docs/DUMPER-API: various suggestions from Eric Siegerman
10444         <erics@now.com> and some explanations added
10445         
10446 1998-09-27  Andy Farkas  <andyf@speednet.com.au>
10447
10448         * man/amlabel.8.in (labelstr): fix typo
10449
10450 1998-09-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
10451
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>
10455
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
10459         wrapper program
10460
10461 1998-09-25  John R. Jackson  <jrj@purdue.edu>
10462
10463         * configure.in: fix --with-dump-honor-nodump test.  Patch by
10464         Jonas Oberg <jonas@coyote.org>.
10465
10466 1998-09-24  John R. Jackson  <jrj@purdue.edu>
10467
10468         * example/disklist: document the "spindle" and "interface" fields.
10469         Reported by Brendan M Coffey <bcoffey@connix.com>.
10470
10471 1998-09-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
10472
10473         * docs/DUMPER-API: added draft description of the DUMPER API
10474         * Makefile.am (EXTRA_DIST): add it to the distribution
10475
10476         * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
10477         cached values for host, build and target system types match with the
10478         guessed ones
10479         * configure.in: use it
10480
10481 1998-09-23  John R. Jackson  <jrj@purdue.edu>
10482
10483         * server-src/amstatus.pl.in: sort the host and partition names.
10484         From David Wolfskill <dhw@whistle.com>.
10485
10486 1998-09-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
10487
10488         * server-src/taper.c (getcmd): typo in last DEBUGging patch
10489
10490 1998-09-22  Tim Perkins  <Tim.Perkins@ddg.phar.cam.ac.uk>,  Alexandre Oliva <oliva@dcc.unicamp.br>
10491
10492         * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
10493
10494 1998-09-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
10495
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>
10499
10500         * client-src/sendsize.c: remove usage of #error
10501         Reported by Jay Orr <orr@vss.fsi.com>
10502
10503 1998-09-21  John R. Jackson  <jrj@purdue.edu>
10504
10505         * man/amanda.8.in: document the new "tapebufs" parameter.
10506
10507 1998-09-21  Kelly Setzer  <setzer@telalink.net>
10508
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
10514
10515         * server-src/amlabel.c (main): adds entry to tapelist with date
10516         19700101
10517
10518 1998-09-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
10519
10520         * server-src/taper.c (getcmd): print DEBUGging output to stderr
10521         Reported by Henning Holtschneider <hh@loca.net>
10522
10523 1998-09-19  Eric Doutreleau <Eric.doutreleau@int-evry.fr>
10524
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
10529
10530 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
10531
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.
10538
10539 1998-09-18  Michael C. Povel  <Michael.Povel@hub.de>
10540
10541         * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
10542         until success or timeout
10543         (ask_clean, main): use it
10544
10545 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
10546
10547         * client-src/selfcheck.c (check_options): don't require runtar for
10548         SAMBA backups
10549         
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>
10555
10556 1998-09-16  John R. Jackson  <jrj@purdue.edu>
10557
10558         * man/amadmin.8.in: document that "hostname" is optional for "info".
10559         Reported by David Wolfskill <dhw@whistle.com>.
10560
10561 1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10562
10563         * docs/FAQ: common compile-time and link-time errors
10564
10565 1998-09-11  John R. Jackson  <jrj@purdue.edu>
10566
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
10574         calling sequence.
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
10578         calling sequence.
10579         * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
10580         calling sequence.
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
10584         calling sequence.
10585
10586 1998-09-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
10587
10588         * client-src/sendbackup-gnutar.c (re_table): ignore
10589         `load_client_codepage' message from SAMBA
10590
10591 1998-09-11  John R. Jackson  <jrj@purdue.edu>
10592
10593         * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
10594         problems.  Reported by David Eckelkamp <davide@locutus.tradewave.com>.
10595
10596         * man/amstatus.8.in (all): fix minor typos.
10597
10598 1998-09-10  John R. Jackson  <jrj@purdue.edu>
10599
10600         * configure.in (LFS): add code that might support configuring large
10601         files on HP-UX.
10602
10603 1998-09-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
10604
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
10609
10610         * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
10611
10612 1998-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10613
10614         * docs/SAMBA: 1.9.18p10 has a bug
10615
10616 1998-09-09  Terje Malmedal  <tm@funcom.com>
10617
10618         * common-src/stream.c (stream_server, stream_client): added
10619         SO_KEEPALIVE option so we get an error if the other side crashes
10620
10621 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
10622
10623         * configure.in (CHIO): look for chio and AC_SUBST it
10624         (MT, CHS): if not found, use just the program name
10625         
10626 1998-09-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10627
10628         * server-src/planner.c (last_level): return the last level
10629         even it is still on holding disk if reserve < 100.
10630
10631 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
10632
10633         * server-src/reporter.c (divzero, divzero_wide): print `#'s on
10634         overflow
10635
10636         * server-src/amtape.c (show_init): no longer print `scanning'
10637         message
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>
10641
10642         * changer-src/chg-scsi.c (main): use new multi-configuration
10643         mechanism only if tape_device contains only a single digit
10644
10645 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10646
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.
10650
10651 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10652
10653         * server-src/holding.h (get_amanda_names): return a filetype_t
10654         instead of an int.
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.
10662
10663 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10664
10665         * recover-src/extract_list.c (extract_files_child): don't write
10666         the samba password to the debug file.
10667
10668 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10669
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
10673         to tape.
10674
10675 1998-09-03  Matthias Urlichs    <smurf@noris.net>
10676
10677         * recover-src/uscan.l: recognize "?" as alias for "help"
10678
10679         * configure.in (MAILER): recognize "mail" as well as "Mail" and
10680         "mailx"
10681
10682         * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
10683         sizes of directories and files
10684
10685         * client-src/amandates.c (start_amandates): create amandates if
10686         error is either EINTR or ENOENT
10687
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
10691         inetd yet.
10692         * common-src/protocol.c (handle_incoming_packet): ditto
10693
10694         * server-src/driver.c (read_schedule): catch cases when the time
10695         goes negative.  Some operators have the bad habit of syncing clocks
10696         late at night. ;-)
10697
10698         * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
10699         * NEWS: ditto
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
10703         end-of-file
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
10707         
10708 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
10709
10710         * NEWS: another typo (too late :-(
10711
10712 1998-09-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10713
10714         * server-src/driver.c: amanda will not use an holding disk
10715         if the directory with the datestamp already exist.
10716
10717 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
10718
10719         * Amanda 2.4.1 released
10720         
10721 1998-08-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10722
10723         * NEWS: typo
10724
10725 1998-08-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10726
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
10730
10731         * config/config.guess: updated to libtool 1.2b's, in order to
10732         auto-detect some recent architectures
10733         * config/config.sub: ditto
10734
10735         * server-src/amcleanup.sh.in (sbindir): amreport now lives in
10736         sbindir; added it to PATH and removed full pathnames to binaries
10737
10738 1998-08-27  Blair Zajac  <blair@gps.caltech.edu>
10739
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
10744         newvstralloc().
10745         * server-src/dumper.c: add missing last NULL argument to
10746         newvstralloc().
10747         * NEWS: reorder 2.4.1 items into most to least important for most
10748         users.
10749         * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
10750         include systems where the Veritas filesystem is used.
10751
10752 1998-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
10753
10754         * man/amanda.8.in (nofull): only level 1 incrementals
10755
10756 1998-08-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
10757
10758         * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
10759
10760         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
10761         (AC_OUTPUT): ditto
10762         * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
10763         * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
10764         (chg-mtx): mentioned chg-zd-mtx
10765
10766 1998-08-20  Eric Doutreleau  <Eric.Doutreleau@int-evry.fr>
10767
10768         * changer-src/chg-zd-mtx.sh.in: new changer script for
10769         Zubkoff/Dandelion version of mtx.
10770
10771 1998-08-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
10772
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
10776
10777 1998-08-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
10778
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
10784
10785 1998-08-14  John R. Jackson  <jrj@purdue.edu>
10786
10787         * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
10788
10789 1998-08-13  Alexandre Oliva  <oliva@dcc.unicamp.br>, Marcel Hild  <hild@id-pro.de>
10790
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
10796
10797 1998-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
10798
10799         * docs/FAQ: working around `dumps way too big'
10800
10801 1998-08-11  Alexandre Oliva  <oliva@dcc.unicamp.br>, Gunnar Gunnarsson  <gunnar@ki.ericsson.se>
10802
10803         * common-src/token.h (rxquote, shquote): new functions
10804         * common-src/token.c (rxquote) quotes a string into an equivalent
10805         regular expression
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
10811
10812 1998-08-11  John R. Jackson  <jrj@purdue.edu>
10813
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).
10820
10821 1998-08-10  Nick Hibma  <nick.hibma@jrc.it>
10822
10823         * changer-src/chg-chio.pl.in: move to first slot if last is unused
10824
10825 1998-08-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
10826
10827         * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
10828
10829 1998-08-07  Günter Felkel  <G.Felkel@edelmann.de>
10830
10831         * example/DIN-A4.ps: new file
10832
10833 1998-08-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
10834
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)
10839
10840         * docs/FAQ: some notes about driving real tape changers
10841
10842 1998-08-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
10843
10844         * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
10845
10846 1998-08-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
10847
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.
10851
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
10855
10856 1998-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
10857
10858         * client-src/sendsize.c: replace free(line) with amfree(line),
10859         because line is not ensured to be non-NULL
10860         
10861         * docs/FAQ: amandad: error receiving message
10862         
10863         * docs/FAQ: difference between skip-full and strategy nofull
10864
10865 1998-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
10866
10867         * docs/FAQ: software or hardware compression?
10868
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>
10874
10875         * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
10876         distribution
10877         Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
10878
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
10886
10887 1998-07-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
10888
10889         * docs/FAQ: disk offline
10890
10891 1998-07-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10892
10893         * restore-src/amidxtaped.c (main): use tape_rewind() instead of
10894         running `mt'
10895
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.
10899
10900 1998-07-25  Michael Graff  <explorer@vix.com>
10901
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
10908
10909         * configure.in: link krb5 and com_err in for Kerberos support, if
10910         they exist
10911
10912 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10913
10914         * server-src/reporter.c (copy_template_file): add braces to 
10915         remove warning
10916         * tape-src/tapeio.h: declare is_zftape to remove warning in
10917         amlabel.c and taper.c
10918
10919 1998-07-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
10920
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>
10928
10929 1998-07-23  John R. Jackson  <jrj@purdue.edu>
10930
10931         * server-src/reporter.c (main): handle LPRCMD being undefined.
10932
10933 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10934
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.
10939
10940 1998-07-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
10941
10942         * configure.in: version number set to 2.4.1
10943
10944         * recover-src/Makefile.am (LDADD): libamtape imports symbols from
10945         libamanda, so it must be listed first
10946
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
10950         
10951 1998-07-21  Blair Zajac  <blair@gps.caltech.edu>
10952
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
10958
10959 1998-07-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
10960
10961         * docs/FAQ (results missing): suggestions to work around the UDP
10962         packet size limit
10963
10964 1998-07-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
10965
10966         * docs/FAQ (amrecover): a config name may have to be specified
10967         Reported by digital messiah <dmessiah@silcon.com>
10968
10969 1998-07-15  Blair Zajac  <blair@gps.caltech.edu>
10970
10971         * server-src/reporter.c (main): declare optind
10972
10973 1998-07-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10974
10975         * configure.in: created Amanda 2.4.1 branch
10976
10977         * example/amanda.conf.in: strategy noinc is not implemented yet
10978
10979 1998-07-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10980
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
10988
10989 1998-07-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
10990
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>
10995
10996         * */Makefile.am: checked library version numbers, no need for update
10997         
10998         * configure.in: version number set to 2.4.1b1
10999
11000 1998-07-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
11001
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
11005         changer.
11006         
11007 1998-07-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
11008
11009         * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
11010
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
11014         
11015 1998-07-10  Nick Hibma  <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
11016
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
11023         
11024 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
11025
11026         * server-src/reporter.c (main): if no arguments are given, preserve
11027         original behavior; require config name otherwise.  Perform better
11028         argument checking.
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
11033
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
11037
11038 1998-07-08  Steven Freed  <sfreed@gilasoft.com>
11039
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
11043         to.
11044         (output_summary): print tape labels list, tape section numbers and
11045         dump sizes.
11046         * server-src/amdump.sh.in: run amreport
11047         * server-src/amflush.c (main): ditto
11048         (run_dumps): 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
11054
11055 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
11056
11057         * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
11058
11059 1998-07-07  John R. Jackson  <jrj@purdue.edu>
11060
11061         * changer-src/scsi-chio.c: move #include's so this will compile on
11062         systems without <sys/mtio.h> (e.g. AIX).
11063
11064 1998-07-06  John R. Jackson  <jrj@purdue.edu>
11065
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.
11069
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
11073         YYY@ZZZ".
11074
11075         * common-src/security.c (bsd_security_ok): allow the remote user
11076         field in .amandahosts to be empty ala .rhosts.
11077
11078 1998-07-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11079
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.
11082
11083         * server-src/driver.c (main): compute holding disk space if 
11084         a negative value is given in the use parameter..
11085
11086         * man/amanda.8.in (use) : document negative use paramater for 
11087         holding disk.
11088
11089         * example/amanda.conf.in (use): document negative use paramater for
11090         holding disk..
11091
11092 1998-07-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
11093
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
11097
11098         * NEWS: documented major changes since amanda 2.3.0.4
11099
11100         * docs/INSTALL: refer to patch-system for editing services and
11101         inetd.conf
11102
11103         * docs/FAQ: added entries for common amdump and amcheck errors
11104
11105         * COPYRIGHT: updated to 1998, refer to Amanda Development Team
11106         * AUTHORS: who is the Amanda Development Team
11107
11108 1998-07-03  John R. Jackson  <jrj@purdue.edu>
11109
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).
11115
11116 1998-07-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
11117
11118         * server-src/planner.c (setup_estimate): handle new disks with
11119         skip-full correctly.
11120
11121         * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
11122         force it to be newer on distributions.
11123
11124 1998-07-01  John R. Jackson  <jrj@purdue.edu>
11125
11126         * server-src/driverio.h: change reserved_space to unsigned long to
11127         match free_space() and avoid a compiler warning.
11128
11129 1998-06-30  John R. Jackson  <jrj@purdue.edu>
11130
11131         * man/amanda.8.in: fix amrecover synopsis and add a short description.
11132         Noted by Brendan M Coffey <bcoffey@connix.com>.
11133
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>.
11137
11138 1998-06-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
11139
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>
11145
11146 1998-06-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
11147
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
11152         non-FQDNs.
11153         Reported by Chris Shenton <chris@absinthe.shenton.org>
11154
11155         * server-src/reporter.c (output_tapeinfo): degraded mode no longer
11156         implies incremental dumps only.
11157         Reported by Randy Dees <rrd@amherst.com>
11158
11159 1998-06-26  John R. Jackson  <jrj@purdue.edu>
11160
11161         * configure.in: fix BSD/OS Kerberos include file location.
11162
11163 1998-06-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
11164
11165         * config/ltmain.sh: install official patch to libtool 1.2a
11166
11167         * configure.in: do not set max file size for Solaris 2.6, it is no
11168         longer used.
11169
11170 1998-06-26  Tim McNerney  <mumbly@netcom.com>
11171
11172         * common-src/fileheader.c (parse_file_header): accept missing
11173         PROGRAM in tape section header, for backward compatibility.
11174
11175 1998-06-25  Blair Zajac  <blair@gps.caltech.edu>
11176
11177         * server-src/amflush.c: fix mismatch arguments to error()
11178
11179 1998-06-24  Steven Freed  <sfreed@gilasoft.com>
11180
11181         * configure.in (dump-honor-nodump): fix test for `-h' support
11182
11183 1998-06-24  Scott Mesches  <mesches@allison.Colorado.EDU>
11184
11185         * example/DLT.ps: new file
11186         * example/Makefile.am (EXTRA_DIST): add DLT.ps
11187
11188 1998-06-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
11189
11190         * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
11191
11192         * recover-src/extract_list.c (extract_files_child): handle
11193         IS_UNKNOWN dumptype as IS_DUMP
11194
11195         * client-src/sendsize.c (getsize_dump): always create pipe for
11196         killpgrp.
11197
11198         * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
11199         NULL.
11200
11201         * amplot/amplot.awk: ignore `interface-state'
11202         Reported by Peter Walker <peter.walker@talarian.com>
11203
11204 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
11205
11206         * server-src/amrmtape.sh.in: enable verbose by default; implement -q 
11207         for quiet.
11208         * man/amrmtape.8.in: ditto
11209         Suggested by Nick Hibma  <nick.hibma@jrc.it>
11210         
11211 1998-06-24  Nick Hibma  <nick.hibma@jrc.it>
11212
11213         * server-src/amrmtape.sh.in: better error reporting for incorrect
11214         database entries
11215
11216 1998-06-24  Dan Swartzendruber <dswartz@druber.com>
11217         
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.
11228         
11229 1998-06-18  Blair Zajac <blair@gps.caltech.edu>
11230
11231         * config/ltconfig: update to 1.2a
11232         * config/ltmain.sh: update to 1.2a
11233         * config/libtool/libtool.m4: update to 1.2a
11234
11235 1998-06-17  John R. Jackson  <jrj@purdue.edu>
11236
11237         * server-src/dumper.c (write_tapeheader): comment out some variables
11238         to get rid of a compiler warning.
11239
11240 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11241
11242         * server-src/amadmin.c (bumpsize): write wrong equation for bump
11243         threshold.
11244
11245 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11246
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
11250
11251 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
11252
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
11257
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.
11260
11261         * server-src/changer.h (changer_clean): new function
11262         * server-src/changer.c (changer_clean): ditto
11263
11264 1998-06-13  Michael C. Povel  <mcp@ladyada.han.de>
11265
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 
11271         using Linux ioctls
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
11275         functions
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
11280
11281 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
11282
11283         * docs/SYSTEM.NOTES: clean-up
11284
11285         * docs/FAQ: new file
11286         * docs/SUNOS4.BUG: removed
11287         * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
11288         
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>
11292
11293         * server-src/logfile.c (open_log): open log file with mode 0600.
11294
11295         * server-src/amdump.sh.in: refuse to run if either amdump or log
11296         exist in logdir.
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.
11300
11301 1998-06-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11302
11303         * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
11304         should not dup2( A, B ); aclose(A) when A == B
11305
11306 1998-06-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
11307
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.
11311
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.
11315
11316 1998-06-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
11317
11318         * docs/SAMBA: added notes about (not) backing up registry files and
11319         ACLs with SAMBA.
11320         * docs/INSTALL: point to docs/SAMBA for usage and limitations
11321
11322 1998-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
11323
11324         * configure.in (amanda_cv_print_command): removed; using PRINT
11325         instead.
11326
11327 1998-06-07  Todd Kover <kovert@omniscient.com>
11328
11329         * add --with-owner option to allow installed binaries to be owned
11330         by someone other than the amanda user
11331
11332         * add GB as valid holding disk size.
11333
11334 1998-06-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11335
11336         * server-src/amadmin.c (info): don't need to specify an host.
11337
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
11340         overdue.
11341
11342         * server-src/amstatus.pl.in (dump_size): new function to report
11343         the size of a dump split on multiple files.
11344
11345 1998-06-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11346
11347         * recover-src/extract_list.c (read_buffer): write a message
11348         when amrecover timeout waiting for amrestore to send the dump.
11349
11350 1998-06-04  John R. Jackson  <jrj@purdue.edu>
11351
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.
11356
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
11361         work again.
11362
11363 1998-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
11364
11365         * amplot/amplot.sh.in: modified command line argument parsing
11366         mechanism, so as to prevent shell quoting problems and unportable
11367         constructs.
11368         Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
11369
11370 1998-06-02  John R. Jackson  <jrj@purdue.edu>
11371
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.
11381
11382 1998-06-01  John R. Jackson  <jrj@purdue.edu>
11383
11384         * client-src/killpgrp.c: clean up minor compiler warnings by not
11385         building term_kill_{soft,hard} unless they are needed.
11386
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.
11389
11390         * server-src/driver.c: include <holding.h> to get declaration for
11391         unlink_holding_files and avoid a compiler warning.
11392
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.
11400
11401 1998-06-01  Dan Swartzendruber  <dswartz@druber.com> via John R. Jackson
11402
11403         * server-src/amlabel.c (main): check argc before referencing too
11404         far into argv for "-f".
11405
11406 1998-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
11407
11408         * docs/SYSTEM.NOTES: advise Linux users to use dump without
11409         setuid/setgid
11410
11411         * docs/INDEXING: update dumptype syntax
11412
11413 1998-05-29  John R. Jackson  <jrj@purdue.edu>
11414
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().
11420
11421 1998-05-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
11422
11423         * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
11424         * patches/tar-1.12.patch: ditto.
11425
11426         * server-src/taper.c (endtape): do not log amount of used tape after 
11427         entering degraded mode.
11428
11429         * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
11430         killpgrp.
11431
11432 1998-05-28  Paul R. Johnson  <prj@mit.edu>
11433
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
11436         was running.
11437
11438 1998-05-28  Tom Lear <toml@accesscom.com>, John R. Jackson  <jrj@purdue.edu>
11439
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
11443         amanda.conf.
11444
11445 1998-05-27  John R. Jackson  <jrj@purdue.edu>
11446
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.
11453
11454 1998-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
11455
11456         * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
11457         stdin.
11458
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
11461         can't kill it.
11462
11463         * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
11464         supports HP/UX-like changer commands.
11465
11466         * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
11467         interface is supported.
11468
11469         * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
11470         HAVE_SYS_SCSI_H.
11471
11472 1998-05-25  Allen Briggs  <briggs@canolog.ninthwonder.com>
11473
11474         * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
11475         NetBSD's mt
11476
11477 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
11478
11479         * client-src/sendsize.c (getsize_dump): killpgrp must be direct
11480         child of sendsize, otherwise sendsize won't be able to kill it.
11481
11482 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
11483
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
11487         
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
11491         
11492         reported by Tim Potter <tpot@acsys.anu.edu.au>
11493
11494 1998-05-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
11495
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.
11504         
11505 1998-05-20  Tom Lear  <toml@accesscom.com>
11506
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
11510         starting gnutar
11511         * client-src/sendbackup.c (check_status): if gnutar returns 2,
11512         ignore the error
11513
11514 1998-05-19  Jean-Louis Martineau <martineau@IRO.UMontrealCA>
11515
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
11522
11523 1998-05-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11524
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
11529
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
11533
11534         * ChangeLog: renamed from CHANGES.  Original entries follow.
11535
11536         fix skip-incr handling so that reporter reports SKIPPED
11537         instead of missing result.
11538         -Jim Simmons <s4i@sws6.ctd.ornl.gov>
11539
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>
11544
11545         an amstatus command that give the current state of a run.
11546         -J-L Martineau <martineau@IRO.UMontreal.CA>
11547
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>
11551
11552         amidxtrm keep index of all active tapes as listed in tapelist file.
11553         -J-L Martineau <martineau@IRO.UMontreal.CA>
11554
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>
11559
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>
11563
11564         be consistent and use 1048576 as a dump size everyplace instead of
11565         100000 in some places (mostly cosmetic).  -JJ
11566
11567         negative numbers are now accepted in the configuration file
11568         parser.  -oliva
11569
11570         allow a total estimate time-out to be specified.  -oliva
11571         Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
11572
11573         fix amtoc behavior in case of failed reads.
11574         -Niek Rijnbout <niek@knoware.nl>
11575
11576         index files are now stored in a directory tree ala curinfo instead
11577         of a flat namespace. -JJ
11578
11579         amrecover will now restore files using SAMBA.
11580         -Rob Riggs <rob@devilsthumb.com>
11581
11582         VXDUMP needs not be run as root, so it no longer enables
11583         rundump automatically.  -oliva
11584
11585         new `killpgrp' setuid-root program.  It is used to kill
11586         VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
11587         safe manner.
11588         -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
11589
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
11594
11595         Added support for FreeBSD dump -h flag (honor nodump).
11596         -James E. Housley <housley@pr-comm.com>
11597
11598         Added support for ZFTAPE on Linux.
11599         -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
11600
11601         Added support for printing tape labels.
11602         -Scott Mesches <mesches@allison.Colorado.EDU>
11603
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
11607
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
11611
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>
11617
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>
11621
11622 Version 2.4.0p1
11623
11624         updated to libtool 1.2a.  -oliva
11625
11626         fix kerberos encryption to work.  -Chris Ross <cross@uu.net>
11627
11628         add --with-owner option to optionally not have things owned by
11629         the amanda user.  (meant to be in 2.4.0) -kovert
11630
11631         only call initgroups() if it is available.  -oliva
11632
11633         check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
11634         -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
11635
11636         amindexd no longer considers prefixes of hostnames as valid
11637         hostnames. -oliva
11638
11639         fix strappend2 so that it accepts a NULL first argument.
11640         -Rob Riggs <rob@devilsthumb.com>
11641
11642         pass kerberos encryption switch to client.
11643         -Fredrik Jönsson <fjo@nada.kth.se>
11644
11645         rename afree to amfree, to work around IRIX 6.4's afree.
11646         -oliva, reported Stephan P. Martin <smartin@schlund.de>
11647
11648         implement `strategy skip' just like `ignore'.
11649         -oliva,
11650         reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
11651
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>
11655
11656         fixed dump estimate regular expression for DU 4.0.
11657         -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
11658
11659 Version 2.4.0
11660
11661         fixed memory corruption error in amtape.
11662         -oliva
11663
11664         fixed VXDUMP support.
11665         -Andrew Ivanov <ivanov@mics.msu.su> & oliva
11666
11667         typos fixed in chg-chs.
11668         -David Barr <dbarr@simplex.com>
11669
11670         chg-mtx now prints error message if tapedev or changerdev must
11671         be defined.
11672         -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
11673
11674         fixed amflush problem, reported by Dietmar Goldbeck
11675         <dietmar@telemedia.de>  -oliva
11676
11677 Version 2.4.0-980319
11678
11679         chg-mtx should use changer-dev if specified.
11680         -Steve Khoo <steve@gordian.com>
11681
11682         flex-related backward-compatibility problem fixed.
11683         -Norman K Scherer <nsche@seros-48.hac.com>
11684
11685         ported to RISCOS 4BSD.  -Harlan Stenn <Harlan.Stenn@pfcs.com>
11686
11687         when amrecover starts up, it will warn you $CWD is not the root
11688         of the selected filesystem.  -oliva
11689
11690         removed all uses of #elif, because some C compilers won't
11691         handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
11692
11693         fixed VDUMP-only (no DUMP defined) estimates.
11694         -Joern Behrens <jbehren@umpa05.gwdg.de>
11695
11696         ported to UnixWare.  -Jeff Moscow <jeff@rtr.com>
11697
11698         improved vxdump support so that rundump will be used for vxfs
11699         filesystems only, and it will be enabled automatically.  -oliva
11700
11701         various portability problems fixed.
11702
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>
11706
11707         amflush now correctly updates the info database.  -oliva
11708         reported by Liudvikas Bukys <bukys@cs.rochester.edu>
11709
11710         sendsize now wait()s for tar and samba child processes.  -oliva
11711         reported by Brian Morris <brian@mvhs.fuhsd.org>
11712
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>
11716
11717         if backup server has multiple IP addresses, security code
11718         might reject it.  -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
11719
11720         vdump would not work.  -oliva
11721
11722         kerberos support was broken.  -mike
11723
11724 Version 2.4.0-980222
11725
11726         retry tape open on AIX if it fails with EAGAIN errno.
11727         -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
11728
11729         fix amrmtape so that it behaves well when files to amflush
11730         remain.  Reported by Dietmar Goldbeck <dietmar@telemedia.de>
11731
11732         retry tape rewind on FreeBSD.  -Bob Willcox <bob@prm.com>
11733
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
11737
11738         formatting error in amoverview fixed.
11739         -Terje Malmedal <tm@odin.funcom.com>
11740
11741 Version 2.4.0b6p4
11742
11743         use vdump to dump advfs filesystems only.  add support for vdump
11744         indexes.
11745         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
11746
11747         change index generation commands so that they are less prone
11748         to be fooled by blanks or strange characters in filenames.
11749         -oliva
11750
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
11755
11756         fix sendbackup-gnutar crashing problem.  -oliva
11757
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>
11761
11762         Fix buffer use and write() error handling in the index pipeline.
11763         -Dietmar Goldbeck <dietmar@telemedia.de>
11764         & Lars Fenneberg <lf@elemental.net>
11765
11766         new index generation commands.  -oliva
11767
11768 Version 2.4.0b6p3
11769
11770         accept curses and ncurses in addition to termcap for readline
11771         support, just as readline itself does.  -oliva
11772
11773         fix NO-ROOM handling when Kerberos encryption is enabled.
11774         -oliva & Eric Siegerman <erics@now.com>
11775
11776         patch file for automake 1.2d provided. -oliva
11777
11778         sendbackup.debug now contains the argument list of child
11779         processes. -oliva
11780
11781         wait() for child processes, such as server compressor, before
11782         accepting other commands.
11783         -Liudvikas Bukys <bukys@cs.rochester.edu>
11784
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
11787
11788         updated to libtool 1.0i. -oliva
11789
11790         fixed tape block size of vxdump on HPUX 10.20.
11791         -Andrew Ivanov <ivanov@mics.msu.su>
11792
11793         Use "a" mode instead of "w" for the fdopen of the debug file.
11794         -David Lamkin <drl@net-tel.co.uk>
11795
11796         allow multiple concurrent gnutar backups, by fixing amandates
11797         locking mechanism.
11798         -Liudvikas Bukys <bukys@cs.rochester.edu>
11799
11800         amdump should check for a hold file, as says the man-page.
11801         -oliva
11802
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.
11808         -oliva
11809
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.
11812         -oliva
11813
11814         fixed code that computed the dump size when incomplete
11815         writes occurred in dumper.  -Eric Siegerman <erics@now.com>
11816
11817         amplot no longer crashes if there's no holding disk. -oliva
11818
11819 Version 2.4.0b6p2
11820
11821         fix xfsdump index generation command.
11822         -Robert Tarrall <tarrall@bamboo.colorado.edu>
11823
11824         tape device wouldn't rewind if opened O_WRONLY.
11825         -Palle Girgensohn <girgen@partitur.se> & oliva
11826
11827         use setpgid instead of setpgrp if available
11828         -Mark Woodford <woodford@uniprise.com> & oliva
11829
11830         chg-mtx will check whether slot 6 is a cleaning tape or not.
11831         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
11832
11833         amrmtape updated to text database.  -oliva
11834
11835         incorrect NO-ROOM error when dumping directly to tape fixed.
11836         -oliva
11837
11838         --with-user and --with-group become are now required.  -oliva
11839
11840         patch-system script much more configurable.  -oliva
11841
11842         amindexd must get an exact match for diskname.
11843         -Richard Kail <e8903122@student.tuwien.ac.at> & oliva 
11844
11845         fix serial number message in amflush
11846         -Liudvikas Bukys <bukys@cs.rochester.edu>
11847
11848         removed backslashes from inside macro calls.
11849         un-indented # directives.
11850         -Gregory Neil Shapiro <gshapiro@WPI.EDU>
11851
11852         bsd-security is now enabled by default.  -oliva
11853
11854         fixed estimate command for XFSDUMP.
11855         -Mark Radleigh <radleigh@image.ucr.edu>
11856         & Jeff Moskow <jeff@rtr.com>
11857
11858 Version 2.4.0b6p1
11859
11860         documented etimeout configuration option.  -oliva&jrj
11861
11862         prevent a few crashes in dumper and reporter.  -jrj
11863
11864         reporter would report the same host and disk for RESULTS MISSING.
11865         -martineau
11866
11867         fix a few file-locking configure bugs.  -oliva
11868
11869         chg-multi updates and bugfixes.
11870         -Liudvikas Bukys <bukys@cs.rochester.edu>
11871
11872 Version 2.4.0b6
11873
11874         amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
11875
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
11879
11880         samba-related bugfixes.
11881         -Klaus Thiele <kth@becker-software.com>
11882
11883         xfsdump, DNS and amidxtaped bugfixes. -martineau
11884
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>
11888
11889         chg-chio still thought it was seagate-changer, and contained a
11890         few bugs.  -Tim Tsai <tim@futuresouth.com>
11891
11892         New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
11893
11894 Version 2.4.0b5
11895
11896         Make sure amverify waits for the tape device to be ready before it
11897         starts reading each section. -oliva
11898
11899         Fix amrecover so that it accepts filenames with blanks.
11900         -J. Shirk <jshirt@ksu.edu> & oliva
11901
11902         Add a TIMEOUT config file parameter to replace the hard coded value
11903         in planner.  -Daniel David Benson <bensond@ucdavis.edu>
11904
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
11910
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}".
11914         -scott
11915
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.
11924         -scott
11925
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
11930         names.  -JJ
11931
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
11936
11937         Extensive buffer management, bug and defensive coding overhaul
11938         including:
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
11947               management.
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).
11969         Odds and ends:
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
11974               limited debugging.
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.
11980         -JJ
11981
11982         If krb4 auth was compiled in but not enabled, clients would hang
11983         forever.  -Aidan Cully <aidan@panix.com>
11984
11985         Make sure SAMBA will not clear archive bits when performing an
11986         incremental backup, so any incremental will be a level 1.
11987         -martineau
11988
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.
11998         -scott
11999
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.
12003         -scott
12004
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.
12008         -scott
12009
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
12016
12017         It is now possible to specify a username to be used to backup
12018         up with samba.
12019         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
12020
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>
12024
12025         Amcheck checks only for the needed features.
12026         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
12027
12028         Performance and memory-usage improvements to amrecover.
12029         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
12030
12031         Use extended regular expressions.
12032         -Noel Hunt <noel@jpmorgan.com>
12033
12034         Fixed regular expressions for samba support.
12035         -Brian Fernald <fernald@nsi.edu>
12036
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
12040
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>
12044
12045         Ported to SINIX (Reliant Unix V5.43).
12046         -Michael Schmitz <mschmitz@iname.com>
12047
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>
12051
12052         Compatibility problems fixed for:
12053                 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
12054
12055 Version 2.4.0b4
12056
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>
12064
12065         --with-debugging now accepts a directory name, where debugging
12066         files should be stored.  -John R. Jackson <jrj@cc.purdue.edu>
12067
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>
12072
12073         Planner would core dump if it had to delay dumps.  -Georg
12074         Rehfeld <georg@wmd.de>
12075
12076         Added patch for samba to support very long filenames.  -Todd
12077         Pfaff <todd@edge.cis.mcmaster.ca>
12078
12079         Added VXDUMP support to estimate program.  -oliva & John
12080         R. Jackson <jrj@cc.purdue.edu>
12081
12082         Fixed amflush so that it cd's to the configuration directory
12083         before invoking reporter.  -oliva
12084
12085         driver no longer opens the infofile, so a deadlock is
12086         prevented.  -oliva & John R. Jackson <jrj@cc.purdue.edu>
12087
12088         Fixed typo in sendbackup-dump that would prevent compilation
12089         if either xfsdump or vxdump were enabled.  -oliva
12090
12091         Debugging messages produced by sendbackup are no longer
12092         included in the dump stream.  -oliva
12093
12094         amrestore should wait for the child process to die before
12095         re-opening the tape device.  -Dietmar Braun
12096         <dietmar@tin-lizzy.hig>
12097
12098 Version 2.4.0b3 
12099
12100         fixed race condition in debug file open operation.  -oliva and
12101         Thomas Schmeidl
12102
12103         exclude-list and exclude-file are correctly handled by
12104         sendsize.  -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
12105
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
12109
12110         amrecover no longer depends on GNU flex library.  -oliva
12111
12112         Ensure that malloc(0) is not called.  -Wolfram Schmidt
12113         <Wolfram.Schmidt@iao.fhg.de>
12114
12115         Compression is now performed where specified, and server
12116         compress best specifications are obeyed. -oliva
12117
12118         genversion now correctly recognizes the selected locking scheme.
12119         -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
12120
12121 Version 2.4.0b2
12122
12123         Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
12124
12125         AIX's restore support added to amrecover.  -David B. Anderson
12126         <dbanders@mail.physics.utah.edu>
12127
12128         Dump process would not be killed unless it supported the -E
12129         flag (flipped #ifdef): fixed.  -Steve Bower <sbower@raytheon.com>
12130
12131         --with-testing now supports a trailing argument, that
12132         specifies the a string to be appended to service names.  -oliva
12133
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>
12138
12139 Version 2.4.0b1
12140
12141         Improved planner backup-delaying mechanism.  -scott
12142
12143         Concurrent estimates are now supported.  -oliva
12144
12145         Shared library support included with GNU libtool.  -oliva
12146
12147         New hard-link-based locking mechanism for operating systems
12148         that do not support standard locking system calls.  -scott
12149
12150         New configuration file format, simpler and easier to
12151         extend.  -scott
12152
12153         New curinfo database format that uses only text files.  The
12154         old dbm format is used by default, though.  -scott
12155
12156         DGUX support. -Brian Harvey <bharvey@raven.phs.com>
12157
12158         Tentative HPUX vxdump support.  -oliva
12159
12160         Integrated amgetidx into dumper/sendbackup protocol.  This
12161         ***breaks backward compatibility***!  -oliva
12162
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
12166
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
12170
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
12174
12175         Fixed xfsdump support. -oliva
12176
12177         Fixed srvcompress option. -oliva
12178
12179         Fixed exclude/exclude-list support. -oliva
12180
12181         Change umask to 066 before creating index file in /tmp. -oliva
12182
12183         Fixed autoconf for gdbm on linux. -oliva
12184
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
12190
12191 Version 2.3.0.4
12192
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>.
12196
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>.
12204
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>.
12224
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>.
12229
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>.
12233
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>.
12240
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>.
12253
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>.
12257
12258         Include the amanda_tapetypes.txt file as docs/TAPETYPES.  File
12259         composed by Chris Stacey <chris@snrc.uow.edu.au>.
12260
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
12269                         priority medium
12270                         starttime 0200
12271                 }
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>.
12278
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>.
12284
12285         Have amflush call setsid() to detach amflush from the
12286         controlling terminal.  Patch from Ken Laprade
12287         <klaprade@harris.com>.
12288
12289         Have configure correctly work on systems where dbm_open is in
12290         libc.  Patch from Farzad Farid <farzy@sgip.fr>.
12291
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>.
12295
12296         Sprintf formatting error in amgetidx fixed.  Patch from Yossi
12297         Gottlieb <yogo@xpert.com>.
12298
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>.
12309
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>.
12313
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>.
12317
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>.
12331
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>.
12341
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>.
12362
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>.
12371
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>.
12375
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
12384         at
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
12389         OS's.
12390
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>.
12394
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>.
12398
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>.
12403
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>.
12408
12409 Version 2.3.0.4b3
12410
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>.
12413
12414         Fix sendbackup-gnutar so that it can be compiled with a K&R
12415         compiler.  Patch by Blair Zajac <blair@gps.caltech.edu>.
12416
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>.
12426
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>.
12437
12438         Made rth-changer check all system calls for valid returns.
12439         Patch by Blair Zajac <blair@gps.caltech.edu>.
12440
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>.
12445
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>.
12449
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>.
12453
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>.
12458
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>.
12464
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>.
12469
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>.
12473
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>.
12478
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>.
12482
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>.
12488
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>.
12493
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>.
12497
12498         Patches to have nicer looking Samba support code.  Patch from
12499         Michael Zucchi <cismpz@cis.unisa.edu.au>.
12500
12501         Got Amanda to compile fine on a m88k-motorola-sysv4 system.
12502         Patches from Blair Zajac <blair@gps.caltech.edu>.
12503
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>.
12509
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>.
12515
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>.
12519
12520         Have selfcheck check for /etc/vdumpdates if vdump is being
12521         used.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12522
12523         If we're on an Ultrix system, then define STATFS_ULTRIX.  Patch
12524         by Blair Zajac <blair@gps.caltech.edu>.
12525
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>.
12530
12531         Sendsize.c would loop forever if debugging was not turned on.
12532         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12533
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>.
12538
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>.
12543
12544         Add a needed ; to client-src/Makefile.am and
12545         server-src/Makefile.am.  Patch from Alexandre Oliva
12546         <oliva@dcc.unicamp.br>.
12547
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>.
12551
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>.
12559
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>.
12564
12565         Have open_fstab for BSD systems return the value of setfsent.
12566         Patch by Blair Zajac <blair@gps.caltech.edu>.
12567
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>.
12574
12575         Fixed some dbprintf(()) bugs in amgetidx.c.  Patch by Blair
12576         Zajac <blair@gps.caltech.edu>.
12577
12578         Have amrecover.c always declare
12579             extern char *optarg;
12580             extern int optind;
12581         This makes amrecover.c compile on Ultrix systems.  Problem
12582         noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
12583
12584         Patch to configure to have it recognize gnutar version 1.11.2.
12585         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12586
12587 Version 2.3.0.4b2
12588
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>.
12593
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>.
12597
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>.
12601
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>.
12606
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>.
12615
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>.
12620
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>.
12647
12648         Include patches to have Amanda do incrementals of gnutar based
12649         backups.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12650
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>.
12654
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>.
12658
12659         Have sendbackup-common.c include tapeio.h instead of defining
12660         BUFFER_SIZE.  Fix by Philip Guenther <guenther@gac.edu>.
12661
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>.
12667
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>.
12670
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>.
12674
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>.
12678
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>.
12689
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>.
12702
12703         Have Amanda include either readline.h or readline/readline.h
12704         Fix suggested by Neal Becker <neal@ctd.comsat.com>.
12705
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>.
12709
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>.
12713
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>.
12718
12719         Test for flock support in the following order:
12720                 1) POSIX fcntl file locking
12721                 2) flock locking
12722                 3) lockf 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>.
12726
12727         Have Samba support compile in only if requested by the user.
12728         Patch from Blair Zajac <blair@gps.caltech.edu>.
12729
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>.
12733
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>.
12738
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>.
12745
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>.
12749
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>.
12754
12755         Have configure check for asm/byteorder.h for
12756         sparc-unknown-linux-gnu.  Problem noted by Eric Doutreleau
12757         <ed@cti.ecp.fr>.
12758
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>.
12762
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>.
12768
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>.
12773
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>.
12777
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.
12782
12783                 Support for gnutar based index generation (but not file
12784                 restoration yet).
12785
12786                 Numerous bug fixes.
12787
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>.
12792
12793         Update patch-system to include the amidxtape service at
12794         10083/tcp.  Patch from Blair Zajac <blair@gps.caltech.edu>.
12795
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>.
12799
12800         Fixed building Amanda for multiple architectures in
12801         subdirectories of Amanda.  Problem noted by Thomas Hepper
12802         <Thomas.Hepper@icem.de>.
12803
12804 Version 2.3.0.4b1
12805
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>.
12813
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>.
12824
12825         Amrmtape converted from Bash to Bourne shell.  Patch from Blair
12826         Zajac <blair@gps.caltech.edu>.
12827
12828         Fix the indexing code to use "arglist.h" instead of <stdarg.h>
12829         Patch from Blair Zajac <blair@gps.caltech.edu>.
12830
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>.
12835
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>.
12841
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>.
12845
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>.
12850
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>.
12854
12855         Add the version option to amadmin (eg amadmin <conf> version).
12856         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12857
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>.
12861
12862         Gnutar support for amindex added.  Patch from Thomas Hepper
12863         <Thomas.Hepper@icem.de>.
12864
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>.
12868
12869         Calcsize checks the file type and ignores special files and
12870         pipes.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12871
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>.
12875
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>.
12879
12880         `createindex-gnutar.c' added.  Patch from Thomas Hepper
12881         <Thomas.Hepper@icem.de>.
12882
12883         alloca(), strdup.c and getcwd added for those system who don't
12884         have them.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12885
12886         A dirty hack for BSD based systems without sigaction(), see
12887         amanda.h.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12888  
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>.
12897
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>.
12901
12902         Several files got debug support. Patch from Thomas Hepper
12903         <Thomas.Hepper@icem.de>.
12904
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>.
12909
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>.
12913
12914         Genversion gives some more information.  Patch from Thomas
12915         Hepper <Thomas.Hepper@icem.de>.
12916
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>.
12920
12921         Simple support if readline.a is missing.  NEVER TESTED!  Patch
12922         from Thomas Hepper <Thomas.Hepper@icem.de>.
12923
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>.
12927  
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>.
12938
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>.
12944
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>.
12948
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>.
12952
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
12956         <hal@vailsys.com>.
12957
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>.
12962
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).
12983
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
13004         restricted:
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
13008             dump high)
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
13030         them up front.
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
13039         unavailable.
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.
13056
13057         Add a fflush(outf) to amcheck.c.  Patch from Mike Russell
13058         <Michael_Russell@Brown.EDU>.
13059
13060         Fix problems with amhpfixdevs.  Patch from Michael Schmitz
13061         <mschmitz@iname.com>.
13062
13063         Have DEC OSF1 use installbsd instead of install.  Patch from
13064         Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
13065
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>.
13070
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>.
13074
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>.
13078
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>.
13083
13084         Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
13085
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
13097             priority medium
13098         }
13099         Patches from Eric Volpe <epv@panix.com>.
13100
13101         Increase the planner timeout for one estimate from 30 seconds
13102         to 120 seconds.  Patch from Michael Schmitz
13103         <mschmitz@iname.com>.
13104
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>.
13110
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>.
13115
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>.
13130
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>.
13135
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>.
13150
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>.
13156         
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
13164         this script.
13165
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>.
13170
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>.
13173
13174         Removed the 50 tape file limit in amcleanup and amdump.
13175
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>
13179
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>.
13186
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>.
13191
13192 Version 2.3.0.3
13193
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>.
13200
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.
13204
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.
13209
13210         Added a patch from George.Scott@cc.monash.edu.au which makes
13211         new disks and forces dump with a higher priority.
13212
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
13216         on some systems.
13217
13218         Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
13219         with the following patches:
13220
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
13225                 config.h-hpux.
13226
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.
13232
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>.
13238
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>.
13243
13244 Version 2.3.0.2
13245
13246         Changed the signals being sent to xfsdump for Irix so that it
13247         will be killed without dumping a core.
13248
13249         Fixed a typo in the definition of XFSDUMP in config.h-irix.
13250
13251         Removed the extra option.s-* and copied options.h to
13252         options.h-vanilla.
13253
13254         Moved the amrestore manual page into the man directory so it
13255         would get installed.
13256
13257 Version 2.3.0.1
13258
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:
13264
13265                 Switched the Imakefile to Makefile and Makefile.in to
13266                 be more consistent with the system used by the rest of
13267                 amanda.
13268
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.
13274
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.
13278
13279                 Added code to set_commands.c and amgetidx.c to change
13280                 /'s in disk names to _'s.
13281
13282                 Added code to amrecover.c to properly compile on
13283                 Solaris hosts.
13284
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.
13289
13290                 I changed a bunch of fprintf to perrors.
13291
13292         Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
13293         for FreeBSD-2.1.5.
13294
13295         Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
13296
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.
13302
13303         Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
13304         the main config file to include subsidiary config files.
13305
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.
13310
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.
13314
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
13319         Makefiles.
13320
13321         Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
13322         for multiple tapes.
13323
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
13327         README.
13328
13329 Local Variables:
13330 mode: change-log
13331 left-margin: 8
13332 fill-column: 76
13333 End: