5948c18bfad8593862329e92118c67122b7d89d9
[debian/amanda] / ChangeLog
1 2006-05-28  Jean-Louis Martineau <martineau@zmanda.com>
2         * amandad-src/amandad.c (service_new): Apply the correct patch.
3
4 2006-05-28  Jean-Louis Martineau <martineau@zmanda.com>
5         * Amanda 2.5.0p2 released.
6         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0p2).
7         * NEWS: Changes in release 2.5.0p2.
8
9 2006-05-07  Jean-Louis Martineau <martineau@zmanda.com>
10         * amandad-src/amandad.c (service_new): Make sure that the 3 data[] fd
11           are not in the range DATA_FD_OFFSET to
12           DATA_FD_OFFSET+DATA_FD_COUNT-1.
13
14 2006-05-04  Jean-Louis Martineau <martineau@zmanda.com>
15         * server-src/taper.c: Write the slot number in the
16                               'taper: wrote label' line.
17         * server-src/amverifyrun.sh.in: Parse that line.
18
19 2006-05-02  Jean-Louis Martineau <martineau@zmanda.com>
20         * amstatus.pl.in: Limit characters for hostname in setup_estimate line.
21
22 2006-04-28  Jean-Louis Martineau <martineau@zmanda.com>
23         * Amanda 2.5.0p1 released.
24         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0p1).
25         * NEWS: Changes in release 2.5.0p1.
26
27 2006-04-24  Ian Turner <ian@zmanda.com>
28         * server-src/changer.c: Don't crash if we go to taperscan "Plan B".
29
30 2006-04-24  Jean-Louis Martineau <martineau@zmanda.com>
31         * server-src/planner.c: Fix divide by zero if runtapes==0.
32
33 2006-04-23  Jean-Louis Martineau <martineau@zmanda.com>
34         * server-src/driver.c (handle_chunker_result): make sure that
35                                                        est_size > act-size.
36
37 2006-04-23  Jean-Louis Martineau <martineau@zmanda.com>
38         * server-src/chunker.c: Read the START command to set the datestamp.
39         * server-src/driver.c: Send a START command to the chunker.
40         * server-src/driverio.c (chunker_cmd): Add the START command.
41         * server-src/server_util.c (cmdstr): Add the START command.
42         * server-src/server_util.h (cmd_t): Add the START command.
43
44 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
45         * server-src/amtape.c: Add update command.
46
47 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
48         * common-src/krb4-security.c: Increase timeout to 60 seconds.
49         * common-src/rsh-security.c: Increase timeout to 60 seconds.
50         * common-src/ssh-security.c: Increase timeout to 60 seconds.
51
52 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
53         * restore-src/amrestore.c: reset count_error to 0 on a restore.
54
55 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
56         * server-src/driver.c: Change expression to remove overflow.
57
58 2006-03-29  Jean-Louis Martineau <martineau@zmanda.com>
59         * client-src/calcsize.c: Don't use declaration after instruction,
60           older compiler don't accept it.
61
62 2006-03-23  Jean-Louis Martineau <martineau@zmanda.com>
63         * Amanda 2.5.0 released.
64         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
65         * NEWS: Update for 2.5.0
66
67 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
68         * server-src/dumper.c: wait for compress/index/encryp subprocess.
69
70 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
71         * server-src/amstatus.pl.in: Parse PARTIAL reply.
72
73 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
74         * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
75
76 2006-03-21  Jean-Louis Martineau <martineau@zmanda.com>
77         * server-src/chunker.c: Don't loop on startup_chunker.
78         * server-src/dumper.c: Don't wait for all children, some process (ssh)
79           might not terminate.
80
81 2006-03-17  Ian Turner <ian@zmanda.com>
82         * server-src/taper.c (read_file): When finished flushing a 
83           chunked dump, print information about the whole dump, not just 
84           the last chunk. Also, fix some memory leaks.
85
86 2006-03-16  Kevin Till <ktill@zmanda.com>
87         * server-src/amverify.sh.in: check for EOI. amrestore only 
88           reports EOI for some tapetypes.
89
90 2006-03-15  Jean-Louis Martineau <martineau@zmanda.com>
91         * server-src/conffile.c: Fix heritage of auth.
92
93 2006-03-14  Kevin Till <ktill@@zmanda.com>
94         * example/amanda.conf.in: add dumptype custom-compress. 
95           add ssh,krb5 as valid input for auth. 
96         * man/xml-source/amanda.conf.5.xml: give reference to 
97           custom-compress, encrypt-fast dumptypes.
98
99 2006-03-14  Jean-Louis Martineau <martineau@zmanda.com>
100         * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
101                                           fe_amrecover_FEEDME
102         * common-src/amfeatures.c (am_init_feature_set): Set
103                                                          fe_amrecover_FEEDME.
104         * restore-src/restore.h (search_tapes): Add their_features parameter.
105         * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
106         * restore-src/amidxtaped.c: Add their_features to search_tapes call.
107         * restore-src/restore.c (search_tapes): Send FEEDME only if client
108                                                 support it.
109
110 2006-03-11  Jean-Louis Martineau <martineau@zmanda.com>
111         * server-src/driverio.c : Fix errors found using Coverity tools.
112
113 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
114         * server-src/taperscan.c: Fix Coverity fix.
115
116 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
117         * changer-src/scsi-changer-driver.c:
118                                          Fix errors found using Coverity tools.
119         * server-src/diskfile.c: Fix errors found using Coverity tools.
120         * server-src/planner.c: Fix errors found using Coverity tools.
121         * server-src/taperscan.c: Fix errors found using Coverity tools.
122
123 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
124         * server-src/driverio.c: Undo my bad fix.
125         * server-src/infofile.c: Fix errors found using Coverity tools.
126         * tape-src/tapetype.c: Fix errors found using Coverity tools.
127
128 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
129         * restore-src/restore.c: Fix errors found using Coverity tools.
130
131 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
132         * server-src/holding.c: Fix John fix.
133
134 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
135         * server-src/driverio.c: Fix errors found using Coverity tools.
136         * server-src/planner.c: Fix John fix.
137
138 2006-03-09  John Franks <jrfranks@zmanda.com>
139         * changer-src/chg-scsi.c:        Fix errors found using Coverity tools.
140         * changer-src/scsi-changer-driver.c:
141                                          Fix errors found using Coverity tools.
142         * changer-src/sense.c:           Fix errors found using Coverity tools.
143         * client-src/sendbackup-dump.c:  Fix errors found using Coverity tools.
144         * client-src/sendbackup.c:       Fix errors found using Coverity tools.
145         * recover-src/display_commands.c:Fix errors found using Coverity tools.
146         * regex-src/regcomp.c:           Fix errors found using Coverity tools.
147         * restore-src/restore.c:         Fix errors found using Coverity tools.
148         * server-src/amindexd.c:         Fix errors found using Coverity tools.
149         * server-src/diskfile.c:         Fix errors found using Coverity tools.
150         * server-src/driver.c:           Fix errors found using Coverity tools.
151         * server-src/driverio.c:         Fix errors found using Coverity tools.
152         * server-src/infofile.c:         Fix errors found using Coverity tools.
153         * server-src/planner.c:          Fix errors found using Coverity tools.
154         * server-src/taper.c:            Fix errors found using Coverity tools.
155         * server-src/taperscan.c:        Fix errors found using Coverity tools.
156         * server-src/conffile.c:         Change report default to use at least
157                                          one space between every column.
158
159 2006-03-08  Jean-Louis Martineau <martineau@zmanda.com>
160         * client-src/amandad.c: Fix coverity bug.
161         * client-src/calcsize.c: Fix coverity bug.
162         * client-src/client_util.c: Fix coverity bug.
163         * client-src/sendbackup.c: Fix coverity bug.
164         * client-src/sendsize.c: Fix coverity bug.
165         * common-src/bsd-security.c: Fix coverity bug.
166         * common-src/file.c: Fix coverity bug.
167         * common-src/fileheader.c: Fix coverity bug.
168         * common-src/pipespawn.c: Fix coverity bug.
169         * recover-src/extract_list.c: Fix coverity bug.
170         * restore-src/restore.c: Fix coverity bug.
171         * server-src/amindexd.c: Fix coverity bug.
172         * server-src/conffile.c: Fix coverity bug.
173         * server-src/diskfile.c: Fix coverity bug.
174         * server-src/driverio.c: Fix coverity bug.
175         * server-src/dumper.c: Fix coverity bug.
176         * server-src/planner.c: Fix coverity bug.
177         * server-src/reporter.c: Fix coverity bug.
178
179 2006-03-07  Paddy Sreenivasan <paddy@zmanda.com>
180         * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
181
182 2006-03-07  Jean-Louis Martineau <martineau@zmanda.com>
183         * server-src/taper.c: Don't log a multi-line message in no-tape case.
184
185 2006-03-06  John Franks <jrfranks@zmanda.com>
186         * recover-src/extract_list.c:
187           1) Don't add '.' directory twice to tar extract list.
188           2) Don't prepend extra '/' to extract patterns starting with '/'.
189           3) Convert "/" extract pattern to "*" equivalent.
190
191 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
192         * server-src/taperscan.c (scan_slot): append slotstr to
193           ct->error_message.
194         * server-src/taperscan.c: Add a '\n' after each slot error message.
195
196 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
197         * server-src/reporter.c (handle_error): Handle error from taper.
198
199 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
200         * server-src/taper.c (label_tape): Set errstr and return 0 if no
201           valid tape are available.
202
203 2006-03-03  Ian Turner <ian@zmanda.com>
204         * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and 
205           MAX_TAPE_LABEL_BUF.
206         * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
207         * recover-src/extract_list.c: Accept port number with CONNECT; 
208           implement fe_amidxtaped_FEEDME.
209         * restore-src/amidxtaped.c: Introduce port number with CONNECT. 
210           (closes SF bug 1431623)
211         * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
212           (closes SF bug 1421433)
213         * restore-src/restore.h: Properly name rst_flags.
214
215 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
216         * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
217           Set bh->proto_handle to NULL after allocating bh.
218         * common-src/bsd-security.c (bsd_close): Donothing if
219           bh->proto_handle == NULL.
220
221 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
222         * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
223                                              of a PREP.
224
225 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
226         * server-src/driver.c: Print dumper TRY_AGAIN message.
227
228 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
229         * server-src/planner.c: Don't print estimate size if estimate failed.
230
231 2006-02-25  Ian Turner <ian@zmanda.com>
232         * man/Makefile.am: Don't use static patterns (as they are not 
233           portable), use implicit rules instead.
234
235 2006-02-20  Kevin Till <ktill@zmanda.com>
236         * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
237                                       Orion Poplawski.
238         * common-src/krb5-security.c: ditto.
239
240 2006-02-16  Kevin Till <ktill@zmanda.com>
241         * example/amanda.conf.in: dumptype option is "encrypt"
242         * man/xml-source/amanda.conf.5.xml: ditto
243         * server-src/holding.c: util.h is include'd twice
244         * common-src/ssh-security.c: set correct debug print 
245
246 2006-02-10  Kevin Till <ktill@zmanda.com>
247         * man/xml-source/amanda.8.xml: replace informaltable with literallayout 
248
249 2006-02-13  John Franks <jrfranks@zmanda.com>
250         * server-src/driver.c: Pring a more precise message when taper
251           returns an error.  Include error message from taper in log.
252           Print out "protocol error" if taper returns a bogus command.
253
254 2006-02-10  Kevin Till <ktill@zmanda.com>
255         * man/xml-source/amanda.conf.5.xml: add note about first character of a 
256                         tapetype string must be alphabet
257
258 2006-02-10  John Franks <jrfranks@zmanda.com>
259         * server-src/taper.c: Call error() if an invalid string is read
260           by syncpipe_getstr().
261  
262 2006-02-09  John Franks <jrfranks@zmanda.com>
263         * Makefile.am, */Makefile.am:  Corrections generated by David Braun
264           dustybird@users.sourceforge.net to properly set source directories
265           for remote (VPATH) builds.
266         * man/Makefile.am:  Fixed man page builds to use proper source and
267           build paths.
268         * autogen: Force rebuilding everything and print only syntax errors.
269           (Errors are seen occasionally in system autogen files...)
270         * configure.in: Eliminate possibility of empty string in shell tests.
271           fix quoting of '[' and ']' characters in help messages.
272           Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
273  
274 2006-02-08  Ian Turner <ian@zmanda.com>
275         * server-src/driver.c (handle_taper_result): Properly handle 
276           SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
277           Also reindent.
278
279 2006-02-06 Kevin Till <ktill@zmanda.com> 
280         * restore-src/restore.c: fix comment formatting on version 1.2.1
281
282 2006-02-06 Kevin Till <ktill@zmanda.com>
283         * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
284         * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
285         * server-src/amcheck.c:    ditto
286         * server-src/dumper.c:     ditto
287         * restore-src/restore.c:    add missing "}"
288         
289 2006-02-06  Ian Turner <ian@zmanda.com>
290         * restore-src/amidxtaped.c: Properly handle changers, 
291           tape-label checking, and tape prompting in amrecover, 
292           amindexd, and amidextaped. Thanks to Paul Bijnens 
293           <pbijnens@users.sourceforge.net> for the patch.
294         * restore-src/restore.c: ditto.
295         * server-src/amindexd.c: ditto.
296
297 2006-02-04  Paddy Sreenivasan <paddy@zmanda.com>
298         * man/xml-source/amfetchdump.8.xml
299         * man/xml-source/amcrypt.8.xml
300         * man/xml-source/amanda.conf.5.xml
301         * man/xml-source/amanda.8.xml
302         * man/xml-source/amaespipe.8.xml
303         * man/entities/global.entities: Merged changes from xml-docs tree
304
305 2006-02-03  John Franks <jrfranks@zmanda.com>
306         * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
307
308 2006-02-03  Ian Turner <ian@zmanda.com>
309         * server-src/amadmin.c (main): Don't free conf_tapelist too 
310           early. Thanks to Cédric Lucantis
311           <cedric-lucantis@users.sourceforge.net> for the patch.
312
313 2006-02-02 Kevin Till <ktill@zmanda.com>
314         * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem 
315                                        to be fixed.
316         * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
317
318 2006-02-02  Ian Turner <ian@zmanda.com>
319         * recover-src/extract_list.c (extract_files_child): Run tar with 
320           --numeric-owner if we are extracting a non-sambafied tar file. 
321           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for 
322           the patch. Thanks also to Mark Schaefer for suggesting this 
323           change.
324
325 2006-02-01  Jean-Louis Martineau <martineau@zmanda.com>
326         * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
327           cast size_t to am64_t and use AM64_FMT to printf them.
328
329 2006-01-31  Jean-Louis Martineau <martineau@zmanda.com>
330         * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
331           before adding it to tapeq.
332
333 2006-01-27  Ian Turner <ian@zmanda.com>
334         * configure.in: Add new option --without-xsltproc (and
335           --with-xsltproc), which turns off (or forces) the use of xsltproc to
336           build manpages. Thanks to Paul Bijnens
337           <pbijnens@users.sourceforge.net> for suggesting this feature.
338
339 2006-01-27  Ian Turner <ian@zmanda.com>
340         * restore-src/amfetchdump.c: Properly clean up logfiles. Also, 
341           run as user amanda even if we are started as some other user.
342           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the 
343           patch.
344
345 2006-01-25  Paddy Sreenivasan <paddy@zmanda.com>
346         * common-src/amanda.h:     Removed unnecessary header include files.
347
348 2006-01-25  Kevin Till<ktill@zmanda.com>
349         * server-src/amadmin.c: fix for sourceforge bug 1412698
350                                 add missing parameters to "amadmin x disklist"
351         * server-src/amstatus.pl.in: untaint user input, enforce known path.
352         * server-src/amoverview.pl.in: untaint user input (bug 1353481)
353
354 2006-01-25  Kevin Till<ktill@zmanda.com>
355         * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible 
356                                             with some tag) add supported auth types.
357
358 2006-01-25  Kevin Till<ktill@zmanda.com>
359         * common-src/bsd-security.c: move check_security to bsd_security.c, 
360                                      fix faulty return
361                                      Thanks to Paul Bijnens
362         * restore-src/amidxtaped.c:  ditto
363         * server-src/amindexd.c:     ditto and no need to tell client 
364                                      about reason for denial
365         * common-src/amanda.h:       add proto of check_security
366         * server-src/conffile.c:     don't list CRYPT in the summary report 
367                                      for now
368         * restore-src/restore.c:     set outfd correctly for amfetchdump cases
369                                      Thanks to Paul Bijnens
370
371 2006-01-24  Ian Turner <ian@zmanda.com>
372         * man/xml-source/amanda.conf.5.xml: Put documentation of 
373           split-dump options in the right place. Thanks to Paul Bijnens 
374           <pbijnens@users.sourceforge.net> for the fix.
375         * man/xml-source/amanda.8.xml: ditto.
376
377 2006-01-23  Ian Turner <ian@zmanda.com>
378         * server-src/taperscan.c (find_brand_new_tape_label): Start 
379           brand new tape labels at 1 instead of 0. Thanks to Paul 
380           Bijnens <pbijnens@users.sourceforge.net> for the fix.
381
382 2006-01-18  Jean-Louis Martineau <martineau@zmanda.com>
383         * Amanda 2.5.0b2 released.
384         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
385         * NEWS: Update for 2.5.0b2
386         
387 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
388         * server-src/disk_history.c: Fix memory leak.
389
390 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
391         * common-src/bsd-security.c: Fix memory leak.
392         * common-src/tapelist.c: Fix memory leak.
393         * restore-src/amidxtaped.c: Fix memory leak.
394         * restore-src/restore.c: Fix memory leak.
395         * server-src/amindexd.c: Fix memory leak.
396         * server-src/conffile.c: Fix memory leak.
397         * server-src/disk_history.c: Fix memory leak.
398         * server-src/find.c: Fix memory leak.
399
400 2006-01-13  John Franks <jrfranks@zmanda.com>
401         * client-src/amandad.c:      Remove SO_LINGER and TCP_NDELAY.
402                                      Loop on I/O if EINTR or EAGAIN.
403         * client-src/noop.c:         Loop on I/O if EINTR or EAGAIN.
404         * client-src/sendbackup.c:   Remove SIGPIPE handler.
405                                      Loop on I/O if EINTR or EAGAIN.
406                                      Check for EPIPE on writes.
407         * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
408         * common-src/stream.c:       Remove SO_LINGER and TCP_NDELAY.
409         * common-src/util.c:         Loop on I/O if EINTR or EAGAIN.
410         * recover-src/amrecover.c:   Write commanda atomically in sigint handler
411         * recover-src/extract_list.c:Remove SIGPIPE handler.
412                                      Loop on I/O if EINTR or EAGAIN.
413                                      Check for EPIPE on writes.
414                                      Remove shutdown functions.
415         * restore-src/amfetchdump.c: Remove SIGPIPE handler.
416         * restore-src/amidxtaped.c:  Remove SO_LINGER and TCP_NDELAY.
417                                      Remove SIGPIPE handler.
418                                      read_file_header does not return if it
419                                      Fix infinite loop on EOF or error and
420                                      fail if memory reallocation failure in
421                                      get_client_line_fd.
422         * restore-src/restore.c:     Remove SIGPIPE handler.
423                                      Loop on I/O if EINTR or EAGAIN.
424                                      Remove shutdown functions.
425                                      Simplify read loop.
426         * restore-src/restore.h:     Change read_file_header to return void
427         * server-src/amcheck.c:      Use fullread() to handel EINTR etc.
428                                      Remove unused variable.
429         * server-src/changer.c:      Remove SO_LINGER and TCP_NDELAY.
430                                      Use fullwrite on socket.
431         * server-src/driverio.c:     Remove SO_LINGER and TCP_NDELAY.
432         * server-src/taper.c:        Use fullwrite() to write data.
433                                      Use fullread() to read data.
434         * tape-src/output-file.c;    Use fullwrite() to write data.
435
436 2006-01-13  Jean-Louis Martineau <martineau@zmanda.com>
437         * server-src/amcheck.c (start_server_check): Remove unused variable
438           errstr.
439         * restore-src/restore.c (restore): Remove unused variable s, l and
440           dataeof.
441
442 2006-01-12  Jean-Louis Martineau <martineau@zmanda.com>
443         * recover-src/extract_list.c (send_to_tape_server): Do only on write.
444         * restore-src/amidxtaped.c (get_client_line_fd): New function to read
445           one complete line from an fd.
446
447 2006-01-09  John Franks <jrfranks@zmanda.com>
448         * common-src/amanda.h:  Include tcp.h
449         * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
450         * common-src/dgram.c:   No linger on datagrams
451         * common-src/stream.c:  Set TCP_NODELAY and SO_LINGER on sockets.
452         * common-src/util.c:    Fix fullwrite to return # of bytes written
453                                 before failure.
454         * example/amanda.conf.in: Cleanup exclude list template.
455                                 Use configure directlries instead of /usr/local
456         * recover-src/extract_list.c: Cleanup read loops.
457                                 Use real fullwrite instead of inline versions.
458                                 Remove extra setting of LINGER on socket.
459         * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
460         * restore-src/restore.c:Use real fullwrite instead of inline versions.
461         * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
462         * server-src/chunker.c: Use real fullwrite instead of inline versions.
463         * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
464         * server-src/dumper.c:  Use real fullwrite instead of inline versions.
465
466 2006-01-09  Ian Turner <ian@zmanda.com>
467         * changer-src/scsi-changer-driver.c: If there is a problem opening
468           the device during GenericRewind, don't retry for 201 minutes; give
469           up after only 200 seconds.
470
471 2006-01-09  Ian Turner <ian@zmanda.com>
472         * server-src/taperscan.c: When doing taper-scan algorithm, properly
473           accept new tapes.
474
475 2006-01-09  Ian Turner <ian@zmanda.com>
476         * tape-src/tapeio.c: Generate a more reasonable message when
477         reading an empty tape label on brand-new tapes.
478
479 2006-01-09  Ian Turner <ian@zmanda.com>
480         * server-src/amcheck.c: Actually do what the documentation for 
481           amcheck -w says; that is, overwrite labels on tapes.
482
483 2006-01-06  Kevin Till<ktill@zmanda.com>
484         * server-src/amcheck.c: check if encrypt or compress program is 
485           executable. Check encrypt/compress configuration.
486         * server-src/dumper.c: kill encrypt child when dump is stopped
487         * server-src/amcrypt.sh.in: check for aespipe
488         * server-src/amaespipe.sh.in: adjust PATH
489         * man/xml-source/amtapetype.8.xml: fix format problem.
490
491 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
492         * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
493
494 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
495         * restore-src/restore.c (flush_open_outputs): Another shutdown is
496           required.
497
498 2006-01-05  John Franks <jrfranks@zmanda.com>
499         * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
500           Use shutdown() on sockets.
501           Retry reads in case of EINTR or EAGAIN.
502         * common-src/stream.c: set linger on correct socket.
503           Extend linger timeouts to 60 seconds.
504         * restore-src/restore.c: Fix compiler warnings.
505         * Call shutdown in more cases.
506
507 2006-01-05  John Franks <jrfranks@zmanda.com>
508         * client-src/amandad.c: Set SO_LINGER on sockets.
509         * common-src/dgram.c:   Set SO_LINGER on sockets.
510         * common-src/stream.c:  Set SO_LINGER on sockets.
511         * common-src/util.c:    Return any bytes already read on error or EOF.
512         * recover-src/extract_list.c: Set SO_LINGER on data socket.
513           Fix printf of unterminated string data.
514           Check return codes on socket header reads.
515         * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
516           Check return codes on socket header reads.
517         * restore-src/restore.c:
518           Flush newline after operator prompt.
519         * common-src/debug.c:
520           Fix memory leak when debug file name already exists.
521           Print error text upon hard open() error.
522           Allow group members read only access to log files.
523
524 2006-01-05  Kevin Till<ktill@zmanda.com>
525         * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
526           early when it sees trailing garbage after EOF.
527
528 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
529         * common-src/amanda.h: Add a FD_COPY macro.
530         * recover-src/extract_list.c (writer_intermediary): Don't use
531           writer_intermediary, do the select locally.
532
533 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
534         * restore-src/restore.c (flush_open_outputs): Call shutdown before
535           close.
536
537 2005-12-30  John Franks <jrfranks@zmanda.com>
538         * recover-src/extract_list.c:
539           Fix double clearing of buffer during normal read path.
540         * restore-src/amidxtaped.c
541           Actually initialize changer if it is needed.  (Set use_changer
542           before checking it...)
543         * Fix control messages being sent down the data pipe when
544           restoring to client that does not support split dumps.
545         * Print error and exit if a split dump is needed during restore
546           and client can not handle it. 
547
548 2005-12-30  Ian Turner <ian@zmanda.com>
549         * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header 
550           syntax, in favor of xx/-1.
551
552 2005-12-29  John Franks <jrfranks@zmanda.com>
553         * Index: recover-src/display_commands.c
554           Fix list deletion which did not update list root with NULL pointer.
555           Make free_dir_item() a non-recursive function to prevent stack bloat.
556           Fix list insertion code which inserts item in list initializes entry.
557         * Index: recover-src/extract_list.c
558           Fix to initialize lditem before using it...
559           Prevent multiple frees of cmd string.
560           Do not free err which is only initialized with static string pointers.
561           Fix typo which caused newstralloc() to free the wrong memory.
562         * Index: server-src/amindexd.c
563           Fix Compiler warning of unused variable.
564         * Index: server-src/taperscan.c
565           Fix Compiler warning of bogus format specifier.
566   
567 2005-12-29  Kevin Till<ktill@zmanda.com>
568         * man/xml-source/amcrypt.8.xml: add new amcrypt man page
569         * man/xml-source/amaespipe.8.xml: add new amaespipe man page
570
571 2005-12-29  Ian Turner <ian@zmanda.com>
572         * man/xml-source/amanda.conf.5.xml: Document label_new_tapes 
573           config option.
574
575 2005-12-28  Ian Turner <ian@zmanda.com>
576         * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
577         * recover-src/display_commands.c: ditto
578         * recover-src/extract_list.c: ditto. Also use dynamic strings in
579           struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
580
581 2005-12-28  Ian Turner <ian@zmanda.com>
582         * common-src/amfeatures.h: Add three new amfeatures:
583           fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
584           fe_amindexd_marshall_in_DHST.
585         * common-src/amfeatures.c: ditto.
586         * server-src/amindexd.c: Talk well to older clients.
587
588 2005-12-23  Ian Turner <ian@zmanda.com>
589         * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
590           returns NULL. Also, don't return NULL from
591           find_brand_new_tape_label without a good excuse.
592         
593 2005-12-23  Kevin Till <ktill@zmanda.com>
594         * client-src/client_util.c: change server_decrypt_option to
595           server-decrypt-option
596         * client-src/sendbackup.c:  change client_decrypt_option to
597           client-decrypt-option
598         * server-src/dumper.c:      ditto
599         * common-src/amfeatures.c:  add crypt related amfeaturs
600         * common-src/amfeatures.h:  ditto  
601         * server-src/diskfile.c:    amfeatures checking and warns on
602           mis-configuration
603
604 2005-12-23  Paddy Sreenivasan <paddy@zmanda.com>
605          * restore-src/restore.c:
606          * server-src/amtape.c:
607          * server-src/taperscan.c : Make scan_init static function
608
609 2005-12-23  John Franks <jrfranks@zmanda.com>
610         * server-src/taper.c: Reduce I/O's system call overhead by 30%
611           in main read / write loop. 
612
613 2005-12-23  John Franks <jrfranks@zmanda.com>
614         * recover-src/restore.c  Remove inapproriate aclose which caused
615           broken restore pipe.
616         * recover-src/extract_list.c  Fix and cleanup read_buffer()
617           mainly to fix hole that drops parital buffer of data if end
618           of file is reached or an error occured..  Touched up calling
619           functions to make sure EOF/timeouts are handled correctly.
620           Increased normal path read timeout value from on second to
621           whatever READ_TIMEOUT is set to.
622
623 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
624
625         * restore-src/restore.c (restore): Remova an aclose.
626
627 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
628
629         * restore-src/amidxtaped.c (cleanup): Function registered with atexit
630           to remove the log file.
631
632 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
633
634         * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
635
636 2005-12-20  John Franks <jrfranks@zmanda.com>
637
638         * restore-src/restore.c: Remove unused variables.
639                                  Fix uninitialize reference to bytes_read.
640         * server-src/amcheck.c:  Remove unused variables.
641                                  Include taperscan.h for missing prototype.
642         * server-src/amtape.c:   Remove unused variables.
643                                  Include taperscan.h for missing prototype.
644         * server-src/taper.c:    Remove unused variables.
645                                  Minor indenting changes.
646         * server-src/taperscan.c:Remove unused variables.
647                                  Fix typo which assigns NULL rather than
648                                   checks for NULL.
649                                  Commented out reference to auto_pos which
650                                   is assigned but never used...
651
652 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
653
654         * common-src/fileheader.c (parse_file_header): Parse '/' in part.
655         * common-src/fileheader.c (build_header): Add space ' ' before "part".
656
657 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
658
659         * server-src/reporter.c: Fix report of output size.
660
661 2005-12-19  Ian Turner <ian@zmanda.com>
662         * server-src/taperscan.c: Check that automatic tape labels satisfy
663         the labelstr.
664
665 2005-12-19  Ian Turner <ian@zmanda.com>
666         * server-src/fileheader.c: Fix broken split-dump file headers.
667
668 2005-12-18  Jean-Louis Martineau <martineau@zmanda.com>
669         Patch by Paul Bijnens
670
671         * server-src/amcheck.c: Tapelist file is regular file.
672
673 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
674
675         * restore-src/restore.c (get_block): Return a ssize_t.
676         * restore-src/restore.c: convert ssize_t to long for printing.
677         * restore-src/restore.c (restore>): Remove unused variable, outpipe,
678            outpipe2, i.
679
680 2005-12-17  John R. Franks <jrfranks@zmanda.com>
681
682         * restore-src/restore.h (read_file_header, restore): Return a ssize_t
683           instead of using a global variable bytes_read.
684         * restore-src/restore.c: Use local variable instead of global
685           bytes_read. Many memory management fixe. Fixe pipe handling,
686         * restore-src/amrestore.c: Use new read_file_header and restore.
687         * restore-src/amfetchdump.c: Use new read_file_header and restore.
688
689 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
690         With Kevin Till <ktill@zmanda.com>
691
692         * common-src/fileheader.c (parse_file_header): Fix parsing of first
693           line.
694         * common-src/fileheader.c (build_header): Print crypt after programi
695            and only if it is needed.
696
697 2005-12-14  Ian Turner <ian@zmanda.com>
698
699         * common-src/alloc.c: Add new function vstrextend, which extends an
700           existing string.
701         * common-src/amanda.h: Define vstrextend.
702         * example/amanda.conf.in: Document new option
703           label_new_tapes. Change default labelstr.
704         * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
705           amcheck -w.
706         * restore-src/restore.c: Use the new changer_find interface.
707         * server-src/Makefile.am: Add new file taperscan.c
708         * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
709           instead of the previous separate amcheck implementation.
710         * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
711           instead of the previous separate amtape implementation. Also, use
712           the new changer_find interface for other kinds of tape finding.
713         * server-src/changer.c: Eliminate changer_scan. Change the API to
714           changer_find, so that callers can pass a user-data object, instead
715           of using globals.
716         * server-src/changer.h: Declare and document new changer_find
717           interface.
718         * server-src/conffile.c: Add new config option label_new_tapes.
719         * server-src/conffile.h: ditto.
720         * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
721           instead of the previous separate taper implementation. Also,
722           combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
723           difference only matters on writing).
724         * server-src/taperscan.c: Refactor the taper-scan algorithm from
725           taper, amtape, and amcheck. Implement label_new_tapes feature.
726         * server-src/taperscan.h: Declare and document new taperscan
727           interface.
728         * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
729           and some other tape-reading problem.
730         * tape-src/tapeio.h: New declarations.
731
732 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
733
734         * server-src/reporter.c (handle_success): On a taper line, the outsize
735           should only count dump to tape, not flush.
736
737 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
738
739         * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
740
741 2005-12-09  John Franks <jrfranks@zmanda.com>
742
743         * client-src/Makefile.am: Do not include tape library if
744           configuring with --without-server option.
745         * recover-src/Makefile.am: Do not include tape library if
746           configuring with --without-server option.
747
748 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
749
750         * configure.in: Move the size detection after detection of large
751           file support. That change the size of off_t.
752
753 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
754
755         * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
756         * server-src/taper.c: Use OFF_T_FMT.
757
758 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
759
760         * configure.in: Set LL_FMT correctly.
761         * server-src/conffile.c: Use LL_FMT.
762
763 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
764
765         * server-src/conffile.c: Maxdumpsize is a AM64.
766         * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
767           tape_mark are am64_t.
768
769 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
770
771         * configure.in: Check for sizeof of many type. Check printf format of
772           a 64-bit integers.
773         * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
774           set AM64_FMT to the printf format of a am64_t variable.
775         * server-src/conffile.c: New AM64 type.
776         * server-src/conffile.h(getconf_am64): Prototype.
777
778 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
779
780         * client-src/Makefile.am: Remove amqde.
781         * client-src/sendsize.c: Remove code to call amqde.
782         * client-src/amqde.c: Remove file.
783         * configure.in: Remove '--with-qde' option.
784
785 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
786
787         * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
788           str_buffer_sizebuf instead of sizeof(bug).
789
790 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
791
792         * server-src/planner.c: Print the time in the FINISH line.
793         * server-src/reporter.c: The estimate time is based on the planner
794           FINISH line.
795
796 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
797
798         * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
799
800 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
801
802         * server-src/holding.c (scan_holdingdisk): Static function.
803         * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
804         * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
805
806 2005-12-04  Jean-Louis Martineau <martineau@zmanda.com>
807
808         * server-src/logfile.c (logtype_str): Add important ','.
809
810 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
811
812         * server-src/planner.c (setup_estimate): Fix wrong order for argument.
813
814 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
815
816         * server-src/driver.c (start_some_dumps): Don't test for
817           cur_idle == NOT_IDLE.
818
819 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
820
821         * server-src/driverio.c (check_unfree_serial): New fonction to check
822           unfreed serial number.
823         * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
824         * server-src/driverio.h (check_unfree_serial): Prototype.
825         * server-src/driver.c (main): Call check_unfree_serial.
826
827 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
828         Patch by Franz Fischer
829
830         * config/acinclude.m4i: Fix for __alpha.
831
832 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
833
834         * common-src/util.c: Debug must end with '\n'.
835
836 2005-12-01  Jean-Louis Martineau <martineau@zmanda.com>
837
838         * configure.in: Amanda support x86_64-unknown-linux-gnu.
839
840 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
841
842         * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
843         * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
844         * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
845
846 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
847
848         * client-src/rundump.c: undef USE_RUNDUMP before define.
849
850 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
851         Patch by Franz Fischer
852
853         * client-src/amqde.c: Fix compiler warning.
854
855 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
856         Patch by Franz Fischer
857
858         * common-src/event.h: Fix compiler warning.
859         * server-src/conffile.h: Fix compiler warning.
860
861 2005-11-30  Kevin Till  <ktill@zmanda.com>
862         
863         * client-src/client_util.c add server-side, client-side encryption
864           as well as custom compression. Custom compression patch is
865           orginally created by Matthieu Lochegnies.
866         * client-src/client_util.h Ditto
867         * client-src/selfcheck.c Ditto
868         * client-src/sendbackup-dump.c Ditto
869         * client-src/sendbackup-gnutar.c Ditto
870         * client-src/sendbackup.c Ditto
871         * client-src/sendbackup.h Ditto
872         * common-src/fileheader.c Ditto
873         * common-src/fileheader.h Ditto
874         * common-src/util.h Ditto
875         * example/amanda.conf.in Ditto
876         * man/xml-source/amanda.conf.5.xml Ditto
877         * restore-src/amrestore.c Ditto
878         * restore-src/restore.c Ditto
879         * server-src/conffile.c Ditto
880         * server-src/conffile.h Ditto
881         * server-src/diskfile.c Ditto
882         * server-src/diskfile.h Ditto
883         * server-src/dumper.c Ditto
884         
885 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
886
887         * config/libtool.m4i: libtool 1.5.20
888         * config/ltmain.sh: libtool 1.5.20
889
890 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
891         Patch by Franz Fischer
892
893         * common-src/fileheader.c (build_header): Declation before instruction.
894         * restore-src/amfetchdump.c: Don't use C++ style comment.
895         * restore-src/restore.c: Don't use C++ style comment.
896         * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
897            dynamicaly allocated.
898         * server-src/logfile.h: Don't use C++ style comment.
899         * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
900
901 2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
902         * common-src/rsh-security.c: Fix x86_64 compile warnings.
903         * common-src/ssh-security.c: Fix x86_64 compile warnings.
904         * man/Makefile.am: Added EXTRA_XML files.
905         * man/xml-source/amanda.8.xml: Added spanning patch variables.
906         * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
907         * xslt/global.entities: Removed file.
908
909 2005-11-20  Jean-Louis Martineau <martineau@zmanda.com>
910         Patch by Jon H. LaBadie
911
912         * changer-src/chg-disk.sh.in: Check permission on file access.
913
914 2005-11-17  Paddy Sreenivasan <paddy@zmanda.com>
915         * man/entities/global.entities: New file. Added man page entities.
916         * man/entities/xinclude.dtd: New file.
917         * man/xslt/man.xsl: Correct include path for settings.xsl.
918
919 2005-11-15  John R. Franks <jrfranks@zmanda.com>
920         * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
921         * common-src/rsh-security.c: Fix IA-64 compile warnings.
922         * common-src/ssh-security.c: Fix IA-64 compile warnings.
923         * regex-src/engine.c: Fix IA-64 compile warnings.
924         * regex-src/regexec.c: Fix IA-64 compile warnings.
925
926 2005-11-15  Paddy Sreenivasan <paddy@zmanda.com>
927
928         * configure.in:  Changed defaults for tape_dev and nr_tape_dev.
929         * example/amanda.conf.in: Leave only changerfile definition
930           uncommented.
931         * man/xml-source/amanda.conf.5.xml: Updated defaults for 
932           tapedev and rawtapedev
933
934 2005-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
935
936         * server-src/planner.c: Fix incronly.
937
938 2005-11-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
939
940         * man/Makefile.am: Set man_MANS,
941
942 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
943
944         * man/Makefile.am: Set man5_MANS and man8_MANS,
945           install-data-hook use them.
946
947 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
948         Patch by Olivier Cherrier
949
950         * man/Makefile.am (install-data-hook): Set protection correclty
951           for man5 and man8.
952
953 2005-10-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
954
955         * common-src/util.c (bind_portrange): Increase port in all case.
956
957 2005-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
958
959         * server-src/conffile.c: Allow runtapes==0.
960         * server-src/driver.c: Use a global conf_runtapes. Don't start a
961           taper if runtapes==0.
962         * server-src/reporter.c: Don't print The next tapes if runtapes==0.
963
964
965 2005-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
966
967         * Amanda 2.5.0b1 released.
968         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
969         * NEWS: Update for 2.5.0b1.
970
971 2005-10-25  Ian Turner <ian@zmanda.com>
972         
973         * man/Makefile.am: include amfetchdump.8.
974         * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
975         * man/xml-source/amanda.8.xml: ditto
976         * man/xml-source/amrecover.8.xml: ditto
977         * man/xml-source/amfetchdump.8.xml: ditto (new file)
978         * man/xslt/global.entities: Add myself, Zmanda Inc.
979         
980 2005-10-24  Jean-Louis Martineau <martineau@zmanda.com>
981
982         * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
983           the argvchild array.
984
985 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
986
987         * server-src/server_util.c (getcmd): Print DEBUG to stderr.
988
989 2005-10-20  Ian Turner <ian@zmanda.com>
990
991         * configure.in: Check for xsltproc.
992         * man/Makefile.am: Properly build, clean, and distribute generated
993           manpages from XML source.
994         * man/amadmin.8: Remove from CVS
995         * man/amanda.8: Remove from CVS
996         * man/amanda.conf.5: Remove from CVS
997         * man/amcheck.8: Remove from CVS
998         * man/amcheckdb.8: Remove from CVS
999         * man/amcleanup.8: Remove from CVS
1000         * man/amdd.8: Remove from CVS
1001         * man/amdump.8: Remove from CVS
1002         * man/amflush.8: Remove from CVS
1003         * man/amgetconf.8: Remove from CVS
1004         * man/amlabel.8: Remove from CVS
1005         * man/ammt.8: Remove from CVS
1006         * man/amoverview.8: Remove from CVS
1007         * man/amplot.8: Remove from CVS
1008         * man/amrecover.8: Remove from CVS
1009         * man/amreport.8: Remove from CVS
1010         * man/amrestore.8: Remove from CVS
1011         * man/amrmtape.8: Remove from CVS
1012         * man/amstatus.8: Remove from CVS
1013         * man/amtape.8: Remove from CVS
1014         * man/amtapetype.8: Remove from CVS
1015         * man/amtoc.8: Remove from CVS
1016         * man/amverify.8: Remove from CVS
1017         * man/amverifyrun.8: Remove from CVS
1018         * man/xml-source/amadmin.8.xml: Add from xml-docs
1019         * man/xml-source/amanda.8.xml: Add from xml-docs
1020         * man/xml-source/amanda.conf.5.xml: Add from xml-docs
1021         * man/xml-source/amcheck.8.xml: Add from xml-docs
1022         * man/xml-source/amcheckdb.8.xml: Add from xml-docs
1023         * man/xml-source/amcleanup.8.xml: Add from xml-docs
1024         * man/xml-source/amdd.8.xml: Add from xml-docs
1025         * man/xml-source/amdump.8.xml: Add from xml-docs
1026         * man/xml-source/amflush.8.xml: Add from xml-docs
1027         * man/xml-source/amgetconf.8.xml: Add from xml-docs
1028         * man/xml-source/amlabel.8.xml: Add from xml-docs
1029         * man/xml-source/ammt.8.xml: Add from xml-docs
1030         * man/xml-source/amoverview.8.xml: Add from xml-docs
1031         * man/xml-source/amplot.8.xml: Add from xml-docs
1032         * man/xml-source/amrecover.8.xml: Add from xml-docs
1033         * man/xml-source/amreport.8.xml: Add from xml-docs
1034         * man/xml-source/amrestore.8.xml: Add from xml-docs
1035         * man/xml-source/amrmtape.8.xml: Add from xml-docs
1036         * man/xml-source/amstatus.8.xml: Add from xml-docs
1037         * man/xml-source/amtape.8.xml: Add from xml-docs
1038         * man/xml-source/amtapetype.8.xml: Add from xml-docs
1039         * man/xml-source/amtoc.8.xml: Add from xml-docs
1040         * man/xml-source/amverify.8.xml: Add from xml-docs
1041         * man/xml-source/amverifyrun.8.xml: Add from xml-docs
1042         * man/xslt/expand-sambadoc.xsl: Add from xml-docs
1043         * man/xslt/global.entities: Add from xml-docs
1044         * man/xslt/man.xsl: Add from xml-docs
1045         * man/xslt/settings.xsl: Add from xml-docs
1046
1047 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
1048
1049         * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
1050           phase.
1051         * server-src/driver.c: Start autoflush while waiting for estimate.
1052         * server-src/planner.c: Write FLUSH line before estimate.
1053
1054 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
1055         Patch by John R. Franks <jrfranks@zmanda.com>
1056
1057         * server-src/taper.c (create_split_buffer): Should not use sizeof().
1058
1059 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
1060
1061         * server-src/taper.c (read_file): Move the putresult(DONE) to the
1062           right place, some cleanup.
1063
1064 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
1065
1066         * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
1067
1068 2005-10-17  Ian Turner <ian@zmanda.com>
1069
1070         * Changelog: Fix line breaks.
1071         * restore-src/restore.c: Give more useful FSF error messages.
1072         * recover-src/extract_list.c: Do better error checking on passed port
1073           number.
1074         * common-src/tapelist.c: Do proper memory management of strings.
1075           Otherwise really bad stuff happens.
1076
1077 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
1078
1079         * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
1080           handle it correctly.
1081
1082 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
1083
1084         * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
1085           is done by exit.
1086
1087 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
1088
1089         * server-src/driverio.c (serial2disk): Print str if error.
1090
1091 2005-10-15  Paddy Sreenivasan <paddy@zmanda.com>
1092
1093         * server-src/taper.c: Shared memory need not be removed in normal paths.
1094           Done as part of atexit. 
1095
1096 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
1097         Patch by John R. Franks <jrfranks@zmanda.com>
1098
1099         * changer-src/scsi-aix.c: calls to open/openx guages success by
1100           checking for a file descriptor greater than 0.  0 is also a valid
1101           descriptor so the check should be >= 0.
1102           Calls to SCSI_OpenDevice does not check for error return.
1103           Calls to SCSI_OpenDevice does not check for error return.
1104           Calls to SCSI_OpenDevice does not check for error return.
1105           Call to opendir() does not check for error.
1106         * changer-src/scsi-hpux_new.c: Ditto.
1107         * changer-src/scsi-irix.c: Ditto.
1108         * changer-src/scsi-linux.c: Ditto.
1109         * changer-src/scsi-solaris.c: Ditto.
1110         * client-src/selfcheck.c: Call to open() does not check for error.
1111         * client-src/sendbackup.c: Call to freopen() does not check for error.
1112         * client-src/sendsize.c: Call to open() does not check for error.
1113         * common-src/bsd-security.c: Call to open() does not check for error.
1114         * common-src/file.c: Call to open() does not check for error.
1115         * restore-src/amrestore.c: Calls to tape_open() do not always check
1116           return code.  open() is called with open flags set to 0
1117           (Call always fails with an EINVAL)
1118         * restore-src/restore.c: fopen() return error check  is "fopen() < 0".
1119           fopen returns a pointer and the proper check should be
1120           "fopen() == NULL".
1121           Call to open() does not check for error.
1122         * tape-src/tapeio.c: tape_open() is called here and other places with a
1123           variable number of arguments, and yet is not defined as a varargs
1124           function...
1125         * tape-src/tapeio.h: Prototype for tape_open.
1126
1127 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
1128         Patch by Paddy Sreenivasan <paddy@zmanda.com>
1129
1130         * client-src/sendsize.c: Log message changes.
1131         * server-src/taper.c: And an atexit function to detach shared memory.
1132           Trap some signal and detach shared memory.
1133
1134 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
1135
1136         * regex-src/regcomp.c (findmust): Initialized start to NULL.
1137
1138 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
1139         Patch by John R. Franks <jrfranks@zmanda.com>
1140
1141         * regex-src/cclass.h: Fixed to add missing braces and reformat long
1142           strings to fix in 80 columns.
1143         * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
1144         * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
1145           ifdef out unused mcsub, mcin and mcfind functions.
1146           (findmust) Initialized newstart to NULL.
1147         * regex-src/regerror.c: Adds missing braces.
1148         * regex-src/regexec.c (nope): Use only in assert, so it is not only
1149           defined if NDEBUG is not defined.
1150
1151 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
1152         Patch by John R. Franks <jrfranks@zmanda.com>
1153
1154         * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
1155           it is not static int.
1156         * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
1157           it is not static int.
1158
1159 2005-10-13  Jean-Louis Martineau <martineau@zmanda.com>
1160
1161         * common-src/util.c (bind_portrange): New argument proto.
1162           Check for reserved port.
1163         * common-src/util.h (bind_portrange): New prototype.
1164         * common-src/bsd-security.c (bind_portrange): New prototype.
1165         * common-src/dgram.c: Add "udp" as argument to bind_portrange.
1166         * common-src/stream.c: Add "tcp" as argument to bind_portrange.
1167
1168 2005-10-12  Jean-Louis Martineau <martineau@zmanda.com>
1169
1170         * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
1171         * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
1172           isafile, stat_tape, tapename, s, fp, ch and errstr variable.
1173
1174 2005-10-11  Ian Turner <ian@zmanda.com>
1175         Patch by  Jean-Louis Martineau <martineau@zmanda.com>
1176         
1177         * restore-src/amfetchdump.c: Remove unused variable debug.
1178         * restore-src/amidxtaped.c: Remove lock_logfile(), which is also 
1179           in restore.c.
1180         * restore-src/Makefile.am: Include libamanda twice, to fix build 
1181           on some machines.
1182
1183 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1184
1185         * restore-src/Makefile (noinst_HEADERS): Add restore.h.
1186         * restore-src/restore.c (search_tapes): Add the fourth argument to
1187           read_file_header.
1188
1189 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1190
1191         * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
1192           to 0.
1193         * server-src/reporter.c (handle_partial): Set repdata to the result
1194           of handle_success.
1195         * server-src/taper.c: Set the first-file.
1196
1197 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1198
1199         * client-src/client_util.c, server-src/amcheck.c,
1200           server-src/reporter.c: Add missing type for arguments.
1201
1202 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1203
1204         * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
1205
1206 2005-10-10  Ian Turner <ian@zmanda.com>
1207
1208         * server-src/amtape.h: Apply tape-spanning patch by John Stange
1209           <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
1210           contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
1211         * configure.in: Ditto
1212         * amplot/Makefile.am: Ditto
1213         * changer-src/Makefile.am: Ditto
1214         * client-src/Makefile.am: Ditto
1215         * common-src/Makefile.am: Ditto
1216         * common-src/amanda.h: Ditto
1217         * common-src/amfeatures.c: Ditto
1218         * common-src/amfeatures.h: Ditto
1219         * common-src/fileheader.c: Ditto
1220         * common-src/fileheader.h: Ditto
1221         * common-src/match.c: Ditto
1222         * common-src/tapelist.c: Ditto
1223         * common-src/tapelist.h: Ditto
1224         * example/amanda.conf.in: Ditto
1225         * man/Makefile.am: Ditto
1226         * recover-src/amrecover.c: Ditto
1227         * recover-src/amrecover.h: Ditto
1228         * recover-src/display_commands.c: Ditto
1229         * recover-src/extract_list.c: Ditto
1230         * restore-src/Makefile.am: Ditto
1231         * restore-src/amfetchdump.c: Ditto
1232         * restore-src/amfetchdump.h: Ditto
1233         * restore-src/amidxtaped.c: Ditto
1234         * restore-src/amrestore.c: Ditto
1235         * restore-src/restore.c: Ditto
1236         * restore-src/restore.h: Ditto
1237         * server-src/Makefile.am: Ditto
1238         * server-src/amadmin.c: Ditto
1239         * server-src/amindexd.c: Ditto
1240         * server-src/amoverview.pl.in: Ditto
1241         * server-src/amtoc.pl.in: Ditto
1242         * server-src/amverify.sh.in: Ditto
1243         * server-src/changer.c: Ditto
1244         * server-src/conffile.c: Ditto
1245         * server-src/conffile.h: Ditto
1246         * server-src/disk_history.c: Ditto
1247         * server-src/disk_history.h: Ditto
1248         * server-src/diskfile.c: Ditto
1249         * server-src/diskfile.h: Ditto
1250         * server-src/driver.c: Ditto
1251         * server-src/driverio.c: Ditto
1252         * server-src/find.c: Ditto
1253         * server-src/find.h: Ditto
1254         * server-src/holding.c: Ditto
1255         * server-src/holding.h: Ditto
1256         * server-src/logfile.c: Ditto
1257         * server-src/logfile.h: Ditto
1258         * server-src/planner.c: Ditto
1259         * server-src/reporter.c: Ditto
1260         * server-src/server_util.c: Ditto
1261         * server-src/server_util.h: Ditto
1262         * server-src/taper.c: Ditto
1263
1264 2005-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1265
1266         * server-src/taper.c: Change message: on new tape due to
1267
1268 2005-10-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1269         Patch by John R. Franks 
1270
1271         * common-src/amflock.c (main): Don't call safe_fd, it's not needed
1272           during configure.
1273         * configure.in: '#include <sys/types.h>' in the check
1274           'for Linux like scsi support (sg)'
1275
1276 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1277
1278         * client-src/amandad.c (writebuf): Call waitpid in the parent.
1279
1280 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1281
1282         * client-src/amandad.c (service_delete): Remove call to sleep.
1283         * common-src/bsd-security.c: Add bsdprintf. Add more debug.
1284           The handle is used as a string, instead of 2 int.
1285
1286 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1287
1288         * common-src/rsh-security.c: rshprintf should call dbprint.
1289         * common-src/ssh-security.c: rshprintf should call dbprint, add many
1290           rshprintf.
1291         * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
1292           to the log. 
1293
1294 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1295
1296         * common-src/stream.c: len is a socklen_t.
1297         * server-src/amindexd.c: Add socklen as a socklen_t.
1298         * restore-src/amidxtaped.c: Add socklen as a socklen_t.
1299         * tape-src/tapetype.c: Change printf format.
1300         * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
1301         * server-src/dumper.c: Init outfd to -1.
1302         * common-src/file.c (areads_getbuf): First argument is const.
1303
1304 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1305
1306         * server-src/reporter.c: Don't trunk hostname/diskname in
1307           'FAILURE AND STRANGE DUMP SUMMARY' section.
1308
1309 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1310
1311         * server-src/chunker.c (main): Remove outfd.
1312
1313 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1314
1315         * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
1316           client-src/getfsent.c, common-src/statfs.c, common-src/token.c
1317           (main): Remove fd declaration.
1318
1319 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1320
1321         * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
1322
1323 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1324
1325         * common-src/sl.c (insert_sort_sl). Typo.
1326
1327 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1328
1329         * config/config.guess: Update from automake 1.9.5.
1330         * config/config.sub: Update from automake 1.9.5.
1331         * config/depcomp: Update from automake 1.9.5.
1332         * config/install-sh: Update from automake 1.9.5.
1333         * config/missing: Update from automake 1.9.5.
1334         * config/mkinstalldirs: Update from automake 1.9.5.
1335         * config/ltmain.sh: Update from libtool-1.5.16.
1336         * config/libtool.m4i: Update from libtool-1.5.16.
1337
1338 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1339
1340         * common-src/bsd-security.c: Fix small bug.
1341
1342 2005-09-22  John R. Jackson <jrj@purdue.edu>
1343
1344         * configure.in: If --without-server is specified, either on the
1345           command line or via config.site, make sure --without-restore
1346           is also in effect.  Avoids compilation errors if mismatched.
1347         * example/config.site: Document above.
1348
1349 2005-09-21  John R. Jackson <jrj@purdue.edu>
1350
1351         * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
1352           "amgetconf build.CLIENT_LOGIN".
1353
1354 2005-09-21  John R. Jackson <jrj@purdue.edu>
1355
1356         * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
1357           is defined.
1358
1359 2005-09-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1360
1361         * server-src/amlabel.c: 'int fd' is needed.
1362
1363 2005-09-20  John R. Jackson <jrj@purdue.edu>
1364
1365         * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
1366           <Scott.Burns@Netcontech.Com>.
1367
1368 2005-09-20  John R. Jackson <jrj@purdue.edu>
1369
1370         * common-src/file.c: Create safe_fd() to do common file descriptor
1371           safety operations at the start of every program.  In addition
1372           to closing everything from three on up that used to be done
1373           with explicit code, make sure stdin, stdout and stderr are
1374           open per a potential (but unlikely) security report from Ben
1375           Schwarz <bschwarz@EECS.berkeley.EDU>.
1376         * common-src/amanda.h: Ditto.
1377         * client-src/amandad.c: Ditto.
1378         * client-src/calcsize.c: Ditto.
1379         * client-src/getfsent.c: Ditto.
1380         * client-src/killpgrp.c: Ditto.
1381         * client-src/rundump.c: Ditto.
1382         * client-src/runtar.c: Ditto.
1383         * client-src/selfcheck.c: Ditto.
1384         * client-src/sendbackup.c: Ditto.
1385         * client-src/sendsize.c: Ditto.
1386         * client-src/versionsuffix.c: Ditto.
1387         * common-src/amflock.c: Ditto.
1388         * common-src/rsh-security.c: Ditto.
1389         * common-src/ssh-security.c: Ditto.
1390         * common-src/statfs.c: Ditto.
1391         * common-src/token.c: Ditto.
1392         * recover-src/amrecover.c: Ditto.
1393         * restore-src/amidxtaped.c: Ditto.
1394         * restore-src/amrestore.c: Ditto.
1395         * server-src/amadmin.c: Ditto.
1396         * server-src/amcheck.c: Ditto.
1397         * server-src/amcleanupdisk.c: Ditto.
1398         * server-src/amflush.c: Ditto.
1399         * server-src/amindexd.c: Ditto.
1400         * server-src/amlabel.c: Ditto.
1401         * server-src/amlogroll.c: Ditto.
1402         * server-src/amtape.c: Ditto.
1403         * server-src/amtrmidx.c: Ditto.
1404         * server-src/amtrmlog.c: Ditto.
1405         * server-src/chunker.c: Ditto.
1406         * server-src/conffile.c: Ditto.
1407         * server-src/diskfile.c: Ditto.
1408         * server-src/driver.c: Ditto.
1409         * server-src/getconf.c: Ditto.
1410         * server-src/infofile.c: Ditto.
1411         * server-src/planner.c: Ditto.
1412         * server-src/reporter.c: Ditto.
1413         * server-src/taper.c: Ditto.
1414         * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
1415           coded "/tmp/amanda".
1416
1417 2005-09-20  John R. Jackson <jrj@purdue.edu>
1418
1419         * client-src/calcsize.c: Fix format string.
1420         * server-src/diskfile.c: Fix compiler warnings.
1421         * server-src/planner.c: Fix compiler warnings.
1422
1423 2005-09-20  John R. Jackson <jrj@purdue.edu>
1424
1425         * common-src/amanda.h: Add dbreopen() so debug file can be closed
1426           and then reopened if needed.
1427         * common-src/debug.c: Ditto.
1428         * client-src/runtar.c: Close the debug file (fd 10) around the
1429           exec of GNU tar.  Newer versions complain about stray file
1430           descriptors.
1431         * server-src/getconf.c: Use dbreopen() to create the debug file.
1432           Do not try to open config file unless needed (allows clients to
1433           use build.XXX/dbopen.XXX/dbclose.XXX).
1434
1435 2005-09-20  John R. Jackson <jrj@purdue.edu>
1436
1437         * client-src/sendbackup-dump.c: Ignore a new message from Solaris
1438           vxdump.
1439
1440 2005-09-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1441
1442         * common-src/bsd-security.c: Generate a unique event_id, thei
1443           proto_handle is not always unique.
1444
1445 2005-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1446
1447         * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
1448
1449 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1450
1451         * server-src/driverio.c: Don't save history with size < 0.
1452
1453 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1454         Patch by Geert Uytterhoeven <geert@linux-m68k.org>
1455
1456         * server-src/planner.c: Don't use history with size < 0.
1457
1458 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1459         Patch Paul Bijnens <paul.bijnens@xplanation.com>
1460
1461         * server-src/planner.c(delay_dumps): Delay incremental dump also
1462           larger than tape.
1463
1464 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1465         Patch by Orion Poplawski <orion@cora.nwra.com>
1466
1467         * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
1468         * man/amoverview.8: Document -last, -num0 and -togo0.
1469
1470 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1471         Patch by Orion Poplawski <orion@cora.nwra.com>
1472
1473         * server-src/driver.c: Make tape_length and tape_left unsigned long.
1474
1475 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1476         Patch by Stefan G. Weichinger <monitor@oops.co.at>
1477
1478         * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
1479
1480 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1481
1482         Bug found by John E Hein <jhein@timing.com>.
1483         * server-src/amadmin.c: Fix of by one with NB_HISTORY.
1484         * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
1485
1486 2005-06-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1487         Patch by Jay Fenlason <fenlason@redhat.com>
1488
1489         * client-src/sendsize.c: Fix dbprintf call.
1490
1491 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1492             Stefan G. Weichinger <monitor@oops.co.at>
1493
1494         * example/amanda.conf.in: edited the default-value for the
1495                                   holdingdisk-usage to "use -100 Mb".
1496                                   The old value "use 290 Mb" didn't make much
1497                                   sense anymore.
1498
1499 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1500
1501         * server-src/amverifyrun.sh.in: Remove buggy space.
1502
1503 2005-05-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1504
1505         * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
1506
1507 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1508
1509         * example/amanda.conf.in: Update from 2.4.5.
1510
1511 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1512
1513         * docs/*: New documentation from xml-docs.
1514         * docs/Makefile.am (pkgdata_DATA): Update for new files.
1515
1516 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1517
1518         * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
1519
1520 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1521
1522         * man/*: Use man pages form xml-docs.
1523         * configure.in (AC_CONFIG_FILES): Remove all man pages.
1524         * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5 
1525           amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
1526           amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
1527           amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
1528
1529 2005-05-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1530
1531         * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
1532           nothing more.
1533         * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
1534           nothing more.
1535         * common-src/rsh-security.c (conn_put): Don't kill the process, only do
1536           a wait with WNOHANG.
1537         * common-src/ssh-security.c (conn_put): Don't kill the process, only do
1538           a wait with WNOHANG.
1539
1540 2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1541
1542         * changer-src/chg-zd-mtx.sh.in: Improve handling of
1543           "Unknown Storage Element Loaded".
1544
1545 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1546         - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
1547
1548         * server-src/amverifyrun.sh.in: Filter changer log file.
1549
1550 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1551
1552         * server-src/amcheck.c: Improve messages.
1553
1554 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1555
1556         * client-src/sendsize.c (generic_calc_estimates): Use amname instead
1557           of dirname in message.
1558
1559 2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1560
1561         * server-src/conffile.h: Rename getcont_unit_divisor to
1562           getconf_unit_divisor.
1563         * server-src/amadmin.c: Use getconf_unit_divisor.
1564         * server-src/amcheck.c: Use getconf_unit_divisor.
1565         * server-src/conffile.c: Use getconf_unit_divisor.
1566         * server-src/conffile.c (unit_divisor): Init to 1.
1567         * server-src/reporter.c: Use getconf_unit_divisor. The mb macro always
1568           divide by 1024. Add the du macro. Use mb or du where appropriate.
1569
1570 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1571
1572         * server-src/infofile.h (history_t): Add secs field.
1573         * server-src/infofile.c (read_txinfofile): Parse info file with secs
1574           in history.
1575         * server-src/infofile.c (write_txinfofile): Write secs in history.
1576         * server-src/driverio.c (update_info_dumper): Update secs in history.
1577
1578 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1579
1580         * server-src/planner.c: Improve server estimate.
1581         * server-src/planner.c: Write server estimate like others estimate.
1582
1583 2005-02-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1584
1585         * server-src/amstatus.pl.in: last_level is negative, on new disk.
1586
1587 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1588
1589         * server-src/amstatus.pl.in: Use '-?' to match negative values
1590           instead of '-*'.
1591
1592 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1593         Patch by Orion Poplawski <orion@cora.nwra.com>
1594
1595         * server-src/amoverview.pl.in: Print the total number of level 0
1596           dumps for each disk and the number of runs until the last level 0
1597           dump will be overwritten.
1598
1599 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1600         Patch by Phil Homewood <pdh@snapgear.com>
1601
1602         * server-src/amoverview.pl.in: Add -skipmissed option.
1603
1604 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1605
1606         * server-src/driver.c: Print the chunksize to the log.
1607
1608 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1609
1610         * client-src/calcsize.c: Print estimate to STDERR.
1611         * client-src/sendsize.c (generic_calc_estimates): Read calcsize result,
1612           and send it to amandad. Write debuging message.
1613
1614 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1615         Patch by Franz G. Fischer
1616
1617         * server-src/conffile.c: Adds a value type LONG and a val_t.l long
1618           union member and changes get_number() to return long and
1619           get_simple() to fill val_t.l if called for a long value.  The
1620           get_simple() calls have been changed to LONG for typetype_t.blocksize
1621           typetype_t.length, typetype_t.filemark, holdingdisk_t.disksize and
1622           holdingdisk_t.chunksize.
1623
1624 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1625
1626         * server-src/amdump.sh.in: Redirect in append mode.
1627         * server-src/driver.c: Set stdout and stderr to not buffered.
1628         * server-src/planner.c: Set stderr to not buffered.
1629           Print 'setup_estimate:' on one line.
1630         * server-src/amstatus.pl.in: Parse new 'setup_estimate:' line.
1631
1632 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1633
1634         * client-src/calcsize.c: Improve estimate for sparse file and count
1635           space for filenames.
1636
1637 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1638
1639         * server-src/planner.c: Improve message if no incremental estimate.
1640
1641 2004-12-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1642         Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
1643
1644         * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
1645           before calling error().
1646
1647 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1648
1649         * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
1650
1651 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1652
1653         * server-src/driver.c: Typo.
1654
1655 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1656
1657         * restore-src/amrestore.c: Should now work correctly with empty file.
1658         * server-src/amverify.sh.in: Parse "End-of-Information detected."
1659           message from amrestore.
1660
1661 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1662
1663         * server-src/driver.c: tape_left should not become negative.
1664
1665 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1666         Patch by Orion Poplawski <orion@cora.nwra.com>
1667
1668         * server-src/diskfile.c: Parse negative spindle (-1).
1669
1670 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1671
1672         * server-src/amadmin.c: Balance subcommand use displayunit.
1673         * server-src/amcheck.c: Small cleanup.
1674
1675 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1676
1677         * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
1678           the file: dirver.
1679
1680 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1681
1682         * server-src/amstatus.pl.in: Remove trace.
1683
1684 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1685
1686         * server-src/diskfile.c: Compilation fix.
1687
1688 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1689
1690         * server-src/conffile.c: Parse displayunit,
1691           new fonction getcont_unit_divisor().
1692         * server-src/conffile.h: Prototype of getcont_unit_divisor().
1693         * server-src/amcheck.c: Use displayunit to display holding disk size.
1694         * server-src/amstatus.pl.in: Use displayunit to display dump size.
1695         * server-src/reporter.c: use displayunit to display dump size.
1696         * Document displayunit.
1697
1698 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1699
1700         * server-src/reporter.c: Change 'Daily' for 'Incr.'.
1701
1702 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1703
1704         * server-src/amstatus.pl.in Fix for level -1.
1705
1706 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1707         Patch by Daniel Widyono <widyono@seas.upenn.edu>
1708
1709         * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
1710
1711 2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1712
1713         * restore-src/amrestore.c: Read empty file.
1714
1715 2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1716
1717         * tape-src/tapetype.c: Use new tape.
1718
1719 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1720
1721         * server-src/amstatus.pl.in: Display partial estimate.
1722
1723 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1724
1725         * server-src/diskfile.c (read_diskline): A spindle must be numerical.
1726
1727 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1728
1729         * server-src/holding.c (rename_tmp_holding): Always rename files.
1730
1731 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1732
1733         * server-src/driver.c: Print message when too many retry.
1734         * server-src/amstatus.pl.in: Detect a failed dump after too many retry.
1735         * amplot/amplot.awk: Parse these message.
1736
1737 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1738
1739         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
1740           if dumper returns DONE and taper returns TRYAGAIN.
1741
1742 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1743
1744         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
1745           if dumper returns TRYAGAIN and taper returns DONE.
1746
1747 2004-10-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1748
1749         * server-src/amflush.c: Don't start a driver if nothing to flush.
1750
1751 2004-10-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1752         Patch by Eric Siegerman <erics@telepres.com>
1753
1754         * example/3hole.ps: Fix for multiple tape.
1755
1756 2004-10-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1757
1758         * server-src/amverify.sh.in: Terminate if no tape online.
1759
1760 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1761
1762         * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
1763
1764 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1765
1766         * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
1767
1768 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1769
1770         * server-src/planner.c (promote_hills): Use dumpcycle instead of
1771           tapecycle.
1772         * example/amanda.conf.in: Remove warning for tapecyle set to inf.
1773
1774 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1775
1776         * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
1777           big.
1778
1779 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1780
1781         * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
1782           tape without -o.
1783         * man/amtapetype.8.in: Document new -o option.
1784
1785 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1786
1787         * server-src/amstatus.pl.in: Works with failed dump to tape.
1788
1789 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1790
1791         * client-src/sendbackup-gnutar.c (end_backup): Write warning message
1792           in not fatal error.
1793         * server-src/dumper.c (process_dumpline): Parse warning message.
1794         * server-src/reporter.c (handle_strange): Print warning message in
1795           the STRANGE summary.
1796
1797 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1798
1799         * server-src/driverio.c (free_serial): Set stable[s].dp to NULL.
1800         * server-src/driverio.c (disk2serial): Check that stable[s].dp == NULL.
1801
1802 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1803         Patch by Joe Rhett <jrhett@isite.net>
1804
1805         * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
1806
1807 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1808         Patch by Orion Poplawski <orion@cora.nwra.com>
1809
1810         * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
1811
1812 2004-08-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1813
1814         * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
1815
1816 2004-08-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1817
1818         * common-src/amfeatures.h (fe_selfcheck_calcsize): New feature.
1819         * common-src/amfeatures.c (am_init_feature_set): Set
1820           fe_selfcheck_calcsize.
1821         * client-src/selfcheck.c: Check if calcsize binary is available if
1822           it is needed.
1823         * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
1824           if it support fe_selfcheck_calcsize.
1825
1826 2004-08-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1827
1828         * man/amanda.8.in: Document 'estimate' dumptype option.
1829
1830 2004-08-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1831
1832         * server-src/amrmtape.sh.in: Understand history info.
1833
1834 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1835
1836         * server-src/driver.c: Typo.
1837
1838 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1839
1840         * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
1841           print if a dump is waiting for holding disk space (roomq).
1842
1843 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1844
1845         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
1846           Don't call free_serial().
1847         * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
1848         * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
1849         * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
1850           command.
1851         * server-src/driverio.c (disk2serial): Try to find a 'dp' before
1852           allocating a new serial.
1853         * server-src/driverio.c (free_serial_dp): New function to remove the
1854           serial for a dp.
1855         * server-src/driverio.h (free_serial_dp): Prototype.
1856         * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
1857           command.
1858
1859 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1860
1861         * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
1862           CALCSIZE estimate.
1863
1864 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1865
1866         * client-src/calcsize.c: Support exclude and include like gnutar,
1867           change in program argument.
1868         * client-src/sendsize.c: Execute calcsize as requested.
1869         * common-src/amfeatures.h (fe_calcsize_estimate): New feature.
1870         * common-src/amfeatures.c (am_init_feature_set): set
1871           fe_calcsize_estimate.
1872         * server-src/amcheck.c (start_host): Check if client support CALCSIZE
1873           estimate.
1874
1875 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1876
1877         * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
1878           for estimate type.
1879         * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
1880         * server-src/conffile.c (get_estimate): New function to parse estimate
1881           type, ....
1882         * server-src/diskfile.c (read_diskline): Copy 'estimate'.
1883         * server-src/diskfile.h (disk_t): Add 'estimate'.
1884         * server-src/amadmin.c (disklist_one): Print estimate type.
1885
1886 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1887
1888         * common-src/match.c (match_tar, tar_to_regex): New fonction similar
1889           to the exclude option of tar.
1890         * common-src/amanda.h (match_tar, tar_to_regex): Prototype.
1891
1892 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1893
1894         * server-src/infofile.h (history_t): new struct.
1895         * server-src/infofile.h (info_t): Add a history_t.
1896         * server-src/infofile.c (read_txinfofile): Parse history data.
1897         * server-src/infofile.c (write_txinfofile): Print history data.
1898         * server-src/amadmin.c (export_one): export history data.
1899         * server-src/amadmin.c (import_one): import history data.
1900         * server-src/driverio.c (update_info_dumper): update history data.
1901
1902 2004-05-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1903         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
1904
1905         * server-src/planner.c: Log L_DISK for autoflush disk.
1906
1907 2004-05-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1908
1909         * server-src/planner.c (handle_result): Add dp to pestq at the
1910           correct place.
1911
1912 2004-04-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1913
1914         * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
1915
1916 2004-04-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1917
1918         * config/acinclude.m4i (AX_CREATE_STDINT_H) : New macro.
1919         * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
1920         * common-src/amanda.h: include "common-src/amanda-int.h".
1921         * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
1922
1923 2004-04-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1924
1925         * configure.in: Fix for automake 1.8.4.
1926         * config/acinclude.m4i: Fix for automake 1.8.4.
1927
1928 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1929
1930         * configure.in: Result of autoupdate.
1931
1932 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1933
1934         * config/config.guess: Update from automake 1.8.
1935         * config/config.sub: Update from automake 1.8.
1936         * config/depcomp: Update from automake 1.8.
1937         * config/install-sh: Update from automake 1.8.
1938         * config/missing: Update from automake 1.8.
1939         * config/mkinstalldirs: Update from automake 1.8.
1940         * config/ltmain.sh: Update from libtool-1.5.6.
1941         * config/libtool.m4i: Update from libtool-1.5.6.
1942
1943 2004-04-26  Marc Mengel <mengel@fnal.gov>
1944
1945         * tape-src/output-rait.c: Verify reads correctly.
1946
1947 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1948
1949         * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
1950         fill up when in degraded mode.
1951
1952 2004-04-23  Eric Siegerman <eric_97@pobox.com>
1953
1954         Bug fix: amflush would run, and consume a tape, even if there
1955         were no Amanda directories waiting to be flushed:
1956         * common-src/sl.c (is_empty_sl): New function to test
1957           whether a list is empty.
1958         * common-src/sl.h (is_empty_sl): Prototype.
1959         * server-src/amflush.sh (main): Use is_empty_sl(),
1960           rather than ==NULL, to test emptiness of datestamp_list.
1961
1962 2004-04-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1963
1964         * server-src/planner.c (setup_estimate): Typo.
1965
1966 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1967
1968         Allow bumpsize, bumppercent, bumpdays and bumpmult to be in a dumptype.
1969         * server-src/conffile.c: Parse.
1970         * server-src/conffile.h: Define.
1971         * server-src/amadmin.c (disklist_one): Use.
1972         * server-src/diskfile.c (read_diskline): Initialize.
1973         * server-src/diskfile.h: Define.
1974         * server-src/planner.c: Use.
1975         * man/amanda.8.in: Document.
1976
1977 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1978         Fix by Paul Bijnens <paul.bijnens@xplanation.com>
1979
1980         * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
1981           if strategy is noinc.
1982
1983 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1984         Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
1985
1986         * man/amoverview.8.in: Document results.
1987
1988 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1989         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
1990
1991         * server-src/amoverview.pl.in: Print last two characters.
1992
1993 2004-04-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1994
1995         * changer-src/chg-disk.sh.in: Fix for sh compatibility.
1996
1997 2004-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
1998         Fix by John Koyle <jkoyle@rfpdepot.com>
1999
2000         * common-src/dgram.c: Fix EAGAIN on Linux.
2001
2002 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2003
2004         * server-src/amadmin.c (bumpsize): Typo.
2005
2006 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2007
2008         New bumppercent global option.
2009         * example/amanda.conf.in: Document it.
2010         * man/amanda.8.in: Document it.
2011         * server-src/amadmin.c (bumpsize): Write it.
2012         * server-src/conffile.c: Parse it.
2013         * server-src/conffile.h: Define It.
2014         * server-src/planner.c (bump_thresh): New size_level_0 parameter,
2015           use the new bumppercent option.
2016
2017 2004-04-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2018
2019         * server-src/amadmin.c: Rename host_t to amhost_t.
2020         * server-src/amcheck.c: Ditto.
2021         * server-src/amindexd.c: Ditto.
2022         * server-src/diskfile.c: Ditto.
2023         * server-src/diskfile.h: Ditto.
2024         * server-src/driver.c: Ditto.
2025         * server-src/planner.c: Ditto.
2026
2027 2004-03-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2028
2029         * amplot/amplot.awk: Parse "driver: tape size" line.
2030
2031 2004-03-22  Stefan G. Weichinger <monitor@oops.co.at>
2032
2033         * server-src/amcheck.c (start_host): Added warning for hostname
2034           localhost.
2035         * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
2036
2037 2004-03-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2038
2039         * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
2040
2041 2004-03-18  Stefan G. Weichinger <monitor@oops.co.at>
2042
2043         * docs/TOP-TEN-QUESTIONS: New file.
2044
2045 2004-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2046
2047         * server-src/reporter.c (handle_success): Set stats[i].coutsize
2048           correctly.
2049         * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
2050
2051 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2052
2053         * common-src/ssh-security.c: New ssh security driver.
2054         * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
2055         * common-src/security.c: Add ssh security driver.
2056         * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
2057
2058 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2059
2060         * server-src/amcheck.c: Do labelstr check in correct order.
2061
2062 2004-03-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2063
2064         Use only one time event for all dumpers, no wait event.
2065         start_some_dumps is called everytime a dumper or taper finish.
2066         * server-src/driver.c (dumpers_ev_time): New global event.
2067         * server-src/driver.c (start_some_dumps): Remove dumper argument,
2068           can start many dump.
2069         * server-src/driver.c (dumper_result): Call start_some_dumps instead
2070           of event_wakeup.
2071         * server-src/driver.c (handle_idle_wait): Remove function.
2072         * server-src/driver.c (handle_dumpers_time): new handle for
2073           dumpers_ev_time, it call start_some_dumps.
2074         * server-src/driverio.h (dumper_t): Remove ev_wait.
2075         * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
2076
2077 2004-03-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2078
2079         * common-src/fileheader.c (print_header): Fix fprintf use.
2080         * client-src/amqde.c (parse_exclude_path): Fix = by ==.
2081         * common-src/protocol.c (s_repwait): Fix compiler warning.
2082         * common-src/rsh-security.c (runrsh): Fix compiler warning.
2083
2084 2004-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2085
2086         * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
2087
2088 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2089         Reported by Allen Liu <allen@bellglobal.com>
2090
2091         * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
2092
2093 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2094
2095         * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
2096         * server-src/taper.c: Ditto
2097
2098 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2099
2100         * server-src/driver.c (dump_schedule): Print complete name.
2101
2102 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2103
2104         The estimate send a PREP (partial REP) packet after each estimate.
2105         * client-src/amandad.c: Send PREP packet if sendsize.
2106         * common-src/amfeatures.c (am_init_feature_set): Add
2107           fe_partial_estimate.
2108         * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
2109         * common-src/packet.c (pktypes[]): Add PREP.
2110         * common-src/packet.h (pktype_t): Add P_PREP.
2111         * common-src/protocol.c (action_t): Add A_CONTPEND.
2112         * common-src/protocol.c: Handle P_PREP packet.
2113         * server-src/amstatus.pl.in: Parse "got partial result" line.
2114         * server-src/planner.c: Handle P_PREP packet.
2115
2116 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2117         Reported by Jason Brooks <jason.brooks@windriver.com>
2118
2119         * server-src/reporter.c: Remove duplicate setting of cd to
2120           &ColumnData[Level].
2121
2122 2004-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2123         Patch by Philippe Charnier <charnier@xp11.frmug.org>
2124
2125         * server-src/amtrmidx.c: Add '\n'.
2126
2127 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2128
2129         * recover-src/set_commands.c (cd_glob): Fix memory leak.
2130
2131 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2132
2133         * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
2134         * recover-src/uscan.l: Fix double amfree.
2135
2136 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2137
2138         * server-src/driver.c: Build holding disk name with timestamp.
2139         * server-src/holding.c (is_datestr): Check also for timestamp.
2140         * server-src/planner.c: Flush today's dump with autoflush.
2141         * server-src/find.c: Find holding disk with timestamp.
2142         * server-src/find.h (find_result_t): Add timestamp field.
2143
2144 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2145
2146         * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
2147
2148 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2149
2150         * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
2151           to verify.
2152
2153 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2154
2155         * server-src/amdump.sh.in: Do not redirect to /dev/null.
2156
2157 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2158
2159         * config/acinclude.m4i: Define CF_WAIT_INT.
2160         * configure.in: Call CF_WAIT_INT.
2161         * common-src/amanda.h: Try to make waitpid doesn't warn.
2162
2163 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2164
2165         * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
2166
2167 2004-01-29  Christoph Pospiech <pospiech@de.ibm.com>
2168
2169         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
2170         * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
2171         * changer-src/chg-iomega.pl.in: New changer script.
2172         * docs/TAPE.CHANGERS: Document chg-iomega.
2173         * contrib/mkamandisk: Script to format iomega disk.
2174
2175 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2176
2177         * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
2178
2179 2004-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2180
2181         * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
2182         * example/amanda.conf.in: Update record documentation.
2183         * man/amanda.8.in: Update record documentation.
2184
2185 2004-01-14  Stefan G. Weichinger <monitor@oops.co.at>
2186
2187         * docs/INSTALL: Add config for xinetd.
2188
2189 2004-01-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2190
2191         * server-src/planner.c (handle_result): Detect bad estimate (-1).
2192         * server-src/planner.c (analyze_estimate): Don't schedule level
2193           if the estimate is bad.
2194
2195 2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2196
2197         * docs/HOWTO-FILE-DRIVER: New file.
2198         * docs/TAPE.CHANGERS: Explain chg-disk.
2199         * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
2200
2201 2003-12-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2202
2203         * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
2204
2205 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2206         Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
2207
2208         * changer-src/chg-disk.sh.in: New changer script.
2209         * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
2210         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
2211
2212 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2213
2214         * tape-src/tapetype.c: extern int optind.
2215         * tape-src/tapeio.c: extern int optind.
2216
2217 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2218         Patch by C.Scheeder <christoph.scheeder@scheeder.de>
2219
2220         * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
2221
2222 2003-11-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2223
2224         * server-src/driver.c: Print the tape size.
2225         * server-src/amstatus.pl.in: print % of tape use.
2226
2227 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2228
2229         * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
2230
2231 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2232
2233         * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
2234
2235 2003-11-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2236
2237         * server-src/amcheck.c (taperscan_slot): Deal with label not in
2238           tapelist case.
2239         * server-src/amtape.c (taperscan_slot): Ditto.
2240         * server-src/taper.c (taperscan_slot): Ditto.
2241
2242 2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2243
2244         * server-src/driver.c (handle_taper_result): Always call
2245           continue_dumps() in TRYAGAIN case.
2246
2247 2003-11-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2248
2249         * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
2250         if no tape in drive.
2251
2252 2003-11-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2253
2254         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
2255
2256 2003-11-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2257         Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
2258
2259         * client-src/selfcheck.c: Skip accessibility check for AFS entries.
2260         * docs/HOWTO-AFS: New file.
2261
2262 2003-11-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2263
2264         * server-src/amadmin.c (tape): Display the next new tapes.
2265         * server-src/reporter.c (output_tapeinfo): Ditto.
2266
2267 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2268
2269         * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
2270
2271 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2272
2273         * server-src/amcheck.c (taperscan_slot): Set found=3 if new tape.
2274         * server-src/amcheck.c (taper_scan): Handle found==3.
2275         * server-src/amtape.c (taperscan_slot): Set found=3 if new tape.
2276         * server-src/amtape.c (taper_scan): Handle found==3.
2277         * server-src/taper.c (taperscan_slot): Set found=3 if new tape.
2278         * server-src/taper.c (taper_scan): Handle found==3.
2279
2280 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2281
2282         * server-src/amcheck.c: Use stralloc(optarg).
2283         * tape-src/ammt.c: Use stralloc(optarg).
2284         * tape-src/tapetype.c: Use stralloc(optarg).
2285
2286 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2287         Patch by Jay Fenlason <fenlason@redhat.com>
2288
2289         * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
2290
2291 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2292         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
2293
2294         * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
2295
2296 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2297
2298         * server-src/amadmin.c (find): Call find_dump to allow dynamic disklist.
2299         * server-src/amindexd.c: Call find_dump to allow dynamic disklist.
2300         * server-src/amtrmidx.c:  Call find_dump to allow dynamic disklist.
2301         * server-src/diskfile.c (add_disk): Set device and todo.
2302         * server-src/find.c: Build disklist dynamicaly from log files.
2303         * server-src/find.h (find_dump): New prototype.
2304
2305 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2306
2307         * server-src/amlogroll.c: set_pname("amlogroll").
2308
2309 2003-10-24  Todd M. Kover <kovert@omniscient.com>
2310
2311         * add amqde for "quick and dirty estimates" under gnutar (program
2312           that will traverse the filesystem rather than invoke gnutar).
2313           controlled via configure option --with-qde.  This really wants to
2314           be configured in the server.
2315
2316 2003-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2317
2318         * server-src/amverify.sh.in: Fix usage message.
2319         * common-src/fileheader.c (print_header): fprintf to outf.
2320         * server-src/tapefile.c (lookup_last_reusable_tape): Check for
2321           tp->datestamp > 0.
2322         * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
2323
2324 2003-10-23  Todd Kover <kovert@omniscient.com>
2325
2326         * make amrecover link against readline rather than libamanda so
2327           only amrecover would require the shared library (if it's found)
2328
2329 2003-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2330         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2331
2332         * client-src/amandates.c (finish_amandates): Call error() if the
2333           close of amdf fail.
2334         * common-src/amflock.c (create_lock): Return -1 if the close of f fail.
2335         * common-src/amflock.c (read_lock): Don't set f to NULL if the close
2336           fail.
2337         * server-src/tapefile.c (write_tapelist): Return 1 if the close of
2338           tapef fail.
2339
2340 2003-10-14  John R. Jackson (jrj@purdue.edu)
2341
2342         * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
2343           size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
2344
2345 2003-10-14  John R. Jackson (jrj@purdue.edu)
2346
2347         * client-src/sendsize.c: Handle case where PID's get re-used.
2348
2349 2003-10-14  John R. Jackson (jrj@purdue.edu)
2350
2351         * configure.in: Need to check for sys/gscdds.h on AIX to enable
2352           SCSI changer.
2353
2354 2003-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2355
2356         * common-src/genversion.c (prundefvar): New function to print an
2357           undefined variable.
2358         * common-src/genversion.c: Print undefined variable.
2359         * server-src/amcheck.c: Improve message for no LPRCMD defined.
2360
2361 2003-07-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2362
2363         * restore-src/amidxtaped.c: Don't clea re_label before checking
2364           for the changer.
2365
2366 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2367         Patch by Scott Mcdermott <smcdermott@questra.com>
2368
2369         * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
2370           variable to add a pause after a tape loading.
2371
2372 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2373         Fix by John E. Hein <jhein@timing.com>
2374
2375         * changer-src/chg-manual.sh.in: Quote @EGREP@.
2376         * changer-src/chg-null.sh.in: Quote @EGREP@.
2377
2378 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2379
2380         * amplot/amplot.sh.in: Remove files before runnig amplot.awk.
2381         * amplot/amplot.awk: Parse 'flush line', fix tape_wait line.
2382         * server-src/driver.c (read_flush): Write a 'flush size' to the
2383           debug file.
2384
2385 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2386
2387         * changer-src/chg-chio.pl.in: Fix next/prev command.
2388
2389 2003-07-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2390         patch by Paul Bijnens <paul.bijnens@xplanation.com>
2391
2392         * client-src/client_util.c (add_include): Count include with 2 /,
2393           Fix descriptor leak.
2394
2395 2003-06-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2396
2397         * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
2398
2399 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2400
2401         * server-src/holding.c: Fix compiler error.
2402         * server-src/planner.c: Use snprintf.
2403
2404 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2405         patch by Paul Bijnens <paul.bijnens@xplanation.com>
2406
2407         * tape-src/tapetype.c: Avoid a numerical overflow for large tape
2408           capacities.
2409
2410 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2411
2412         * server-src/amstatus.pl.in: Fix to failed tape.
2413
2414 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2415
2416         * server-src/planner.c (delay_dumps): Delay not delay forced full
2417           before forced full.
2418
2419 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2420
2421         * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
2422
2423 2003-06-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2424
2425         * server-src/amverify.sh.in: Do not advance to next tape.
2426
2427 2003-06-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2428         patch by Eric Siegerman <eric_97@pobox.com>
2429
2430         * server-src/planner.c: Make promote_hills() honour maxpromotedays.
2431
2432 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2433
2434         * changer-src/scsi-bsd.c: Use pDev[DeviceFD].fd instead of DeviceFD.
2435         * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
2436         * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
2437
2438 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2439
2440         * client-src/noop.c: #include "util.h".
2441
2442 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2443
2444         * server-src/amflush.c: Implement new -b and -s options.
2445         * man/amflush.8.in: Document it.
2446
2447 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2448
2449         * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
2450           taper reply DONE.
2451
2452 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2453
2454         * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
2455
2456 2003-06-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2457
2458         * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
2459
2460 2003-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2461         Bug reported by Sven Rudolph <rudsve@drewag.de>
2462
2463         * server-src/holding.c (mkholdingdir): New function to create a holding
2464           directory.
2465         * server-src/holding.h (mkholdingdir): Prototype.
2466         * server-src/driver.c: Use mkholdingdir;
2467         * server-src/chunker.c: Call mkholdingdir before opening a file for
2468           writing.
2469
2470 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2471         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2472
2473         * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
2474
2475 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2476         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2477
2478         * server-src/amstatus.pl.in: If nothing is active, it now gives the
2479           status of the last run (amdump or amflush).
2480         * man/amstatus.8.in: Document it.
2481
2482 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2483
2484         * tape-src/output-file.c (check_online): Write error if opendir failed.
2485
2486 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2487         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2488
2489         * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
2490           of parsing the disklist file.
2491
2492 2003-05-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2493
2494         * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
2495           previous patch.
2496
2497 2003-05-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2498
2499         * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
2500
2501 2003-05-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2502
2503         * example/amanda.conf.in: Add more amrecover_changer doc.
2504         * man/amanda.8.in: Add more amrecover_changer doc.
2505         * man/amrecover.8.in: Add more amrecover_changer doc.
2506
2507 2003-05-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2508
2509         * server-src/tapefile.c (read_tapelist): Ignore blank line.
2510         * server-src/tapefile.c (parse_tapeline): Newer status parameter, set
2511           it to '1' when reading blank line.
2512
2513 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2514
2515         * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
2516           linux/ftape-vendors.h et linux/ftape.h.
2517
2518 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2519         Patch by Darin Dugan <dddugan@iastate.edu>
2520
2521         * server-src/amcheck.c: Change subject in email if no error.
2522
2523 2003-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2524
2525         * common-src/error.c (output_error_message): Always prepend program
2526           name.
2527
2528 2003-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2529
2530         * server-src/amstatus.pl.in: Fix for estimate disk.
2531
2532 2003-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2533
2534         * server-src/taper.c: Read holding file correctly if blocksize != 32k.
2535
2536 2003-04-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2537         New file by Robert C Dege <RDege@northropgrumman.com>
2538
2539         * configure.in: Find mcutil binary.
2540         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-mcutil.sh and
2541           example/chg-mcutil.conf.
2542         * changer-src/Makefile (libexec_SCRIPTS): Add chg-mcutil.
2543         * changer-src/chg-mcutil.sh.in: New file.
2544         * example/Makefile (EXTRA_DIST): Add chg-mcutil.conf
2545         * example/chg-mcutil.conf.in: New file.
2546
2547 2003-04-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2548
2549         * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
2550           configure option.
2551
2552 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2553
2554         * server-src/amverifyrun.sh.in: Run the amverify command.
2555
2556 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2557         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2558
2559         * server-src/reporter.c: Get the filenumber correct.
2560
2561 2003-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2562         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2563
2564         * server-src/reporter.c: Print a postscript label for each tape used.
2565
2566 2003-03-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2567
2568         * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
2569           define DEV_PREFIX and RDEV_PREFIX.
2570
2571 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2572
2573         * configure.in: Typo.
2574
2575 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2576         Patch by Gert Doering <gert@greenie.muc.de>
2577
2578         * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
2579
2580 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2581
2582         * configure.in: Compile on *-sco3.2v4*
2583
2584 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2585
2586         * configure.in: Use '=' instead of '=='.
2587
2588 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2589
2590         * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
2591           file: and tape: as driver, not host name.
2592
2593 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2594
2595         * server-src/amrmtape.sh.in: Print better output.
2596
2597 2003-03-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2598
2599         * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
2600
2601 2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2602
2603         * client-src/client_util.c (add_include): If include contain 2 '/' then
2604           use at asis, don't try to match it.
2605
2606 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2607
2608         * server-src/changer.h (changer_label): Return an int.
2609         * server-src/changer.h (changer_label): First parameter is char *.
2610
2611 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2612
2613         * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
2614         * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
2615         * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
2616         * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
2617           tapefd_getinfo_level): Return info of master_fd.
2618         * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
2619           master_fd.
2620         * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
2621
2622 2003-03-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2623
2624         * tape-src/output-file.c (file_tapefd_can_fork): New function that
2625           return 1 if the file: can be run under a forked process.
2626         * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
2627         * tape-src/output-null.c (null_tapefd_can_fork): New function that
2628           return 1 if the null: can be run under a forked process.
2629         * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
2630         * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
2631         * tapefd_can_fork() return 1.
2632         * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
2633           return 1 if the rait: can be run under a forked process.
2634         * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
2635         * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
2636           return 1 if the tape: can be run under a forked process.
2637         * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
2638         * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
2639           initialize vtable[];
2640         * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
2641           xxx_tapefd_can_fork function.
2642         * tape-src/tapeio.h (tapefd_can_fork): Prototype.
2643
2644 2003-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2645
2646         * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
2647           before opening the file for writing.
2648
2649 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2650
2651         * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
2652
2653 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2654
2655         * amplot/amplot.sh.in: New -b option for b/w postscript.
2656         * amplot/amplot.awk: Add 'color' to command if bw is set.
2657         * amplot/amplot.g: Change line 6 to line 8.
2658         * man/amplot.8: Document -b option.
2659
2660 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2661
2662         * recover-src/extract_list.c: Fix the name of the
2663           amidxtaped.<timestamp>.debug file.
2664
2665 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2666         Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
2667         
2668         * restore-src/amidxtaped.c: Use the device sent by the changer.
2669
2670 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2671
2672         * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
2673           all failure path.
2674
2675 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2676
2677         * server-src/changer.c: Sync with 2.4.4.
2678
2679 2003-02-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2680
2681         * client-src/client_util.c: Print error except ENOENT for
2682           exclude/include files.
2683
2684 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2685
2686         * tape-src/tapetype.c: Use %ld to print some variable.
2687
2688 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2689
2690         * server-src/conffile.c (init_defaults): conf_printer.s must be set
2691           with stralloc("").
2692
2693 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2694         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2695
2696         * tape-src/tapetype.c: Document -c option.
2697
2698 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2699
2700         * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
2701
2702 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2703
2704         * server-src/tapefile.c (read_tapelist): return 1 if can't open the
2705           tapelist file.
2706
2707 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2708
2709         * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
2710
2711 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2712
2713         * server-src/amcheck.c: New -a option.
2714         * man/amcheck.8.in: Document it.
2715
2716 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2717
2718         * server-src/amindexd.c (build_disk_table): Compare the level.
2719
2720 2003-02-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2721         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
2722
2723         * tape-src/tapetype.c: New -c argument to do only the compression test.
2724           Better detection of compression.
2725         * man/amtapetype.8.in: Document -c argument.
2726
2727 2003-02-09  John R. Jackson (jrj@purdue.edu)
2728
2729         * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
2730           This helps performance on some OS's.
2731
2732 2003-02-08  John R. Jackson (jrj@purdue.edu)
2733
2734         * restore-src/amrestore.c: Clean up strtol() argument processing.
2735
2736 2003-02-08  John R. Jackson (jrj@purdue.edu)
2737
2738         * docs/INSTALL: Clean up supporting package versions and URL's.
2739
2740 2003-02-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2741
2742         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
2743
2744 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2745         Patch by Christophe Kalt <kalt@taranis.org>
2746
2747         * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
2748         * client-src/sendsize.c: New re_size for NetApp.
2749
2750 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2751         Fix by Colin Henein <cmh@>
2752
2753         * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
2754
2755 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2756         Patch by Doug Kingston <dpk@randomnotes.org>
2757
2758         * configure.in (NEED_SETUID_CLIENT): Set to false on *-pc-cygwin.
2759         * configure.in (WANT_SETUID_CLIENT): Set if NEED_SETUID_CLIENT != false.
2760         * client-src/Makefile.am: Don't chmod u+s if WANT_SETUID_CLIENT.
2761
2762 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2763         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
2764
2765         * man/amtapetype.8.in: Fix example.
2766
2767 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2768
2769         * common-src/amanda.h: #define S_ISDIR if not already defined.
2770
2771 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2772         File from Doug Kingston <dpk@randomnotes.org>
2773
2774         * docs/HOWTO-CYGWIN.html: New file.
2775
2776 2003-01-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2777
2778         * configure.in: Define WANT_RUNTIME_PSEUDO_RELOC on cygwin
2779         * client-src/Makefile.am: AM_LDFLAGS="-Wl,-enable-runtime-pseudo-reloc"
2780           if WANT_RUNTIME_PSEUDO_RELOC.
2781         * recover-src/Makefile.am: Ditto.
2782
2783 2003-01-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2784
2785         * tape-src/output-rait.h: #define stralloc strdup
2786         * tape-src/output-rait.c: Revert patch of 2003-01-26, we don't have
2787           vstralloc in standalone.
2788
2789 2003-01-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2790         Reported by Doug Kingston <dpk@randomnotes.org>
2791
2792         * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
2793
2794 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2795
2796         * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
2797
2798 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2799
2800         * changer-src/chg-scsi-chio.c: Change strdup to stralloc.
2801         * changer-src/chg-scsi.c: Ditto.
2802         * changer-src/scsi-aix.c: Ditto.
2803         * changer-src/scsi-bsd.c: Ditto.
2804         * changer-src/scsi-cam.c: Ditto.
2805         * changer-src/scsi-changer-driver.c: Ditto.
2806         * changer-src/scsi-hpux_new.c: Ditto.
2807         * changer-src/scsi-irix.c: Ditto.
2808         * changer-src/scsi-linux.c: Ditto.
2809         * changer-src/scsi-solaris.c: Ditto.
2810         * changer-src/sense.c: Ditto.
2811         * tape-src/output-rait.c: Ditto.
2812
2813 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2814
2815         * server-src/taper.c (read_file): Don't count header in filesize.
2816
2817 2003-01-25  John R. Jackson (jrj@purdue.edu)
2818
2819         * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
2820           by indeterminate compiler order of evaluation.
2821
2822 2003-01-25  John R. Jackson (jrj@purdue.edu)
2823
2824         * restore-src/amidxtaped.c: Log errno when tape_stat fails.
2825         * restore-src/amrestore.c: Ditto.
2826         * tape-src/output-rait.c: Ditto.
2827
2828 2003-01-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2829
2830         * server-src/amstatus.pl.in: print an usage by tape.
2831
2832 2003-01-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2833
2834         * recover-src/extract_list.c (add_extract_item, delete_extract_item):
2835           Check also for level when comparing label.
2836
2837 2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2838
2839         Do not build chg-scsi-chio, it is buggy.
2840         * changer-src/Makefile.am (libexec_PROGRAMS): remove $(CHIO_SCSI).
2841         * changer-src/Makefile.am (EXTRA_PROGRAMS): add $(CHIO_SCSI).
2842
2843 2003-01-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2844
2845         * configure.in: disable amrestore if --without-server is set.
2846
2847 2003-01-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2848
2849         * client-src/amandad.c: Use the dbfd macro instead of the external
2850           variable db_fd.
2851         * client-src/selfcheck.c: Ditto.
2852         * client-src/sendbackup.c: Ditto.
2853         * client-src/sendsize.c: Ditto.
2854         * client-src/sendbackup-gnutar.c: Use save_errno instead of errno.
2855         * common-src/debug.c: Move most declaration inside #ifdef DEBUG_CODE.
2856         * server-src/amindexd.c: dup db_fd() to stderr.
2857         * server-src/conffile.c: Don't call error() if the config file does not
2858           exist, just write to stderr and set got_parserror.
2859
2860 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2861
2862         * recover-src/amrecover.c: Fix memory leak.
2863
2864 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2865
2866         Add new maxpromoteday option in a dumptype.
2867         * example/amanda.conf.in: Give an example
2868         * man/amanda.8.in: Document it.
2869         * server-src/amadmin.c: Print it in the disklist subcommand.
2870         * server-src/conffile.c: read it.
2871         * server-src/conffile.h (dumptype_t): Add maxpromoteday and
2872           s_maxpromoteday.
2873         * server-src/diskfile.c (read_diskline): Copy maxpromoteday from
2874           dumptype_t to disk_t.
2875         * server-src/diskfile.h (disk_t):  Add maxpromoteday.
2876         * server-src/planner.c (promote_highest_priority_incr): Don't promote
2877           a disk if est(dp)->next_level0 > dp->maxpromoteday.
2878
2879 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2880         Reported by Josh More <jmore@remote-print.com>
2881
2882         * client-src/client_util.c (add_exclude, add_include): Remove the
2883           need for MAXPATHLEN.
2884
2885 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2886         Fix by Josh More <jmore@remote-print.com>
2887
2888         * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
2889
2890 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2891         Undo patch of 2002-11-27. That doesn't work well for the planner.
2892
2893         * common-src/amanda.h (days_diff): Revert to old macro.
2894         * server-src/amadmin.c: Undo Fix for newer days_diff.
2895         * server-src/planner.c: Undo Fix for newer days_diff.
2896
2897 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2898
2899         * client-src/client_util.c: Fix memory leak reported by valgrind.
2900         * client-src/selfcheck.c: Ditto.
2901         * client-src/sendbackup.c: Ditto.
2902         * client-src/sendsize.c: Ditto.
2903         * common-src/amfeatures.c: Ditto.
2904         * common-src/debug.c: Ditto.
2905         * recover-src/amrecover.c: Ditto.
2906         * recover-src/extract_list.c: Ditto.
2907         * recover-src/set_commands.c: Ditto.
2908         * recover-src/uparse.y: Ditto.
2909         * recover-src/uscan.l: Ditto.
2910         * server-src/amindexd.c: Ditto.
2911         * server-src/amlabel.c: Ditto.
2912         * server-src/amtape.c: Ditto.
2913         * server-src/amtrmidx.c: Ditto.
2914         * server-src/amtrmlog.c: Ditto.
2915         * server-src/changer.c: Ditto.
2916         * server-src/conffile.c: Ditto.
2917         * server-src/driver.c: Ditto.
2918         * server-src/driverio.c: Ditto.
2919         * server-src/dumper.c: Ditto.
2920         * server-src/find.c: Ditto.
2921         * server-src/holding.c: Ditto.
2922         * server-src/logfile.c: Ditto.
2923         * server-src/planner.c: Ditto.
2924         * server-src/reporter.c: Ditto.
2925         * server-src/tapefile.c: Ditto.
2926         * server-src/taper.c: Ditto.
2927
2928 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2929
2930         * amplot/amplot.awk: Many fix.
2931
2932 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2933
2934         * server-src/planner.c (promote_highest_priority_incremental): Promote
2935           a disk > balanced size if no full today. Do not promote a disk it's
2936           the only disk due that day and no full today.
2937
2938 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2939         Patch by Brad Roberts <braddr@puremagic.com>
2940
2941         * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
2942         * server-src/holding.c (get_flush): Ditto.
2943
2944 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2945
2946         * server-src/conffile.c: New taperalgo configuration keyword.
2947         * server-src/conffile.h: Ditto.
2948         * man/amanda.8.in: Document it.
2949         * server-src/driver.c (startaflush): New function to start a flush to
2950           tape.
2951
2952 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2953
2954         * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
2955
2956 2002-12-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2957
2958         * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
2959
2960 2002-12-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2961
2962         Don't use the G flag for samba backup restore by tar.
2963         * recover-src/extract_list.c (enum dumptypes): Add IS_SAMBA_TAR.
2964         * recover-src/extract_list.c (extract_files_child): Set dumptype to
2965           IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
2966           if it's IS_SAMBA_TAR.
2967
2968 2002-12-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2969
2970         * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
2971
2972 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2973
2974         * server-src/planner.c (promote_highest_priority_incremental): Newer
2975           algorithm that reduce the number of level 0 by hosts on a single day.
2976
2977 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2978
2979         * amplot/amplot.awk: Parse newer log lines.
2980
2981 2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca> 
2982         * server-src/reporter.c (output_stats): Typo.
2983
2984 2002-12-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2985
2986         * server-src/reporter.c: Print an usage by tape.
2987
2988 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2989
2990         * tape-src/tapeio.c (do_read): Init count to 0.
2991
2992 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2993
2994         * tape-src/Makefile.am: Install tapetype program as amtapetype.
2995         * docs/TAPETYPES: Change for amtapetype.
2996         * man/amtapetype.8.in: New man page
2997         * man/Makefile.am: Install it.
2998         * configure.in (AC_CONFIG_FILES): Add man/amtapetype.8.
2999
3000 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3001
3002         * tape-src/ammt.c (optind): Add prototype.
3003         * tape-src/amdd.c (optind): Add prototype.
3004
3005 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3006
3007         * common-src/arglist.h (printf_arglist_function,
3008           printf_arglist_function1, printf_arglist_function2): Define if
3009           STDC_HEADERS is not defined.
3010
3011 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3012
3013         * server-src/amstatus.pl.in: New --date option to display datestamp.
3014         * server-src/amstatus.pl.in: Increase some field size.
3015         * server-src/amstatus.pl.in: The host field adjust it's length to the
3016          largest.
3017
3018 2002-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3019
3020         * common-src/amanda.h (days_diff): Don't add a half day.
3021         * server-src/amadmin.c: Fix for newer days_diff.
3022         * server-src/planner.c: Fix for newer days_diff.
3023
3024 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3025
3026         * client-src/amandad.c: Fix compiler warning.
3027         * common-src/Makefile.am (bsdsecurity): Link with file.o.
3028         * common-src/bsd-security.c: Fix compiler warning.
3029         * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
3030           Add function if TEST.
3031         * server-src/chunker.c: Fix compiler warning.
3032         * server-src/dumper.c: Fix compiler warning.
3033
3034 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3035
3036         * tape-src/tapetype.c: Cast time_t to long for printing.
3037
3038 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3039
3040         * server-src/amflush.c: Write a "amflush: start at ???" line.
3041         * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
3042
3043 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3044
3045         * server-src/planner.c (delay_dumps): Use snprintf.
3046
3047 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3048
3049         * common-src/debug.c: Most of the code must in #ifdef DEBUG_CODE.
3050         * client-src/client_util.c: Use AMANDA_TMPDIR instead of AMANDA_DBGDIR.
3051
3052 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3053
3054         * docs/TAPE.CHANGERS: Sync with 2.4.3.
3055
3056 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3057
3058         * server-src/amadmin.c: Cleanup.
3059
3060 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3061
3062         * man/amadmin.8.in: Document new --days option of balance subcommand.
3063
3064 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3065
3066         * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
3067         * server-src/amadmin.c (balance): Improve output.
3068
3069 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3070
3071         * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
3072
3073 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3074
3075         * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
3076
3077 2002-11-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3078
3079         * server-src/reporter.c: Fix for LPRCMD not defined.
3080
3081 2002-11-14  Marc Mengel <mengel@fnal.gov>
3082
3083         New changer scripts for use with rait: code, run several other
3084         changers in tandem and return a rait: tape device.  Makes fake
3085         amanda.conf files under AMANDA_DEBUGDIR for each changer used,
3086         then cleans up.
3087
3088         * changer-src/chg-rait.sh.in:   New file. Multi-changer script.
3089         * changer-src/chg-null.sh.in:   New File. Null-device changer script.
3090         * docs/TAPE.CHANGERS:  Descriptions of above.
3091         * configure.in: added above files.
3092         * changer-src/Makefile.am: Likewise.
3093
3094 2002-11-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3095         Patch by Orion Poplawski <orion@colorado-research.com>
3096
3097         * server-src/planner.c (delay_dumps): Add the estimate size to all call
3098           of delay_one_dump.
3099
3100 2002-11-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3101
3102         * server-src/reporter.c: Increase width of some field.
3103
3104 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3105
3106         * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
3107
3108 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3109
3110         * recover-src/extract_list.c (delete_file): j is int.
3111         * changer-src/scsi-defs.h (B, B1): Check if already defined.
3112         * server-src/taper.c: Some cast to int.
3113         * tape-src/amdd.c (read_func, write_func): Complete prototype.
3114         * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
3115           third argument is size_t.
3116         * tape-src/tapeio.c: Ditto.
3117         * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
3118           ssize_t, third argument is size_t.
3119         * tape-src/output-file.c: Ditto.
3120         * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
3121           ssize_t, third argument is size_t.
3122         * tape-src/output-null.c: Ditto.
3123         * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
3124           third argument is size_t.
3125         * tape-src/output-rait.c: Ditto.
3126         * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
3127           ssize_t, third argument is size_t.
3128         * tape-src/output-tape.c: Ditto.
3129
3130 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3131
3132         * configure.in: socklen_t default to int.
3133         * common-src/dgram.c (dgram_recv): addrlen is socklen_t.
3134         * common-src/stream.c (stream_server): len is socklen_t.
3135         * recover-src/extract_list.c (add_file): j is int.
3136
3137 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3138
3139         * client-src/client_util.c (test_name_len) Remove variable.
3140         * common-src/match.c (len_prefix): Change type to int.
3141         * server-src/taper.c: Use %p to print pointer.
3142         * tape-src/amdd.c (read_func, write_func):Change return type to ssize_t.
3143         * tape-src/amdd.c (debug): Renamed to debug_amdd.
3144         * tape-src/ammt.c (debug): Renamed to debug_ammt.
3145
3146 2002-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3147
3148         * restore-src/amidxtaped.c: Fix restore from file.
3149
3150 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3151
3152         * restore-src/amidxtaped.c: Fix newline in string literal.
3153
3154 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3155
3156         * server-src/conffile.c (maxdumpsize): New option.
3157         * server-src/conffile.h: Ditto.
3158         * server-src/planner.c: Use maxdumpsize if set.
3159         * example/amanda.conf.in: Document it.
3160         * man/amanda.8.in: Document it.
3161
3162 2002-11-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3163
3164         * common-src/amfeatures.h (fe_amidxtaped_fsf, fe_amidxtaped_label,
3165           fe_amidxtaped_device, fe_amidxtaped_host, fe_amidxtaped_disk,
3166           fe_amidxtaped_datestamp, fe_amidxtaped_header, fe_amidxtaped_nargs,
3167           fe_amidxtaped_config): New features.
3168         * common-src/amfeatures.c (am_init_feature_set): Set new features.
3169         * recover-src/extract_list.c: Send new protocol data to amidxtaped.
3170         * restore-src/Makefile.am: amidxtaped.c need libamserver.
3171         * restore-src/amidxtaped.c: Read new protocol data from amrecover.
3172         * restore-src/amidxtaped.c: Use new configuration options.
3173         * server-src/conffile.c (conf_amrecover_do_fsf,
3174           conf_amrecover_check_label, conf_amrecover_changer): New config.
3175         * server-src/conffile.h: New config options.
3176         * example/amanda.conf.in: Document them.
3177         * man/amanda.8.in: Document them.
3178
3179 2002-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3180
3181         * autogen: touch config/config.h.in
3182         * configure.in: Patch from autoupdate-2.53 and LIBOBJS.
3183         * common-src/Makefile.am: Build versuff.o before version.o
3184         * recover-src/Makefile.am: Remove work around for automake-1.2
3185
3186 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3187
3188         * configure.in: Remove --disable-libtool.
3189         * */Makefile.am: Remove WANT_LIBTOOL.
3190
3191 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3192
3193         * changer-src/chg-scsi.c (config_name, config_dir): Remove declaration.
3194         * server-src/amadmin.c: Ditto.
3195         * server-src/amcheck.c: Ditto.
3196         * server-src/amcleanupdisk.c: Ditto.
3197         * server-src/amflush.c: Ditto.
3198         * server-src/amindexd.c: Ditto.
3199         * server-src/amlabel.c: Ditto.
3200         * server-src/amlogroll.c: Ditto.
3201         * server-src/amtape.c: Ditto.
3202         * server-src/amtrmidx.c: Ditto.
3203         * server-src/amtrmlog.c: Ditto.
3204         * server-src/chunker.c: Ditto.
3205         * server-src/diskfile.c: Ditto.
3206         * server-src/driver.c: Ditto.
3207         * server-src/dumper.c: Ditto.
3208         * server-src/getconf.c: Ditto.
3209         * server-src/planner.c: Ditto.
3210         * server-src/reporter.c: Ditto.
3211         * server-src/taper.c: Ditto.
3212         * server-src/conffile.c (config_name, config_dir): Add declaration.
3213
3214 2002-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3215
3216         * man/amrestore.8: Amrestore doesn't use a changer.
3217
3218 2002-11-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3219
3220         * configure.in (SHELL): Don't set it, libtool do it.
3221
3222 2002-10-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3223
3224         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
3225
3226 2002-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3227
3228         * restore-src/amrestore.c: New '-l <label>' flag, Do a rewind and
3229           check the label before restoring.
3230         * man/amrestore.8: Document -l flag.
3231
3232 2002-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3233
3234         * configure.in (AM_HAVE_MT_FLAGS, AM_HAVE_MT_FILENO, AM_HAVE_MT_BLKNO,
3235           AM_HAVE_MT_DSREG,AM_HAVE_MT_ERREG): Rename to HAVE_MT_FLAGS,
3236           HAVE_MT_FILENO, HAVE_MT_BLKNO, HAVE_MT_DSREG and HAVE_MT_ERREG.
3237         * tape-src/output-tape.c: Ditto.
3238
3239 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3240         Undo patch of 2002-10-24. They are needed by amrecover.
3241
3242         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
3243           is_local_fstype): Add Prototype.
3244         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
3245           is_local_fstype): remove Prototype.
3246
3247 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3248         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
3249
3250         * tape-src/tapetype.c: Detects and warns the user if the tape drive
3251           has hardware compression enabled.
3252
3253 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3254
3255         * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
3256           'fsf <fileno>' if -f is set.
3257         * man/amrestore.8: Document -f flag.
3258         
3259 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3260
3261         * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD, 
3262           fe_amindexd_fileno_in_ORLD): New amfeatures.
3263         * common-src/amfeatures.c (am_init_feature_set): Set
3264           fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
3265         * recover-src/amrecover.h (struct DIR_ITEM): Add fileno.
3266         * recover-src/display_commands.c (add_dir_list_item): Set fileno
3267           in struct DIR_ITEM.
3268         * recover-src/display_commands.c (suck_dir_list_from_server): Read
3269           fileno if fe_amindexd_fileno_in_OLSD is set.
3270         * recover-src/extract_list.c (struct EXTRACT_LIST): Add fileno.
3271         * recover-src/extract_list.c (add_file): Read fileno if
3272           fe_amindexd_fileno_in_ORLD is set.
3273         * recover-src/extract_list.c (delete_file): Read fileno if
3274           fe_amindexd_fileno_in_ORLD is set.
3275         * server-src/amindexd.c (opaque_ls): Write fileno if
3276           fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
3277
3278 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3279         patch by Doug Kingston <dpk@pobox.com>
3280
3281         * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
3282           DONT_SUID_ROOT): Defined if on *-pc-cygwin.
3283         * client-src/Makefile.am: Fix for cygwin.
3284         * client-src/getfsent.c: Don't use fstab if IGNORE_FSTAB.
3285         * client-src/killpgrp.c: Don't suid(0) if DONT_SUID_ROOT.
3286         * client-src/rundump.c: Don't suid(0) if DONT_SUID_ROOT.
3287         * client-src/runtar.c: Don't suid(0) if DONT_SUID_ROOT.
3288         * client-src/selfcheck.c (check_suid): Don't check uid if
3289           IGNORE_UID_CHECK.
3290         * common-src/alloc.c (safe_env): Add PATH to ENV if NEED_PATH_ENV.
3291         * recover-src/amrecover.c: Don't check uid if IGNORE_UID_CHECK.
3292
3293 2002-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3294
3295         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
3296           is_local_fstype): Remove Prototype.
3297         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
3298           is_local_fstype): Add Prototype.
3299
3300 2002-10-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3301
3302         * server-src/amindexd.c: New FEATURES command that read the features
3303           set from the client and reply the features set of the server.
3304         * recover-src/amrecover.h: include "amfeatures.h"
3305         * recover-src/amrecover.c: Send the FEATURES command to the server
3306           and read it's features set.
3307
3308 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3309
3310         * client-src/Makefile.am: Work around for CYGWIN.
3311         * server-src/Makefile.am: Ditto.
3312
3313 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3314
3315         * configure.in: Remove empty command from $program_transform_name.
3316
3317 2002-10-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3318
3319         * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
3320
3321 2002-09-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3322
3323         * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
3324
3325 2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3326
3327         * server-src/amverifyrun.sh.in: New program.
3328         * man/amverifyrun.8.in: Man page for amverifyrun.
3329         * configure.in (AC_OUTPUT): add man/amverifyrun.8 and
3330           server-src/amverifyrun.sh.
3331         * man/Makefile.am (SERVER_MAN_PAGES): Add amverifyrun.8.
3332         * man/amanda.8.in: Add amdd, ammt and amverifyrun in SEE ALSO.
3333         * man/amverify.8.in: Add amverifyrun(8) in SEE ALSO.
3334         * server-src/Makefile.am (sbin_SCRIPTS): Add amverifyrun.
3335
3336 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3337
3338         * server-src/amverify.sh.in: Accept runtapes as a third argument.
3339         * man/amverify.8.in: Document it.
3340
3341 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3342
3343         * config/missing: Updated from automake-1.5.
3344
3345 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3346
3347         * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
3348         * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
3349
3350 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3351
3352         * client-src/sendsize.c (getsize_dump): Print the fstype.
3353         * client-src/sendbackup-dump.c (start_backup): Print the fstype.
3354
3355 2002-09-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3356         Patch by  Florian Hars <hars@bik-gmbh.de>
3357
3358         * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
3359
3360 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3361
3362         * recover-src/extract_list.c (extract_files): print tape drive
3363           and host before asking to load tape.
3364
3365 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3366
3367         * server-src/taper.c (read_file): Initialize file, 
3368           stat(file.cont_filename) before opening it.
3369           
3370 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3371
3372         * server-src/amverify.sh.in: Don't check that the device is
3373           a character device, it could be a file: or rait:
3374
3375 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3376
3377         * common-src/amfeatures.c (am_set_default_feature_set):
3378           fe_rep_options_sendbackup_options is a default feature.
3379
3380 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3381
3382         * server-src/amstatus.pl.in: Sort a disk in datestamp order.
3383
3384 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3385         Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
3386
3387         * docs/EXCLUDE: Improve documentation.
3388
3389 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3390
3391         * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
3392
3393 2002-08-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3394         Patch by Jason Brooks <jason0@mail.wrs.com>
3395
3396         * docs/chg-scsi.notes: New document.
3397         * changer-src/chg-scsi.c: Adding printout of "emubarcode" values 
3398           in the debug file.
3399         * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to 
3400           ChangerIO[].
3401         * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
3402
3403 2002-08-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3404
3405         * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
3406           "/dev/null" instead of filename.
3407
3408 2002-08-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3409
3410         * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
3411         * changer-src/chg-scsi-chio.c: Ditto.
3412         * changer-src/chg-scsi.c: Ditto.
3413         * changer-src/scsi-aix.c: Ditto.
3414         * changer-src/scsi-bsd.c: Ditto.
3415         * changer-src/scsi-cam.c: Ditto.
3416         * changer-src/scsi-changer-driver.c: Ditto.
3417         * changer-src/scsi-defs.h: Ditto.
3418         * changer-src/scsi-hpux_new.c: Ditto.
3419         * changer-src/scsi-irix.c: Ditto.
3420         * changer-src/scsi-linux.c: Ditto.
3421         * changer-src/scsi-solaris.c: Ditto.
3422         * tape-src/tapeio.c: Ditto.
3423
3424 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3425
3426         * recover-src/uparse.y: Fix compiler warning.
3427
3428 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3429
3430         * server-src/amtrmidx.c: Continue if a directory doesn't exist.
3431
3432 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3433
3434         * man/amanda.8.in (tapecycle): Improve documentation.
3435
3436 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3437
3438         * server-src/amstatus.pl.in: Works with features.
3439
3440 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3441
3442         * common-src/amfeatures.c (am_feature_to_string): Return the string
3443           "UNKNOWNFEATURE" if no features.
3444         * common-src/amfeatures.c (am_string_to_feature): Return NULL if the
3445           string is "UNKNOWNFEATURE".
3446
3447 2002-08-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3448
3449         * common-src/file.c (debug_agets): line_free was badly set when
3450         the buffer size in increased.
3451
3452 2002-07-19  John R. Jackson (jrj@purdue.edu)
3453
3454         * common-src/amanda.h: Fix bad #define.
3455
3456 2002-07-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3457         Patch by
3458           David Munro <D.Munro@surrey.ac.uk>
3459
3460         * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
3461           
3462 2002-06-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3463         Bug reported by 
3464           Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
3465
3466         * server-src/reporter.c: Fix psfname filename.
3467
3468 2002-05-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3469
3470         * client-src/sendbackup.c: Don't do compression if it is server side.
3471         * client-src/sendbackup-dump.c: Ditto.
3472         * client-src/sendbackup-gnutar.c: Ditto.
3473
3474 2002-05-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3475         Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
3476
3477         * server-src/taper.c (detach_buffers): Fix compilation with mmap.
3478
3479 2002-04-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3480
3481         * recover-src/extract_list.c (extract_files): Set dump_device_name
3482           after the call of okay_to_continue.
3483
3484 2002-04-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3485
3486         New features to describe the OPTIONS line of a REP packet.
3487         * common-src/amfeatures.h: Add fetures fe_rep_options_maxdumps,
3488           fe_rep_options_hostname, fe_rep_options_features and
3489           fe_rep_options_sendbackup_options.
3490         * common-src/amfeatures.c (am_init_feature_set): Add
3491           fe_rep_options_features.
3492         * client-src/selfcheck.c: Write REP packet according to server features.        * client-src/sendbackup.c: Ditto.
3493         * client-src/sendsize.c: Ditto.
3494
3495 2002-04-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3496
3497         * common-src/amfeatures.h:
3498              Rename fe_g_options_maxdump  to fe_req_options_maxdumps
3499              Rename fe_g_options_hostname to fe_req_options_hostname
3500              Rename fe_g_options_features to fe_req_options_features
3501         * common-src/amfeatures.c: Ditto
3502         * server-src/amcheck.c: Ditto
3503         * server-src/dumper.c: Ditto
3504         * server-src/planner.c: Ditto
3505
3506 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3507
3508         * server-src/amcheck.c: Check if it can send features, hostname or
3509           maxdumps on the global options line. Don't send hostname and
3510           maxdumps for a noop service.
3511         * server-src/dumper.c: Ditto.
3512         * server-src/planner.c: Ditto.
3513
3514 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3515
3516         * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
3517           srvcomp-fast options.
3518
3519 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3520
3521         * server-src/amcheck.c (start_host): Check the todo bit before 
3522           sending noop REQ.
3523
3524 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3525
3526         * client-src/client_util.c (parse_options, parse_g_options): Check
3527           for duplication options.
3528         * client-src/client_util.h (COMPR_SERVER_FAST, COMPR_SERVER_BEST):
3529           Declare.
3530         * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
3531
3532 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3533
3534         * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
3535         * client-src/sendbackup.c: Ditto.
3536         * client-src/sendsize.c: Ditto.
3537
3538 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3539
3540         * client-src/client_util.c (parse_g_options) New function to parse
3541           the global options string.
3542         * client-src/client_util.h (parse_g_options): Prototype.
3543         * client-src/selfcheck.c: use parse_g_options.
3544         * client-src/sendbackup.c: use parse_g_options.
3545         * client-src/sendsize.c: use parse_g_options.
3546
3547 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3548
3549         * server-src/diskfile.c: Improve message for missing features.
3550
3551 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3552
3553         Add many features.
3554         * common-src/amfeatures.c (am_set_default_feature_set): New function 
3555           to set the default features set.
3556         * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
3557         * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to 
3558           fe_options_auth.
3559         * client-src/client_util.c: Check features.
3560         * server-src/amcheck.c: Ditto.
3561         * server-src/diskfile.c: Ditto.
3562         * server-src/driverio.c: Ditto.
3563         * server-src/planner.c: Ditto.
3564         * server-src/diskfile.h (optionstr): Change prototype.
3565         * client-src/sendsize.c: Fix compiler warning.
3566
3567 2002-04-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3568
3569         * common-src/amfeatures.c: Include "amfeatures.h"
3570         * common-src/rsh-security.c: Don't assert on undefined variable.
3571
3572 2002-04-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3573
3574         * common-src/amfeatures.c: Renamed from features.c
3575         * common-src/amfeatures.h: Renamed from features.h
3576         * common-src/Makefile.am: Rename features to amfeatures.
3577         * client-src/amandad.c: Ditto.
3578         * client-src/client_util.h: Ditto.
3579         * client-src/selfcheck.c: Ditto.
3580         * client-src/sendbackup.c: Ditto.
3581         * client-src/sendsize.c: Ditto.
3582         * server-src/amcheck.c: Ditto.
3583         * server-src/chunker.h: Ditto.
3584         * server-src/diskfile.h: Ditto.
3585         * server-src/dumper.c: Ditto.
3586         * server-src/planner.c: Ditto.
3587         * server-src/taper.c: Ditto.
3588
3589 2002-04-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3590
3591         * server-src/conffile.c: Default dumporder set to "ttt".
3592         * server-src/driver.c: If dumporder is too short, use t and T.
3593         * man/amanda.8.in: Default dumporder set to "ttt".
3594
3595 2002-04-13  John R. Jackson (jrj@purdue.edu)
3596
3597         * common-src/features.c: Add amanda_feature_auth_keyword feature so
3598           authorization in the OPTIONS string is backward compatible.
3599         * common-src/features.h: Ditto.
3600         * client-src/client_util.c: Ditto.
3601         * client-src/client_util.h: Ditto.
3602         * client-src/selfcheck.c: Ditto.
3603         * client-src/sendbackup.c: Ditto.
3604         * client-src/sendsize.c: Ditto.
3605         * server-src/diskfile.c: Ditto.
3606         * server-src/planner.c: Fix compiler warning.
3607
3608 2002-04-13  John R. Jackson (jrj@purdue.edu)
3609
3610         * server-src/diskfile.c: Fix memory leak.
3611
3612 2002-04-13  John R. Jackson (jrj@purdue.edu)
3613
3614         * server-src/amcheck.c: Fix error parsing in packet.
3615
3616 2002-04-13  John R. Jackson (jrj@purdue.edu)
3617
3618         * common-src/features.c: New file.  Add support for feature sets so
3619           different Amanda versions can work together.
3620         * common-src/features.h: Ditto.
3621         * common-src/Makefile.am: Ditto.  Add "features" test program.
3622         * client-src/amandad.c: Add "noop" service to return the feature set.
3623         * client-src/selfcheck.c: Accept and return a feature set in OPTIONS.
3624           Improve parsing.
3625         * client-src/sendbackup.c: Ditto.
3626         * client-src/sendsize.c: Ditto.
3627         * common-src/bsd-security.c: Minor message change.
3628         * common-src/error.c: Use strcasecmp.
3629         * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
3630           messages.
3631         * restore-src/amidxtaped.c: Improve parsing.
3632         * server-src/amcheck.c: Ask for client features via "noop" before
3633           doing the real "selfcheck" service requests.  Improve parsing.
3634         * server-src/amflush.c: Minor coding format cleanup.
3635         * restore-src/amindexd.c: Improve parsing.
3636         * server-src/chunker.c: Deal with features string in commands.  Improve
3637           parsing.
3638         * server-src/diskfile.c: Initialize the features hosttype field.
3639         * server-src/diskfile.h: Add the features hosttype field.
3640         * server-src/driver.c: Save the features from the schedule.  Clean
3641           up some error messages.
3642         * server-src/driverio.c: Add features string to several commands.
3643         * server-src/dumper.c: Deal with features string in commands.  Improve
3644           parsing.
3645         * server-src/planner.c: Ask for client features via "noop" before
3646           doing the real "sendsize" service requests.  Improve parsing.
3647         * server-src/server_util.c: Minor coding cleanup.
3648         * server-src/server_util.h: Increase the number of args allowed on
3649           commands.
3650         * server-src/taper.c: Deal with features string in commands.  Improve
3651           parsing.
3652
3653 2002-04-12  John R. Jackson (jrj@purdue.edu)
3654
3655         * server-src/driver.c: Fix crash when only processing a tape queue
3656           (e.g. amflush).
3657
3658 2002-04-11  John R. Jackson (jrj@purdue.edu)
3659
3660         * server-src/driver.c: Protect against crash when taper has died.
3661
3662 2002-04-11  John R. Jackson (jrj@purdue.edu)
3663
3664         * common-src/stream.c: Clean up an error message.
3665
3666 2002-04-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3667
3668         * docs/DUMPER-API: Remove the section about USER and GROUP.
3669
3670 2002-04-09  John R. Jackson (jrj@purdue.edu)
3671
3672         * server-src/driver.c: Fix send of QUIT to taper when it is down.
3673
3674 2002-04-07  John R. Jackson (jrj@purdue.edu)
3675
3676         * server-src/dumper.c: Change sendbackup response parsing to handle
3677           2.4 changes.  Improve packet parse error processing.  Make packet
3678           logging conditional on an #ifdef instead of commented out.
3679
3680 2002-04-07  John R. Jackson (jrj@purdue.edu)
3681
3682         * client-src/amandad.c: Fix FORCE_USERID to run the service as the
3683           client user if amandad was started as root.
3684
3685 2002-04-07  John R. Jackson (jrj@purdue.edu)
3686
3687         * common-src/clock.c: Move definition of amanda_gettimeofday() macro
3688           to the header file so it could be used other places.  Use new
3689           amanda_timezone macro to avoid some #ifdef's.
3690         * common-src/clock.h: Ditto.
3691         * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
3692           servers trying to talk to 2.5 clients.  The HANDLE value was not
3693           being properly handled, and the sequence number was being ignored.
3694
3695 2002-04-07  John R. Jackson (jrj@purdue.edu)
3696
3697         * server-src/reporter.c: Move column routines to conffile.c so amcheck
3698           can use them in its tests.  Do not abort on several failures, but
3699           generate messages in the FAILURE AND STRANGE DUMP SUMMARY section.
3700         * server-src/conffile.c: Move column routines to here.
3701         * server-src/conffile.h: Ditto.
3702         * server-src/amcheck.c: Add several config file tests.
3703         * server-src/logfile.c: Change "reporter" to "amreport".
3704
3705 2002-04-07  John R. Jackson (jrj@purdue.edu)
3706
3707         * configure.in: Add /usr/local/sbin to LOCPATH.
3708
3709 2002-03-31  John R. Jackson (jrj@purdue.edu)
3710
3711         * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
3712
3713 2002-03-31  John R. Jackson (jrj@purdue.edu)
3714
3715         * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
3716         * changer-src/scsi-solaris.c: Ditto.
3717
3718 2002-03-31  John R. Jackson (jrj@purdue.edu)
3719
3720         * client-src/amandad.c: Fix arguments to pkt_cat.
3721         * common-src/bsd-security.c: Ditto.
3722
3723 2002-03-31  John R. Jackson (jrj@purdue.edu)
3724
3725         * client-src/amandad.c: Add relative timestamps to a lot of debug
3726           file messages, and add more messages, to better track what is
3727           going on.  Various general cleanup.
3728         * client-src/calcsize.c: Ditto.
3729         * client-src/client_util.c: Ditto.
3730         * client-src/selfcheck.c: Ditto.
3731         * client-src/sendbackup-dump.c: Ditto.
3732         * client-src/sendbackup-gnutar.c: Ditto.
3733         * client-src/sendbackup.c: Ditto.
3734         * client-src/sendbackup.h: Ditto.
3735         * client-src/sendsize.c: Ditto.
3736         * common-src/amanda.h: Ditto.
3737         * common-src/bsd-security.c: Ditto.
3738         * common-src/clock.c: Ditto.
3739         * common-src/clock.h: Ditto.
3740         * common-src/debug.c: Ditto.
3741         * common-src/dgram.c: Ditto.
3742         * common-src/error.c: Ditto.
3743         * common-src/file.c: Ditto.
3744         * common-src/pipespawn.c: Ditto.
3745         * common-src/stream.c: Ditto.
3746         * common-src/util.c: Ditto.
3747         * man/amanda.8.in: Ditto.
3748         * restore-src/amidxtaped.c: Ditto.
3749         * restore-src/amrestore.c: Ditto.
3750         * server-src/amindexd.c: Ditto.
3751         * server-src/getconf.c: Ditto.
3752         * server-src/planner.c: Ditto.
3753
3754 2002-03-31  John R. Jackson (jrj@purdue.edu)
3755
3756         * client-src/sendsize.c: Pay attention to the spindle number.
3757
3758 2002-03-30  John R. Jackson (jrj@purdue.edu)
3759
3760         * server-src/planner.c: General delay_dumps code cleanup.
3761
3762 2002-03-30  John R. Jackson (jrj@purdue.edu)
3763
3764         * server-src/planner.c: Make sure individual dumps larger than a tape
3765           are not added back into the schedule.  Found by Uncle George
3766           <gatgul@voicenet.com>.
3767
3768 2002-03-29  John R. Jackson (jrj@purdue.edu)
3769
3770         * man/amanda.8.in: Move "comment" in tapetype after inclusion of
3771           previous definition.  Found by Uncle George <gatgul@voicenet.com>.
3772
3773 2002-03-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3774
3775         * client-src/client_util.c (fixup_relative): New function to prepend
3776           the dirname if relative.
3777         * client-src/client_util.c (build_exclude, build_include): Use
3778           fixup_relative.
3779         * client-src/client_util.c (parse_options): Do not prepend the dirname.
3780         * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
3781           if optional is set.
3782
3783 2002-03-24  John R. Jackson (jrj@purdue.edu)
3784
3785         * common-src/debug.c: Change dbopen() message slightly to match what
3786           amdump generates, making it easier to parse.
3787
3788 2002-03-24  John R. Jackson (jrj@purdue.edu)
3789
3790         * common-src/Makefile.am: Move clock routines to common-src so
3791           everyone may use them.
3792         * server-src/Makefile.am: Ditto.
3793
3794 2002-03-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3795
3796         * client-src/sendbackup-gnutar.c: Fix use of no_record.
3797
3798 2002-03-24  John R. Jackson (jrj@purdue.edu)
3799
3800         * client-src/amandad.c: Make sure argv[0] is valid before using it.
3801         * restore-src/amidxtaped.c: Ditto.
3802         * server-src/amindexd.c: Ditto.
3803
3804 2002-03-24  John R. Jackson (jrj@purdue.edu)
3805
3806         * client-src/client_util.c: Use the Amanda memory allocation code.
3807         * client-src/sendbackup-gnutar.c: Ditto.
3808         * client-src/sendsize.c: Ditto.
3809         * common-src/match.c: Ditto.
3810         * recover-src/amrecover.c: Ditto.
3811         * recover-src/display_commands.c: Ditto.
3812         * recover-src/extract_list.c: Ditto.
3813         * restore-src/amidxtaped.c: Ditto.
3814         * server-src/amflush.c: Ditto.
3815         * server-src/disk_history.c: Ditto.
3816         * server-src/driver.c: Ditto.
3817         * server-src/dumper.c: Ditto.
3818         * common-src/amanda.h: Always pass the source file and line number
3819           to the memory routines to make it easier to debug.
3820         * common-src/alloc.c: Ditto.
3821         * common-src/file.c: Ditto.
3822
3823 2002-03-23  John R. Jackson (jrj@purdue.edu)
3824
3825         * changer-src/chg-scsi-chio.c: Use agets instead of fgets.
3826         * changer-src/chg-scsi.c: Use agets instead of fgets.
3827         * client-src/client_util.c: Use agets instead of fgets.
3828         * recover-src/amrecover.c: Clean up output on EOF.
3829         * recover-src/extract_list.c: Use agets instead of direct stdio.
3830           Clean up output on EOF.  Add '?' help.
3831         * recover-src/set_commands.c: Quote the new device in the verify
3832           output to make it stand out.
3833         * server-src/amflush.c: Clean up output on EOF.  Clean up output
3834           when multiple holding disk areas selected.  Clean up parsing.
3835           Loop until valid user response.
3836         * server-src/find.c: Do not complain if log file is missing for
3837           a new (datestamp == 0) tape.
3838         * server-src/holding.c: Use agets instead of fgets. Clean up
3839           interactive input and output.
3840
3841 2002-03-23  John R. Jackson (jrj@purdue.edu)
3842
3843         * client-src/selfcheck.c: Fix a compiler warning.
3844         * client-src/sendbackup.c: Ditto.
3845         * client-src/sendsize.c: Ditto.
3846
3847 2002-03-23  John R. Jackson (jrj@purdue.edu)
3848
3849         * client-src/getfsent.c (close_fstab()): Call endfsent() instead
3850           of fclose(), if available.
3851
3852 2002-03-23  John R. Jackson (jrj@purdue.edu)
3853
3854         * common-src/dbprintf (debug_printf): Make sure errno is preserved
3855           across dbprint() calls.
3856
3857 2002-03-23  John R. Jackson (jrj@purdue.edu)
3858
3859         * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
3860           --with-libraries to support shared libraries of support products.
3861
3862 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3863
3864         * server-src/chunker.c: Get result from dumper.
3865         * server-src/driver.c: Send dumper result to chunker.
3866         * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
3867         * server-src/driverio.h (chunker_t): New down field.
3868         * server-src/dumper.c: Cleanup.
3869         * server-src/logfile.c (logtype_str): Add "PARTIAL".
3870         * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
3871         * server-src/reporter.c: Handle PARTIAL log.
3872         * server-src/server_util.c (cmdstr): Add "PARTIAL".
3873         * server-src/server_util.h (cmd_t): Add PARTIAL command.
3874         * server-src/taper.c (read_file): Result is PARTIAL if dumper
3875           result is not DONE.
3876
3877 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3878
3879         * server-src/tapefile.c (write_tapelist): Write to a temp file and
3880           rename it.
3881         * server-src/amlabel.c: Do not rename the tapelist file.
3882         * server-src/taper.c (label_tape): Do not rename the tapelist file.
3883
3884 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3885
3886         * client-src/client_util.c (parse_options): Do not check if the
3887           exclude file exist, it's done later.
3888
3889 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3890
3891         * client-src/client_util.c (parse_options): Parse exclude-optional and
3892           include-optional.
3893         * client-src/client_util.h (option_t): New exclude_optional and
3894           include_optional field.
3895         * man/amanda.8.in: Document optional.
3896         * server-src/amadmin.c (disklist_one): Display optional.
3897         * server-src/conffile.c: Parse optional keyword.
3898         * server-src/conffile.h (dumptype_t): New exclude_optional and
3899           include_optional field.
3900         * server-src/diskfile.c (read_diskline): Copy optional bits.
3901         * server-src/diskfile.c (optionstr): Print optional bits.
3902         * server-src/diskfile.h (disk_t): New exclude_optional and
3903           include_optional field.
3904         * server-src/planner.c (getsize): Use new sendsize format if optional
3905           bits are used.
3906
3907 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3908
3909         * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
3910           taper failed.
3911
3912 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3913
3914         * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
3915
3916 2002-03-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3917         Patch from Michael Frankowski <mfrankow@winternet.com>
3918
3919         * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
3920
3921 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3922
3923         * client-src/client_util.c (init_options): New function.
3924         * client-src/client_util.h (init_options): Prototype.
3925         * client-src/sendsize.c (main): Use init_options.
3926
3927 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3928
3929         * client-src/client-util.c: Check for include and exclude files.
3930
3931 2002-03-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3932
3933         * server-src/amstatus.pl.in: Fix.
3934         * server-src/conffile.c(get-compress): Change message for bad 
3935           compress argument.
3936
3937 2002-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3938
3939         * server-src/amstatus.pl.in: Fix.
3940         * client-src/client_util.c (parse_options): Parse auth= option.
3941         * client-src/client_util.h (option_t): Add auth field.
3942         * client-src/sendbackup.c: Use auth instead of bsd-auth.
3943         * client-src/sendsize.c: Init auth.
3944
3945 2002-03-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3946
3947         * client-src/sendbackup-dump.c: use amdevice as argument to
3948           amname_to_fstype.
3949         * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
3950         * server-src/dumper.c: clear device if it is set to NODEVICE.
3951
3952 2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3953
3954         * server-src/amindexd.c: Compilation fix.
3955
3956 2002-03-07 John R. Jackson (jrj@purdue.edu)
3957
3958         * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
3959           Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
3960
3961 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3962
3963         * recover-src/amrecover.h (list_disk): Prototype.
3964         * recover-src/set_commands.c (list_disk): New function.
3965         * recover-src/uparse.y: parse LISTDISK.
3966         * recover-src/uscan.l: listdisk keyword.
3967         * recover-src/help.c: help for listdisk.
3968         * man/amrecover.8.in: Doc for listdisk.
3969         * server-src/amindexd.c: New LISTDISK command.
3970         * docs/INDEXING: Document LISTDISK command.
3971
3972 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3973
3974         * server-src/amstatus.pl.in: Better output for autoflush.
3975
3976 2002-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3977
3978         * server-src/amstatus.pl.in: Fix.
3979
3980 2002-03-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
3981
3982         * server-src/amadmin.c (disklist_one): Print dp->device.
3983         * server-src/amcheck.c (start_host): Send device if specified.
3984         * server-src/amstatus.pl.in: Parse line with device.
3985         * server-src/diskfile.c (parse_diskline): Parse device.
3986         * server-src/diskfile.c (match_disklist): Match on device.
3987         * server-src/diskfile.h (disk_t): New field device.
3988         * server-src/driverio.c: (dumper_cmd): Send device.
3989         * server-src/dumper.c (main): Parse device in request.
3990         * server-src/dumper.c (start_dump): New device argument, send
3991           device to client.
3992         * server-src/planner.c (getsize): Send device to client.
3993         * server-src/server_util.h (MAX_ARGS): Set it to 12.
3994         * client-src/client_util.c (add_include, build_exclude, build_include,
3995           parse_options): New device argument.
3996         * client-src/client_util.h (build_exclude,build_include,parse_options):
3997           New prototype.
3998         * client-src/selfcheck.c: Use device.
3999         * client-src/sendbackup-dump.c: Use device.
4000         * client-src/sendbackup-gnutar.c: Use device.
4001         * client-src/sendbackup.c: Use device.
4002         * client-src/sendbackup.h (start_backup): New device argument.
4003         * client-src/sendsize.c: Use device.
4004         * man/amanda.8.in: Document new disklist syntax.
4005         * example/disklist: Give example.
4006
4007 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4008
4009         * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
4010           is requested.
4011
4012 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4013
4014         * server-src/amstatus.pl.in: Fix for failed tape.
4015
4016 2002-02-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4017
4018         * man/amanda.8.in: Document multiple exclude.
4019         * man/amanda.8.in: Document include.
4020
4021 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4022
4023         * client-src/client-util.c (add_include): Include are glob expression.
4024
4025 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4026
4027         * common-src/debug.c (debug_open); Don't try to renmae an already 
4028           renamed file.
4029
4030 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4031
4032         * server-src/conffile.c (dump_configuration): Print multiple 
4033           exclude and include.
4034
4035 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4036
4037         * client-src/client_util.c (add_exclude, add_include): Typo.
4038
4039 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4040
4041         * client-src/client_util.c (build_include, build_exclude): Fix for 
4042           bad eof detection.
4043
4044 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4045
4046         * client-src/client_util.c (get_name): Create a file name.
4047         * client-src/client_util.c (build_name): Remove old files,
4048           build an unused file name.
4049         * client-src/client_util.c (add_exclude): Add an exclude pattern to
4050           the exclude file.
4051         * client-src/client_util.c (add_include): Add an include to the
4052           include file.
4053         * client-src/client_util.c (build_exclude): Concat all excludes in 
4054           one file.
4055         * client-src/client_util.c (build_include): Concat all includes in 
4056           one file.
4057         * client-src/client_util.h (build_exclude, build_include): Prototype.
4058         * client-src/selfcheck.c.diff (check_options): Call build_exclude 
4059           and build_include.
4060         * client-src/sendsize.c.diff: Call gtar with one 
4061           exclude file/include file.
4062         * client-src/sendbackup-gnutar.c.diff: Call gtar with one 
4063           exclude file/include file.
4064
4065 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4066
4067         * common-src/amanda.h (amfree): Change e local variable to e__errno.
4068         * common-src/amanda.h (strappend): Change t local variable to t_t_t.
4069
4070 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4071
4072         * client-src/sendsize.c: Set include_file and include_list to NULL
4073           when using old protocol.
4074         * client-src/sendbackup-gnutar.c: Include "." when using old protocol.
4075
4076 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4077
4078         * server-src/conffile.h (dumptype_t): Add include_file and include_list.
4079         * server-src/conffile.c: Read include.
4080         * server-src/diskfile.h (disk_t): Add include_file and include_list.
4081         * server-src/diskfile.c (optionstr): Add include to the optionstr.
4082         * server-src/amadmin.c (disklist_one): Print include.
4083         * server-src/planner.c: Use new protocol if include is used.
4084         * client-src/client_util.h (option_t): Add include_file and include_list
4085         * client-src/client_util.c (parse_options): Parse include.
4086         * client-src/selfcheck.c (check_options): Print ERROR if include are 
4087           used for SAMBA or DUMP.
4088         * client-src/sendsize.c: Send include to gnutar.
4089         * client-src/sendbackup-gnutar.c: Send include to gnutar.
4090
4091 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4092
4093         * client-src/client_util.c (parse_options): Check that files from
4094           'exclude list' exist'.
4095         * client-src/selfcheck.c (check_options): Give ERROR if multiple
4096           exclude are used with samba or if exclude are used with DUMP.
4097
4098 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4099
4100         * client-src/sendbackup.h: Remove bad stuff introduced in previous
4101           patch.
4102         * client-src/sendbackup-gnutar.c: Ditto.
4103
4104 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4105
4106         * client_src/client_util.c (parse_options): Function to parse 
4107           the option string. 
4108         * client_src/client_util.h (parse_options): Prototype.
4109         * client_src/client_util.h (option_t): Struct for options.
4110         * client_src/Makefile.am: Compile client_util.
4111         * client_src/selfcheck.c: Use new option_t and multiple exclude.
4112         * client_src/sendbackup.h: Use new option_t and multiple exclude.
4113         * client_src/sendbackup.c: Use new option_t and multiple exclude.
4114         * client_src/sendbackup-dump.c: Use new option_t and multiple exclude.
4115         * client_src/sendbackup-gnutar.c: Use new option_t and multiple exclude.
4116         * client_src/sendsize.c: Use new option_t and multiple exclude.
4117         * server-src/conffile.h: Use sl_t for exclude_file and exclude_list.
4118         * server-src/conffile.c: Multiple exclude.
4119         * server-src/diskfile.h: Use sl_t for exclude_file and exclude_list.
4120         * server-src/diskfile.c: Multiple exclude.
4121         * server-src/planner.c: Multiple exclude.
4122
4123 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4124
4125         * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
4126
4127 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4128
4129         * common-src/pipespawn.c (pipespawnv): New funtion taking an 
4130           argv argument.
4131         * common-src/pipespawn.h (pipespawnv): Prototype.
4132
4133 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4134
4135         * server-src/holding.h: Use sl_t instead of holding_t
4136         * server-src/holding.c: Ditto.
4137         * server-src/amcleanupdisk.c: Ditto.
4138         * server-src/amflush.c: Ditto.
4139         * server-src/find.c: Ditto.
4140         * server-src/planner.c: Ditto.
4141
4142 2002-02-11 John R. Jackson (jrj@purdue.edu)
4143
4144         * configure.in: AIX needs the "other" getconf argument to find out
4145           about large file support (XBS5_ILP32_OFFBIG instead of LFS).
4146
4147 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4148
4149         * common-src/sl.h: New header file
4150         * common-src/sl.c: New file for list of string struct.
4151         * common-src/Makefile.am: Compile sl.c
4152
4153 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4154
4155         * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
4156
4157 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4158
4159         * common-src/fileheader.c (build_header): Typo.
4160
4161 2002-02-10 John R. Jackson (jrj@purdue.edu)
4162
4163         * configure.in: Add new file-pad tapetype option to take the place
4164           of a positive/negative blocksize.  Blocksize may now only be
4165           positive.  File-pad defaults to "true" which pads the last tape
4166           record like it always has.
4167         * man/amanda.8.in: Ditto.
4168         * server-src/amlabel.c: Ditto.
4169         * server-src/conffile.c: Ditto.  Fix typo in conffile test program.
4170         * server-src/conffile.h: Ditto.
4171         * server-src/planner.c: Ditto.
4172         * server-src/taper.c: Ditto.
4173
4174 2002-02-10 John R. Jackson (jrj@purdue.edu)
4175
4176         * configure.in: Save the ./configure args and display them in the
4177           version string (e.g. amandad*debug and "amadmin xx version").
4178         * common-src/genversion.c: Ditto.
4179
4180 2002-02-10 John R. Jackson (jrj@purdue.edu)
4181
4182         * common-src/alloc.c: Fix type mismatch issues discovered by splint
4183           (www.splint.org).  Compliments of jens persson <jens@persson.cx>.
4184         * common-src/bsd-security.c: Ditto.
4185         * common-src/debug.c: Ditto.
4186         * common-src/dgram.c: Ditto.
4187         * common-src/file.c: Ditto.
4188         * common-src/fileheader.c: Ditto.
4189         * common-src/fileheader.h: Ditto.
4190         * common-src/genversion.c: Ditto.
4191         * common-src/getcwd.c: Ditto.
4192         * common-src/match.c: Ditto.
4193         * common-src/stream.c: Ditto.
4194         * common-src/strstr.c: Ditto.
4195         * common-src/token.c: Ditto.
4196         * recover-src/amrecover.c: Ditto.
4197         * recover-src/display_commands.c: Ditto.
4198         * recover-src/extract_list.c: Ditto.
4199         * recover-src/set_commands.c: Ditto.
4200         * server-src/reporter.c: Ditto.
4201
4202 2002-02-10 John R. Jackson (jrj@purdue.edu)
4203
4204         * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
4205         * docs/TAPE.CHANGERS: Cleanup.
4206
4207 2002-02-09 John R. Jackson (jrj@purdue.edu)
4208
4209         * common-src/arglist.h: Clean up gcc detection of printf style variable
4210           argument list functions.
4211         * changer-src/scsi-changer-driver.c: Ditto.
4212         * common-src/debug.c: Ditto.
4213         * common-src/dgram.c: Ditto.
4214         * common-src/error.c: Ditto.
4215         * common-src/packet.c: Ditto.
4216         * common-src/packet.h: Ditto.
4217         * common-src/security.c: Ditto.
4218         * common-src/snprintf.c: Ditto.
4219         * common-src/token.c: Ditto.
4220         * common-src/token.h: Ditto.
4221         * server-src/amindexd.c: Ditto.
4222         * server-src/conffile.c: Ditto.
4223         * server-src/diskfile.c: Ditto.
4224         * server-src/logfile.c: Ditto.
4225         * server-src/logfile.h: Ditto.
4226         * server-src/server_util.c: Ditto.
4227
4228 2002-02-09 John R. Jackson (jrj@purdue.edu)
4229
4230         * configure.in: Must look in both strings.h and string.h when trying
4231           to find function declarations (strncasecmp was not found on AIX
4232           but is really there and our override caused a mismatch error).
4233
4234 2002-02-09 John R. Jackson (jrj@purdue.edu)
4235
4236         * configure.in: Add code to test for a type defined in other than the
4237           autoconf expected locations.  Use it to look for socklen_t.
4238
4239 2002-02-08 John R. Jackson (jrj@purdue.edu)
4240
4241         * server-src/amadmin.c (check_dumpuser): Make it fatal to attempt to
4242           do an operation that would alter any files when run as someone other
4243           than the dump user from amanda.conf.  This should prevent files from
4244           ending up with incorrect ownership.
4245
4246 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4247
4248         * man/amrecover.8.in (settape): Document that the hostname is required
4249           if the protocol (tape:, file:, rait:, null:) is specified.
4250         * man/amrecover.8.in (settape): Document that it is posible to
4251           change the tape device when asked to load tape.
4252
4253 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4254
4255         * server-src/holding.c (scan_holdingdir): Create the list in 
4256           datestamp order.
4257
4258 2002-02-02 John R. Jackson (jrj@purdue.edu)
4259
4260         * configure.in: Add unistd.h to list of places to look for ruserok()
4261           declaration.  Reported by John Koenig <jfkoenig@vipb.com> on ALPHA
4262           running OSF1 v5.1
4263
4264 2002-02-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4265         Reported by Roland E. Lipovits <rel@lipo.at0.net>
4266
4267         * server-src/amstatus.pl.in: Don't double-counts the failed 
4268           estimate partitions.
4269
4270 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4271
4272         * configure.in: New --with-maxtapeblocksize with a default of 32.
4273         * common-src/amanda.h: MAX_TAPE_BLOCK_KB is defined in amanda.h
4274
4275 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4276
4277         * common-src/fileheader.c (build_header): Never write the
4278           BLOCKSIZE= line.
4279         * common-src/fileheader.c (parse_file_header): Do not parse the
4280           BLOCKSIZE= line.
4281
4282 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4283
4284         * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
4285           after the dd if=... line.
4286
4287 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4288
4289         * server-src/driver.c: Init code to 0.
4290
4291 2002-01-29 John R. Jackson (jrj@purdue.edu)
4292
4293         * tape-src/output-tape.c (tape_tapefd_fsf): Some systems cannot deal
4294           with large stack variables, so allocate tape I/O buffers dynamically.
4295         * tape-src/tapeio.c (tapefd_rdlabel): Ditto.
4296
4297 2002-01-25 John R. Jackson (jrj@purdue.edu)
4298
4299         * server-src/driver.c: Log non-zero exit codes and signals from all
4300           the dumpers and taper.
4301
4302 2002-01-25 John R. Jackson (jrj@purdue.edu)
4303
4304         * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
4305           functions.  Make sure they always report what they were trying to
4306           look up, and don't bother reporting errno (it would be h_errno).
4307
4308 2002-01-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4309
4310         * common-src/fileheader.h (dumpfile_t): Add blocksize field.
4311         * common-src/fileheader.h (build_header): Change prototype.
4312         * common-src/fileheader.c (fh_init): blocksize default to 
4313           DISK_BLOCK_BYTES.
4314         * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
4315         * common-src/fileheader.c (build_header): Remove blocksize parameter, 
4316           write the BLOCKSIZE= line.
4317         * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
4318         * restore-src/amrestore.c: Ditto.
4319         * server-src/dumper.c: Ditto.
4320         * server-src/taper.c: Ditto.
4321         * server-src/holding.c: Ditto.
4322         * server-src/chunker.c: Ditto.
4323
4324 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4325
4326         * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
4327           set ret to -1.
4328
4329 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4330
4331         * server-src/planner.c: Check for dp->todo.
4332
4333 2002-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4334         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
4335
4336         * changer-src/chg-scsi.c: Typo.
4337
4338 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4339
4340         * changer-src/Makefile.am: Run `perl -c' on perl script.
4341         * client-src/Makefile.am: Ditto.
4342         * dumper-src/Makefile.am: Ditto.
4343         * server-src/Makefile.am: Ditto.
4344
4345 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4346         Reported by Geert Uytterhoeven <geert@linux-m68k.org>
4347
4348         * README: Amanda compile on Linux/m68k.
4349
4350 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4351
4352         * changer-src/chg-rth.pl.in: Typo. fi -> }.
4353
4354 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4355         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
4356
4357         * changer-src/chg-chio.pl.in: Typo. fi -> }.
4358         * changer-src/chg-chio.pl.in (prefix, exec_prefix): Set correctly.
4359         * changer-src/chg-chio.pl.in (max_picker): Init to -1.
4360
4361 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4362
4363         * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
4364           at end of string.
4365
4366 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4367
4368         * server-src/amoverview.pl.in: Ignore some line from amadmin.
4369
4370 2002-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4371
4372         * common-src/event.c: Use ASSERTIONS not ASSERT.
4373
4374 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4375
4376         * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
4377           Init rc to -1.
4378         * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
4379         * common-src/match.c (clean_regex): Cast to int.
4380
4381 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4382         Reported by <ian.willis@sge.net>
4383
4384         * common-src/rsh-security.c: Fix for RSH_DEBUG.
4385
4386 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4387
4388         * config/ltconfig: Remove
4389         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
4390         * config/config.guess: Update from
4391           ftp://ftp.gnu.org/gnu/config/config.guess
4392         * config/config.sub: Update from 
4393           ftp://ftp.gnu.org/gnu/config/config.sub
4394         * config/depcomp, config/install-sh, config/missing, 
4395           config/mkinstalldirs: Update from automake 1.5
4396         * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
4397
4398 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4399         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
4400
4401         * configure.in: Add missing [.
4402
4403 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4404         Patch by Jason Thomas <jason@topic.com.au>
4405              and Eric Siegerman <erics@telepres.com>
4406
4407         * common-src/bsd-security.c (check_user_amandahosts): improve message.
4408
4409 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4410
4411         * server-src/driver.c: Do not go in degraded mode in nodump mode.
4412         * server-src/conffile.c:Check many options to be sure they are positive.
4413
4414 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4415
4416         * changer-src/chg-scsi.c (get_relative_target): return -1;
4417         * changer-src/scsi-irix.c (SCSI_ExecuteCommand): Remove Zero variable.
4418         * common-src/amanda.h: include strings.h if HAVE_STRINGS_H is defined.
4419         * server-src/amadmin.c (info_one): Remove lev0date variable.
4420         * server-src/amadmin.c (import_db): Remove vers_comment variable.
4421         * server-src/amindexd.c (main): Remove arg_len variable.
4422         * server-src/amtrmidx.c (main): Remove level_position and
4423           datestamp_position variables.
4424         * server-src/changer.c (changer_current): Remove checked variable.
4425         * server-src/conffile.c (read_confline): Check value of RESERVE.
4426         * server-src/conffile.c (get_tapetype): Check value of LENGTH and
4427           FILEMARK.
4428         * server-src/diskfile.h: bit field of 1 bit must be unsigned.
4429         * server-src/driver.c (main): Don't check the value of RESERVE.
4430         * server-src/driver.c (find_diskspace): Remove as_pref variable.
4431         * server-src/driverio.c (getresult): cast cmd_t.
4432         * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
4433         * server-src/find.c (search_logfile): Remove host_undo_ch and
4434           disk_undo_ch variables.
4435         * server-src/holding.c (pick_datestamp): Remove result variable.
4436         * server-src/server_util.c (getcmd): Loop on a cmd_t variable.
4437         * server-src/taper.c (tape_writer_side): Remove out_open variable.
4438         * tape-src/tapeio.c (tapefd_close): Cast to (void *).
4439
4440 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4441
4442         * client-src/selfcheck.c: Fix compiler warning.
4443         * changer-src/chg-scsi.c: Ditto.
4444         * changer-src/scsi-changer-driver.c: Ditto.
4445         * changer-src/scsi-defs.h: Ditto.
4446         * server-src/server_util.c: Ditto.
4447         * common-src/fileheader.c: Ditto.
4448
4449 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4450
4451         * configure.in: Set MAX_TAPE_BLOCK_KB on linux
4452
4453 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4454         Patch by Blaz Zupan <blaz@amis.net>
4455
4456         * changer-src/chg-zd-mtx.sh.in: typo.
4457
4458 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4459
4460         * client-src/selfcheck.c (check_access): New function (old check_file
4461           function).
4462         * client-src/selfcheck.c (check_file): Check that the filename is a
4463           file.
4464         * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
4465
4466 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4467         Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
4468
4469         * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
4470           AMANDA_TMPDIR directory.
4471
4472 2001-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4473
4474         * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
4475         * server-src/amrmtape.sh.in: Ditto.
4476
4477 2001-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4478
4479         * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
4480
4481 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4482
4483         * server-src/amstatus.pl.in: Work with amflush log.
4484
4485 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4486
4487         * server-src/driver.c (nodump): new argument, Don't start the dumpers
4488           if set.
4489         * server-src/holding.c (get_flush): chdir to original cwd.
4490         * server-src/reporter.c: accept driver and amflush line in log.
4491         * server-src/amflush.c: exec driver to do the flushing.
4492
4493 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4494
4495         * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
4496
4497 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4498
4499         * recover-src/extract_list.c: You can change the tape device
4500           between each tape.
4501
4502 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4503
4504         * restore-src/amrestore.c (restore): try to find the next chunk 
4505           in the current directory.
4506
4507 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4508
4509         * example/amanda.conf.in: typo.
4510
4511 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4512
4513         Patch by Roland E. Lipovits <rel@lipo.at0.net>
4514         * example/amanda.conf.in: typo.
4515
4516 2001-12-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4517
4518         * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
4519         Replace TRY_AGAIN by TRYAGAIN.
4520
4521 2001-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4522         Patch by Michael D. Beynon <beynon@ll.mit.edu>
4523
4524         * server-src/driver.c (main): Take care of empty tapeq.
4525
4526 2001-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4527
4528         * server-src/diskfile.c (lookup_host): Match must be exact.
4529
4530 2001-11-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4531
4532         * server-src/planner.c: Add host, disk, datestamp and level on 
4533         FLUSH line. Add datestamp on DUMP line.
4534         * server-src/driver.c (read_flush): Read new format of FLUSH line.
4535         * server-src/driver.c (read_schedule): Read new format of DUMP line.
4536         * server-src/amflush.c: Write a datestamp on stderr.
4537         * server-src/amdump.sh.in: Write a datestamp on stderr.
4538         * server-src/amstatus.pl.in: Works with autoflush.
4539
4540 2001-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA> 
4541         * server-src/conffile.c (autoflush): New configuration options.
4542         * server-src/conffile.h (autoflush): New configuration options.
4543         * man/amanda.8.in: Document it.
4544         * example/amanda.conf.in: Document it.
4545         * server-src/holding.h (get_flush, pick_datestamp, pick_all_datestamp,
4546         cleanup_holdingdisk): New prototype.
4547         * server-src/holding.c (scan_holdingdir, cleanup_holdingdisk,
4548         get_flush): New function.
4549         * server-src/holding.c (pick_datestamp, pick_all_datestamp): New
4550         verbose argument.
4551         * server-src/amcleanupdisk.c: Change call to pick_all_datestamp.
4552         * server-src/amflush.c: Change call to pick_all_datestamp.
4553         * server-src/find.c: Change call to pick_all_datestamp.
4554         * server-src/planner.c: Write FLUSH line to driver, the schedule
4555         line contain the keyword DUMP.
4556         * server-src/planner.c: Add datestamp to SUCCESS and FAIL line.
4557         * server-src/amstatus.pl.in: New parsing of DUMP line.
4558         * server-src/driverio.h: New datestamp field in sched_t;
4559         * server-src/driver.c (build_diskspace): New function to build a
4560         assignedhd_t from an holding file.
4561         * server-src/driver.c (read_flush): New function to read the list
4562         of files to flush.
4563         * server-src/driver.c (read_schedule): Parse the keyword DUMP.
4564         * server-src/driver.c: Add datestamp to FAIL line.
4565         * server-src/dumper.c: Add datestamp to FAIL line.
4566         * server-src/reporter.c (timedata_t, repdata_t) : Major change of
4567         structure.
4568         * server-src/taper.c: Add datestamp to FAIL line.
4569
4570 2001-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4571
4572         * server-src/conffile.c: New dumporder configuration.
4573         * server-src/conffile.h: Likewise.
4574         * server-src/driver.c (start_some_dumps): Use dumporder to
4575         select the next disk to dump.
4576         * example/amanda.conf.in: Give an example of dumporder.
4577         * man/amanda.8.in: Document it.
4578
4579 2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
4580
4581         * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
4582         * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
4583         * recover-src/uparse.y: Add new token CDX, call cd_glob instead 
4584         of set_directory for cd command, call cd_regex for cdx command.
4585         * recover-src/uscan.l: On cdx string return CDX token.
4586         * recover-src/help.c: Document it.
4587         * man/amrecover.8.in: Document it.
4588
4589 2001-09-26 John R. Jackson (jrj@purdue.edu)
4590
4591         * server-src/reporter.c: Fix problem when column sizes are negative.
4592
4593 2001-09-21 John R. Jackson (jrj@purdue.edu)
4594
4595         * server-src/Makefile.am: Add -I../common-src so genversion.h can be
4596           found (since it is built on the fly).  Only fails when build is done
4597           in a different directory than the sources.
4598
4599 2001-09-17 John R. Jackson (jrj@purdue.edu)
4600
4601         * server-src/getconf.c: Add capabilities to amgetconf to return
4602           build environment values and also to open and close a debug file
4603           (e.g. for scripts).
4604         * man/amgetconf.8.in: Ditto.
4605         * changer-src/chg-scsi.c: Ditto.
4606         * common-src/amanda.h: Ditto.
4607         * common-src/debug.c: Ditto.
4608         * common-src/error.c: Ditto.
4609         * server-src/dumper.c: Ditto.
4610
4611 2001-09-17 John R. Jackson (jrj@purdue.edu)
4612
4613         * server-src/planner.c: Make sure we do not attempt to bump beyond
4614           level 9.
4615
4616 2001-09-16 Thomas Hepper (th@ant.han.de)
4617         * changer-src/chg-scsi.c: Added new config option autoinv, 
4618         if not set no auto inventory will be done if the label db is out of 
4619         sync. Reworked MapBarCode, now the parameters are passed as a struct 
4620         and the result is returned in this struct (MBC_T), 
4621         also removed some duplicate/nonsens code from MapBarCode
4622         Changed the definitions for slot_file. It was used duplicate, 
4623         1. as the config file set by amanda.conf, and second set by the
4624         config option in the chg-scsi config file. Now the file from
4625         amanda.conf is called chg_scsi_conf. and changer_file is renamed 
4626         to slot_file.
4627         Added check if cleanfile is not set, if true clean_file is set to NULL
4628         Now return if tape_device is not in the range 0-9.
4629         Added some checks if we have all informations like slot_file, 
4630         devices etc. Fixed and error in the search function, 
4631         if the searched vol is already loaded return the correct info 
4632         and not 'label not found'. Fixed error in the parameter passing 
4633         to get_relative_slot. If the option was -slot last we where 
4634         1 above the end parameter..
4635
4636         * changer-src/scsi-bsd.c: Fix compile problems.
4637         * changer-src/scsi-changer-driver.c: Fixed the last problems :-) 
4638         for the label/barcode handling...
4639         * changer-src/scsi-defs.h: Added new struct MBC_T
4640         * changer-src/sense.c: Added some more messages for Exabyte 210 lib
4641
4642 2001-09-01 John R. Jackson (jrj@purdue.edu)
4643
4644         * client-src/sendsize.c: Fix memory allocation problem.
4645
4646 2001-08-31 John R. Jackson (jrj@purdue.edu)
4647
4648         * server-src/amindex.c: Fix memory leak.  Compliments of Robert Minsk
4649           <egbert@centropolisfx.com>.
4650         * server-src/logfile.c: Fix memory leak.  Compliments of Robert Minsk
4651           <egbert@centropolisfx.com>.
4652
4653 2001-08-30 John R. Jackson (jrj@purdue.edu)
4654
4655         * server-src/planner.c: Fix problem with maintenance of total level
4656           0 size when disk being brought back into the schedule was not doing
4657           a level 0.  Compliments of Robert Minsk <egbert@centropolisfx.com>.
4658
4659 2001-08-24 John R. Jackson (jrj@purdue.edu)
4660
4661         * server-src/amverify.sh.in: Fix missing backtick error.
4662
4663 2001-08-24 John R. Jackson (jrj@purdue.edu)
4664
4665         * server-src/taper.c: Allocate buffers on page boundaries.
4666
4667 2001-08-22 John R. Jackson (jrj@purdue.edu)
4668
4669         * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
4670           so they end up like all the other Amanda programs.
4671
4672 2001-08-15 Thomas Hepper (th@ant.han.de)
4673         * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
4674         are given to MapBarCode and returned from there. No a struct is passed where all infos
4675         will be returned to the calling function.
4676         If eject is set we will not call LogSense in chg-scsi because it is also called in the
4677         eject function.
4678         * changer-src/scsi-defs.h: Added struct MBC_T used by MapBarCode.
4679         * changer-src/scsi-changer-driver.c: Changed all calls to MapBarCode to the new way
4680
4681 2001-08-14 John R. Jackson (jrj@purdue.edu)
4682
4683         * docs/EXCLUDE: New document from Andrew Hall <ahall@secureworks.net>
4684           describing how to set up and use GNU tar exclusions.
4685         * docs/Makefile.am: Added EXCLUDE and PORT.USAGE.
4686
4687 2001-08-14 John R. Jackson (jrj@purdue.edu)
4688
4689         * docs/PORT.USAGE: New document about how Amanda ports are used.
4690
4691 2001-08-14 John R. Jackson (jrj@purdue.edu)
4692
4693         * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
4694
4695 2001-08-14 John R. Jackson (jrj@purdue.edu)
4696
4697         * common-src/stream.c: Add stream_client_privileged() function to
4698           get a privileged port and fail if one is not available.  The older
4699           stream_client() function gets a (non-privileged) port in the
4700           configured portrange, if set and possible, else anything available.
4701         * common-src/stream.h: Prototypes.
4702         * recover-src/amrecover.c: Use stream_client_privileged() instead of
4703           stream_client().
4704         * recover-src/extract_list.c: Ditto.
4705         * configure.in: Added several more port range sanity checks.  Added
4706           --with-tcpportrange as an alias for --with-portrange.
4707
4708 2001-08-09 Thomas Hepper (th@ant.han.de)
4709         * changer-src/chg-scsi.c: Added check in MapBarCode if the labelfile
4710         parameter is empty, and if yes return. 
4711         Added global variable do_inventory, and if set do an inventory before
4712         exit.
4713         In MapBarCode changed the way the UPDATE_SLOT is done, now it uses
4714         the slot number passed to MapBarCode to find and update the record.
4715         * changer-src/scsi-changer-driver.c: Added def. for BreeceHill Q7
4716         Added global variables which are set by the tape_rdlabel function
4717         in eject/unload.
4718         Reworked the way how the updates of the labelfile are done.
4719
4720 2001-08-01 John R. Jackson (jrj@purdue.edu)
4721
4722         * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
4723           patch.
4724         * client-src/sendbackup-gnutar.c: Ditto.
4725         * client-src/sendsize.c: Ditto.
4726
4727 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
4728
4729         * client-src/findpass.c: Allow backup of subdirs of PC shares for
4730           amanda-2.4.1beta1 by Greg Shebert amanda-hackers list Tue Feb 1,
4731           2000.  Ported to amanda-2.4.2p2 on debian potato by Marko Injac.
4732         * client-src/findpass.h: Ditto.
4733         * client-src/selfcheck.c: Ditto.
4734         * client-src/sendbackup-gnutar.c: Ditto.
4735         * client-src/sendsize.c: Ditto.
4736         * docs/SAMBA: Ditto.
4737
4738 2001-08-01 John R. Jackson (jrj@purdue.edu)
4739
4740         * client-src/sendsize.c: Prefix each debug line with sendsize process
4741           information to make picking out the output from a particular estimate
4742           run easier when maxdumps > 1.
4743
4744 2001-08-01 John R. Jackson (jrj@purdue.edu)
4745
4746         * server-src/amcheck.c: Unlink the temp files as soon as they are
4747           created so they always go away when amcheck terminates.  Use
4748           pipespawn() instead of system() to call the MAILER program.  Call
4749           dbopen()/dbclose() in main() to write to a debug file instead of
4750           stderr.
4751
4752 2001-08-01 John R. Jackson (jrj@purdue.edu)
4753
4754         * common-src/debug.c: Only rename files that end in ".debug".
4755
4756 2001-08-01 John R. Jackson (jrj@purdue.edu)
4757
4758         * common-src/pipespawn.c: Show empty pipespawn() args as "".
4759
4760 2001-07-31 John R. Jackson (jrj@purdue.edu)
4761
4762         * server-src/conffile.h: Add support for tapetype "blocksize" keyword.
4763         * server-src/conffile.c: Add tapetype "blocksize" keyword.  Use
4764           DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE.  Disallow
4765           negative tape length and tapemark size.
4766         * common-src/alloc.c: Add new amtable_free() function.  Adjust args
4767           to amtable_alloc() to be consistent with amtable_free().
4768         * common-src/amanda.h: Add new am_round() and am_floor() macros.
4769           Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
4770           MAX_TAPE_BLOCK_BYTES constants.  Remove TAPE_BLOCK_SIZE and
4771           TAPE_BLOCK_BYTES.
4772         * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
4773           Use -1 instead of DEFAULT_SIZE.
4774         * common-src/rsh-security.c: Ditto.
4775         * common-src/fileheader.c: Change write_header() to build_header().
4776           Add blocksize arg.  Get rid of unused fill_buffer() function.
4777         * common-src/fileheader.h: Ditto.
4778         * common-src/stream.c: Use negative value to indicate default buffer
4779           size.
4780         * common-src/stream.h: Add NETWORK_BLOCK_BYTES and STREAM_BUFSIZE
4781           constants.  Remove DATABUF_SIZE and DEFAULT_SIZE.
4782         * man/amanda.8.in: Document the new "blocksize" tapetype keyword.
4783           Document that "length" in tapetype has meaning to some output
4784           drivers.  Fix "bumpdays" and "speed" defaults.  Document new "file:"
4785           output driver record length data file.
4786         * man/amrestore.8: Add new "-b blocksize" arg.  Add description of
4787           how to catalogue the images on a tape.
4788         * recover-src/amrecover.c: DEFAULT_SIZE -> -1.
4789         * recover-src/extract_list.c: DEFAULT_SIZE -> -1.  Use DISK_BLOCK_BYTES
4790           instead of TAPE_BLOCK_BYTES for the header size.
4791         * restore-src/amrestore.c: Add new "-b blocksize" arg.  Document how
4792           the header is handled.  Deal with arbritrary tape record sizes.
4793         * server-src/amlabel.c: Use the tapetype blocksize.
4794         * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
4795           appropropriate instead of older constants.  Rewrite disk I/O buffer
4796           management.  Never pad output stream (e.g. to holding disk).  Use
4797           -1 for default stream buffer size.
4798         * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
4799           TAPE_BLOCK_SIZE.
4800         * server-src/driverio.c: Set chunker argv[0] to name based on which
4801           dumper it is working with.
4802         * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
4803           appropropriate instead of older constants.  Rewrite disk I/O buffer
4804           management.  Never pad output stream (e.g. to holding disk).  Use
4805           -1 for default stream buffer size.
4806         * server-src/holding.c: Change TAPE_BLOCK_BYTES to DISK_BLOCK_BYTES.
4807           Use fullread() instead of fill_buffer().
4808         * server-src/planner.c: Use tapetype blocksize instead of constant
4809           for tape length calculations.
4810         * server-src/taper.c: Support tapetype blocksize.  Only pad writes if
4811           blocksize is negative.  Reorganize shared memory buffers to put
4812           data on page boundaries.  Try reducing tapebuf count if allocation
4813           fails.
4814         * tape-src/output-file.c: Maintain record size information.  Use mask
4815           and flags from caller.
4816         * tape-src/output-null.c: Use new amtable_alloc() arg order.
4817         * tape-src/output-rait.c: Use new amtable_alloc() arg order.  Add
4818           private version of amtable_free() for standalone build.  Fix off
4819           by one and other table allocation problems.
4820         * tape-src/output-rait.h: Maintain file descriptor count in the
4821           structure.
4822         * tape-src/tapeio.c: Support tapetype blocksize.  Use new
4823           amtable_alloc() arg order.  Fix some error message text.  
4824         * tape-src/tapeio.h: New prototypes with blocksize arg.
4825         * tape-src/tapetype.c: Add "-b blocksize" arg.  Fix some end case
4826           aborts.
4827
4828 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
4829
4830         * recover-src/amrecover.c: Improve the "Unexpected server end of file"
4831           message.
4832
4833 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
4834
4835         * man/amanda.8.in: Document includefile.
4836         * man/amdump.8.in: Add note that local crontab documention should be
4837           checked for proper syntax.
4838         * man/amrecover.8.in: Document use of PAGER environment variable.
4839         * man/amrestore.8: Document that GNU tar must be used as some vendor
4840           tar programs cannot read GNU tar format.
4841         * docs/FAQ: Update location of online FAQ.
4842
4843 2001-07-25 John R. Jackson <jrj@purdue.edu>
4844
4845         * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
4846           document the new (but optional) searchable features.
4847
4848 2001-07-19 John R. Jackson <jrj@purdue.edu>
4849
4850         * common-src/error.c: Fix function prototype error.
4851
4852 2001-07-19 John R. Jackson <jrj@purdue.edu>
4853
4854         * common-src/error.c: Add new function errordump() that acts like
4855           error() but calls abort() to (try to) drop core.
4856         * common-src/amanda.h: Prototype.
4857         * common-src/alloc.c: Call errordump() instead of error() for some
4858           memory allocation failures to aid traceback.
4859
4860 2001-07-19 John R. Jackson <jrj@purdue.edu>
4861
4862         * server-src/amadmin.c: Improve the error message when read_conffile()
4863           fails.
4864         * server-src/amcheck.c: Ditto.
4865         * server-src/amcleanupdisk.c: Ditto.
4866         * server-src/amflush.c: Ditto.
4867         * server-src/amlabel.c: Ditto.
4868         * server-src/amlogroll.c: Ditto.
4869         * server-src/amtape.c: Ditto.
4870         * server-src/amtrmidx.c: Ditto.
4871         * server-src/amtrmlog.c: Ditto.
4872         * server-src/driver.c: Ditto.
4873         * server-src/dumper.c: Ditto.
4874         * server-src/getconf.c: Ditto.
4875         * server-src/planner.c: Ditto.
4876         * server-src/reporter.c: Ditto.
4877         * server-src/taper.c: Ditto.
4878
4879 2001-07-19 John R. Jackson <jrj@purdue.edu>
4880
4881         * server-src/driverio.c: Make the name "ps" reports match the dumper
4882           name (e.g. "dumper3").
4883
4884 2001-07-18 John R. Jackson <jrj@purdue.edu>
4885
4886         * changer-src/chg-chio.pl.in: Try to unload the drive before moving
4887           a tape back to a slot.  Fixes a problem on Ecrix AutoPAK devices.
4888           Patch compliments of Sam Leffler <sam@errno.com>.
4889
4890 2001-07-18 John R. Jackson <jrj@purdue.edu>
4891
4892         * server-src/amverify.sh.in: Change to the Amanda temp directory
4893           instead of the config directory.  In addition to making amverify
4894           act like most other Amanda programs, this gets around an
4895           xfsrestore bug.
4896
4897 2001-07-18 John R. Jackson <jrj@purdue.edu>
4898
4899         * man/amanda.8.in: Describe the .amandahosts format better.  Clean up
4900           a couple of minor typos.
4901
4902 2001-07-13 John R. Jackson <jrj@purdue.edu>
4903
4904         * common-src/dgram.h: Improve UDP datagram size calculation.
4905         * server-src/amcheck.c: Break up large requests into pieces.
4906         * server-src/planner.c: Break up large requests into pieces.
4907
4908 2001-07-12 John R. Jackson <jrj@purdue.edu>
4909
4910         * tape-src/amdd.c: Use tapefd_close() in amdd if the file was
4911           opened with tape_open().  This does any necessary output driver
4912           cleanup (such as moving the current file position for "file:").
4913
4914 2001-07-12 John R. Jackson <jrj@purdue.edu>
4915
4916         * Makefile.am: Fix automake warning.
4917
4918 2001-07-11 John R. Jackson <jrj@purdue.edu>
4919
4920         * tape-src/tapetype.c: Use tapefd_write() instead of write().
4921
4922 2001-07-11 John R. Jackson <jrj@purdue.edu>
4923
4924         * common-src/file.c: Fix a memory leak.  Grab exponentially larger
4925           chunks of memory up to a point, then level out.
4926
4927 2001-07-11 John R. Jackson <jrj@purdue.edu>
4928
4929         * tape-src/tapetype.c: Only report a pass summary when stderr is not
4930           a tty.  Deal with some obscure end cases.
4931
4932 2001-07-10 John R. Jackson <jrj@purdue.edu>
4933
4934         * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
4935         * changer-src/scsi-solaris.c: Ditto.
4936
4937 2001-07-10 John R. Jackson <jrj@purdue.edu>
4938
4939         * server-src/amcheck.c: Move user name check before attempt to create
4940           temp files so more appropriate error message is generated.
4941
4942 2001-07-09 John R. Jackson <jrj@purdue.edu>
4943
4944         * common-src/dgram.c: Fix error end case unitialized variable.
4945
4946 2001-07-05 John R. Jackson <jrj@purdue.edu>
4947
4948         * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
4949           that -slot and -eject unload and put the current tape away.
4950
4951 2001-07-02 John R. Jackson <jrj@purdue.edu>
4952
4953         * changer-src/chg-manual.sh.in: Add yet another ONLINEREGEX, this one
4954           compliments of Nick (n_hibma@qubesoft.com) for some FreeBSD variant.
4955
4956 2001-06-29 John R. Jackson <jrj@purdue.edu>
4957
4958         * tape-src/tapeio.c: Move the device name parsing routines from the
4959           RAIT module to tapeio and make them generic.  This allows one
4960           module to open another, e.g. rait:{null:,z1,z2,z3}.  Maintain
4961           both the original open flags and mask and use them on the real open.
4962         * tape-src/amdd.c: Make sure this compiles "stand-alone".  To do so,
4963           use: gcc -Wall -DNO_AMANDA amdd.c output-rait.c output-tape.c.
4964           Abort as soon as one of the open calls fails instead of waiting
4965           for read/write to report a bad file descriptor.
4966           Pass a mask to the open function in case the output is created.
4967         * tape-src/ammt.c: Make sure this compiles "stand-alone".  To do so,
4968           use: gcc -Wall -DNO_AMANDA ammt.c output-rait.c output-tape.c.
4969         * tape-src/output-file.c: Maintain both the original open flags and
4970           mask and use them on the real open.
4971         * tape-src/output-null.c: Ditto.
4972         * tape-src/output-file.h: Change to non-prototype declaration of
4973           file_tape_open() to deal with the optional mask parameter.
4974         * tape-src/output-null.h: Ditto.
4975         * tape-src/output-tape.h: Ditto.
4976         * tape-src/tapeio.h: Ditto.  Add device name parsing prototypes.
4977         * tape-src/output-rait.c: Make sure this compiles "stand-alone".
4978           Maintain both the original open flags and mask and use them on the
4979           real open.
4980         * tape-src/output-rait.h: Make sure this compiles "stand-alone".
4981         * tape-src/output-tape.c: Make this part of the "stand-alone" compile
4982           of ammt and amdd since it knows all the proper ioctl operations.
4983           Maintain both the original open flags and mask and use them on the
4984           real open.
4985
4986 2001-06-27 John R. Jackson <jrj@purdue.edu>
4987
4988         * changer-src/chg-manual.sh.in: Add "bs=32k" to the dd command so
4989           some kernels would not complain about the tape block being larger
4990           than the buffer.
4991         * changer-src/chg-mtx.sh.in: Ditto.
4992
4993 2001-06-21 John R. Jackson <jrj@purdue.edu>
4994
4995         * server-src/planner.c: If the compression rate is very small (such
4996           as zero after some types of errors) and FORCE_FULL is set, a path
4997           is taken that (among other bad things) generates a schedule that
4998           driver cannot read (syntax errors).
4999         * server-src/conffile.c: Do not allow negative comprate values.
5000
5001 2001-06-19 John R. Jackson <jrj@purdue.edu>
5002
5003         * server-src/holding.c: Use fullread() instead of read() to read the
5004           holding disk file.
5005
5006 2001-06-19 John R. Jackson <jrj@purdue.edu>
5007
5008         * server-src/amtape.c: Document "slot advance" in the help output.
5009
5010 2001-06-19 John R. Jackson <jrj@purdue.edu>
5011
5012         * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
5013           consistent with other Amanda usage.
5014
5015 2001-06-19 John R. Jackson <jrj@purdue.edu>
5016
5017         * server-src/amverify.sh.in: Better cross platform tar detection.
5018
5019 2001-06-19 John R. Jackson <jrj@purdue.edu>
5020
5021         * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
5022
5023 2001-06-19 John R. Jackson <jrj@purdue.edu>
5024
5025         * recover-src/amrecover.c: Add more debugging to guess_disk()
5026           function to better track how the disk is determined from the
5027           current working directory.  Report current working directory in
5028           error message.  Change "Trying" to "Trying disk" to distinguish
5029           this from host attempts.
5030         * recover-src/set_commands.c: Remove redundant amfree() call.  Remove
5031           redundant "OISD /" exchange.  Change "Trying" to "Trying host" to
5032           distinguish this from disk attempts.
5033
5034 2001-06-19 Thomas Hepper <th@ant.han.de>
5035         * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
5036         the label db update stuff from the COM_SLOT part (moved to unload
5037         in scsi-changer-driver.c)
5038         * changer-src/scsi-changer-driver.c: Do an unload if the tape is
5039         loaded in the Inventory function. Added an marker to avoid recursion
5040         in Inventroy function. Added label db check in unload function and
5041         call Inventroy if it indicates an out of sync db
5042         
5043 2001-06-18 John R. Jackson <jrj@purdue.edu>
5044
5045         * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
5046           flag to vrestore.  Some versions do not like it.
5047
5048 2001-06-18 John R. Jackson <jrj@purdue.edu>
5049
5050         * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
5051           other Amanda code.
5052         * common-src/stream.c: Ditto.
5053
5054 2001-06-18 John R. Jackson <jrj@purdue.edu>
5055
5056         * changer-src/chg-manual.sh.in: Add yet another online regex.  Found
5057           by George Herson <gherson@snet.net>.
5058
5059 2001-06-12 Thomas Hepper <th@ant.han.de>
5060         * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
5061         decide how to get the tape drive status.
5062         * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
5063         the tape drive status.
5064         * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
5065         
5066 2001-06-10 Thomas Hepper <th@ant.han.de>
5067         * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
5068         return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
5069         is created with an touch)
5070         * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
5071         Fixed an error in the unload function if the destination slot for the unload is not empty.
5072         (cut and paste error !!)
5073         
5074 2001-06-07 Thomas Hepper <th@ant.han.de>
5075         * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
5076         In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
5077         In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
5078         * changer-src/scsi-irix.c: Changed a lot, now it should work.
5079         * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part. 
5080         * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
5081         is called buf.mt_dposn not buf.mt.dposn.
5082         
5083 2001-06-04 Thomas Hepper <th@ant.han.de>
5084         * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
5085         incl. change of passwd parameter.
5086
5087 2001-06-04 Thomas Hepper <th@ant.han.de>
5088         * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
5089         * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic 
5090         function to send different ioctls (Tape_Ioctl)
5091         * changer-src/scsi-bsd.c: see above
5092         * changer-src/scsi-hpux_new.c: see above
5093         * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
5094         set pDev[ip].avail to 1.
5095         * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
5096         Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.  
5097         * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
5098         Eject the tape in the inventory function before the scan to get all
5099         barcode labels. Check in GenericEject if the device is able to receive
5100         SCSI commands, if not use the ioctl interface to eject the tape.
5101         Same for the GenericRewind function.
5102         Added the LogSense in the GenericEject function.
5103         * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
5104         
5105 2001-06-01 John R. Jackson <jrj@purdue.edu>
5106
5107         * server-src/amindexd.c (build_disk_table): Make sure a holding disk
5108           image is used rather than a copy also on tape, if both exist.
5109
5110 2001-06-01 Thomas Hepper <th@ant.han.de>
5111         * changer-src/scsi-changer-driver.c: Added an range check in the load
5112         function and abort if the requested slot is out of range.
5113         Fixed in incorrect pointer in the eject function if the ioctl
5114         interface is used
5115
5116 2001-05-29 John R. Jackson <jrj@purdue.edu>
5117
5118         * server-src/reporter.c: Fix PostScript output to only show what went
5119           on the tape, not what the total amount dumped.  Compliments of
5120           Joshua Baker-LePain <jlb17@duke.edu>.
5121
5122 2001-05-28 Thomas Hepper <th@ant.han.de>
5123         * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
5124         * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
5125         * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
5126         Added debug message if the open fails. Implemented the function Tape_Status (not tested)
5127         * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
5128         during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
5129         needs an offset of 12, not 0 as in GenericElementStatus.
5130         Added an unload/GenericResetStatus in the Inventory function if an bar code reader is 
5131         available. This is to get the label from the loaded tape.
5132         The function TapeStatus sets now the status regardless of the status of the tape.
5133         If the device is capable for sending SCSI commands use the SCSI interface to get
5134         the status of the tape.
5135         * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
5136         description on how to use the sgen interface on solaris 2.8
5137         
5138 2001-05-18 John R. Jackson <jrj@purdue.edu>
5139
5140         * client-src/patch-system.sh.in: Missed a reference to kamanda in the
5141           last patch.  Compliments of Tom Schutter <t.schutter@att.net>.
5142
5143 2001-05-16 John R. Jackson <jrj@purdue.edu>
5144
5145         * client-src/patch-system.sh.in: Go ahead and update /etc/services
5146           on a client even if the services themselves are not turned on to
5147           inetd.  Compliments of Tom Schutter <t.schutter@att.net>.  Add
5148           the TCP port for amandad for future use.
5149
5150 2001-05-14 John R. Jackson <jrj@purdue.edu>
5151
5152         * client-src/amandad.c: Fix hang when the incoming packet size is
5153           larger than the pipe buffer.  Also, report back when too much
5154           data for a packet is returned by the service (this is not properly
5155           diagnosed back to, e.g., amcheck, but that's for another day).
5156         * common-src/bsd-security.c: Fix minor comment error.
5157
5158 2001-05-11 John R. Jackson <jrj@purdue.edu>
5159
5160         * common-src/util.c (bind_portrange): Log a debug message stating
5161           explicitly that all ports in the requested range were busy, or
5162           that a specific port failed bind() for an unexpected reason.
5163
5164 2001-05-07 John R. Jackson <jrj@purdue.edu>
5165
5166         * client-src/sendbackup-dump.c: Do not use full path to sed.  Found by
5167           Roland E. Lipovits (rel@lipo.at0.net).
5168
5169 2001-05-07 Thomas Hepper <th@ant.han.de>
5170         * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
5171         * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
5172         GenericElementStatus if there is an error condition. Move from tape to tape to get the
5173         tape loaded if it is only ejected.
5174         * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
5175         * changer-src/scsi-linux.c : Added return type for tape not loaded
5176         * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
5177         databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
5178         The function Tape_Status will now return either tape loaded or not.
5179         * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
5180         the sgen driver.
5181         * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
5182         how to confgure the sgen driver on solaris 2.8
5183         
5184 2001-05-04 John R. Jackson <jrj@purdue.edu>
5185
5186         * config/depcomp: Fix problem with argument*  processing and update to
5187           latest version.
5188
5189 2001-05-01 Thomas Hepper <th@ant.han.de>
5190         * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
5191         * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
5192         known Exabyte libs handles the reader in the same way.
5193         
5194 2001-04-28 Thomas Hepper <th@ant.han.de>
5195         * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
5196         Changed the way an tape label is read, use tape_open to open the
5197         device, not own open.
5198         * changer-src/scsi-changer-driver.c : Changed the way an tape label 
5199         is read, use tape_open to open the device, not own open.
5200         * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
5201         (/dev/nst0 for example)
5202         
5203 2001-04-26 Thomas Hepper <th@ant.han.de>
5204
5205         * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
5206         error condition. 
5207         * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
5208         reads the element Status, and GenericElementStatus which handles the errors.
5209         Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
5210         * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
5211         * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
5212         * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
5213         
5214 2001-04-25 John R. Jackson <jrj@purdue.edu>
5215
5216         * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
5217           used to define sbindir.  Sigh.  Include X=X assignments to get rid
5218           of the Perl warnings.
5219         * server-src/amoverview.pl.in: Ditto.
5220
5221 2001-04-24 John R. Jackson <jrj@purdue.edu>
5222
5223         * changer-src/chg-chio.pl.in: Remove unused exec_prefix to get rid of
5224           warning message.  Patch from Nick Hibma <n_hibma@qubesoft.com>.
5225
5226 2001-04-23 John R. Jackson <jrj@purdue.edu>
5227
5228         * client-src/selfcheck.c: Allow Samba shares with no password.
5229         * client-src/sendbackup-gnutar.c: Ditto.
5230         * client-src/sendsize.c: Ditto.
5231
5232 2001-04-15 Thomas Hepper <th@ant.han.de>
5233         * Makefile.am: Added contrib/gsc files to EXTRA_DIST
5234         
5235 2001-04-15 Thomas Hepper <th@ant.han.de>
5236         * changer-src/scsi-aix.c: Rework of the SCSI interface, support
5237         to talk to an device handled by the gsc driver (not tested yet)
5238         * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
5239         device handling, Changed the return codes in case of an error
5240         * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in 
5241         device handling, Changed the return codes in case of an error
5242         * changer-src/scsi-changer-driver.c: Changed the way 
5243         SCSI_ExecuteCommand passes error conditions back, error handling
5244         should now be done by the calling function, SCSI_Run for example.
5245         * changer-src/scsi-changer-driver.c (CheckMove): If the 
5246         DeviceCapabilitiesPage is not set do not return an error, print
5247         an warning to the debug file.
5248         * changer-src/scsi-defs.h: New define for AIX_USE_GSC
5249         New defines for the return codes of SCSI_ExecuteCommand
5250         * changer-src/scsi-hpux_new.c: Fix error in device handling.
5251         Changed the return codes in case of an error
5252         * changer-src/scsi-irix.c: Fix error in device handling.
5253         Changed the return codes in case of an error
5254         * changer-src/scsi-solaris.c: Fix error in device handling.
5255         Changed the return codes in case of an error
5256         
5257 2001-04-15 Thomas Hepper <th@ant.han.de>
5258         *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
5259
5260 2001-04-13 John R. Jackson <jrj@purdue.edu>
5261
5262         * example/amanda.conf.in: Fix multiple holding disks comment.
5263
5264 2001-04-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5265
5266         * client-src/getfsent.h (search_fstab): New prototype.
5267         * client-src/getfsent.c (search_fstab): New arg check_dev, skip
5268         entry if check_dev==1 and device stats failed.
5269         * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
5270         * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
5271         * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
5272         * client-src/getfsent.c (amname_to_devname, amname_to_dirname, 
5273         amname_to_fstype): Call search_fstab sequentialy with 1 and 0 
5274         for check_dev.
5275
5276 2001-04-10 John R. Jackson <jrj@purdue.edu>
5277
5278         * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
5279           <lhecking@nmrc.ie>.
5280
5281 2001-04-09 Thomas Hepper <th@ant.han.de>
5282         * changer-src/scsi-changer-driver.c: More rework on the debug output.
5283         changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
5284         In function GenericRewind do an check before the rewind to see
5285         if the tape is loaded.
5286         * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
5287         * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
5288         
5289 2001-04-08  Alexandre Oliva  <aoliva@redhat.com>
5290
5291         * client-src/getfsent.c (search_fstab): Don't skip entry just
5292         because device stats failed.
5293
5294 2001-04-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5295
5296         * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
5297         * config/config.sub: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
5298         * config/mkinstalldirs: Upgrade from automake CVS.
5299
5300 2001-04-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5301
5302         * config/depcomp: new file for automake.
5303
5304 2001-04-03 John R. Jackson <jrj@purdue.edu>
5305
5306         * Makefile.am: Remove *.test.c from the distribution.
5307
5308 2001-04-02 John R. Jackson <jrj@purdue.edu>
5309
5310         * NEWS: Update some of the 2.4.2 items.
5311
5312 2001-03-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5313
5314         * client-src/getfsent.c (search_fstab): If the device doesn't 
5315         exist, it will take the entry from /etc/mtab.
5316
5317 2001-03-26 John R. Jackson <jrj@purdue.edu>
5318
5319         * server-src/amtape.c: Do not rewind for slot "advance".  Do not report
5320           device name (which is bogus) for slot "advance".
5321
5322 2001-03-23 John R. Jackson <jrj@purdue.edu>
5323
5324         * example/amanda.conf.in: Add warning that the sample amanda.conf
5325           will not work as is and must be edited to match the installation.
5326
5327 2001-03-21 John R. Jackson <jrj@purdue.edu>
5328
5329         * recover-src/extract_list.c (extract_files_child): Fix problem that
5330           caused xfsrestore arg list to not be NULL terminated.
5331
5332 2001-03-19 John R. Jackson <jrj@purdue.edu>
5333
5334         * configure.in: Add --with-debug-days (default is 4) and remove
5335           --with-pid-debug-files.
5336         * common-src/Makefile.am: Clean up test program dependencies.
5337         * common-src/debug.c: Create timestamped debug file names and remove
5338           files older (based on file name) than --with-debug-days.  Rename old
5339           style names to new style (based on modification time) the first time
5340           they are seen.
5341         * common-src/file.c: Use construct_datestamp() instead of private code.
5342         * common-src/genversion.c: Display AMANDA_DEBUG_DAYS and remove
5343           DEBUG_FILE_WITH_PID.
5344         * common-src/util.c: Move construct_datestamp to here and add new
5345           function construct_timestamp.  Change time used to build string to
5346           be an optional parameter instead of always getting it in the routine.
5347         * common-src/util.h: Add prototypes.
5348         * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
5349           indication that it should get the current time.
5350         * server-src/amflush.c: Ditto.
5351         * server-src/chunker.c: Ditto.
5352         * server-src/driver.c: Ditto.
5353         * server-src/dumper.c: Ditto.
5354         * server-src/planner.c: Ditto.
5355         * server-src/server_util.c: Remove construct_datestamp (now in util.c).
5356         * server-src/server_util.h: Remove prototype.
5357
5358 2001-03-15 John R. Jackson <jrj@purdue.edu>
5359
5360         * server-src/planner.c (analyze_estimate): Do not do an incremental
5361           if FORCE_NO_BUMP is set and the last dump was a level 0.
5362
5363 2001-03-14 John R. Jackson <jrj@purdue.edu>
5364
5365         * server-src/amcheck.c: Change message from NOTE to WARNING when
5366           the hold file exists.
5367         * man/amcheck.8.in: Ditto.
5368
5369 2001-03-14 John R. Jackson <jrj@purdue.edu>
5370
5371         * client-src/selfcheck.c: Send smbclient via pipe instead of command
5372           line arg.  Various minor cleanups.  Use pipespawn instead of system()
5373           to clean up quoting problems and be consistent with sendsize and
5374           sendbackup.
5375         * client-src/sendbackup-dump.c: Send smbclient via pipe instead of
5376           line arg.  Various minor cleanups.
5377         * client-src/sendbackup-gnutar.c: Send smbclient via pipe instead of
5378           line arg.  Various minor cleanups.  Clean up listed incremental file
5379           handling.
5380         * client-src/sendbackup.c: Various minor cleanups.
5381         * client-src/sendsize.c: Send smbclient via pipe instead of command
5382           line arg.  Various minor cleanups.  Clean up listed incremental file
5383           handling.
5384         * docs/SAMBA: Update and cleanup.
5385         * common-src/pipespawn.c: Import from 2.4.2 branch.
5386         * common-src/pipespawn.h: Import from 2.4.2 branch.
5387         * common-src/Makefile.am: Add pipespawn.[ch] references.
5388
5389 2001-03-13 John R. Jackson <jrj@purdue.edu>
5390
5391         * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
5392           argument list processing.
5393
5394 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5395
5396         * server-src/dumper.c (read_datafd): set errstr and return on
5397         databuf_write error.
5398
5399 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5400
5401         * server-src/dumper.c (read_indexfd): Ignore error while writing
5402         to the index file. Log an L_INFO message.
5403
5404 2001-03-09 John R. Jackson <jrj@purdue.edu>
5405
5406         * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
5407           more places.  Run normal protocol after a tape startup error (e.g.
5408           "cannot overwrite") instead of just exiting to keep driver from
5409           reporting a broken pipe.
5410
5411 2001-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5412         Reported by Eric Schnoebelen <eric@cirr.com>
5413
5414         * server-src/changer.c (changer_command): Fix fd leak.
5415
5416 2001-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5417
5418         * server-src/server_util.c (cmdstr, getcmd, putresult): New.
5419         * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
5420         * server-src/server_util.h (cmd_t): New.
5421         * server-src/driverio.c (cmdstr): Remove.
5422         * server-src/driverio.c: Use new cmdstr and cmd_t.
5423         * server-src/driverio.h: (tok_t): Remove.
5424         * server-src/amflush.c: Use new cmd_t.
5425         * server-src/driver.c: Use new cmd_t.
5426         * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
5427         * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
5428         * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
5429         * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
5430         * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
5431         * server-src/taper.c: Use new cmd_t, getcmd and putresult.
5432
5433 2001-03-05 John R. Jackson <jrj@purdue.edu>
5434
5435         * common-src/util.c: The fullread() and fullwrite() functions should
5436           call read() and write(), not tapefd_read() and tapefd_write().
5437
5438 2001-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5439
5440         * server-src/planner.c (setup_estimate): Don't re-ask for level 0
5441         if last_level is 0 and FORCE_NO_BUMP is set.
5442
5443 2001-02-27 John R. Jackson <jrj@purdue.edu>
5444
5445         * common-src/stream.h: Move DATABUF_SIZE to stream.h.
5446         * client-src/sendbackup.c: Do not ask for a big receive buffer.
5447         * server-src/dumper.c: Ask for a bigger send buffer.  Minor typos.
5448         * server-src/taper.c: Ask for a bigger receive buffer.
5449         * recover-src/amrecover.c: Use stream_client instead of specific
5450           (and incorrect) bind() code.
5451         * recover-src/extract_list.c: Ditto.
5452
5453 2001-02-27 John R. Jackson <jrj@purdue.edu>
5454
5455         * common-src/dgram.c: Add lots more error logging to help track down
5456           problems.
5457
5458 2001-02-27 John R. Jackson <jrj@purdue.edu>
5459
5460         * common-src/stream.c: Add lots more error logging to help track down
5461           problems.
5462
5463 2001-02-27 John R. Jackson <jrj@purdue.edu>
5464
5465         * server-src/amtape.c: Rewind after loading a slot either by slot
5466           or by label.
5467
5468 2001-02-27 John R. Jackson <jrj@purdue.edu>
5469
5470         * configure.in: Add some commentary about why pushdef/popdef are
5471           needed around AC_CHECK_TYPE.
5472
5473 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5474         Patch by Alex Pilosov <alex@pilosoft.com>
5475
5476         * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
5477         and permit use of both bus:target:lun(btl) and a full
5478         device name (/dev/ch0) as changerdev.
5479         
5480 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5481         Patch by Joe Rhett <jrhett@isite.net>
5482         and Jason Hollinden <jhollind@sammg.com>
5483
5484         * changer-src/chg-zd-mtx.sh.in:  Added barcode reader support,
5485         >9 tape slot support, variable for 'offline' or 'ONLINE'
5486         return value of tape device, and multi-config support.  Moved
5487         all user settable variables to 'changerfile'.conf in the
5488         amanda config directory.  Added commented out example of .conf
5489         file into script.
5490
5491 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5492
5493         * server-src/amindexd.c (uncompress_file): remove uncompressed
5494         index file if the command failed.
5495
5496 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5497
5498         * restore-src/amrestore.c (main): init r to 0.
5499
5500 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5501
5502         * changer-src/scsi-defs.h (PrintConf): Add prototype.
5503         * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
5504         * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
5505
5506 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5507
5508         * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
5509
5510 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5511
5512         * server-src/planner.c (setup_estimate): ask for level 0 for 
5513         a new disk if force-bump is set, 
5514         log force-bump and force-nobump command.
5515
5516 2001-02-17 Thomas Hepper <th@ant.han.de>
5517
5518         * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
5519          based on the information found on the system, works for Linux and BSD with cam
5520          support. New config option debuglevel
5521         * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
5522          to control the amount of information by the config option debuglevel in the config
5523          file (docs follow), not complete yet.
5524         * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
5525           config file.
5526           New function DebugPrint to print debug information based on the variable debuglevel.
5527           Replaced a lot of dbprintf with new Function DebugPrint
5528         * changer-src/scsi-aix.c: changed parameter for ScanBus
5529         * changer-src/scsi-irix.c: changed parameter for ScanBus
5530         * changer-src/scsi-solaris.c: changed parameter for ScanBus
5531         * changer-src/scsi-bsd.c: changed parameter for ScanBus
5532         * changer-src/scsi-cam.c: Implemented function ScanBus
5533         * changer-src/scsi-linux.c: Implemented function ScanBus
5534         
5535 2001-02-09 John R. Jackson <jrj@purdue.edu>
5536
5537         * server-src/diskfile.c: Fix core dump in test program.
5538
5539 2001-02-09 John R. Jackson <jrj@purdue.edu>
5540
5541         * tape-src/output-file.c: Use a "data" subdirectory of the main
5542           file driver device directory to hold the tape "files".  This
5543           allows the status file to be moved to the main directory.
5544         * man/amanda.8.in: Document these changes.
5545
5546 2001-02-08 Thomas Hepper <th@ant.han.de>
5547
5548         * changer-src/scsi-aix.c: Added dummy ScanBus function
5549         * changer-src/scsi-bsd.c: Added dummy ScanBus function
5550         * changer-src/scsi-cam.c: Added dummy ScanBus function
5551         * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
5552         * changer-src/scsi-irix.c: Added dummy ScanBus function
5553         * changer-src/scsi-defs.h: Added prototype for ScanBus function
5554
5555 2001-02-04 John R. Jackson <jrj@purdue.edu>
5556
5557         * man/amanda.8.in: Fix mailto to space separated, not comma.
5558
5559 2001-02-03 John R. Jackson <jrj@purdue.edu>
5560
5561         * .cvsignore: Add entries to keep CVS quiet.
5562         * */.cvsignore: Ditto.
5563
5564 2001-02-03 John R. Jackson <jrj@purdue.edu>
5565
5566         * client-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
5567         * common-src/Makefile.am: Add more sources as needed to the test
5568           programs so they would compile.
5569         * server-src/Makefile.am: Create TEST_PROGS make variable ala the
5570           other Makefile.am files.
5571         * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
5572
5573 2001-02-03 John R. Jackson <jrj@purdue.edu>
5574
5575         * server-src/diskfile.c: Fix test program compilation error and bug
5576           when just a config name was given on the command line.
5577
5578 2001-02-02 John R. Jackson <jrj@purdue.edu>
5579
5580         * server-src/reporter.c: Fix problem with enum being unsigned on
5581           some systems.
5582
5583 2001-01-29 John R. Jackson <jrj@purdue.edu>
5584
5585         * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
5586           is now "the way".
5587
5588 2001-01-29 John R. Jackson <jrj@purdue.edu>
5589
5590         * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
5591           to booleans (compliments of Marc W. Mengel <mengel@fnal.gov>).
5592         * tape-src/tapeio.c (tape_fsf): Use ap_snprintf instead of snprintf
5593           (also compliments of Marc).
5594
5595 2001-01-26 John R. Jackson <jrj@purdue.edu>
5596
5597         * changer-src/Makefile.am: Double up the references to libamanda to
5598           handle systems that put regex in strange places.
5599         * client-src/Makefile.am: Ditto.
5600         * recover-src/Makefile.am: Ditto.
5601         * restore-src/Makefile.am: Ditto.
5602         * server-src/Makefile.am: Ditto.
5603         * tape-src/Makefile.am: Ditto.
5604
5605 2001-01-23 John R. Jackson <jrj@purdue.edu>
5606
5607         * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
5608           enhance and add "null" and "file" output drivers.  Change all
5609           tape changers (except chg-scsi) to use amdd and ammt.  Change all
5610           tape changers (except chg-scsi) to log and use a consistent
5611           error reporting scheme.  Fix various bugs along the way.  Add new
5612           chg-multi config option, posteject, which is an optional script
5613           to call after each "tape" is ejected (e.g. to use to start a
5614           CDROM writer).  Remove special code for tapedev of /dev/null
5615           (now handled by the "null" output driver).  Changed the taper
5616           protocol to pass the host/disk/level so the write can send that
5617           along to the output driver.  Fairly major rework of amrestore
5618           to clean up tape/non-tape and other oddities.
5619         * changer-src/chg-chio.pl.in: Ditto.
5620         * changer-src/chg-chs.sh.in: Ditto.
5621         * changer-src/chg-manual.sh.in: Ditto.
5622         * changer-src/chg-mtx.sh.in: Ditto.
5623         * changer-src/chg-multi.sh.in: Ditto.
5624         * changer-src/chg-rth.pl.in: Ditto.
5625         * changer-src/chg-zd-mtx.sh.in: Ditto.
5626         * client-src/sendbackup.c: Ditto.
5627         * common-src/alloc.c: Ditto.
5628         * common-src/amanda.h: Ditto.
5629         * docs/INTERNALS: Ditto.
5630         * man/Makefile.am: Ditto.
5631         * man/amanda.8.in: Ditto.
5632         * man/amdd.8: Ditto.
5633         * man/ammt.8: Ditto.
5634         * restore-src/amrestore.c: Ditto.
5635         * server-src/amcheck.c: Ditto.
5636         * server-src/amlabel.c: Ditto.
5637         * server-src/amtape.c: Ditto.
5638         * server-src/amverify.sh.in: Ditto.
5639         * server-src/conffile.c: Ditto.
5640         * server-src/conffile.h: Ditto.
5641         * server-src/taper.c: Ditto.
5642         * tape-src/Makefile.am: Ditto.
5643         * tape-src/amdd.c: Ditto.
5644         * tape-src/ammt.c: Ditto.
5645         * tape-src/output-file.c: Ditto.
5646         * tape-src/output-file.h: Ditto.
5647         * tape-src/output-null.c: Ditto.
5648         * tape-src/output-null.h: Ditto.
5649         * tape-src/output-rait.c: Ditto.
5650         * tape-src/output-rait.h: Ditto.
5651         * tape-src/output-tape.c: Ditto.
5652         * tape-src/output-tape.h: Ditto.
5653         * tape-src/tapeio.c: Ditto.
5654         * tape-src/tapeio.h: Ditto.
5655         * tape-src/tests/amtapeio.test.000: Ditto.
5656         * tape-src/tests/amtapeio.test.001: Ditto.
5657         * tape-src/tests/amtapeio.test.002: Ditto.
5658         * tape-src/tests/amtapeio.test.003: Ditto.
5659         * tape-src/tests/amtapeio.test.004: Ditto.
5660         * tape-src/tests/amtapeio.test.005: Ditto.
5661         * tape-src/tests/amtapeio.test.006: Ditto.
5662         * tape-src/tests/amtapeio.test.007: Ditto.
5663         * tape-src/tests/amtapeio.test.008: Ditto.
5664         * tape-src/tests/amtapeio.test.009: Ditto.
5665         * tape-src/tests/amtapeio.test.010: Ditto.
5666         * tape-src/tests/amtapeio.test.011: Ditto.
5667         * tape-src/tests/amtapeio.test.012: Ditto.
5668         * tape-src/tests/amtapeio.test.013: Ditto.
5669         * tape-src/tests/amtapeio.test.014: Ditto.
5670         * tape-src/tests/amtapeio.test.015: Ditto.
5671         * tape-src/tests/amtapeio.test.016: Ditto.
5672         * tape-src/tests/amtapeio.test.017: Ditto.
5673         * tape-src/tests/amtapeio.test.018: Ditto.
5674         * tape-src/tests/cleartape: Ditto.
5675         * tape-src/tests/newtest: Ditto.
5676         * tape-src/tests/rerun: Ditto.
5677         * tape-src/tests/runtest: Ditto.
5678         * tape-src/tests/testdist: Ditto.
5679         * tape-src/tests/torture: Ditto.
5680
5681 2001-01-24 John R. Jackson <jrj@purdue.edu>
5682
5683         * client-src/amandad.c: Improve packet logging.
5684
5685 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5686
5687         * server-src/driver.c (start_some_dumps): typo.
5688
5689 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5690
5691         * server-src/driverio.h (sched_t): new field no_space.
5692         * server-src/driver.c (start_some_dumps): don't start a disk if
5693           no_space is set.
5694         * server-src/driver.c (continue_dumps): set no_space if it's the
5695           only active dumpers, case c.
5696         * server-src/driver.c (read_schedule): set no_space to 0.
5697
5698 2001-01-23 John R. Jackson <jrj@purdue.edu>
5699
5700         * configure.in: Test for setmntent.
5701         * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
5702           changes that indirectly reference the device for a file system.
5703
5704 2001-01-22  Marc W. Mengel <mengel@fnal.gov>
5705
5706         * recover-src/extract_list.c: Added -U to tar recover options
5707         to reduce errors recovering shared libs and/or binaries on
5708         active filesystems.
5709
5710 2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5711
5712         * docs/INSTALL: Notes about tar-1.13.19
5713
5714 2001-01-17  Thomas Hepper <th@ant.han.de>
5715
5716         * changer-src/chg-scsi.c: Moved definitions for config_t and
5717         changer_t into scsi-defs.h
5718         * changer-src/chg-scsi.c: New config option havebarcode
5719         * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
5720         the option havebarcode. Replaced NoBarCode with GenericBarCode.
5721         Fixed compile warnings from -Wshadow
5722         * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
5723         not used yet.
5724         * changer-src/scsi-solaris.c: Changed the return value to
5725         Command.uscsi_status in SCSI_ExecuteCommand if the return from the
5726         ioctl is not 0;
5727         
5728 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5729
5730         * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and 
5731           "DATESTAMP EXPRESSION".
5732         * man/amadmin.8.in: Document new usage.
5733         * man/amflush.8.in: Document new usage.
5734         * man/amcheck.8.in: Document new usage.
5735         * man/amdump.8.in: Document new usage.
5736         * man/amrestore.8: Document new usage.
5737         * server-src/amadmin.c: Fix usage.
5738         * server-src/amflush.c: Fix usage.
5739         * server-src/amcheck.c: Fix usage.
5740
5741 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5742
5743         * server-src/diskfile.c (match_disklist): Return if no args.
5744
5745 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5746
5747         * server-src/diskfile.c (match_disklist): Fix.
5748
5749 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5750
5751         * server-src/diskfile.c (match_disklist): Updated for
5752           [host [disk]*]* syntax.
5753
5754 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5755
5756         * common-src/match.c (match_datestamp): New function.
5757         * common-src/amanda.h (match_datestamp): Prototype.
5758         * server-src/amflush.c: Use match_datestamp.
5759         * restore-src/amrestore.c: Use match_datestamp.
5760
5761 2001-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5762
5763         * common-src/match.c (match_word): Support for leading ^ and
5764           trailing $.
5765
5766 2001-01-04 John R. Jackson <jrj@purdue.edu>
5767
5768         * common-src/error.c (error): If the debug file pointer is set, log
5769           any fatal error message to it and close the file so it has a good
5770           trace of what happened and when.
5771
5772 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5773
5774         * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
5775         * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
5776         * taper-src/output-rait.c: include "tapeio.h", new define for
5777            rait_debug
5778         * taper-src/tapeio.c(many): Remove unused tfd variable.
5779         * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
5780
5781 2001-01-04 John R. Jackson <jrj@purdue.edu>
5782
5783         * client-src/killpgrp.c: Calls to error() do not need a newline.
5784
5785 2001-01-04 John R. Jackson <jrj@purdue.edu>
5786
5787         * man/amanda.8.in: Try to make it clearer that dumpcycle and maxdumps
5788           changes in the main part of the config file must appear before any
5789           dumptype definitions, and also that inherited dumptypes must appear
5790           before their reference.
5791
5792 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5793
5794         * server-src/driver.c (continue_dumps): Don't reduce est_size if
5795           it is already larger than holding space allocated.
5796         * server-src/dumper.c: Remove all code for FILE_DUMP command.
5797         * server-src/chunker.c: Better handling of ENOSPC from
5798           write_tapeheader().
5799
5800 2001-01-04 John R. Jackson <jrj@purdue.edu>
5801
5802         * server-src/conffile.c (main): Fix conffile test program so it builds
5803           and works again.
5804
5805 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5806
5807         * changer-src/scsi-defs.h (ChangerCMD_T): replace array function
5808           pointer by enumerated pointers.
5809         * changer-src/scsi-changer-driver.c: Use new calling convention.
5810
5811 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5812
5813         * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
5814           ABORT-FINISHED result.
5815
5816 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5817
5818         * server-src/amflush.c: Use getopt to parse argument.
5819         * server-src/amflush.c: New [-D date]* argument.
5820         * man/amflush.8.in: Document it.
5821
5822 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5823         Patch by Andreas F Mueller <afm@othello.ch>
5824
5825         * server-src/amadmin.c (force_no_bump_one): Fix message.
5826
5827 2001-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5828
5829         * tape-src/am-dd.c: include "amanda.h"
5830         * tape-src/am-mt.c: include "amanda.h"
5831         * tape-src/am-mt.c (main): res is int.
5832         * tape-src/output-rait.c: include "amanda.h", do not define stderr.
5833         * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
5834           argument should be "char *"
5835         * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
5836           argument should be "const char *"
5837
5838 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5839
5840         * server-src/find.c (find_match): Use todo bit.
5841         * server-src/find.c (find_dump): No arguments.
5842         * server-src/find.h (find_dump): Change prototype.
5843         * server-src/amadmin.c (find): New [host disk]* pair arguments.
5844         * server-src/amindexd.c: Change call to find_dump().
5845         * server-src/amtrmidx.c: Change call to find_dump().
5846
5847 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5848
5849         * configure.in: Don't check krb5 include if krb5 is not selected.
5850
5851 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5852
5853         * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
5854
5855 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5856
5857         * server-src/amadmin.c (diskloop): typo.
5858
5859 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5860
5861         * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
5862         * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
5863         instead of argv[0].
5864
5865 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5866
5867         * server-src/amflush.c (main):log DISK after checking if logfile exist.
5868
5869 2000-12-30 John R. Jackson <jrj@purdue.edu>
5870
5871         * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
5872           when things go wrong.  Add support for "bsdsecurity" test program
5873           in common-src.
5874         * common-src/Makefile.am: Ditto.
5875         * common-src/amanda.h: Ditto.
5876         * restore-src/amidxtaped.c: Ditto.
5877         * server-src/amindexd.c: Ditto.
5878
5879 2000-12-30 John R. Jackson <jrj@purdue.edu>
5880
5881         * ChangeLog: Bring Jean-Louis into the right month :-).
5882         * changer-src/scsi-changer-driver.c: Untested changes to at least
5883           get the code to compile on Solaris and to remove some warnings.
5884         * changer-src/scsi-defs.h: Ditto.
5885         * changer-src/scsi-solaris.c: Ditto.
5886
5887 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5888
5889         * server-src/diskfile.c (add_disk): New function.
5890         * server-src/diskfile.h (add_disk): Prototype.
5891         * server-src/logfile.h (logtype_e): add L_DISK.
5892         * server-src/logfile.c (logtype_str): add "DISK".
5893         * server-src/amflush.c (main): log DISK.
5894         * server-src/planner.c (main): log DISK.
5895         * server-src/reporter.c: use DISK if available.
5896
5897 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5898
5899         * server-src/amcheck.c: New [host disk]* pair arguments.
5900         * server-src/amflush.c: Ditto.
5901         * server-src/planner.c: Ditto.
5902         * server-src/amdump.sh.in: Ditto.
5903         * server-src/amrestore.c: Use new host/disk matcher.
5904         * man/amcheck.8.in: Document new [host disk]* pair arguments.
5905         * man/amflush.8.in: Ditto.
5906         * man/amdump.8.in: Ditto.
5907
5908 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5909
5910         * server-src/diskfile.c (match_disklist): new function.
5911         * server-src/diskfile.h (struct disk_s): new field todo.
5912         * server-src/diskfile.h (match_disklist): prototype.
5913
5914 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5915
5916         * common-src/match.c (match_word, match_host, match_disk): 
5917         new functions.
5918         * common-src/amanda.h (match_host, match_disk): prototype.
5919
5920 2000-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5921
5922         * server-src/planner.c (analyze_estimate): pick incremental level
5923         if no estimate of level 0.
5924
5925 2000-12-28 Marc W. Mengel <mengel@fnal.gov>
5926         * changer-src/chg-juke.sh.in: New File
5927         * changer-src/Makefile.am: Added support for chg-juke.
5928         * docs/TAPE.CHANGERS: Likewise.
5929         * configure.in: Likewise.
5930
5931 2000-12-24 John R. Jackson <jrj@purdue.edu>
5932
5933         * server-src/getconf.c: Fix free() of static text string (BUGGY) when
5934           the parameter being looked up is bad.
5935
5936 2000-12-23 David Wolfskill  <dhw@whistle.com>
5937
5938         * server-src/amcheck.c (start_server_check): Change directory
5939           writable check to be for the tapelist directory instead of
5940           the config file directory.  Remove config file directory test.
5941         * man/amcheck.8.in: Add mention of tapelist directory and do
5942           some other directory writable cleanup.
5943
5944 2000-12-12 John R. Jackson <jrj@purdue.edu>
5945
5946         * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
5947           or tabs.
5948
5949 2000-12-12 John R. Jackson <jrj@purdue.edu>
5950
5951         * Makefile.am: Work around problem with automake 1.4 not including
5952           pkgdata_DATA.
5953         * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
5954           Work around problem with automake 1.4 not including pkgdata_DATA.
5955         * tape-src/rait.h: Renamed to rait.h.
5956         * tape-src/rait.c: Renamed to rait.c.
5957         * tape-src/output-rait.h: Renamed from rait.h.
5958         * tape-src/output-rait.c: Renamed from rait.c.
5959         * tape-src/Makefile.am: Reflect the new rait.[ch] names.
5960         * tape-src/tapeio.c: Use output-rait.h name.  Minor typo changes.
5961
5962 2000-12-08 Marc Mengel <mengel@fnal.gov>
5963
5964         * docs/RAIT: New file.
5965         * docs/VTAPE-API: New file.
5966         * tape-src/rait.c: New File providing RAIT virtual tape type.
5967         * tape-src/tapeio.c: Major Surgery.
5968           (vtable): New static table of virtual tape types.
5969           (fdtable): New static table mapping file descriptors.
5970           (tapefd_fsf_ioctl): Renamed tapefd_fsf, with added ioctl argument.
5971           (tapefd_rewind_ioctl): Likewise.
5972           (tapefd_unload_ioctl): Likewise.
5973           (tapefd_weof_ioctl): Likewise.
5974           (tapefd_status_ioctl): Likewise.
5975           (tape_open): Now is a virtual tape table lookup and call.
5976           (tape_access): Now is a switch through virtual tape table.
5977           (tape_stat): Likewise.
5978           (tapefd_close): Likewise.
5979           (tapefd_fsf): Likewise.
5980           (tapefd_read): Likewise.
5981           (tapefd_rewind): Likewise.
5982           (tapefd_resetofs): Likewise.
5983           (tapefd_unload): Likewise.
5984           (tapefd_status): Likewise.
5985           (tapefd_weof): Likewise.
5986           (tapefd_write): Likewise.
5987           (plain_tape_access): Rename of tape_access.
5988           (plain_tape_open): Likewise.
5989           (plain_tapefd_read): Likewise.
5990           (plain_tape_stat): Likewise.
5991           (plain_tapefd_write): Likewise.
5992           (plain_tapefd_close): Likewise.
5993           (plain_tapefd_fsf): Now calls tapefd_fsf_ioctl with &ioctl().
5994           (plain_tapefd_rewind): Likewise.
5995           (plain_tapefd_resetofs): Likewise.
5996           (plain_tapefd_unload): Likewise.
5997           (plain_tapefd_status): Likewise.
5998           (plain_tapefd_weof): Likewise.
5999
6000 2000-12-04 John R. Jackson  <jrj@purdue.edu>
6001
6002         * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
6003           problem.
6004
6005 2000-12-04 John R. Jackson  <jrj@purdue.edu>
6006
6007         * server-src/conffile.c (read_conffile_recursively): If the file name
6008           for the includefile directive is not absolute, make it relative to
6009           the configuration directory.
6010
6011 2000-12-03 John R. Jackson  <jrj@purdue.edu>
6012
6013         * restore-src/amrestore.c: Fix header when compression is included.
6014           Use "fast" option for -c and add new -C option to get "best".
6015         * man/amrestore.8: Document the new option, the compression level,
6016           and clean up some nroff issues.
6017
6018 2000-11-30 Marc Mengel <mengel@fnal.gov>
6019
6020         * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
6021         * changer-src/chg-chs.sh.in: Likewise.
6022         * changer-src/chg-manual.sh.in: Likewise.
6023         * changer-src/chg-mtx.sh.in: Likewise.
6024         * changer-src/chg-multi.sh.in: Likewise.
6025         * changer-src/chg-rth.pl.in: Likewise.
6026         * changer-src/chg-zd-mtx.sh.in:  Likewise.
6027         * tape-src/am-dd.c: New file. Replacement for dd.
6028         * tape-src/am-mt.c: New file. replacement for mt.
6029         * tape-src/Makefile.am: Add build for am-mt and am-dd.
6030         * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status, 
6031           tapefd_status): New functions.
6032           (tape_rewind, tape_fsf, tape_rdlabel): Change error message 
6033                 for tape being offline so it matches online/offline regex 
6034                 in changer scripts.
6035           (tape_open): Ifdef-out mode flag clearing, so you can pass 
6036                 O_TRUNC, etc.  in for am-dd.
6037
6038 2000-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6039
6040         * common-src/util.c: #include "../tape-src/tapeio.h"
6041         * tape-src/tapeio.c(tapefd_write): second arg is const.
6042         * tape-src/tapeio.h(tapefd_write): Likewise.
6043         * common-src/event.c(event_loop): declare entry if ASSERT is defined.
6044         * changer-src/chg-scsi.c: Fix compiler warning.
6045         * changer-src/scsi-aix.c: Likewise.
6046         * changer-src/scsi-bsd.c: Likewise.
6047         * changer-src/scsi-cam.c: Likewise.
6048         * changer-src/scsi-changer-driver.c: Likewise.
6049         * changer-src/scsi-defs.h: Likewise.
6050         * changer-src/scsi-hpux.c: Likewise.
6051         * changer-src/scsi-hpux_new.c: Likewise.
6052         * changer-src/scsi-irix.c: Likewise.
6053         * changer-src/scsi-linux.c: Likewise.
6054         * changer-src/scsi-solaris.c: Likewise.
6055         * changer-src/sense.c: Likewise.
6056
6057 2000-11-22 John R. Jackson  <jrj@purdue.edu>
6058
6059         * contrib/dbbackup.ksh: Deal with adm being a symlink.
6060         * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
6061
6062 2000-11-22 John R. Jackson  <jrj@purdue.edu>
6063
6064         * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
6065           of files to put in a distribution.
6066
6067 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6068
6069         * recover-src/extract_list.c (extract_files_child): Add support for
6070           XFSRESTORE.
6071
6072 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6073
6074         * server-src/amcheck.c: Minor message wording changes.
6075
6076 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6077
6078         * configure.in: Forgot to check in this part of new amgetconf.8.in.
6079
6080 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6081
6082         * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
6083         * contrib/sst/sst.c: Attempt at letting gcc compile sst.
6084
6085 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6086
6087         * man/amgetconf.8.in: New man page.
6088         * man/Makefile.am: Add support for amgetconf.8.in.
6089         * man/amadmin.8.in: Update for 2.4.2 and do general cleanup.
6090         * man/amanda.8.in: Ditto.
6091         * man/amcheck.8.in: Ditto.
6092         * man/amcheckdb.8.in: Ditto.
6093         * man/amcleanup.8.in: Ditto.
6094         * man/amdump.8.in: Ditto.
6095         * man/amflush.8.in: Ditto.
6096         * man/amlabel.8.in: Ditto.
6097         * man/amrecover.8.in: Ditto.
6098         * man/amreport.8.in: Ditto.
6099         * man/amrestore.8: Ditto.
6100         * man/amrmtape.8.in: Ditto.
6101         * man/amstatus.8.in: Ditto.
6102         * man/amtape.8: Ditto.
6103         * man/amtoc.8.in: Ditto.
6104         * man/amverify.8.in: Ditto.
6105
6106 2000-11-21 John R. Jackson  <jrj@purdue.edu>
6107
6108         * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
6109
6110 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6111
6112         * server-src/amdump.sh.in: exit if amgetconf exit with status != 0.
6113         * server-src/amcleanup.sh.in: ditto
6114         * server-src/amstatus.pl.in: ditto
6115
6116 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6117
6118         * server-src/driver.c (start_some_dumps): don't check free_kps if
6119         curusage == 0.
6120         * server-src/driver.c (free_kps): remove the kludge.
6121
6122 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6123
6124         * server-src/conffile.c: It's an error to have a negative chunksize.
6125         * man/amanda.8.in: remove documentation of negative chunksize.
6126         * example/amanda.conf.in: ditto
6127         * example/amanda.conf.chg-scsi.in:ditto
6128         * NEWS: negative chunksize is no longer supported.
6129
6130 2000-11-03 John R. Jackson  <jrj@purdue.edu>
6131
6132         * server-src/driver.c (handle_taper_result): the holding disk entry
6133         should not be removed just because taper could not write it out in
6134         the "too many taper retries" case.  It should be left for amflush.
6135
6136 2000-11-01 John R. Jackson  <jrj@purdue.edu>
6137
6138         * server-src/amverify.sh.in: use common form for getting the first
6139         line of a file/pipe.  Sed is more portable than head.
6140
6141 2000-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6142
6143         * client-src/selfcheck.c (check_disk): Write an appropriate
6144         message if the disk name start with '//' and the program is DUMP
6145         or SAMBA is not compiled in.
6146
6147 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6148
6149         * server-src/driver.c (handle_chunker_result): The dumpsize is
6150         the third argument, not the fourth.
6151
6152 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6153
6154         * server-src/driver.c (handle_chunker_result): don't check
6155         pending_aborts, call event_release() ob ABORT-FINISHED.
6156
6157 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6158
6159         * server-src/chunker.c (databuf_flush): workaround to prevent a
6160         hang on a ABORT command.
6161
6162 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6163
6164         * server-src/driver.c (continue_dumps): set estimate to more than 
6165         what is already use instead of setting no_hold=1 when a disk
6166         don't fit on holding disk.
6167
6168 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6169
6170         * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
6171
6172 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6173
6174         * server-src/amstatus.pl.in: add '&' when calling &usage() 
6175         or &dump_size().
6176
6177 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6178         reported by The Hermit Hacker <scrappy@hub.org>
6179
6180         * changer-src/chg-chio.pl.in: remove unused $libexecdir.
6181
6182 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6183         reported by The Hermit Hacker <scrappy@hub.org>
6184
6185         * changer-src/chg-chio.pl.in: remove comma after LOG, 
6186         typo: r should be 0.
6187
6188 2000-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6189
6190         * docs/INDEXING: doc updated.
6191
6192 2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6193
6194         * AUTHORS: add Thomas Hepper.
6195
6196 2000-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6197
6198         * server-src/driverio.c (chunker_cmd): send ABORT command.
6199
6200 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6201
6202         * server-src/amverify.sh.in: grep only the first line of the header.
6203
6204 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6205
6206         * server-src/amverify.sh.in: verify with tar even if the
6207         server and the client are not configured with the same path.
6208
6209 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6210
6211         * NEWS: A new `ctimeout' keyword in amanda.conf to replace 
6212         the CHECK_TIMEOUT constant in amcheck.c.
6213
6214 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6215
6216         * server-src/amlabel.c: Don't set tape_ok to 0 if 
6217         tape_wrlabel is successful.
6218
6219 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6220
6221         * server-src/taper.c: amfree(strclosing).
6222
6223 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6224
6225         * server-src/driver.c: typo.
6226
6227 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6228
6229         * configure.in: --with-samba-user is deprecated.
6230         * docs/SAMBA: the username is now on the amandapass file.
6231         * NEWS: the username is now on the amandapass file.
6232         * client-src/findpass.c (findpass): accept "*" as diskname.
6233         * client-src/selfcheck.c (check_disk): call to samba changed.
6234         * client-src/sendsize.c (getsize_smbtar): ditto.
6235         * client-src/sendbackup-gnutar.c (start_backup): ditto.
6236         * recover-src/extract_list.c (extract_files_child): ditto.
6237
6238 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6239
6240         * server-src/taper.c: give better message when failing 
6241         to open a chunk.
6242
6243 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6244
6245         * server-src/diskfile.c (headqueue_disk): new function to
6246         insert at the head of the queue.
6247         * server-src/diskfile.h (headqueue_disk): prototype.
6248         * server-src/driver.c (taper_queuedisk): insert with
6249         headqueue_disk() if disk already attempted.
6250
6251 2000-10-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6252
6253         * AUTHORS: fix my email address.
6254
6255 2000-09-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6256
6257         * server-src/amcheck.c: Don't accept -m or -M option if MAILER
6258         is not defined.
6259         * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
6260
6261 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6262         patch by <jeg@time.ucsc.edu>
6263
6264         * server-src/reporter.c (output_summary): check for tape_labels.
6265
6266 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6267
6268         * server-src/amindexd.c: use strcasecmp to compare hostname.
6269
6270 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6271
6272         * server-src/amstatus.pl.in: fix plural misuse.
6273
6274 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6275
6276         * man/amanda.8.in: add all pages in the SEE ALSO section.
6277
6278 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6279
6280         * man/amreport.8.in: amreport does not rotate the log.
6281         * man/amrestore.8: note on holdingdisk.
6282         * restore-src/amrestore.c: update usage.
6283         * server-src/amrmtape.sh.in: update usage.
6284         * server-src/amverify.sh.in.usage: update usage.
6285
6286 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6287
6288         * server-src/amoverview.pl.in: update usage information,
6289         -config is no longer needed for ccompatibility with other program.
6290         * man/amoverview.8.in: -config is no longer needed.
6291
6292 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6293
6294         * example/amanda.conf.in: chunk should not be larger than
6295         MAX_FILE_SIZE - 1Mb.
6296
6297 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6298
6299         * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
6300         variable.
6301         * server-src/amlabel.c (main): init errstr to NULL, 
6302         fix compiler warning.
6303
6304 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6305         patch by jason Thomas <jet@users.sourceforge.net>
6306
6307         * tape-src/tapetype.c: fix help message.
6308
6309 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6310         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
6311
6312         * common-src/file.c (mkpdir): check p != NULL
6313         * man/amstatus.8.in: typo
6314
6315 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6316         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
6317
6318         * client-src/calcsize.c:sets correct program name,
6319         prevent coredumps and some improrer command line error mesages
6320
6321 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6322
6323         * common-src/amanda.h: prototype clean_regex().
6324         * common-src/match.c: new function clean_regex() that escape
6325         all non-alphanumeric character.
6326         * recover-src/extract_list.c (add_file, delete_file): use clean_regex().
6327
6328 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6329
6330         * server-src/amcheck.c: (start_server_check): check for the oldlog
6331         directory.
6332
6333 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6334
6335         * server-src/amtrmlog.c: better check of the oldlog directory.
6336
6337 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6338
6339         * server-src/amcheck.c: (start_server_check): don't check the tape
6340         if tapedev is /dev/null.
6341
6342 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6343
6344         * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
6345
6346 2000-07-31 Thomas Hepper <th@ant.han.de>
6347         * changer-src/chg-scsi.c: Rework of the device handling.
6348         Every device is opend for an operation and than closed.
6349         This will hopefully fix the problems with openening the tape device
6350         and the SCSI control device for the tape
6351         new option emubarcode (see docs/TAPE.CHANGERS)
6352         * changer-src/scsi-cam.c: Changed to work with the new device handling.
6353         * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
6354         * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
6355         * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
6356         * changer-src/scsi-linux.c: Changed to work with the new device handling.
6357         * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
6358         * changer-src/scsi-defs.h: Changed to work with the new device handling
6359 2000-07-18 John R. Jackson  <jrj@purdue.edu>
6360
6361         * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
6362         function to return a string instead of writing to stdout.
6363
6364 2000-07-18 John R. Jackson  <jrj@purdue.edu>
6365
6366         * server-src/taper.c (file_reader_side): detach and destroy shared
6367         memory areas on an error condition.  Found by Patrik Andersin
6368         <cat@iki.fi>.
6369
6370 2000-07-17 Thomas Hepper <th@ant.han.de>
6371         * docs/TAPE.CHANGERS: Added some notes for the cam driver
6372         * changer-src/scsi-cam.c: New syntax for telling scsi ids
6373         (bus:target:lun)
6374         SCSI_ExecuteCommand now returns the correct sense buffer.
6375
6376 2000-07-17 Thomas Hepper <th@ant.han.de>
6377         * configure.in: Added check for BSD SCSI CAM Support
6378         * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
6379         ( at the moment for FreeBSD 4.0)
6380         * changer-src/Makefile.am: added scsi-cam.s to the list of sources
6381         * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
6382         allocated in chg-scsi and passed to OpenDevice.
6383         * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
6384         (OpenFiles_T)
6385
6386 2000-07-10 Marc Mengel <mengel@fnal.gov>
6387         * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
6388                 on tape device names
6389         * tape-src/tapeio.h -- add tape_{stat,access} prototypes
6390         * common-src/util.c -- call tape_{read,write}() in full{read,write}()
6391         * restore-src/amidxtaped.c -- use tape_stat() on tapename
6392         * restore-src/amrestore.c -- use tape_stat() on tapename
6393         * server-src/amcheck.c -- use tape_access() on tapename
6394         * client-src/Makefile.am -- now needs libamtape.a twice
6395         * server-src/Makefile.am -- now needs libamtape.a twice
6396         * recover-src/Makefile.am -- now needs libamtape.a twice
6397         * Makefile.am -- tape-src before client-src
6398
6399 2000-07-05 Thomas Hepper <th@ant.han.de>
6400         * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
6401         * changer-src/scsi-changer-driver.c (OpenFile):
6402          if the ident ist set in the config set this in the internal device 
6403          struct too.
6404         * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
6405          changed the type for the info text from char * to char ** which
6406          is passwd to Sense2Action
6407         * changer-src/scsi-changer-driver.c (ChangerStatus):
6408          fixed the bug which causes an core dump for chg-scsi -status robot
6409          if an bar code reader is detected. Fixed also the bug that the
6410          mapping Label -> Barcode was not displayed.
6411         * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
6412         * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
6413         * changer-src/sense.c (Sense2Action); Fixed the handling if no match
6414          was found (fall back to the generic description)
6415
6416 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6417
6418         * server-src/list_dir.c (add_dir_list_item): add at head of list.
6419
6420 2000-06-24 Thomas Hepper <th@ant.han.de>
6421         * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2 
6422         * changer-src/chg-scsi.c: Merged changes from 2.4.2
6423         * changer-src/sense.c: New file. Contains an table and function for the 
6424           mapping of sense/ASC/ASCQ conditions from the SCSI sense.
6425         * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
6426           Changed handling for the sense keys. Now there is only one function
6427           to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
6428         * changer-src/Makefile.am: Added sense.c to the source list.
6429         * changer-src/scsi-solaris.c: Merged changes from 2.4.2 
6430         * changer-src/scsi-linux.c: Merged changes from 2.4.2 
6431         * changer-src/scsi-irix.c: Merged changes from 2.4.2 
6432         * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2 
6433         * changer-src/scsi-defs.h: Merged changes from 2.4.2 
6434         
6435 2000-06-12  Jeroen Ruigrok van der Werven  <asmodai@wxs.nl>
6436
6437         * server-src/amlabel.c (main): Do not amfree(config_name).
6438
6439 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6440
6441         * server-src/holding.c (pick_datestamp): convert ch to upper.
6442
6443 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6444
6445         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
6446           delay call to dumper_result().
6447
6448 2000-05-28  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6449
6450         * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
6451         messages.
6452
6453 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6454
6455         * chunker.c: allow chunk to be written on different holding disk.
6456         * server-src/driver.c: allow chunk to be written on different
6457           holding disk.
6458         * server-src/conffile.c: make sure that disksize and chunksize
6459           are multiple of TAPE_BLOCK_SIZE.
6460         * server-src/conffile.h: disksize and chunksize are long.
6461         * server-src/diskfile.c (find_disk): new function to see if a
6462           given disk is contained in a list structure.
6463         * server-src/diskfile.h (find_disk): prototype.
6464         * server-src/driverio.h (RQ_MORE_DISK): Added message.
6465         * server-src/driverio.h (free_assignedhd): prototype.
6466         * server-src/driverio.h (assignedhd_t): new data structure.
6467         * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
6468         * server-src/driverio.c (free_assignedhd): new function to free an
6469           array of assignedhd_t.
6470         
6471 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6472
6473         * server-src/driver.c (chunker_program): new variable.
6474
6475 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6476
6477         * server-src/amstatus.pl.in: handle chunker line.
6478
6479 2000-04-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6480
6481         * recover-src/Makefile.am (LDADD): Removed libamtape.
6482         Reported by Paul Yeatman <pyeatman@ucsd.edu>
6483
6484 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6485
6486         * server-src/chunker.c: new file for the chunker program.
6487         * server-src/Makefile.am: compile it.
6488         * server-src/driver.c: many modification.
6489         * server-src/driverio.c: many modification.
6490         * server-src/driverio.c (startup_chunk_process, chunker_cmd):
6491         new functions.
6492         * server-src/driverio.h: prototype them.
6493         * server-src/driverio.h (struct chunker_s): new structure.
6494         * server-src/logfile.c: handle chunker log.
6495         * server-src/logfile.h: ditto.
6496         * server-src/reporter.c: ditto.
6497         * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
6498
6499 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6500
6501         * server-src/taper.c: don't crash if the tapelist file
6502         doesn't exist.
6503
6504 2000-04-09  Frank Wojcik  <fwojcik@lucent.com>
6505
6506         * server-src/taper.c (detach_buffers): Fixed typo in error message.
6507
6508         * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
6509         should have been `InfoFile'.
6510
6511 2000-04-09  Davide Marchignoli  <marchign@di.unipi.it>
6512   
6513         * server-src/conffile.h (confparm_t): Added CTIMEOUT.
6514         * server-src/conffile.c: Added ctimeout support.  Default to 30.
6515         * example/amanda.conf.in: Likewise.
6516         * man/amanda.8.in: Documented it.
6517         * server-src/amcheck.c: Use ctimeout from configuration file instead
6518         of CHECK_TIMEOUT.
6519
6520 2000-04-09  Stan Brown  <stanb@awod.com>
6521
6522         * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
6523         it is actually a prefix of fsname.
6524
6525 2000-04-09  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6526
6527         * server-src/amlabel.c (main): Check label *after* writing end mark.
6528
6529 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6530
6531         * server-src/amlabel.c: don't crash if the tapelist file 
6532         doesn't exist.
6533
6534 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6535
6536         * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
6537
6538 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6539
6540         * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
6541         and FORCE_BUMP are mutually exclusive.
6542
6543 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6544
6545         * server-src/driver.c (main): use the holding disk even if the
6546         datestamped directory already exist.
6547
6548 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6549
6550         * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
6551         twice to avoid warnings of possible typo.
6552
6553         * amplot/amplot.awk: Ignore dumper's RQ-MORE-DISK.
6554         Reported by David Wolfskill <dhw@whistle.com>
6555         * amplot/amplot.awk: Handle taper's TRY-AGAIN like TAPE-ERROR.
6556
6557         * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
6558         errors.
6559         Reported by David Wolfskill <dhw@whistle.com>
6560
6561         * man/amtoc.8.in: Document -w.
6562
6563 2000-01-21  David Wolfskill  <dhw@whistle.com>
6564
6565         * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
6566
6567 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6568
6569         * man/amlabel.8.in: Tapes are no longer requested in reverse order
6570         of amlabeling.
6571         Reported by Brad Guillory <round@baileylink.net>
6572
6573         * server-src/amstatus.pl.in: New option --stats, to display
6574         statistics about dumpers and taper.
6575         * man/amstatus.8.in: Document it.
6576
6577 2000-01-21  David Wolfskill  <dhw@whistle.com>
6578
6579         * server-src/amstatus.pl.in: Sort dumpers by number.
6580
6581 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6582
6583         * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
6584
6585         * configure.in (MAILER): Warn or print an error if not found,
6586         depending on whether server code is disabled or not.
6587
6588         * server-src/reporter.c (output_tapeinfo): Report used tapes
6589         regardless of tape errors.
6590
6591         * config/acinclude.m4i (CF_WAIT): Simplify the test.  Declare wait()
6592         in the global scope.
6593
6594 2000-01-21  Garrett Wollman  <wollman@khavrinen.lcs.mit.edu>
6595
6596         * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
6597         where `union wait' works but is deprecated.
6598
6599 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6600
6601         * recover-src/uscan.l (settape): Recognize it.
6602         * recover-src/uparse.y: Parse it.
6603         * recover-src/amrecover.h (set_tape): Declare it.
6604         * recover-src/set_commands.c (set_tape): Implement it.
6605         * recover-src/help.c (help_list): Document it.
6606         * man/amrecover.8.in: Likewise.
6607         * recover-src/extract_list.c (extract_files): Warn if tape device is
6608         /dev/null.
6609         * recover-src/amrecover.c (tape_device_name): Default to
6610         server-determined default.
6611
6612 2000-01-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6613
6614         * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
6615
6616         * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
6617         Allow for `make tapetype' before libamanda is built.
6618
6619         * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
6620
6621 2000-01-06  David Wolfskill  <dhw@whistle.com>
6622
6623         * docs/TAPETYPES: Typo.
6624         
6625 2000-01-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6626
6627         * docs/TAPETYPES: Removed all tapetype entries.  Pointed to
6628         example/amanda.conf, to the mailing list archives and to the on-line
6629         tapetype list.  Explained the meaning of length, filemark and speed,
6630         and how to build and use the tapetype utility.
6631
6632 1999-12-12 John R. Jackson  <jrj@purdue.edu>
6633
6634         * configure.in: egrep was having trouble with quoting on some systems.
6635         Broke it apart into multiple unquoted statements.  Also, changed the
6636         script to run the steps on all dump tests and added "Label" as another
6637         line to ignore.
6638
6639 1999-12-12 John R. Jackson  <jrj@purdue.edu>
6640
6641         * tape-src/tapetype.c: tweak the algorithm to write files in both
6642         passes and compute the tape mark size as the difference.  Never
6643         report a negative tape mark size.  Various other minor cleanup.
6644
6645 1999-11-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6646
6647         * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
6648         Samba messages unless SAMBA_VERSION < 2.
6649
6650 1999-11-29  John E.P.Hynes  <john@hytronix.ne.mediaone.net>
6651
6652         * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
6653
6654 1999-11-25 John R. Jackson  <jrj@purdue.edu>
6655
6656         * server-src/amflush.c (main): conf_logdir should not be free'd
6657           (found by Espen H Wiborg <espenhw@infotek.no>).
6658
6659 1999-11-10 John R. Jackson  <jrj@purdue.edu>
6660
6661         * recover-src/extract_list.c: report the tape server host in the
6662           message to check the amidxtaped.debug file.   If extract_list_child
6663           fails (such as when amidxtaped fails to read the tape), ask if
6664           things should continue instead of aborting.
6665
6666 1999-11-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6667
6668         * server-src/driverio.c (update_info_dumper): Discard information on
6669         older same- or higher-level dumps.
6670         * server-src/driver.c (dump_to_tape): Add comment that _dumper must
6671         be called before _taper.
6672
6673         * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
6674
6675 1999-11-10 John R. Jackson  <jrj@purdue.edu>
6676
6677         * server-src/amindexd.c (build_disk_table): need to clear the old
6678           disk history list before building a new one.
6679
6680 1999-11-10 John R. Jackson  <jrj@purdue.edu>
6681
6682         * server-src/taper.c (label_tape): issue a warning when tapedev is
6683           set to /dev/null.
6684         * server-src/amcheck.c (start_server_check): make warning message
6685           text the same for amcheck and taper when tapedev is /dev/null.
6686
6687 1999-11-10 John R. Jackson  <jrj@purdue.edu>
6688
6689         * server-src/amcleanupdisk.c (main): try to remove empty holding disk
6690           areas.
6691         * server-src/holding.c (scan_holdingdisk): do not automatically remove
6692           empty holding disk areas since this function is called by various
6693           utilities and a dump might be in progress.
6694
6695 1999-11-10  James FitzGibbon  <james@targetnet.com>
6696
6697         * server-src/infofile.c (put_info): d.size should have been
6698         d.dsize.
6699
6700 1999-11-09 John R. Jackson  <jrj@purdue.edu>
6701
6702         * server-src/amcheck.c (start_server_check): test tapedev for
6703           "/dev/null" and issue warning that dumps will be thrown away.
6704
6705 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
6706
6707         * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
6708         should have been CNF_INFOFILE; fixed.
6709
6710 1999-11-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6711
6712         * common-src/amflock.c (struct flock): Do not assume the fields are
6713         declared in any particular order.
6714         Reported by Sean Kelly <kelly@plutotech.com>
6715
6716         * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
6717         * docs/INSTALL: Likewise.
6718
6719 1999-11-02  Ricardo Malta  <rmalta@bigfoot.com>
6720         
6721         * contrib/set_prod_link.pl: Create the links for a configuration
6722         with --with-suffix.
6723
6724 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
6725
6726         * common-src/rsh-security.c (net_writev): The result of a cast is
6727         not an lvalue; fixed.
6728
6729 1999-10-26  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
6730
6731         * server-src/amtoc.pl.in: Correct a bug for total report.
6732
6733 1999-11-01 John R. Jackson  <jrj@purdue.edu>
6734
6735         * server-src/amcleanupdisk.c (main): do not free the config name (it
6736           was never alloc-d).
6737
6738 1999-10-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6739
6740         * common-src/debug.c: Do not assume stderr is a compile-time
6741         constant.  On glibc 2.2 (RedHat Linux 6.1), it is not.
6742
6743 1999-10-11  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
6744
6745         * server-src/amtoc.pl.in: Add new options -i and -t.  Print original
6746         size, instead of size on tape.
6747
6748 1999-10-07 John R. Jackson  <jrj@purdue.edu>
6749
6750         * common-src/stream.c (stream_server): remove reference to portrange
6751           variable.  Compliments of Randy Dees <rrd@amherst.com>.
6752
6753 1999-10-03 John R. Jackson  <jrj@purdue.edu>
6754
6755         * server-src/driver.c (main): now that multiple results can come back
6756           from taper and dumper without a handshake (e.g. NO-ROOM), we need to
6757           process them all rather than just the first one.  Call the new
6758           areads_dataready() function to peek and see if more data is ready.
6759         * common-src/amanda.h: declare areads_dataready().
6760         * common-src/file.c: define areads_dataready().  Fix some variable
6761           types.  Fix a buffer expansion problem.  Add code to the test
6762           program to force buffer expansion to be checked out.
6763
6764 1999-10-03 John R. Jackson  <jrj@purdue.edu>
6765
6766         * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
6767
6768 1999-10-03 John R. Jackson  <jrj@purdue.edu>
6769
6770         * common-src/amflock.c (main): do not use aclose() in the configure
6771           test case.  During configure we do not have areads_relbuf()
6772           available and it makes configure think all the tests have failed.
6773
6774 1999-10-03 John R. Jackson  <jrj@purdue.edu>
6775
6776         * common-src/amanda.h: protect the close macros and areads* from
6777           out of range file descriptors.
6778         * common-src/file.c: ditto.
6779
6780 1999-10-02 John R. Jackson  <jrj@purdue.edu>
6781
6782         * server-src/amindexd.c (build_disk_table): only "OK" results from
6783           find_dump should be considered.
6784
6785 1999-10-02 John R. Jackson  <jrj@purdue.edu>
6786
6787         * common-src/file.c (areads): when NO-ROOM became advisory and didn't
6788           participate in a full handshake, it exposed a problem in areads()
6789           where a static buffer was shared among all I/O.  Changed it to use
6790           a separate buffer for each file descriptor.  Enhanced the test
6791           program to check out the code.
6792         * common-src/amanda.h: ditto
6793         * restore-src/amidxtaped.c: minor areads/agets comment typo.
6794         * server-src/amindexd.c: ditto
6795
6796 1999-10-02 John R. Jackson  <jrj@purdue.edu>
6797
6798         * server-src/amlogroll.c: fix minor memory leak.
6799
6800 1999-09-29 John R. Jackson  <jrj@purdue.edu>
6801
6802         * server-src/dumper.c (do_dump): closed the dump messages file too
6803           soon.
6804
6805 1999-09-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6806
6807         * recover-src/extract_list.c (samba_extract_method): Default to
6808         SAMBA_TAR, for similarity with other restore programs.
6809         (extract_files_child): If restore with SMBCLIENT is enabled, explain
6810         that Samba shares will be restored to the SMB share.
6811
6812 1999-09-22 John R. Jackson  <jrj@purdue.edu>
6813
6814         * configure.in: wrong variable when processing LIBRARY_DIRS.  Fix
6815           compliments of John M. Vogtle <jmvogtle@kodak.com>.
6816
6817 1999-09-20 John R. Jackson  <jrj@purdue.edu>
6818
6819         * server-src/Makefile.am: use new amlogroll utility to rename the log
6820           file to the datestamped name.
6821         * server-src/amcheck.c: ditto.
6822         * server-src/amcleanup.sh.in: ditto and call all utilities with the
6823           config file name as an argument.
6824         * server-src/amdump.sh.in: ditto and call all utilities with the
6825           config file name as an argument.
6826         * server-src/amflush.c: ditto.
6827         * server-src/amlogroll.c: new utility.
6828         * server-src/driverio.c: ditto and call all utilities with the
6829           config file name as an argument.
6830         * server-src/reporter.c: ditto.
6831
6832 1999-09-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6833
6834         * amlogroll.c: It was missing; copied from the 2.4.2 branch.
6835
6836         * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
6837
6838 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6839
6840         * server-src/amverify.sh.in: this script is important enough it should
6841           not depend on having perl installed.  Clean up the AIX "mt status"
6842           code.  Test for presense of other restore programs and check that
6843           they are executable during processing.
6844
6845 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6846
6847         * server-src/amverify.sh.in: put back an "mt status" wait loop I
6848           erroneously removed, but protect it from AIX.
6849
6850 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6851
6852         * common-src/util.c: fix math in bind_portrange so ports requested
6853           are between those the caller passed and make sure port 0 does not
6854           accidentally get requested, which returns a non-privileged port.
6855         * common-src/dgram.c: bind_portrange last port argument is inclusive.
6856         * common-src/stream.c: ditto.
6857         * recover-src/amrecover.c: ditto.
6858         * recover-src/extract_list.c: ditto.
6859
6860 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6861
6862         * server-src/driver.c: do not send a FILE_WRITE to the taper when the
6863           tape queue is empty during a TRYAGAIN (driver core dumped).
6864
6865 1999-09-19 John R. Jackson  <jrj@purdue.edu>
6866
6867         * server-src/taper.c: fix protocol problems when out of tape.  Add
6868           FAKE_TAPE_ERROR debugging code to simulate tape errors.  Fix problem
6869           with command line argument processing.
6870
6871 1999-09-18 John R. Jackson  <jrj@purdue.edu>
6872
6873         * configure.in: several compress/uncompress variables were not being
6874           set properly.
6875
6876 1999-09-18 John R. Jackson  <jrj@purdue.edu>
6877
6878         * client-src/sendbackup.c: pclose returns a child exit status of the
6879           pipe, not an errno, so do not try to strerror it.
6880           Have the index child process exit with the pclose exit code.
6881           Treat index failures as strange rather than fatal so the dump gets
6882           fully processed.  It's more important to have the dump image than
6883           to skip it just because indexing had a (possibly unrelated) problem.
6884
6885 1999-09-15 John R. Jackson  <jrj@purdue.edu>
6886
6887         * server-src/amtoc.pl.in: handle an image failing on one tape and
6888           succeeding on the next.
6889
6890 1999-09-15 John R. Jackson  <jrj@purdue.edu>
6891
6892         * server-src/amstatus.pl.in: generalize the "driver: state" parsing
6893           so it can handle current and future information.
6894
6895 1999-09-15 John R. Jackson  <jrj@purdue.edu>
6896
6897         * common-src/bsd-security.c: if the user field is not present in the
6898           .amandahosts file, it should default to the local user, not the
6899           remote user.  For our purposes, that is CLIENT_USER, not the user
6900           we are running as (although they should be the same).
6901
6902 1999-09-14 John R. Jackson  <jrj@purdue.edu>
6903
6904         * configure.in: Add --with-tmpdir to ./configure and use it for
6905           all Amanda temporary files.  Default --with-dbgdir to --with-tmpdir.
6906           Move libexec/getconf to sbin/amgetconf and add an optional
6907           config parameter.  Add optional config parameter to several
6908           other programs.
6909           Add debugging to chg-chio.
6910           Call new safe_cd() function in most programs to cd to --with-tmpdir
6911           so if they drop core, it goes to a known spot.  Rename existing
6912           core files so more than one failure may be tracked.  Remove most
6913           chdir() and umask() calls (umask is set in safe_cd).
6914         * amplot/amplot.sh.in: ditto.
6915         * changer-src/chg-chio.pl.in: ditto.
6916         * changer-src/chg-chs.sh.in: ditto.
6917         * changer-src/chg-manual.sh.in: ditto.
6918         * changer-src/chg-mtx.sh.in: ditto.
6919         * changer-src/chg-multi.sh.in: ditto.
6920         * changer-src/chg-rth.pl.in: ditto.
6921         * changer-src/chg-scsi-chio.c: ditto.
6922         * changer-src/chg-scsi.c: ditto.
6923         * changer-src/chg-zd-mtx.sh.in: ditto.
6924         * client-src/amandad.c: ditto.
6925         * client-src/calcsize.c: ditto.
6926         * client-src/killpgrp.c: ditto.
6927         * client-src/rundump.c: ditto.
6928         * client-src/runtar.c: ditto.
6929         * client-src/selfcheck.c: ditto.
6930         * client-src/sendbackup-gnutar.c: ditto.
6931         * client-src/sendbackup.c: ditto.
6932         * client-src/sendsize.c: ditto.
6933         * common-src/alloc.c: ditto.
6934         * common-src/amanda.h: ditto.
6935         * common-src/amflock.c: ditto.
6936         * common-src/bsd-security.c: ditto.
6937         * common-src/debug.c: ditto.
6938         * common-src/file.c: ditto.
6939         * common-src/genversion.c: ditto.
6940         * restore-src/amidxtaped.c: ditto.
6941         * server-src/Makefile.am: ditto.
6942         * server-src/amadmin.c: ditto.
6943         * server-src/amcheck.c: ditto.
6944         * server-src/amcheckdb.sh.in: ditto.
6945         * server-src/amcleanup.sh.in: ditto.
6946         * server-src/amcleanupdisk.c: ditto.
6947         * server-src/amdump.sh.in: ditto.
6948         * server-src/amflush.c: ditto.
6949         * server-src/amfreetapes.sh.in: ditto.
6950         * server-src/amindex.c: ditto.
6951         * server-src/amindex.h: ditto.
6952         * server-src/amindexd.c: ditto.
6953         * server-src/amlabel.c: ditto.
6954         * server-src/amrmtape.sh.in: ditto.
6955         * server-src/amstatus.pl.in: ditto.
6956         * server-src/amtape.c: ditto.
6957         * server-src/amtrmidx.c: ditto.
6958         * server-src/amtrmlog.c: ditto.
6959         * server-src/amverify.sh.in: ditto.
6960         * server-src/changer.c: ditto.
6961         * server-src/changer.h: ditto.
6962         * server-src/conffile.c: ditto.
6963         * server-src/conffile.h: ditto.
6964         * server-src/diskfile.c: ditto.
6965         * server-src/driver.c: ditto.
6966         * server-src/driverio.c: ditto.
6967         * server-src/dumper.c: ditto.
6968         * server-src/find.c: ditto.
6969         * server-src/getconf.c: ditto.
6970         * server-src/holding.c: ditto.
6971         * server-src/infofile.c: ditto.
6972         * server-src/logfile.c: ditto.
6973         * server-src/planner.c: ditto.
6974         * server-src/reporter.c: ditto.
6975         * server-src/tapefile.c: ditto.
6976         * server-src/taper.c: ditto.
6977
6978 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6979
6980         * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
6981         (bsd_stream_read): Likewise, declaration.
6982         * common-src/rsh-security.c (rsh_stream): Likewise.
6983         (rsh_stream_read): Likewise, declaration and definition.
6984         * common-src/krb4-security.c (dummy): Compile when disabled.
6985         * common-src/krb5-security.c (dummy): Likewise.
6986
6987         * server-src/reporter.c (sDivZero): Change from float to double, to
6988         build with DEC cc.
6989
6990         * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
6991         (VERSION): Add the date to it.
6992         (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
6993         * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
6994         (config.status): Depend on $(SNAPSHOT_STAMP).
6995         (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
6996
6997         * config/Makefile.am: Remove all traces of acconfig.h.
6998
6999         * server-src/changer.c (changer_command): Fix for amwait_t != int.
7000
7001 1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
7002
7003         * config/acinclude.m4i: Added comments for config/config.h.in to all
7004         AC_DEFINEs.
7005         * configure.in: Likewise.
7006         * config/acconfig.h: Deleted.
7007         * autogen: Updated.
7008
7009 1999-09-05 John R. Jackson  <jrj@purdue.edu>
7010
7011         * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
7012         * recover-src/display_commands.c: fix some compiler warnings.
7013         * recover-src/extract_list.c: fix some compiler warnings.
7014         * restore-src/amrestore.c: fix some compiler warnings.
7015         * server-src/planner.c: fix some compiler warnings.
7016
7017 1999-09-05 John R. Jackson  <jrj@purdue.edu>
7018
7019         * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
7020
7021 1999-09-05 John R. Jackson  <jrj@purdue.edu>
7022
7023         * common-src/stream.c: make sure errno is returned properly from
7024           stream_client() and stream_server().
7025         * server-src/taper.c: report errors from stream_server() and
7026           abort.
7027         * recover-src/extract_list.c: make sure errno is preserved.
7028
7029 1999-09-05 John R. Jackson  <jrj@purdue.edu>
7030
7031         * configure.in: make sure the dump and restore programs are defined
7032           in pairs, do not allow just the dump program without restore.
7033         * client-src/sendbackup-dump.c: assume restore program is present
7034           if dump program is.
7035         * common-src/genversion.c: assume restore program is present if
7036           dump program is.
7037
7038 1999-09-05 John R. Jackson  <jrj@purdue.edu>
7039
7040         * common-src/genversion.c: CLIENT_LOGIN has to be defined so there
7041           is no point testing for it.
7042         * server-src/conffile.c: ditto.
7043
7044 1999-09-05 John R. Jackson  <jrj@purdue.edu>
7045
7046         * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
7047           and XFSRESTORE support.
7048
7049 1999-09-05 John R. Jackson  <jrj@purdue.edu>
7050
7051         * server-src/conffile.c: add several common abbreviations to config
7052           file processing.
7053
7054 1999-09-01 John R. Jackson  <jrj@purdue.edu>
7055
7056         * server-src/amtoc.pl.in: allow multiple -s entries.
7057
7058 1999-09-01 John R. Jackson  <jrj@purdue.edu>
7059
7060         * server-src/reporter.c: handle/report a common columnspec syntax
7061           error instead of dumping core.
7062
7063 1999-09-01 John R. Jackson  <jrj@purdue.edu>
7064
7065         * man/amanda.8.in: typo in columnspec description.
7066
7067 1999-09-01 John R. Jackson  <jrj@purdue.edu>
7068
7069         * common-src/dgram.h: expressions in #define should be protected by
7070           parenthesis.
7071
7072 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
7073
7074         * changer-src/chg-chs.sh.in (changerdev): Pass it as -f flag to CHS.
7075         * docs/TAPE.CHANGERS: Document it.
7076         Reported by Mike Horansky <moho@stanford.EDU>
7077
7078         * server-src/conffile.c (read_dumptype): Renamed from get_dumptype.
7079         Extended to support reading a named dumptype from a specified FILE.
7080         (get_dumptype): Use read_dumptype.
7081         (main): Read disklist, so that custom dumptypes are shown.
7082         * server-src/conffile.h (read_dumptype): Declare.
7083         * server-src/diskfile.c (parse_diskline): Get line_num and line by
7084         reference.  New argument diskf.  Use read_dumptype if dumptype
7085         starts with `{'.
7086         (main): Update.
7087         * man/amanda.8.in (disklist): Document it.
7088         * NEWS: Likewise.
7089         * example/disklist: Exemplify it.
7090
7091 1999-08-23 John R. Jackson  <jrj@purdue.edu>
7092
7093         * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
7094         * recover-src/extract_list.c (extract_files_setup): ditto.
7095
7096 1999-08-23 John R. Jackson  <jrj@purdue.edu>
7097
7098         * server-src/reporter.c (copy_template_file): make sure all data is
7099           written to label template pipeline.
7100
7101 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
7102
7103         * common-src/Makefile.am: Replace .o with OBJEXT.  List sources
7104         explicitly, instead of LDADDing the corresponding objects.
7105         (OBJ_EXTENSION): Wipe out, use OBJEXT.
7106
7107         * configure.in: Call AC_OBJEXT.
7108         (LTLIBOBJS, LTALLOCA): Define, according to ac_objext.
7109         * common-src/Makefile.am (libamanda_la_LIBADD): Use them.
7110         (libamanda_a_LIBADD): Use LIBOBJS and ALLOCA.
7111
7112         * common-src/Makefile.am (genversion.o): Revert last change, it was
7113         just a bug in automake's --disable-dependency-tracking.
7114
7115 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7116
7117         * README (platforms): Added OpenBSD.
7118         Reported by Ian Darwin <ian@sq.com>
7119         (platforms): Added SunOS 5.7.
7120
7121 1999-08-15  Derek Ney <derek@hipgraphics.com>, Alexandre Oliva  <oliva@dcc.unicamp.br>
7122
7123         * client-src/sendsize.c (SAMBA_DEBUG_LEVEL): New macro, "0" for
7124         Samba >= 2, "3" for older ones.
7125         (getsize_smbtar): Use `du' if SAMBA_VERSION >= 2, and the
7126         appropriate SAMBA_DEBUG_LEVEL.
7127
7128 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7129
7130         * common-src/Makefile.am (genversion.o): Depend on genversion.c
7131         too.  It seems that IRIX's make doesn't work without it.
7132         Reported by Brian Cuttler <brian@wadsworth.org>
7133
7134 1999-08-15  Jon LaBadie  <jon@jgcomp.com>
7135         
7136         * tape-src/tapetype.c: Speed it up by using larger sections in the
7137         second pass.
7138
7139 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7140
7141         * man/amanda.8.in (skip-full, incronly): Document existing bugs.
7142
7143         * server-src/conffile.c (init_defaults): Default disksize to 0.
7144         * man/amanda.8.in (holdingdisk use): Document it.
7145         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
7146
7147         * server-src/planner.c (setup_estimate): Typo.
7148         (next_level0): Typo.
7149
7150         * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
7151
7152         * example/amanda.conf.in: Clarify holdingdisk::use 0.
7153
7154         * config/missing: Update from automake 1.4a.
7155
7156 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7157
7158         * man/amanda.8.in: typo.
7159
7160 1999-06-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
7161
7162         * man/amrestore.8: Document holding-file usage.
7163
7164 1999-06-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
7165
7166         * Makefile.am (pkgdata_DATA): Install COPYRIGHTs.
7167         (EXTRA_DIST): Remove docs/*.
7168         * docs/Makefile.am: New file.
7169         (pkgdata_DATA): Install all docs.
7170         * configure.in: Output docs/Makefile.
7171         Suggested by Paul L. Lussier <plussier@baynetworks.com>
7172
7173         * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
7174         keyboard time-out, lsof.
7175
7176         * server-src/amverify.sh.in (HEADER): Use `sed 1q'  instead of the
7177         not-that-portable `head -1'.
7178         Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
7179
7180 1999-06-19  Alexander Zangerl  <az@Austria.EU.net>
7181
7182         * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
7183         output.
7184
7185 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7186
7187         * server-src/dumper.c (read_indexfd): typo
7188
7189 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7190
7191         * server-src/dumper.c (do_dump): Close the indexout fh and wait
7192         for the completion of the index compress process.
7193         * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
7194         if the index fd is already shut down.
7195         * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
7196         the mesg and data fd are shut down.
7197
7198 1999-06-15  Adam Hammer  <hammer@math.purdue.edu>
7199
7200         * server-src/amverify.sh.in: Wait until device becomes ready after
7201         rewinding.
7202
7203 1999-06-15  Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva  <oliva@dcc.unicamp.br>
7204
7205         * client-src/calcsize.c (ROUND): Rewrite, it was broken.
7206         Reported by Erik Lindahl <erik@theophys.kth.se>
7207
7208 1999-06-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7209
7210         * server-src/conffile.h: Changed all `long's to `int's, as they
7211         broke get_number et al on 64bit platforms.
7212         Reported by Erik Lindahl <erik@theophys.kth.se>
7213
7214         * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
7215         for availability.
7216
7217         * configure.in (bcopy, bzero): Check whether they're available.
7218         * common-src/amanda.h (bcopy, bzero): If not, use memmove and
7219         memset.
7220         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
7221
7222         * server-src/amcheck.c (start_server_check): If info file does not
7223         exist, explain that it is supposed to be created on the next run.
7224
7225 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
7226
7227         * server-src/tapefile.c (lookup_last_reusable_tape): Fix order of
7228         arguments in match() invocation.
7229         From Anthony Worrall <Anthony.Worrall@reading.ac.uk>
7230
7231 1999-06-08  Mike Grupenhoff <kashmir@munge.com>
7232
7233         * restore-src/amrestore.c: second arg to restore() is a char *, not
7234         a string_t.  Adjust prototype accordingly.
7235
7236 1999-06-07  Mike Grupenhoff <kashmir@munge.com>
7237
7238         * common-src/util.c (bind_portrange): function that attempts
7239         to bind a network connection to a port in a given range.
7240         * common-src/util.h: prototype bind_portrange().
7241         * common-src/dgram.c (bind_reserved): remove, superceeded by
7242         bind_portrange().
7243         (dgram_bind): use bind_portrange() instead of bind_reserved(), and
7244         try user specified ports first, then reserved ports, then regular
7245         ports.
7246         * common-src/dgram.h: remove prototype for bind_reserved().
7247         * common-src/stream.c (stream_server, stream_client): use
7248         bind_portrange() instead of bind_reserved(), and try user
7249         specified ports first, then reserved ports, then regular
7250         ports.
7251         * recover-src/amrecover.c (main): use bind_portrange() instead
7252         of bind_reserved(), and verify that the port it gives us is
7253         a reserved one.
7254         * recover-src/extract_list.c (extract_files_setup): use
7255         bind_portrange() instead of bind_reserved(), and verify that
7256         the port it gives us is a reserved one.
7257
7258 1999-06-07  Mark F. Vlems  <mvlems@vbox.xs4all.nl>
7259
7260         * server-src/amindexd.c (reply, lreply, fast_lreply): Return code 0
7261         of printf does not imply an error on some systems (Openstep) even if
7262         the number of written characters is more than 0.  The weakened error 
7263         check has no implication for the correct implementations of printf.
7264
7265 1999-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
7266
7267         * server-src/driver.c (dump_to_tape): Tell hard from soft
7268         (retryable) failures in both dumper and taper results, and behave
7269         accordingly.
7270
7271         * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is 
7272         slightly different.
7273         Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
7274
7275 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
7276
7277         * common-src/util.c (fullread, fullwrite): versions of
7278         read()/write() that keep looping until the buffer is
7279         completely read/written, or an error occurs.
7280         * common-src/Makefile.am: build util.c/util.h
7281         * common-src/fileheader.c, common-src/fileheader.h
7282         (fill_buffer): remove, replaced with fullread()
7283         * server-src/holding.c: use fullread() instead of fill_buffer().
7284         * common-src/bsd-security.c, restore-src/amrestore.c,
7285         server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
7286         server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
7287         instead of doing the retry loops manually.
7288
7289 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
7290
7291         * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
7292         close the stream.  If the other stream is also closed, shut
7293         down.
7294
7295 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
7296
7297         * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
7298         machines.
7299         (exit_check): remove waitpid(), let the service reap its own
7300         children.
7301         (s_repwait): rename 'err' to 'errstr' to avoid conflict with
7302         function in some libcs.
7303         (s_ackwait): if no pipes were opened by this service, then shut
7304         it down here.
7305         (process_netfd): on EOF, be sure to also close the network
7306         stream.  Also, if this is the last stream to be closed, shut
7307         down the service.
7308         (allocstream): correct a comment
7309         (service_delete): only close the security handle if it is still
7310         open.  Reap our children here instead of in exit_check().
7311
7312 1999-06-01  Mike Grupenhoff <kashmir@munge.com>
7313
7314         * server-src/taper.c (write_buffer): assert properly
7315
7316 1999-06-01  John Williams  <williams@morinda.com>
7317
7318         * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
7319
7320 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
7321
7322         * docs/INSTALL: Point to the patches page.  Update version numbers.
7323
7324         * example/config.site: Document UDPPORTRANGE.
7325
7326 1999-06-01  Jens Persson  <jens.persson@btj.se>
7327
7328         * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
7329         * config/acconfig.h: Add UDPPORTRANGE.
7330         * common-src/dgram.c: Implement it.
7331
7332 1999-05-27  Mike Grupenhoff <kashmir@munge.com>
7333
7334         * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
7335         make the size argument a size_t.
7336         (alloc): if an allocation fails, in the error message print how
7337         many bytes we tried to alloc.  This helps us determine if the
7338         alloc call was errant, or we really were out of memory.
7339         * common-src/amanda.h: update alloc/newalloc prototypes for
7340         size_t changes.
7341
7342 1999-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
7343
7344         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
7345         to libtool 1.3.2 plus a few patches.
7346         * config/config.guess, config/config.sub: Ditto.
7347
7348 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
7349
7350         * common-src/protocol.c: retry connection failures three times,
7351         waiting five seconds between each attempt.  Also, fix a lot
7352         of untrue comments.
7353
7354 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
7355
7356         * client-src/amandad.c: add a lot more dbprintfs so we know what's
7357         going on.
7358         (service_new): use error() instead of dbprintf(); exit()
7359
7360
7361 1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
7362
7363         * docs/FAQ (tar-patch): Mention sparse file problem.
7364
7365         * recover-src/uscan.l: #undef `ECHO' after #include amanda.h; some
7366         system header files may define it.
7367         Reported by Dan Lipofsky <danlip@cyc.com>
7368
7369         * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
7370         AMANDA_CFLAGS.
7371         * Makefile.am: Create acinclude.m4 in the top-level directory.
7372         * config/Makefile.am: Create link to acconfig.h in the top-level
7373         directory.
7374         * configure.in: Add AMANDA_CFLAGS to CFLAGS.  Set DUMPER_DIR without 
7375         trying to run it.
7376         * common-src/Makefile.am: Create genversion.h with #defines, to
7377         avoid genversion-specific CPPFLAGS.
7378         * common-src/genversion.c: #include genversion.h
7379
7380 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7381
7382         * server-src/amandad.c (state2str): string "s_processrep" is 13
7383         caracters.
7384
7385 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
7386
7387         * server-src/amcheck.c (main): if we reap a bogus pid, print
7388         out the error message we generate, instead of whatever junk
7389         happens to be in the buffer.
7390
7391 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
7392
7393         * common-src/bsd-security.c (bsd_stream_read): remove old
7394         code that was part of something that ended up not happening.
7395         (stream_read_callback): use ssize_t.
7396
7397 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
7398
7399         * common-src/event.c (event_register): restructure asserts, and
7400         for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
7401
7402 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
7403
7404         * common-src/queue.h: move the multiple-inclusion #defines
7405         into application namespace.  #undef each macro before defining
7406         it, in case the OS has an identical macro.
7407
7408 1999-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
7409
7410         * server-src/amindex.h: Keep P macro expression in a single line.
7411         Reported by Patrick Harrold <patrickh@nasco-inc.com>
7412
7413         * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
7414
7415         * common-src/statfs.c (STATFS_SCALE, sys/statvfs.h): If f_frsize is
7416         zero, use f_bsize.  It now works with GNU libc 2.1.
7417         Reported by Heikki Vatiainen <hessu@cs.tut.fi>
7418
7419 1999-05-22 Alex Pilosov <alex@pilosoft.com>
7420
7421         * server-src/amindexd.c (is_dump_host_valid): sanitize_name(host)
7422         before doing a stat.
7423         * server-src/tapefile.c (lookup_nb_tape): init pos to 0.
7424
7425 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7426
7427         * server-src/reporter.c: take the orig size from the SUCCESS line.
7428         use value from the infofile only the datestamp are equal.
7429         Write all available value.
7430
7431 1999-05-18  Mike Grupenhoff <kashmir@munge.com>
7432
7433         * common-src/strerror.c (strerror): restructure so that it doesn't
7434         need to malloc.
7435
7436 1999-05-17  Mike Grupenhoff <kashmir@munge.com>
7437
7438         * common-src/genversion.c (prvar): prototype declared it static,
7439         but actual function was still extern.
7440
7441 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7442
7443         * server-src/planner.c (pick_inclevel): check for base_level+1 if
7444         we don't have estimate for base_level. Needed for FORCE_BUMP.
7445         * server-src/planner.c (promote_highest_priority_incremental):
7446         Don't promote if we don't have level 0 estimate. No more need
7447         to check for skip_full, DS_NOFULL, DS_INCRONLY or FORCE_BUMP.
7448
7449 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7450
7451         * server-src/amflush.c: ignore SIGPIPE
7452         * server-src/driver.c: ignore SIGPIPE
7453         * server-src/driverio.c (taper_cmd, dumper_cmd): return 0 on error, 
7454         1 on success.
7455         * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
7456
7457 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7458
7459         * server-src/dumper.c: make prototypes consistent, (putresult):
7460         make first arg const.
7461
7462 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7463
7464         * server-src/conffile.c (getconf_byname): islower takes an int
7465         for an arg.
7466         * server-src/diskfile.c (upcase): islower takes an int for an
7467         arg.
7468         * server-src/driver.c (update_failed_dump_to_tape): prototype.
7469         * server-src/holding.c (insert_dirname, scan_holdingdisk):
7470         prototype and make static, (is_datestr): isdigit takes an int
7471         for an arg.
7472
7473 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7474
7475         * client-src/calcsize.c (basename): make static, prototype, and
7476         only include if BUILTIN_EXCLUDE_SUPPORT is defined and
7477         HAVE_BASENAME is not defined.
7478         * client-src/getfsent.c (dev2rde, samefile): prototype and
7479         make static.
7480         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
7481         (start_backup, end_backup): prototype.
7482         * client-src/sendbackup.c (index_closed, save_fd): prototype
7483         and make static.
7484         * client-src/versionsuffix.c (main): prototype.
7485         * common-src/alloc.c (internal_vstralloc): prototype.
7486         * common-src/file.c (mk1dir): prototype, make static, and make
7487         first arg const.
7488         * server-src/amadmin.c (check_dumpuser): prototype.
7489         * server-src/amflush.c (get_letter_from_user): prototype and make
7490         static.
7491         * server-src/amindexd.c: prototype and make static numerous local
7492         functions.
7493         * server-src/amlabel.c (main): prototype.
7494         * server-src/amtrmidx.c (main): prototype.
7495         * server-src/changer.c (report_bad_resultstr, run_changer_command):
7496         prototype.
7497         * server-src/conffile.h: properly prototype getconf_holdingdisks()
7498         * server-src/driverio.h: properly prototype init_driverio().
7499         * server-src/find.c (find_compare, parse_taper_datestamp_log):
7500         prototype.
7501         * server-src/infofile.c (zero_info, open_txinfofile,
7502         close_txinfofile, read_txinfofile, write_txinfofile,
7503         delete_txinfofile): prototype and make static.
7504         * server-src/planner.c (main, askfor): prototype.
7505
7506 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7507
7508         * server-src/server_util.c: include server_util.h for prototypes
7509         * server-src/tapefile.h: properly prototype lookup_nb_tape()
7510         * server-src/driverio.c (childstr): make static, make return
7511         val const.
7512
7513 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7514
7515         * server-src/find.h: properly prototype find_log()
7516         * server-src/amtrmlog.c (main): prototype.  find_log() takes
7517         no arguments.
7518
7519 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7520
7521         * server-src/reporter.c: make all functions and globals
7522         static.  Prototype all functions, and make them consistent wrt
7523         K&R.  Place all prototypes together.  Place data type
7524         declarations before the prototypes that use them.  Remove
7525         unused sort_by_time().
7526
7527 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7528
7529         * server-src/dumper.c (process_dumpline): clean up the error
7530         return code
7531         * server-src/dumper.c (log_msgout): no need to reuse errf global,
7532         it makes me nervous.  Also, use amfree instead of free.
7533
7534 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7535
7536         * common-src/packet.c (pkt_cat): remove a bogus assert - len is
7537         a size_t, which is unsigned, so it will always be >= 0.
7538
7539 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7540
7541         * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
7542         A_REPTIMEOUT into just A_TIMEOUT.
7543
7544 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
7545
7546         * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
7547         common-src/rsh-security.c, server-src/driver.c,
7548         server-src/dumper.c: (min, max): consolidate all min/max
7549         definitions into amanda.h
7550
7551 1999-05-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
7552
7553         * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
7554
7555 1999-05-12  Mike Grupenhoff <kashmir@munge.com>
7556
7557         * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
7558         const the filename arg to all of the dbmalloc versions of
7559         alloc and io functions
7560
7561 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7562
7563         * common-src/protocol.c (proto_t): don't need prev and next ptrs
7564         anymore
7565
7566 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7567
7568         * common-src/amanda.h, common-src/alloc.c: remove the static
7569         buffer manager - nothing uses it.  It can be resurrected in
7570         the future if needed.
7571
7572 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7573
7574         * common-src/amanda.h: define stringconcat() macros that
7575         concatenate two const strings together
7576         * common-src/versuff.c.in (versionsuffix, version): generate
7577         data at compile time using stringconcat().
7578         * common-src/genversion.c: simplify, don't need to alloc anything
7579         * common-src/Makefile.am (genversion_LDADD): this doesn't need
7580         alloc.o or error.o anymore
7581
7582 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7583
7584         * common-src/security.c (security_handleinit, security_streaminit):
7585         change default error message "unknown error" to "unknown protocol
7586         error" or "unknown stream error" to help identify where an
7587         messageless error was triggered.
7588
7589 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
7590
7591         * client-src/amandad.c (main): call initgroups(), and also set
7592         the real gid.
7593
7594 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
7595
7596         * server-src/driver.c (start_some_dumps): if a dumper is
7597         constrained, and some dumpers or the taper are active, register
7598         a EV_WAIT event.
7599         * server-src/driver.c (handle_taper_result,
7600         handle_dumper_result):  wakeup constrained dumpers after we
7601         have freed some resources.
7602
7603 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
7604
7605         * common-src/fileheader.c, common-src/fileheader.h: rework the
7606         fileheader parse and format code to remove a lot of duplicated
7607         code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
7608         arguments, and simplifying parse code.
7609
7610 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
7611
7612         * client-src/sendsize.c (getsize_dump): print out the strerror
7613         if we can't exec killpgrp.
7614
7615 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
7616
7617         * server-src/dumper.c (add_msg_data): first two arguments
7618         to memmove() were backwards.
7619
7620 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7621
7622         * example/amanda.conf.in: typo
7623
7624 1999-05-07  Mike Grupenhoff <kashmir@munge.com>
7625
7626         * common-src/alloc.c (safe_env): allow DISPLAY into the
7627         environment for purify.
7628         * server-src/holding.c (rename_tmp_holding): if fill_buffer
7629         returns 0, don't try to parse a nonexistant header.
7630         * server-src/taper.c (file_reader_side): init datestamp to
7631         NULL, and don't try to free it if it's still NULL on exit.
7632
7633 1999-05-06  Mike Grupenhoff <kashmir@munge.com>
7634
7635         * server-src/driver.c (start_some_dumps): sleep_time is an
7636         offset, not an absolute.  Leave it that way when we return from
7637         this function.
7638
7639 1999-05-05  Mike Grupenhoff <kashmir@munge.com>
7640
7641         * server-src/amverify.sh.in (pecho): new function.  Like echo
7642         but doesn't append newline, and supports \r, etc.  Implemented
7643         using perl.
7644         * server-src/amverify.sh.in: use pecho where we used to use echo -n,
7645         etc.  It's nearly impossible to figure out which echo needs what
7646         flags and also know if it supports \r.  So we just punt and use
7647         perl.
7648
7649 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
7650
7651         * server-src/driver.c: convert to use event handler.
7652         (some_dumps_in_progress, lookup_dumper): nuke.
7653         (sleep_time): make a time_t and static.
7654         (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
7655         (start_some_dumps): make this work on one dumper instead of all.
7656         Call when a dumper is finished and needs more work.
7657         (handle_idle_wait): callback for dumpers waiting for delayed
7658         disks to start up.
7659         * server-src/driverio.c: initialize event handles for dumpers
7660         and the taper.  Nuke addfd().
7661         * server-src/driverio.h: add event handles for each dumper, and
7662         one global one for the taper.  Nuke maxfd and readset globals.
7663
7664 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
7665
7666         * server-src/driver.c (taper_queuedisk): new function that takes
7667         a disk_t, and, if the taper is not busy, tells it to write it out,
7668         or else adds it to the tapeq.  Make use_lffo global static.
7669         * server-src/driver.c (handle_taper_result, handle_dumper_result):
7670         call taper_queuedisk() instead of queueing ourself.
7671
7672 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
7673
7674         * server-src/driver.c: make all local functions static.
7675         Exposed two prototypes for nonexistant functions
7676         (diskname2filename, driver_main), and one function (dump_state)
7677         that was never called.  #if 0 out dump_state.
7678         Nuke inside_dump_to_tape global - it's value was never used.
7679         Make pending_aborts global a static local in handle_dumper_result.
7680
7681 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
7682
7683         * server-src/driverio.h (dumper_t): merge infd and outfd into
7684         just 'fd'.  Comment the other members of the struct.
7685         * server-src/driverio.c: infd/outfd -> fd
7686         * server-src/driver.c (handle_dumper_result): merge some common
7687         code between the FAILED and TRYAGAIN cases.  Comment the
7688         ABORT_FINISHED case.  Also infd/outfd -> fd.
7689
7690 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7691
7692         * server-src/planner.c (when_overwrite): return a big number (1024)
7693         if the tape is not reusable.
7694
7695 1999-04-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
7696
7697         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
7698         from libtool 1.3.
7699
7700 1999-04-29  Mike Grupenhoff <kashmir@munge.com>
7701
7702         * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
7703         case, nothing uses it.
7704         * server-src/driverio.c, server-src/driverio.h: garbage collect
7705         FATAL_TRYAGAIN.  static & const cmdstr.
7706
7707 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
7708
7709         * server-src/diskfile.c (read_diskfile): rework to take a
7710         disklist_t * as an argument, and return -1 on error, or 0 on
7711         success.  const the filename argument.  Kill a few globals.
7712         * server-src/diskfile.c (lookup_host, lookup_disk): const
7713         arguments
7714         * server-src/diskfile.h: adjust prototypes for above changes
7715         * server-src/amadmin.c, server-src/amcheck.c,
7716         server-src/amcleanupdisk.c, server-src/amflush.c,
7717         server-src/amindexd.c, server-src/amtrmidx.c,
7718         server-src/amtrmlog.c, server-src/driver.c,
7719         server-src/planner.c, server-src/reporter.c: adjust calls to
7720         read_diskfile() to deal with convention
7721
7722 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
7723
7724         * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
7725         stop reading these streams.  We let EOF on the data stream cause
7726         the entire dump to be stopped.
7727
7728 1999-04-27  Mike Grupenhoff <kashmir@munge.com>
7729
7730         * common-src/rsh-security.c (conn_read_callback): cast
7731         event_wakeup() arg to event_id_t.
7732
7733 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
7734
7735         * common-src/versuff.c.in: Adjust constness to match version.h.
7736
7737         * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
7738
7739 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7740
7741         * server-src/amdump.sh.in: execute amtrmlog.
7742
7743 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7744
7745         * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
7746         we already have a write_tapeheader function in dumper.c
7747         * client-src/sendbackup.h: ditto
7748         * client-src/sendbackup-dump.c: ditto
7749         * client-src/sendbackup-gnutar.c: ditto
7750
7751 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7752
7753         * dumper-src/gnutar.pl.in: add debuging code.
7754         * server-src/planner.c (getsize): send optionstr() for estimate 
7755         with a wrapper.
7756         * client-src/selfcheck.c: init program_is_wrapper to 0.
7757         * client-src/sendsize.c: implement DUMPER-API, support only
7758          estimate-direct.
7759
7760 1999-04-22 John R. Jackson  <jrj@purdue.edu>
7761
7762         * configure.in: add --with-broken-fsf to use a read() loop instead
7763         of the fsf ioctl on some broken systems.
7764         * config/acconfig.h: ditto
7765         * tape-src/tapeio.c (tapefd_fsf): ditto
7766
7767 1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
7768
7769         * docs/SYSTEM.NOTES: Typo
7770         * docs/SAMBA: Update on samba-largefs patch.
7771         * docs/FAQ: New FAQ about promotion of full dumps.
7772
7773 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
7774
7775         * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
7776         Comment out test that would set filename to /dev/null.
7777
7778 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
7779
7780         * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
7781         auto-flush mode.
7782
7783 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7784
7785         * server-src/server_util.c: use snprintf instead of ap_snprintf.
7786
7787 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7788
7789         * server-src/server_util.c: new file for utility function.
7790         New function construct_datestamp.
7791         * server-src/server_util.h: ditto
7792         * server-src/Makefile.am: link server_util.c with libamserver.
7793         * amcleanupdisk.c (construct_datestamp): remove function.
7794         * server-src/driver.c: ditto
7795         * server-src/dumper.c: ditto
7796         * server-src/amflush.c: ditto
7797         * server-src/planner.c: ditto
7798
7799 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
7800
7801         * common-src/bsd-security.c: this doesn't need queue.h
7802
7803 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
7804
7805         * common-src/event.c: Insert new events at the head of the eventq,
7806         not the tail, so we don't loop forever if a newly registered
7807         event has the same type as the one currently firing.  Noticed
7808         and diagnosed by Jean-Louis Martineau.
7809         Use a LIST for the eventq, instead of a TAILQ, since we don't need
7810         to do tail insertions anymore.
7811         Make the eventq_* functions take a queue name so we can also use
7812         them for the handle cache.  Rename eventq_append() to eventq_add().
7813
7814 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7815
7816         * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
7817
7818 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7819
7820         * client-src/selfcheck.c: Implement DUMPER-API.
7821         * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
7822         is not implemented.
7823         * dumper-src/generic-dumper.pl.in (parse_options): option are
7824         separated by ;
7825
7826 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7827
7828         * server-src/dumper.c: make dumpsize and headersize static.  Rename
7829         nb_header_block to headersize and also make it static.  headersize
7830         now counts bytes instead of blocks, just like the other two.
7831         Use SEEK_SET in an lseek instead of hardcoding 0.
7832
7833 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7834
7835         * configure.in: implement --with-cflags to allow turning on
7836         compiler warnings and optimizations
7837
7838 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7839
7840         * common-src/event.c (gethandle, puthandle): new functions that
7841         keep a cache of handles to reduce calls to malloc/free.
7842
7843 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7844
7845         * common-src/alloc.c (dbmalloc_caller_loc): const the file
7846         arg, use the queue macros to maintain the list.
7847
7848 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7849
7850         * common-src/versuff.c.in: const the return str of version()
7851         and versionsuffix.  Bump copyright to 1999.
7852
7853 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7854
7855         * client-src/amandad.c, client-src/amandad.h,
7856         client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
7857         client-src/sendbackup.c, common-src/bsd-security.c,
7858         common-src/dgram,c, common-src/dgram.h, common-src/event.c,
7859         common-src/event.h, common-src/krb4-security.c,
7860         common-src/krb5-security.c, common-src/packet.c,
7861         common-src/packet.h, common-src/protocol.c, common-src/security.c,
7862         common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
7863         server-src/conffile.h, server-src/dumper.c:
7864         update copyright to 1999 on things I've touched this year.
7865
7866 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7867
7868         * common-src/amanda.h: remove version_info extern.  Bump
7869         copyright to 1999
7870         * common-src/genversion.c: constify version_info.  Emit
7871         {KRB4,KRB5,RSH}_SECURITY.  Bump copyright.
7872         * common-src/version.h: const VERSION_COMMENT and version_info.
7873         const return str and fully prototype versionsuffix() and version()
7874         prototypes.  Bump copyright.
7875         * server-src/planner.c (main): iterate through version_info using
7876         an index instead of a pointer.
7877
7878 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7879
7880         * server-src/conffile.c: explicitly give the seen_columnspec global
7881         an int type instead of letting the compiler default to it.
7882
7883 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
7884
7885         * common-src/event.h (event_id_t): a new typedef for the
7886         first arg to event_register.  Should be wide enough to
7887         reasonably hold an int or a pointer (but it is ok to trunc
7888         the pointer if necessary).  Update proto for event_register()
7889         and event_wakeup().
7890         * common-src/event.c: struct event_handle->data is now an
7891         event_id_t.
7892         (event_register, event_wakeup): adjust args for event_id_t)
7893         (event_register): event_id_t is unsigned, no need to assert
7894         positivity anymore.
7895         * common-src/rsh-security.c (rsh_stream_read): cast first arg to
7896         event_register() to event_id_t.
7897
7898
7899 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
7900
7901         * common-src/event.c (release): nuke, and inline into event_loop.
7902         * common-src/event.c (event_loop): flesh out the timeout comment.
7903         Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
7904         * common-src/event.h: flesh out the event_type_t comment.
7905
7906 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
7907
7908         * common-src/event.c (fire): inline this with a macro.  Remove
7909         timestamp arg.  eh->lastfired is now only valid for EV_TIME
7910         events.  Removes several time() systems from the critical path.
7911         * common-src/event.c (event_wakeup): have this fire EV_WAIT events
7912         directly instead of deferring back to the event loop.  Removes the
7913         sequencing restriction for event_wakeup.
7914
7915 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
7916
7917         * server-src/planner.c (getsize): put the hosts disks on the waitq
7918         before sending the request, not after.
7919
7920 1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
7921
7922         * docs/UPGRADE: Update URL for archived message.
7923
7924 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7925
7926         * server-src/amcheck.c (main): should not set real uid to 0.
7927
7928 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7929
7930         * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
7931         number, we don't need ntohs().
7932
7933 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
7934
7935         * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
7936         anymore, gc them.
7937
7938 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
7939
7940         * server-src/amindexd.c: dgram.h not needed
7941
7942 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
7943
7944         * common-src/event.c: fix a bunch of inaccurate comments.
7945         * common-src/event.c (event_loop): prune dead events in the
7946         pre-select pass instead of in the EV_WAIT pass.
7947         * common-src/event.c (fire): factor out all code that fires
7948         events into a 'fire' function.
7949         * common-src/event.c (signal_handler): bounds check the signal
7950         number against the size of sigtable instead of assuming sigtable
7951         is NSIG big.
7952
7953 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7954
7955         * client-src/amandad.c (allocstream): if security_stream_server()
7956         fails, dbprintf the error.
7957
7958 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7959
7960         * configure.in: implement --with-rsh-security
7961         * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
7962         command for dump transport and authentication.  Still has lots
7963         of "issues"
7964         * common-src/Makefile.am: build rsh-security.c
7965         * common-src/security.c: add rsh_security_driver to the drivers array
7966         * config/acconfig.h: define RSH_SECURITY
7967
7968 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7969
7970         * server-src/dumper.c (runcompress): use the proper end of the pipe
7971         for writing and reading.  Also, grab errno early on fork error
7972         before calling close.
7973         * server-src/dumper.c (sendbackup_response): make sure the client
7974         at least send us a mesgfd and datafd.
7975
7976 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7977
7978         * client-src/amandad.c (main): don't dup stdout to db_fd - it might
7979         be needed by the security driver
7980         * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
7981         attempt to event_release a handle we haven't attached yet.
7982
7983 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
7984
7985         * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
7986
7987 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7988
7989         * client-src/Makefile.am (noinst_HEADERS): add amandad.h
7990
7991 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7992
7993         * common-src/Makefile.am (libamanda_la_SOURCES): build
7994         krb4-security.c
7995
7996 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
7997
7998         * configure.in: implement --with-dbmalloc=[dir], where dir is
7999         where the dist is unpacked and built.  This could be improved on,
8000         because it doesn't handle the case where it's installed.
8001
8002 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8003
8004         * client-src/sendbackup.c: security changes:
8005         remove krb4 code and NAUGHTY_BITS macros.
8006         (parse_options): don't look for krb4 options
8007         (main): don't close pipes that were handed to us from amandad.
8008         Don't open stream directly - just use the pipes given to us.
8009         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
8010         Remove krb4 code and NAUGHTY_BITS macros.
8011
8012 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8013
8014         * client-src/amandad.h: new file describing the pipes between
8015         amandad and children.
8016         * client-src/amandad.c: rewrite for security changes.  Can
8017         now handle multiple requests simultaneously, and has a state
8018         machine to deal with each active request.
8019         This handles all network transmissions and authentication.
8020         Each child process (sendbackup, selfcheck) gets three general
8021         purpose pipes to amandad which it may allocate for anything.
8022         amandad relays these pipes to equivalent security_streams.
8023         Lots of other stuff.
8024         Finally, NEED_KEYPIPE stuff removed.
8025
8026 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8027
8028         * server-src/dumper.c: security changes:
8029         Remove krb4 includes and NAUGHTY_BITS macros.
8030         Remove no-longer-true comment about DATABUF_SIZE ==
8031         TAPE_BLOCK_BYTES for krb4
8032         Remove file descriptor and event handle from streams array.  Add
8033         a security_stream_t.
8034         Remove global read buffer.
8035         (check_options): remove krb4 code.
8036         (service_ports_init): remove, now handled by individual security
8037         drivers.
8038         (main): remove dgram usage.
8039         (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
8040         bsd driver.  schedule reads on the streams using
8041         security_stream_read.
8042         (read_mesgfd,read_datafd,read_indexfd): adapt to
8043         security_stream_read callback interface.
8044         (stop_dump): just call security_stream_close on all non-null
8045         streams.
8046         (sendbackup_response): adapt to new protocol layer error return.
8047         Remove krb4 code.
8048         (startup_dump): stinky hack to parse the security driver string out of
8049         the options passed to us from driver.
8050         Lookup the security driver with said string.
8051         Remove krb4 code.
8052         Free request after calling protocol_sendreq().
8053
8054 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8055
8056         * server-src/planner.c: security changes:
8057         (main): Remove dgram usage.  Call protocol_init().  Remove
8058         krb4 code.
8059         (getsize): remove krb4 code.  Handle protocol layer api changes.
8060         Lookup security driver/complain if not found.  Free request
8061         after calling sendreq.  All hosts get put on the waitq since
8062         sendreq never returns an error.
8063         (handle_result): deal with new protocol layer error semantics.
8064         Remove krb4 code.
8065
8066 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8067
8068         * server-src/conffile.c: remove INTERFACE undef hack.  Our
8069         namespace isn't polluted by krb4 headers anymore, so it's
8070         unneeded.
8071
8072 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8073
8074         * server-src/amcheck.c: security changes:
8075         (main): ignore SIGPIPE - some security drivers might get it.
8076         Remove all usages of dgram.
8077         Make our real uid root and our effective uid amanda so we can
8078         get back to root later (on most os's :()
8079         (start_client_checks): remove krb4 bits.
8080         The dump user check should check the effective uid.
8081         Get the name of the security driver for this host out of
8082         host->diskp->security_driver.
8083         Free req after calling protocol_sendreq() because it will internalize
8084         it.
8085         protocol_sendreq doesn't return any errors - they're all returned
8086         via handle_response.
8087         (handle_result): renamed from handle_response for consistency.
8088         The protocol layer doesn't pass us a proto_t anymore, so detect
8089         errors based on pkt being NULL.
8090         Remove krb4 bits - security violations will be indicated by a 
8091         NULL pkt.
8092
8093 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8094
8095         * common-src/protocol.[ch]: rewrite for security api.  The entry
8096         points now have the 'protocol' prefix.  See protocol.h for more
8097         info.
8098         * common-src/security.c: rewrite for security api.  This now contains
8099         the functions for the 'base class' or some approximation of it.
8100         See security.h for the entry points, or docs/SECURITY-API.
8101
8102 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8103
8104         * common-src/amanda.h: rip out krb4 defines, headers, and
8105         prototypes.  Also, make assert() abort() after calling error().
8106         * common-src/krb4-security.c: stub file that pulls in the real
8107         krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
8108
8109 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8110
8111         * server-src/conffile.h: aggregate all of the compress defines
8112         (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
8113         Make dumptype_t->compress a comp_t.
8114         * server-src/dumper.c: make srvcompress global a comp_t.
8115         * server-src/dumper.c (runcompress): add a comp_t third arg
8116         that specifies the level of compression for this fd.
8117         * server-src/dumper.c (do_dump): always compress index files
8118         with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
8119         * server-src/dumper.c (read_indexfd): read the indexfd, not the
8120         datafd.  Also noted by Jean-Louis Martineau.
8121
8122 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
8123
8124         * server-src/planner.c (main): ignore SIGPIPE.  tcp based
8125         security drivers may get this while getting estimates.
8126         Set the real uid to root, and the effective uid to the amanda
8127         user, so we can get back to root later if needed.
8128         * server-src/planner.c (handle_result): rework error logic
8129         so we don't need to use p->state, which will eventually go
8130         away.
8131
8132 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8133
8134         * server-src/dumper.c: rewrite to use the event handler instead
8135         of a select loop.  Also, compress the index output using
8136         runcompress() instead of forking a compress ourselves.
8137
8138 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8139
8140         * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
8141         streams if krb4_auth if false.
8142
8143 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8144
8145         * server-src/dumper.c (do_dump): some formatting cleanups.  Nuke
8146         'killerr' - we can do without it.
8147
8148 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8149
8150         * server-src/dumper.c (do_dump): store compresspid inside of
8151         the databuf
8152
8153 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8154
8155         * server-src/dumper.c (parse_info_line): parse info lines
8156         from sendbackup directly into the 'file' global.  Eliminate
8157         the backup_name, recover_cmd, and compress_suffix globals.
8158         * server-src/dumper.c (finish_tapeheader): nuke usage
8159         of above globals.  Nuke unneeded explicit nul terminations (we
8160         memset the whole thing in fn_init).
8161
8162 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
8163
8164         * server-src/dumper.c (process_dumpline): rewrite to use strtok
8165         and const the argument.
8166         * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
8167         and prototype it.  Remove the 'type' arg, since it's always
8168         F_DUMPFILE.  Remove call to fn_init().
8169         * server-src/dumper.c (do_dump): call fh_init on 'file' while
8170         initializing globals.  Call finish_tapeheader after getting info
8171         endline.
8172
8173 1999-04-07 John R. Jackson  <jrj@purdue.edu>
8174
8175         * tape-src/tapeio.c: allow tapedev to be /dev/null.
8176         * server-src/taper.c: allow tapedev to be /dev/null.
8177         * man/amanda.8.in: allow tapedev to be /dev/null.
8178
8179 1999-04-07  Mike Grupenhoff <kashmir@munge.com>
8180
8181         * server-src/dumper.c: collect got_info_endline, got_sizeline,
8182         got_endline, and header_done into one bitmask global, and make it
8183         static.  Also, make 'file' static.
8184
8185 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8186
8187         * server-src/reporter.c (TextRule): Fix to write the full string.
8188
8189 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8190
8191         * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
8192         calls it libcrypto.  Check for both.
8193
8194 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8195
8196         * common-src/bsd-security.c (check_user): if an .amandahosts
8197         file is missing or unreadable, log this fact to the debug file
8198         instead of claiming that a user doesn't have permission.
8199         * common-src/bsd-security.c (bsd_stream_client): if
8200         DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
8201         be twice the size of our read buffer.
8202
8203 1999-04-06  David Mankins <dm@k12-nis-2.bbn.com>
8204
8205         * common-src/security.c (bsd_security_ok): if an .amandahosts
8206         file is missing or unreadable, log this fact to the debug file
8207         instead of claiming that a user doesn't have permission.
8208
8209 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8210
8211         * server-src/dumper.c: put all of the streams (data,mesg,index)
8212         into an array with a name tag.
8213         * server-src/dumper.c (stop_dump): new function that cleans up
8214         and shuts down all of the streams.
8215         * server-src/dumper.c (sendbackup_response): make static, pass
8216         response_error through p->datap instead of making it global.
8217         Rewrite the parsing to use strtok() and take advantage of the
8218         streams array instead of repeading code for all three streams.
8219
8220 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8221
8222         * server-src/dumper.c (main): keep our real uid as 0, and make
8223         our effective uid nonprivlidged, so we can get back to root
8224         later.  Don't print what port we bound to.  This info won't
8225         always be available or even applicable.
8226         * server-src/dumper.c (do_dump): create the stats line with one
8227         snprintf instead of a huge amount of code.
8228
8229 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8230
8231         * server-src/dumper.c (startup_dump): make static, and const all
8232         of the string args
8233         * server-src/dumper.c (do_dump): make static
8234
8235 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8236
8237         * server-src/dumper.c (do_dump): no need to have a separate buffer
8238         to read the mesgfd - just reuse the one we used for data reads.
8239         Gets rid of one more global.  Also, we don't need to leave
8240         space for a NUL anymore.
8241         * server-src/dumper.c (main): wait for children after closing
8242         our fds.  Some children may be blocked waiting for EOF on outfd,
8243         effectively causing deadlock between dumper and child.
8244
8245 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8246
8247         * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
8248         doesn't expect the data to be nul terminated.  Also, move
8249         the buffer from global scope into the function, and have a NULL
8250         arg flush it out if there is leftover data at the end.  Finally,
8251         resize the buffer in 256 byte chunks.
8252
8253 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8254
8255         * common-src/stream.c, common-src/stream.h (stream_client): add
8256         yet another arg - if nonzero, do a nonblocking connect
8257         * server-src/dumper.c: catch up with extra arg to stream_client()
8258
8259 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
8260
8261         * common-src/bsd-security.c, common-src/security.h: attempt
8262         to decouple security streams from security handles.  Lots of
8263         other restructuring.
8264
8265 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8266
8267         * server-src/amcheck.c: -t should read the tapelist to validate
8268         the label.
8269
8270 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
8271
8272         * patches/samba-largefs.patch: updated to patch that ended up
8273         installed in the Samba CVS tree
8274
8275         * patches/tar-1.12.patch: patch the configure script so that it
8276         requires autoconf and autoheader to be run; improve the
8277         printf_long_long test so that it doesn't get false positives because 
8278         of endianness
8279
8280         * changer-src/scsi-chio.c: since we do not support FreeBSD 3's
8281         camlib.h interface, #ifdef out all the code
8282         Reported by Francis Lam <Francis.Lam@Leitch.com>
8283
8284         * configure.in (VXSYSLOCPATH): apparently a complex path expression
8285         gets AC_PATH_PROGS confused; set the path beforehand
8286         Reported by Francis Lam <Francis.Lam@Leitch.com>
8287
8288 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8289
8290         * server-src/reporter.c: compiler warning.
8291
8292 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8293
8294         * server-src/amtrmlog.c: new program to move unused log 
8295         to logdir/oldlog.
8296         * server-src/Makefile.am: install amtrmlog.
8297         * server-src/find.h: declare find_log().
8298         * server-src/find.c(find_log): new function to return an array of
8299         all the logfile name that are still needed.
8300         * server-src/find.c(search_logfile): special case if output_find==NULL,
8301         return 1 if it the logfile fir the label.
8302
8303 1999-03-25  Neil Crellin  <neil@wallaby.cc>
8304
8305         * docs/TAPE.CHANGERS (chg-chs): URL for chs
8306
8307 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>, Tom Schutter  <tom@platte.com>, Cloyce D. Spradling  <cloyce@headgear.org>
8308
8309         * patches/samba-largefs.patch: updated for Samba 2.0.*
8310
8311 1999-03-25  Charles Owens  <owensc@enc.edu>
8312
8313         * changer-src/chg-chio.pl.in (changeTape): do not print status to
8314         both stdout and stderr; this causes failures on FreeBSD
8315
8316 1999-03-23  Mike Grupenhoff <kashmir@munge.com>
8317
8318         * common-src/stream.c, common-src/stream.h (stream_client):
8319         const the hostname arg
8320
8321 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8322
8323         * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
8324         * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
8325
8326 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8327
8328         * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
8329         * Makefile.am: make dumper-src directory
8330         * dumper-src: directory for program that implement the DUMPER-API.
8331         * dumper-src/Makefile.am:
8332         * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
8333         * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
8334
8335 1999-03-21  Elmar Bartel  <bartel@Informatik.TU-Muenchen.DE>
8336
8337         * conffile.h, conffile.c: new columnspec option
8338         * reporter.c: use it
8339         * man/amanda.8.in: description and example
8340         * example/amanda.conf.in: ditto
8341
8342 1999-03-20  Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
8343
8344         * configure.in: SAMBA_VERSION is not set correctly.
8345
8346 1999-03-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
8347
8348         * client-src/sendbackup-dump.c (re_table): generalize a bit some of
8349         the regular expressions, so as to make us more adaptable to future
8350         minor changes and bugfixes the the output format of some dumps
8351
8352 1999-03-16 Thomas Hepper <th@ant.han.de>
8353         * changer-src/chg-scsi.c: If the open of the TapeDevice fails
8354         the programm is not terminated.
8355         * changer-src/scsi-aix.c: The wrong ident string was checked
8356         for 0 termination.
8357         * changer-src/scsi-bsd.c: see scsi-aix.c
8358         * changer-src/scsi-linux.c: see scsi-aix.c
8359         * changer-src/scsi-solaris.c: see scsi-aix.c
8360         * changer-src/scsi-changer-driver.c: Added some more debug prints.
8361         Wrong fd passwd to LogSense.
8362         * docs/TAPE.CHANGERS: added note about linux and aha1542
8363
8364 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
8365
8366         * common-src/packet.h: explicitly list the numeric values for
8367         the pktype_t enum, so we can use them on the wire
8368
8369 1999-03-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
8370
8371         * config/ltconfig, config/ltmain.sh: updated from libtool 1.2f
8372         * config/libtool.m4i, config/config.guess, config/config.sub: ditto
8373         * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
8374
8375 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
8376
8377         * common-src/bsd-security.c (recv_security_ok): bring over
8378         increased verbosity change from common-src/security.c
8379
8380 1999-03-14  Mathias Herberts  <Mathias.Herberts@ago.fr>
8381
8382         * man/amrecover.8.in: document mode and setmode
8383
8384 1999-03-14  Jon Stevens  <jon@clearink.com>
8385
8386         * common-src/security.c (bsd_security_ok): increase the verbosity of 
8387         failed authentication messages
8388
8389 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
8390
8391         * configure.in (powerpc-*-linux-*): supported platform
8392         * README: ditto
8393         Reported by Jon Stevens <jon@clearink.com>
8394
8395 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8396
8397         * configure.in: new option --with-dumperdir=DIR to specify the 
8398         directory for the dumpers (dumper api).
8399         * config/acconfig.h: add def of DUMPER_DIR
8400
8401 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8402
8403         * server-src/conffile.c: accept any string for the program.
8404         * server-src/amcheck.c: add the keyword DUMPER to the request if 
8405         the program is not DUMP or GNUTAR.
8406         * server-src/planner.c: ditto
8407         * server-src/dumper.c: ditto
8408
8409 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8410
8411         * server-src/dumper.c (startup_dump): rename dumpname to progname.
8412         the function will use the parameter progname instead of the
8413         global variable.
8414
8415 1999-03-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
8416
8417         * configure.in (openbsd): according to Ralf Gebhart
8418         <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
8419         I assume other openbsd platforms work too.
8420
8421 1999-03-06 Thomas Hepper <th@ant.han.de>
8422
8423         * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
8424         * changer-src/: Get in sync with 2.4.2 Version
8425
8426 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8427
8428         * configure.in: set SAMBA_VERSION
8429         * client-src/sendbackup-gnutar.c (start_backup): use -q flag
8430         if SAMBA_VERSION >= 2
8431
8432 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
8433
8434         * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
8435         * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new 
8436         constant.
8437         * recover-src/extract_list.c: declare variable samba_extract_method.
8438         * recover-src/extract_list.c (extract_files_child): set dumptype
8439         according to samba_extract_method.
8440         * recover-src/help.c (help_list): print help for new command mode
8441         and showmode.
8442         * recover-src/set_commands.c (set_mode, show_mode): new functions.
8443         * recover-src/uscan.l:
8444         * recover-src/uparse.y:
8445
8446 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
8447
8448         * common-src/amanda.h: use ssize_t in writev return value
8449         * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
8450         use ssize_t over int
8451         * common-src/file.c (areads): use ssize_t to hold read() return val
8452         * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
8453         return val
8454         * common-src/security.h: stream_read's callback now takes a ssize_t
8455         as the third argument.
8456         * common-src/writev.c (writev): return a ssize_t
8457
8458 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
8459
8460         * configure.in: check for ssize_t, make it int if not present
8461         * config/acconfig.h: add def for ssize_t
8462
8463 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
8464
8465         * common-src/base64.c (base64encode): don't cast away a const
8466         needlessly.
8467
8468 1999-03-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8469
8470         * common-src/bsd-security.c (stream_read_callback): change n to int
8471         since ssize_t doesn't exist on all OS.
8472
8473 1999-03-03  Ralf Fassel <ralf@akutech.de>
8474
8475         * common-src/conffile.h: bit field of length 1 should be unsigned int,
8476         not int.
8477
8478 1999-03-03  Ralf Fassel <ralf@akutech.de>
8479
8480         * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
8481
8482 1999-03-03  Ralf Fassel <ralf@akutech.de>
8483
8484         * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
8485
8486 1999-03-03  Ralf Fassel <ralf@akutech.de>
8487
8488         * common-src/base64.c (base64encode): remove warning from sgi cc
8489         compiler.
8490
8491 1999-03-03  Mike Grupenhoff <kashmir@munge.com>
8492
8493         * common-src/bsd-security.c: use EV_WAIT events instead of
8494         maintaining a queue of listeners.  Refcnt the dgram read event
8495         handle.
8496
8497 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8498
8499         * server-src/driverio.h: new parameter level to update_info_taper().
8500         * server-src/driverio.c (update_info_taper): use parameter instead
8501         of sched(dp)->level.
8502         * server-src/driver.c: call update_info_taper with level parameter.
8503         * server-src/amflush.c: call update_info_taper with level parameter.
8504         no longer need to create a sched_t struct.
8505
8506 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8507
8508         * server-src/driverio.h: remove declaration of inparallel, cmdstr()
8509         and childstr(), declare init_driverio(), add inparallel parameter
8510         to startup_dump_processes().
8511         * server-src/driverio.c (init_driverio): new function to initialize
8512         dmptable and taper.
8513         * server-src/driverio.c (childstr): scan for all dumpers (MAX_DUMPERS)
8514         instead of only inparallel
8515         * server-src/driverio.c (startup_dump_processes): new parameter
8516         inparallel is used instead of global variable.
8517         * server-src/driver.c (main): call init_driverio.
8518         * server-src/driver.c (main): call startup_dump_processes with 
8519         inparallel parameter.
8520         * server-src/amflush.c (main): call init_driverio.
8521
8522 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8523
8524         * server-src/amrmtape.sh.in: work with "last_level" and
8525         "consecutive_runs" in the ouput of "amadmin export".
8526
8527 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
8528
8529         * common-src/security.h: implement security_connect callback and
8530         security_status_t changes
8531
8532 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
8533
8534         * common-src/bsd-security.c (bsd_connect): properly munge the uids
8535         to get a reserved port
8536         * common-src/bsd-security.c: adapt to the security_connect
8537         callback changes
8538         * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
8539         so skip the vstralloc
8540
8541 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
8542
8543         * common-src/event.c: implement EV_WAIT events.  Implement macros
8544         for adding/removing/traversing the event queue
8545         * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
8546
8547 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8548
8549         * docs/WISHLIST: protocol between the driver and dumpers.
8550
8551 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8552
8553         * server-src/amtoc.pl.in: output the datestamp of each dump, because
8554         amflush can flush the same disk multiple date.
8555
8556 1999-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8557
8558         * server-src/holding.h: declare struct holding_t.  Remove 
8559         declaration of insert_dirname, scan_holdingdisk.  Declare 
8560         new function free_holding_list.  pick_datestamp and 
8561         pick_all_datestamp now return (holding_t *).
8562         * server-src/holding.c (insert_dirname): new parameter holding_list
8563         where we add the name. Can add more than MAX_DIRS name.
8564         * server-src/holding.c (free_holding_list): new function to free
8565         a holding list.
8566         * server-src/holding.c (scan_holdingdisk): new parameter holding_list.
8567         * server-src/holding.c (pick_all_datestamp, pick_datestamp): return
8568         a list instead of a (char **).
8569         * server-src/find.c (search_holding_disk): use the list return by
8570         pick_all_datestamp.
8571         * server-src/amflush.c: use the list return by pick_datestamp.
8572         * server-src/amcleanupdisk.c (check_disks): use the list return by
8573         pick_all_datestamp.
8574
8575 1999-02-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8576
8577         * server-src/driverio.c (addfd): bug fixe.
8578
8579 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
8580
8581         * client-src/sendbackup-gnutar.c: new regexp for SAMBA
8582         Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
8583
8584 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
8585
8586         * server-src/amtoc.pl.in: minor fixes for multi-tape runs
8587
8588 1999-02-17  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
8589
8590         * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
8591         command-line arguments changed
8592         * man/amtoc.8.in: ditto
8593
8594 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
8595
8596         * changer-src/chg-multi.sh.in: minor portability changes
8597         * docs/TAPE.CHANGERS: originally by James da Silva
8598
8599 1999-02-17  Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
8600
8601         * changer-src/chg-multi.sh.in: various portability changes and
8602         general fixes, particularly for multieject; new cycle mode
8603         * docs/TAPE.CHANGERS: detailed description of chg-multi
8604         * example/chg-multi.conf: updated; added reference to
8605         docs/TAPE.CHANGERS for details
8606
8607 1999-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8608
8609         * server-src/driverio.h: remove declaration of addfd.
8610         * server-src/driverio.c (addfd): 2 new arguments, readset and maxfd,
8611         don't use global variable.
8612         * server-src/driverio.c (startup_tape_process, startup_dump_process):
8613         call addfd with new argument.
8614
8615 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8616
8617         * server-src/driverio.c (startup_tape_process): new taper_program
8618         argument.
8619         * server-src/driverio.h: remove declaration of taper_program.
8620         * server-src/driver.c (main): declare taper_program.
8621         * server-src/driver.c: call startup_tape_process with the new 
8622         taper_program argument.
8623         * server-src/amflush.c (run_dumps): declare taper_program.
8624         * server-src/amflush.c (run_dumps): call startup_tape_process with 
8625         the new taper_program argument.
8626
8627 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8628
8629         * server-src/driverio.c (startup_dump_process, startup_dump_processes):
8630         new dumper_program argument.
8631         * server-src/driverio.h: remove declaration of dumper_program.
8632         * server-src/driver.c: declare dumper_program.
8633         * server-src/driver.c: call startup_dump_process and
8634         startup_dump_processes with the new dumper_program argument.
8635
8636 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8637
8638         * server-src/list_dir.h: remove global variable dir_list, declare
8639         new function get_dir_list.
8640         * server-src/list_dir.c (get_dir_list): new function to return dir_list.
8641         * server-src/amindexd.c (opaque_ls): use get_dir_list.
8642
8643 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8644
8645         * server-src/holding.h: remove declaration of get_letter_from_user()
8646         and select_dir().
8647         * server-src/holding.c: remove function get_letter_from_user() and
8648         select_dir().
8649         * server-src/holding.c (pick_datestamp): return empty array instead
8650         of calling exit if no directory are found.
8651         * server-src/amflush.c (get_letter_from_user): new function copied
8652         from holding.c.
8653         * server-src/amflush.c (confirm): write a message and exit if no
8654         directory were found.
8655
8656 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8657
8658         * server-src/amflush.c (flush_holdingdisk): don't update the database
8659         when flushing a partial dump.
8660
8661 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8662
8663         * server-src/holding.h (get_dumpfile): new function
8664         * server-src/holding.c (get_dumpfile): new function to fill a 
8665         dumpfile_t struct from a holding file.
8666
8667 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8668
8669         * server-src/amlabel.c: compiler warning: too many arguments for format
8670
8671 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8672
8673         * server-src/amlabel.c: remove the label from the tapefile in
8674         case it was already there (-f).
8675
8676 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8677
8678         * server-src/dumper.c: make sure holding files are not larger
8679         that chunksize.
8680
8681 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8682
8683         * server-src/amcleanupdisk.c: new program to scan and find temporary
8684         file on holding disks.
8685         * server-src/Makefile.am (libexec_PROGRAMS): add amcleanupdisk.
8686         * server-src/amcleanup.sh.in: call amcleanupdisk.
8687
8688 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8689
8690         * server-src/holding.c (pick_all_datestamp): new function to return
8691         all datestamp in the holding disks.
8692         * server-src/holding.h: declare pick_all_datestamp.
8693
8694 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8695
8696         * server-src/diskfile.h (host_t): new start_t field.
8697         * server-src/diskfile.c (read_diskline): set start_t to 0.
8698         * server-src/driver.c (start_some_dumps): Don't start a dump if
8699         the host->start_t > now.
8700         * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
8701         in the future when starting a FILE_DUMP.
8702         * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
8703         the future when starting a PORT_DUMP.
8704
8705 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
8706
8707         * server-src/amlabel.c (main): try to read just-written tape label
8708         back; if wrendmark overwrote the label, suggest using a
8709         non-rewinding device
8710         * tape-src/tapeio.c (tape_wrendmark): would not close tape device if 
8711         wrendmark failed
8712
8713 1999-02-10  Paul Bijnens  <Paul.Bijnens@lant.be>
8714
8715         * server-src/amoverview.pl.in: Y2K fix in output to user
8716         * server-src/amtoc.pl.in (print_info): ditto
8717
8718 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
8719
8720         * client-src/sendsize.c (getsize_dump): do not redirect standard
8721         output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
8722
8723 1999-02-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
8724
8725         * NEWS: fix description of incronly: it won't really perform full
8726         backups
8727
8728         * NEWS: support for ufsdump -S, incronly strategy and new chunksize
8729         default
8730
8731         * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
8732         default to 1Gb
8733         * example/amanda.conf.in: ditto
8734         * man/amanda.8.in: ditto
8735
8736         * configure.in (amanda_cv_dump_estimate): check for support for -S
8737         too, and define HAVE_DUMP_ESTIMATE as the estimate switch, if any
8738         * client-src/sendsize.c (re_size): new regexps for Solaris ufsdump
8739         -S and Samba `du'.  Restrict regexp that matched Digital Unix'
8740         dump -E so that it doesn't match smbclient's output any more.
8741         Move some regexps around, and only define them if the corresponding
8742         dump program is available
8743
8744 1999-02-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
8745
8746         * example/amanda.conf.in: document the behavior of relative
8747         exclude-list files
8748         * man/amanda.8.in: ditto
8749
8750         * man/amanda.8.in (exclude list): the GNU tar flag is
8751         --exclude-from, not --exclude-list
8752         Reported by Tom Schutter <tom@platte.com>
8753
8754         * client-src/sendbackup-gnutar.c (re_table): ignore `session request 
8755         to' message printed by Samba 2.0.0
8756
8757 1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
8758
8759         * man/amanda.8.in (comprate): it is not used when there is history
8760         information; useful for large disks that compress little
8761         Reported by job bogan <job@piquin.uchicago.edu>
8762
8763         * Makefile.am: select which SUBDIRS to descend to here
8764         * client-src/Makefile.am: removed if WANT_CLIENT
8765         * tape-src/Makefile.am: removed if WANT_TAPE
8766         * server-src/Makefile.am: removed if WANT_SERVER
8767         * changer-src/Makefile.am: ditto
8768         * restore-src/Makefile.am: removed if WANT_RESTORE
8769         * recover-src/Makefile.am: removed if WANT_RECOVER
8770         * amplot/Makefile.am: removed if WANT_AMPLOT
8771
8772 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
8773
8774         * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
8775
8776         * configure.in (USE_AMANDAHOSTS): enable by default
8777         * example/config.site: ditto
8778         * docs/INSTALL: ditto
8779         * NEWS: ditto
8780
8781         * docs/INSTALL: updated URLs for GNU packages and Samba
8782         * docs/SAMBA: note that Samba 2.0.0 is supported
8783
8784         * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
8785
8786 1999-01-27  Thomas Hepper <th@ant.han.de>
8787         * changer-src/scsi-changer-driver.c SCSI_ReadElementStatus
8788         A while loop has to start with while, not if .....
8789
8790 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
8791
8792         * Makefile.am (EXTRA_DIST): sst was added within contrib
8793
8794         * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
8795         * configure.in: AC_SUBST LIBTOOL_DEPS
8796         * Makefile.am: regen libtool if neded
8797
8798         * Makefile.am: declare that we want automake 1.4 and we're a foreign 
8799         package
8800
8801         * configure.in: require autoconf 2.13, and use
8802         AC_VALIDATE_CACHED_SYSTEM_TUPLE instead of
8803         AC_VALIDATE_CACHE_SYSTEM_TYPE
8804         * config/acinclude.m4i: removed AC_VALIDATE_CACHE_SYSTEM_TYPE
8805
8806         * configure.in (SAMBA_CLIENT): updated check for smbclient to
8807         support Samba 2.0.0
8808
8809 1999-01-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
8810
8811         * server-src/amdump.sh.in (runuser): set to LOGNAME if defined, and
8812         to the output of whoami otherwise
8813         Reported by Tom Schutter <tom@platte.com>
8814
8815 1999-01-26  Thomas Hepper <th@ant.han.de>
8816         * Makefile.am Added sst driver files to EXTRA_DIST
8817
8818 1999-01-26      Thomas Hepper <th@ant.han.de>   
8819         * changer-src/Makefile.am added to LDADD 
8820         ../tape-src/libamtape.$(LIB_EXTENSION)
8821         * changer-src/chg-scsi.c If statfile is not set try to get the info
8822         about the current loaded tape direct from the changer.
8823         Fixed debug output for the eject value if > 1
8824         * changer-src/libscsi.h Prototype for GetCurrentSlot
8825         * changer-src/scsi-aix.c If the Device we open is not a changer or tape
8826         return NULL, so that the above function can abort. New eject per mtio ioctl.
8827         * changer-src/scsi-bsd.c see scsi-aix.c
8828         * changer-src/scsi-linux.c see scsi-aix.c
8829         * changer-src/scsi-hpux_new.c see scsi-aix.c
8830         * changer-src/scsi-irix.c see scsi-aix.c
8831         * changer-src/scsi-solaris.c see scsi-aix.c and added a retry loop for
8832         the execution of SCSI commands.
8833         * changer-src/scsi-changer-driver.c New Function SCSI_ReadElementStatus
8834         split ReadElementStatus in device and device independed part
8835         New EXB120ElementStatus, renamed ReadElementStatus in GenericElementStatus
8836         added EXB 120 and DLT7000 to the devices list.
8837         Removed the linked list for the element status. Now every element
8838         type has its own array allocated in the *ElementStatus functions.
8839         Check in the functions which sends SCSI commands if the fd is able to
8840         receive SCSI commands.
8841         In GenericEject check which type of eject to use (ioctl/SCSI)
8842         New GetCurrentSlot, try to get the info about the loaded tape direct from
8843         the changer.
8844         * changer-src/scsi-chio.c Add function GetCurrentSlot (not well tested yet)
8845         * changer-src/scsi-defs.h Added missing decl. in MediumTransportElementDescriptor_T
8846         for LITTLE_ENDIAN_BITFIELDS
8847         new field from in ElementInfo_T
8848         * changer-src/sci-hpux.c EMpty function GetCurrentSlot, do we still need scsi-hpux.c ?
8849         * docs/TAPE.CHANGERS added some notes for HP-UX, expanded list of tested devices
8850         
8851 1999-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8852
8853         * server-src/conffile.c (init_defaults): default value of runspercycle
8854         is 0.
8855         * server-src/amadmin.c (balance): use default value of runspercycle.
8856         * server-src/planner.c (main): use default value of runspercycle.
8857
8858 1999-01-22  Martin Apel <apel@tecmath.de>
8859
8860         * example/amanda.conf.in: explanation of incronly strategy.
8861         * man/amanda.8.in: explanation of incronly strategy.
8862         * server-src/amadmin.c: recognize incronly strategy
8863         * server-src/conffile.c: read the incronly strategy in the
8864         configuration file.
8865         * server-src/conffile.h: definition of DS_INCRONLY
8866         * server-src/planner.c: Do planning for incronly strategy:
8867         If the force flag is set perform a full dump, otherwise do
8868         normal incremental processing but avoid full dumps.
8869         * server-src/tapefile.c: Bugfix so only tapes which match
8870         the regular expression for tape labels in the current 
8871         configuration are considered for writing.
8872
8873 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
8874
8875         * common-src/bsd-security.c (check_user): there was no uid variable
8876         here; replace with getuid()
8877
8878 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
8879
8880         * server-src/planner.c (output_scheduleline): removed `or historical
8881         data' from `no estimate' message; historical data doesn't matter any 
8882         more
8883         Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
8884
8885 1999-01-20  Todd Pfaff  <pfaff@mcmaster.ca>
8886         
8887         * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
8888
8889         * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message 
8890
8891 1999-01-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8892
8893         * server-src/amflush.c: use ap_snprintf instead of snprintf.
8894         * server-src/amflush.c: rotation of new amflush log was broken.
8895
8896 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8897
8898         * server-src/reporter.c: always call output_stats(), the problem is
8899         that degraded_mode is set if amflush fills the tape.
8900
8901 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8902
8903         * server-src/amflush.c: write debuging info to $logdir/amflush
8904         instead of /dev/null if we run in background.
8905         * server-src/amcleanup.sh.in: rename $logdir/amflush.
8906
8907 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
8908
8909         * server-src/dumper.c (make_tapeheader): explicitly compare
8910         srvcompress against srvcomp_none instead of assuming that
8911         srvcomp_none's value is 0.
8912
8913 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
8914
8915         * server-src/dumper.c: move max() macro to top of file.  Add min()
8916         * server-src/dumper.c (databuf_write): use min() to determine the
8917         copy size
8918         * server-src/dumper.c (databuf_flush): more clearly calculate the
8919         buffer offset in the write loop
8920
8921 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
8922
8923         * server-src/dumper.c (databuf_write): Egads!  Also increment the
8924         source pointer doing a partial buf copy
8925
8926 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
8927
8928         * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
8929         instead of getpwuid(getuid()), in case our caller has not done
8930         the setuid().
8931
8932 1999-01-12  Mike Grupenhoff <kashmir@munge.com>
8933
8934         * server-src/dumper.c (add_msg_data): properly check for half-sent
8935         msg lines.
8936
8937 1999-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8938
8939         * server-src/amstatus.pl.in: fix a divide by zero error.
8940
8941 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
8942
8943         * server-src/dumper.c (add_msg_data): clarify and comment.  Remove
8944         'len' arg.  Const 'str' arg.
8945         * server-src/dumper.c (do_dump): compresspid and indexpid should
8946         be pid_t's.  Also, remove len from add_msg_data call.
8947
8948 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
8949
8950         * server-src/fileheader.c (parse_file_header): const the buffer
8951         argument
8952         * server-src/fileheader.h: update parse_file_header proto for const
8953         change
8954
8955 1999-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8956
8957         * server-src/amstatus.pl.in: report the current dump when reporting
8958         the busy time of each dumper.
8959
8960 1998-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8961
8962         * server-src/dumper.c: open temporary holding file with O_TRUNC flags
8963         and with mode 0600.
8964
8965 1998-12-28  John R. Jackson  <jrj@purdue.edu>
8966
8967         * server-src/reporter.c: do not drop core generating labels if the
8968         tape label is not defined, e.g. in degraded mode (compliments of
8969         Jan L. Peterson <jlp@Part.NET>).
8970
8971 1998-12-28  John R. Jackson  <jrj@purdue.edu>
8972
8973         * server-src/amtape.c: initialize two strings to NULL to avoid a
8974         core dump, compliments of G. Allen Morris III <gam3@acm.org>.
8975
8976 1998-12-27  John R. Jackson  <jrj@purdue.edu>
8977
8978         * man/amreport.8.in: remove reference to 8.5x11 paper size for the
8979         3-hole binder.
8980
8981 1998-12-27  John R. Jackson  <jrj@purdue.edu>
8982
8983         * example/3hole.ps: new lbl-templ file for 3 hole punch reports
8984         * example/Makefile.am: add 3hole.ps
8985
8986 1998-12-22  Thomas Hepper <th@icem.de>
8987
8988         * docs/TAPE.CHANGERS Update notes about chg-scsi
8989         * changer-src/chg-scsi.c Added new config option tapestatus,
8990         if set the tape log pages are written to this file.
8991         changed parameter list for get_clean_state/ask_clean,
8992         * changer-src/libscsi.h changed parameter list for get_clean_state
8993         * changer-src/scsi-changer-driver.c Added new functions OpenDevice
8994         CloseDevice LookupDevice. 
8995         Added new functions to read and decode the Tape LOG Pages.
8996         Tape Eject and ready check is now done by SCSI calls
8997
8998         * changer-src/scsi-aix.c
8999         * changer-src/scsi-bsd.c
9000         * changer-src/scsi-hpux_new.c
9001         * changer-src/scsi-hpux.c
9002         * changer-src/scsi-irix.c
9003         * changer-src/scsi-solaris.c
9004         Changed all SCSI_OpenDevice/SCSI_CloseDevice functions so that they
9005         fit to the new OpenDevice/CloseDevice calls. Removed mtio.h from 
9006         includes, remove Tape_Ready and Tape_Eject
9007         * changer-src/scsi-chio.c
9008         * changer-src/scsi-defs.h
9009
9010         For all changer-src files, removed tabs, run indent (from xemacs)
9011         Added emacs variables to the end (no tab, gnu style)
9012
9013 1998-12-21  John R. Jackson  <jrj@purdue.edu>
9014
9015         * man/amanda.8.in: document the lbl-templ tapetype option.
9016
9017 1998-12-21  John R. Jackson  <jrj@purdue.edu>
9018
9019         * man/amreport.8.in: fix formatting problem.
9020
9021 1998-12-20  John R. Jackson  <jrj@purdue.edu>
9022
9023         * configure.in: define NEED_RESETOFS unless LFS (large file system
9024         support) is available.
9025         * config/acconfig.h: add NEED_RESETOFS tag.
9026         * server-src/taper.c: only reset the tape offset if NEED_RESETOFS
9027         is defined and only once per 2 GBytes.
9028
9029 1998-12-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
9030
9031         * server-src/amlabel.c (main): datestamp for new tapes is now 0
9032         * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
9033         reusable
9034         * man/amlabel.8.in: document that tapes are added to tapelist
9035
9036 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
9037
9038         * server-src/dumper.c (runcompress): new function.  Given an output
9039         file descriptor, inserts a gzip/compress in front of that descriptor.
9040         * server-src/dumper.c (do_dump): if srvcompress is true, insert
9041         the gzip (using runcompress) in front of the output fd instead
9042         of the input fd.  Only do this after the tapeheader has been written.
9043
9044 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
9045
9046         * server-src/dumper.c (startup_chunker): new function.  When doing
9047         chunking, fork a piped subprocess that reads in a fileheader and
9048         a data stream, and writes out the headered, chunked files.  This
9049         allows us to treat unchunked, chunked, and port-dump dumps exactly
9050         the same.
9051         * server-src/dumper.c (main): file-dump: if chunksize > 0,
9052         call startup_chunker for our outfd.  Otherwise, open the
9053         holding file directly.
9054
9055 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
9056
9057         * server-src/dumper.c (struct databuf): add a chunk_size member,
9058         the size of each chunk.  Remove chunksize global.
9059         * server-src/dumper.c (main): add a chunksize local var
9060         * server-src/dumper.c (databuf_init): init the chunk_size member
9061         with the same value as split_size
9062         * server-src/dumper.c (databuf_flush): increment db->split_size
9063         by the amount in db->chunk_size instead of the global chunksize
9064
9065 1998-12-19  John R. Jackson  <jrj@purdue.edu>
9066
9067         * server-src/amstatus.pl.in: instead of just displaying why no
9068         dumpers were busy, display reason(s) why N+1 were not busy.
9069
9070 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9071
9072         * server-src/amstatus.pl.in: add statistics about how much time
9073         taper and each dumper is busy, how much time N dumpers are busy
9074         and why no dumpers were busy.
9075
9076 1998-12-18  Mike Grupenhoff <kashmir@munge.com>
9077
9078         * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
9079         and 'split_size' members to replace the equivalent globals.  Nuke
9080         those globals.
9081         * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
9082         args to init those members.  Init filename_seq to 0.
9083         * server-src/dumper.c (main): declare and init the databuf here
9084         * server-src/dumper.c (databuf_flush): refer to split_size, filename,
9085         and filename_seq in the databuf instead of the globals.
9086         * server-src/dumper.c (do_dump): now takes a databuf instead of an
9087         output file descriptor.
9088
9089 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9090
9091         * server-src/amstatus.pl.in: fix two perl warnings.
9092
9093 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9094
9095         * server-src/amstatus.pl.in: fix two minor typos.  Add percentage
9096         display to the summary comparing real and estimated size and real
9097         versus total estimate (showing how well the estimates are doing and
9098         a rough guess at how far along the run is).  Also the percentage of
9099         total holding disk space in use.
9100
9101 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9102
9103         * server-src/amstatus.pl.in: take the --file argument as is if it
9104         is an absolute path.
9105
9106 1998-12-18  John R. Jackson  <jrj@purdue.edu>
9107
9108         * server-src/driver.c: call short_dump_state() one last time before
9109         quitting so amstatus gets a last good status.  Tell taper to quit
9110         after the dumpers since it writes more information to the amdump
9111         file (helps prevent mixed messages).
9112
9113 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
9114
9115         * server-src/dumper.c (databuf_flush): return 0 on success
9116
9117 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
9118
9119         * server-src/dumper.c (databuf_flush): new function.  Writes
9120         the contents of the databuf out to its backing file, doing splitting
9121         if necessary
9122         * server-src/dumper.c (databuf_write): call databuf_flush when the
9123         databuf fills up.  Fully complete all writes (no short writes)
9124         * server-src/dumper.c (do_dump): databuf_write now guarantees complete
9125         writes, so remove retry loop.  Call databuf_flush() when eof is hit.
9126         Do not close datafd on eof, because our caller (main) passed it to
9127         us and therefore owns it (and main does close it again).
9128
9129 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
9130
9131         * server-src/dumper.c (databuf_init): new function, initializes
9132         a struct databuf.
9133         * server-src/dumper.c (update_dataptr): rename to databuf_write,
9134         and have it take a buffer and a size, and return how many bytes
9135         of the buffer were written
9136         * server-src/dumper.c (do_dump): use databuf_init to initialize db.
9137         Use databuf_write to add incomign data to the databuf.
9138         Make size1 and size2 local to the blocks they are used in.
9139
9140 1998-12-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
9141
9142         * common-src/Makefile.am (noinst_DATA): removed; bogus
9143         * config/config.guess, config/config.sub: config/install-sh,
9144         config/mkinstalldirs: updated to current pre-2.13 autoconf CVS tree
9145         * patches/autoreconf.patch: removed
9146         * config/libtool/libtool.m4: renamed to config/libtool.m4i
9147         * config/acinclude.m4: renamed to config/acinclude.m4i
9148         * config/Makefile.am (EXTRA_DIST): updated to reflect changes
9149         * autogen: build config/acinclude.m4  by concatenating acinclude.m4i
9150         and libtool.m4i
9151         * configure.in: no longer test whether libtool is installed; require 
9152         newer autoconf
9153         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
9154         libtool 1.2d
9155         * amplot/Makefile.am (EXTRA_DIST): no longer needed
9156         * changer-src/Makefile.am (chg_scsi_SOURCE): move scsi-defs.h closer 
9157         to the beginning of the list
9158         * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
9159         automake from CVS
9160
9161 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9162
9163         * common-src/genversion.c (main): rip out krb4 defines.  If we
9164         need this info, each driver will have to do it individually.
9165
9166 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9167
9168         * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
9169         element from dumptype_t, and get_auth() lookup func.  Add
9170         security_driver to dumptype_t and parse value of AUTH keyword
9171         as a string.
9172         * server-src/conffile.h: nuke auth_t.  Remove auth_t auth, int s_auth
9173         from typetype_t; add char *security_driver, int s_security_driver.
9174         * server-src/diskfile.c: nuke auth_t auth from disk_t, add
9175         char *security_driver.  Inherit security_driver from the dumptype_t
9176         for this disk.
9177         * server-src/diskfile.h: ditto
9178         * server-src/amadmin.c (disklist_one): output the security-driver
9179         string in place of the auth type
9180         * server-src/amcheck.c (start_client_checks, handle_response):
9181         enum type hostp->disks->auth is gone.  check the string in the
9182         security_driver for this disk for krb4 auth.
9183         * server-src/planner.c (getsize, handle_result): check the string
9184         in hostp->disks->security_driver for the auth type.
9185
9186 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9187
9188         * server-src/amindexd.c: no need to include protocol.h
9189
9190 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9191
9192         * server-src/amindexd.c: remove duplication inclusion of version.h.
9193         Include tapefile.h to get read_tapelist() prototype
9194         * server-src/amindexd.c (build_disk_table): remove a plethora of
9195         unused local vars
9196         * server-src/amindexd.c (main): rename security_ok() call to
9197         check_security(), and define check_security() locally.  security_ok
9198         will disappear when the new security api goes in
9199
9200 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9201
9202         * server-src/changer.c (changer_label): make it return void
9203         to keep gcc warning about control reaching the end of a nonvoid
9204         function.
9205         * server-src/changer.c: update changer_label's proto for previous
9206
9207 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9208
9209         * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
9210         with bitmasks
9211         * server-src/amadmin.c: use the bitmask macros for setting
9212         and clearing the bits in the infofile command word
9213         * server-src/planner.c: ditto.  This fixes a bug in the code that
9214         tried to clear FORCE_FULL with an xor expression that was
9215         never assigned (x ^ FORCE_FULL)
9216
9217 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9218
9219         * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
9220         use %ld to print them.
9221
9222 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9223
9224         * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
9225         * common-src/packet.h: ditto for pkt_cat
9226         * common-src/security.h: likewise for security_seterror
9227
9228 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9229
9230         * common-src/error.c (error): const the format arg
9231         * common-src/amanda.h: mark error with gcc's noreturn attribute, and
9232         const its format arg
9233
9234 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
9235
9236         * common-src/debug.c (debug_printf): const the format arg
9237         * common-src/amanda.h: const debug_printf's format arg
9238
9239 1998-12-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
9240
9241         * configure.in (BSD SCSI): test ... -a ... is not portable, and less 
9242         so when written test ... -a test ... :-)
9243
9244 1998-12-14  Thomas Hepper <th@icem.de>
9245
9246         * changer-src/Makefile.am Added scsi-bsd.c
9247         * changer-src/chg-scsi.c Initialize *scsitapedevice
9248         * changer-src/scsi-changer-driver.c remove LITTLE_ENDIAN_BITFILEDS
9249         defenition
9250         changed RequestSense to pRequestSense (there is a function 
9251         called RequestSense)
9252         changed error handling in ResetStatus (fix for IRIX)
9253         FIxed length handling for the pages in ReadElemtStatus
9254         * changer-src/scsi-chio.c get_clean_state only returns 0, the
9255         ioctl to get the clean flag is not portable ;-(
9256         changed all (f)printf to dbprintf
9257
9258         * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
9259         LITTLE endian the same ...
9260
9261         * changer-src/scsi-bsd.c New file for FreeBSD
9262
9263         * changer-src/scsi-irix.c Clean up in the return handling
9264         changed RequestSense to pRequestSense
9265         Removed unused function TapeStatus
9266
9267         * changer-src/scsi-linux.c changed RequestSense to pRequestSense
9268         Removed unused function TapeStatus
9269
9270         * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
9271         Removed unused function TapeStatus
9272
9273         * config/acconfig.h added def for BSD_LIKE_SCSI
9274
9275         * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
9276         added sys/scsiio.h and check for BSD SCSI interface
9277
9278 1998-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9279
9280         * server-src/driver.c (handle_dumper_result): rename .tmp files
9281         when receiving ABORT_FINISHED.
9282
9283 1998-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9284
9285         * server-src/driver.c (start_some_dumps): Use the holdp returned
9286         by find_diskspace for a big_dumper in degraded mode.
9287
9288 1998-12-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
9289
9290         * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
9291         (IRIX): patch for xfsdump estimates
9292
9293 1998-12-10  John R. Jackson  <jrj@purdue.edu>
9294
9295         * common-src/amflock.c (main): remove call set_pname() for
9296         CONFIGURE_TEST since error.o is not linked in.
9297
9298 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
9299
9300         * server-src/dumper.c (struct databuf): add a fd member - the file
9301         descriptor that we are buffering
9302         * server-src/dumper.c (update_dataptr): remove
9303         outf arguments, use the fd in the passed databuf.  Return 0 on
9304         success, and -1 on error.
9305         * server-src/dumper.c (update_dataptr): rework and comment the
9306         chunk code a bit.  Get rid of the cont_filename global.
9307         * server-src/dumper.c (do_dump): init the fd member of the databuf
9308         * server-src/dumper.c (write_dataptr): fold back into update_dataptr
9309
9310 1998-12-10  John R. Jackson  <jrj@purdue.edu>
9311
9312         * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
9313         stderr.
9314
9315 1998-12-10  John R. Jackson  <jrj@purdue.edu>
9316
9317         * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
9318         * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
9319
9320 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
9321
9322         * server-src/dumper.c (update_dataptr): remove pointless backups
9323         of the databuf and associated vars when creating next chunk.
9324         Remove duplicate setting of file.cont_filename.
9325
9326 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
9327
9328         * server-src/dumper.c (main): reuse outfd to clear the open files
9329         passed to us.  Nuke the fd var.
9330         * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
9331         was always set to 1
9332
9333 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
9334
9335         * server-src/dumper.c (write_tapeheader): kill dead code
9336         * server-src/dumper.c (main): remove useless amfree of datestamp.
9337         Add missing break to 'default' case in command loop.
9338         * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
9339         Create a 'struct databuf' that holds all three.
9340         * server-src/dumper.c (write_dataptr, update_dataptr): make
9341         these take a 'struct databuf *' as an argument, and have them
9342         operate on its contents instead of the aforementioned globals
9343         * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
9344         Make it static, because it's large.  Use it instead of the
9345         globals.
9346
9347 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
9348
9349         * server-src/dumper.c (main): rework the command loop a bit.
9350         Consolidate all duplicated error cleanup into one place at the
9351         end of the loop after each command has been processed.  Exit
9352         with exit(), not return.
9353
9354 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
9355
9356         * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
9357         argv globals, pass them as arguments to getcmd() via struct cmdargs.
9358         * server-src/dumper.c (getcmd): make the command lookup table driven.
9359         * server-src/dumper.c (write_dataptr): restructure the command
9360         logic a bit to hopefully clarify things.
9361
9362 1998-12-09  Henning P. Schmiedehausen  <henning@tanstaafl.de>
9363
9364         * client-src/sendbackup.c (parse_options): Added check whether the
9365         pathname of the exclude file is relative and if yes, use the
9366         mountpoint of the filesystem as anchor.  So you can put your exclude
9367         file in the root of the filesystem to backup.
9368         * client-src/sendsize.c (getsize_gnutar): added the same check as
9369         above so sendsize uses the same exclude file.
9370
9371 1998-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9372
9373         * server-src/holding.c (size_holding_files): return size in KB.
9374         * server-src/driver.c (adjust_diskspace): use KB returned by
9375         size_holding_files.
9376         * server-src/driver.c: rename .tmp file
9377         * server-src/dumper.c: do not rename .tmp file. let the driver do it.
9378
9379 1998-12-09  John R. Jackson  <jrj@purdue.edu>
9380
9381         * common-src/stream.c (stream_server): do not request a reserved port
9382         if we are root but PORTRANGE is defined.  Also, clean up the code
9383         and make sure *portp is -1 on all error returns.
9384
9385 1998-12-08  John R. Jackson  <jrj@purdue.edu>
9386
9387         * Makefile.am: add the user-contributed area.
9388         * contrib/README: describe the user-contributed area.
9389         * contrib/dbbackup.README: README for Oracle database backup system.
9390         * contrib/dbbackup.ksh: Oracle database backup system wrapper.
9391         * contrib/dbbackup.sql: Oracle database backup system setup commands.
9392         * contrib/dbbackup.tcl: Oracle database backup system main body.
9393
9394 1998-12-08  John R. Jackson  <jrj@purdue.edu>
9395
9396         * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
9397         compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
9398
9399 1998-12-08  John R. Jackson  <jrj@purdue.edu>
9400
9401         * configure.in: fix reversed code for --with-amrecover, compliments
9402         of Yar Tikhiy <yar@radio-msu.net>.
9403
9404 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9405
9406         * common-src/fileheader.h (dumpfile_t): new is_partial field.
9407         * common-src/fileheader.c: add codee for new is_partial field.
9408         * server-src/holding.h (rename_tmp_holding): declare new function.
9409         * server-src/holding.c (rename_tmp_holding): new function.
9410         * server-src/dumper.c (do_dump): return 1 if succeded, otherwise 0.
9411         * server-src/dumper.c (main): open .tmp when dumping to disk, 
9412         rename .tmp if do_dump return 1.
9413         * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
9414         * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
9415
9416 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
9417
9418         * server-src/amtape.c (main, usage): make command lookup and usage
9419         table-driven
9420
9421 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
9422
9423         * server-src/amadmin.c: make command lookup and usage table-driven
9424         * server-src/amadmin.c (balance, tape, bumpsize): add
9425         argc/argv arguments to make them like the rest
9426         * server-src/amadmin.c (show_version): new function, implements
9427         the version command, so it is done like the other commands
9428         * server-src/amadmin.c (main): iterate through cmdtab[] when
9429         looking up the command, instead of a huge if/then/else
9430         * server-src/amadmin.c (usage): iterate through cmdtab[] when
9431         displaying usage strings.  Display the "disklist" usage string.
9432
9433 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9434
9435         * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
9436
9437 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9438
9439         * NEWS: document new force-bump, force-no-bump and unforce-bump
9440         command in amadmin.
9441
9442 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9443
9444         * server-src/holding.c (size_holding_files): new function to
9445         return the sum of the size of all chunk of an image.
9446         * server-src/holding.h (size_holding_files): declare.
9447         * server-src/driver.c (adjust_diskspace): use size_holding_files
9448         instead of doing a stat of only the first chunk.
9449
9450 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9451
9452         * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
9453         command.
9454         * man/amadmin.8.in: document them.
9455
9456 1998-12-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
9457
9458         * docs/FAQ (large filesystems): fixed reference to results missing
9459         (results missing): updated to 64Kb UDP packets
9460
9461 1998-12-04  Mike Grupenhoff <kashmir@munge.com>
9462
9463         * common-src/amanda.h: implement WIFSIGNALED() if not already
9464         defined
9465         * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
9466         WTERMSIG(), and WIFSIGNALED().  These are already handled in amanda.h
9467         * server-src/changer.c: ditto
9468
9469 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
9470
9471         * common-src/bsd-security.c (recv_security_ok): only check for
9472         a reserved port for REQ packets
9473
9474 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
9475
9476         * common-src/bsd-security.c (recvpkt_callback): only compare
9477         the sin_addr and sin_port fields in the sockaddr when determining
9478         what handle an incoming packet belongs to.
9479         * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
9480         since it's a string.
9481
9482 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
9483
9484         * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
9485         the 'SECURITY USER' line in the packet
9486         * common-src/bsd-security.c (check_user): fix many bugs
9487         in the USE_AMANDAHOSTS case
9488
9489 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
9490
9491         * configure.in: AC_REPLACE_FUNCS(writev)
9492
9493 1998-12-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9494
9495         * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
9496         * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
9497         * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
9498
9499 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9500
9501         * config/acconfig.h: add KRB5_SECURITY.  Update comment above
9502         krb4 define to make clear that they are for krb4
9503
9504 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9505
9506         * configure.in: if we're doing krb4 and -lcom_err is there, pull
9507         it in
9508         * configure.in: implement --with-krb5-security.
9509
9510 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9511
9512         * common-src/dgram.c (dgram_cat): now can take printf-style
9513         arguments
9514         * common-src/dgram.g (dgram_cat): update prototype
9515
9516 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9517
9518         * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
9519         * common-src/bsd-security.c (bsd_connect): catch up with
9520         security interface changes - upper layer now allocates our handle
9521         Also, pass up useful error message about why connects failed
9522         via the handle we are given
9523         * common-src/bsd-security.c (gethandle): rename to inithandle,
9524         since we are now passed the handle's memory.  No need to allocate
9525         memory or initialize the error msg pointer
9526         * common-src/bsd-security.c (bsd_close): now an empty function - no
9527         memory to free
9528         * common-src/bsd-security.c (recvpkt_callback): allocate the handle
9529         before calling inithandle() (nee gethandle()).
9530         * common-src/bsd-security.c (stream_read_callback): put
9531         strerror(errno) in the handle's error buffer before passing a
9532         read error up to the caller
9533
9534 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9535
9536         * common-src/krb5-security.c: new stub file that pulls in the
9537         krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
9538         defined
9539
9540 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9541
9542         * common-src/base64.{c,h}: new files, implement base64 encoding
9543         and decoding.  Implementation based on routines in bind, and so
9544         copyright is held by ISC and IBM (but is BSD-like).
9545
9546 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
9547
9548         * common-src/security.h: add 'handlesize' to the driver struct, also
9549         make the connect function pointer return int and take a handle
9550         argument
9551         * common-src/security.h (security_connect): addd a 'const char **'
9552         errmsg argument for returning connect errors
9553
9554 1998-12-01  John R. Jackson  <jrj@purdue.edu>
9555
9556         * server-src/amcheck.c: make -t mean do the tape checks, add new -l
9557         option for doing just the local server (non-tape) checks.  Have -w
9558         turn on -t.  Have -cs (or -sc) do both server and client checks.
9559         * man/amcheck.8.in: document above changes and clean up some minor
9560         formatting issues.
9561
9562 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
9563
9564         * common-src/event.c (release): nuke bogus comment about signal
9565         handler release
9566         * common-src/event.c (event_loop): move the reentrancy assert
9567         after the empty queue check.  Otherwise, calling event_loop()
9568         with an empty event queue would cause the entry count to get
9569         out of sync.  Also, on exit, assert that the entry count has
9570         gone to 0
9571         * common-src/event.c (event_loop): fix bogus comment about event
9572         removal
9573
9574 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
9575
9576         * common-src/arglist.h: implement arglist_function3()
9577
9578 1998-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9579
9580         * server-src/driver.c (start_some_dumps): In degraded mode,
9581         a big dumper should do high priority dump before low priority.
9582         * server-src/driver.c (sort_by_priority_reversed): sort by
9583         time if priority is equal.
9584
9585 1998-11-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9586
9587         * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
9588         as command.
9589         * server-src/amadmin.c (force_one,unforce_one,info_one): work
9590         with info.command with bit operator.
9591         * server-src/planner.c (setup_estimate): work with info.command
9592         with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
9593
9594 1998-11-27  Thomas Hepper    <th@icem.de>
9595
9596         * changer-src/scsi-aix.c Some changes in the error handling in
9597         scsi command execution
9598         * changer-src/scsi-changer-driver.c More debug prints.
9599         removed Endian16/Endian24 (replaced with macros)
9600         * changer-src/scsi-chio.c make get_clean_state work on linux
9601         * changer-src/scsi-defs.h  added macros for converting from/to
9602         SCSI CDB MSB type
9603         * docs/TAPE.CHANGERS add note about AIX and chg-scsi
9604
9605 1998-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9606
9607         * server-src/amadmin.c(export_one): export the last_level and
9608         consecutive_runs field.
9609         * server-src/amadmin.c(import_one): import the last_level and
9610         consecutive_runs field.
9611
9612 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9613
9614         * common-src/amanda.h: uhh, every other decl has a leading
9615         'extern' so writev() should as well
9616
9617 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9618
9619         * common-src/amanda.h: if no writev() decl exists, declare one
9620
9621 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9622
9623         * configure.in: check for <sys/uio.h>, check for a writev() decl
9624         in <unistd.h> and/or <sys/uio.h>
9625
9626 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9627
9628         * common-src/writev.c (writev): new file, implements writev for
9629         systems that lack it
9630
9631 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9632
9633         * common-src/amanda.h: include <sys/uio.h> if it exists.  Otherwise,
9634         define struct iovec
9635
9636 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9637
9638         * server-src/amlabel.c: insist on being run as the dump user (ala
9639         amlabel) to keep permissions straight.
9640
9641 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9642
9643         * server-src/amadmin.c: fix minor message format problem.
9644
9645 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9646
9647         * server-src/amlabel.c: insist on being run as the dump user (ala
9648         amflush) to keep permissions straight.
9649
9650 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9651
9652         * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
9653         amdump) to keep permissions straight.
9654
9655 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9656
9657         * server-src/amadmin.c: issue a warning for update commands that might
9658         leave ownership incorrect.
9659
9660 1998-11-24  John R. Jackson  <jrj@purdue.edu>
9661
9662         * server-src/amcheck.c: add a "-t" option to disable tape tests in the
9663         server checks.  This lets server checks be done without mounting a
9664         tape.  Add lots more sanity checks, in particular, ownership and
9665         permissions of the index area and text format database.  Warn if
9666         amcheck is not run as the dump user listed in amanda.conf.  Minor
9667         consistency cleanup in the messages.
9668         * man/amcheck.8.in: document the changes.
9669
9670 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
9671
9672         * common-src/dgram.c (dgram_bind): always try to get a reserved
9673         port, even if KRB4_SECURITY is defined
9674
9675 1998-11-23  Mike Grupenhoff <kashmir@munge.com>
9676
9677         * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
9678         to 'char proto_handle[32]' because the remote client might generate
9679         handles that aren't completely numerical
9680         * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
9681         is now a string
9682         * common-src/bsd-security.c (bsd_connect): convert our generated
9683         handle into a string to pass to gethandle()
9684         * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
9685         strtok().  Parse the handle as a string instead of trying to
9686         convert it into a number
9687
9688 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
9689
9690         * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
9691         renamed if it exists, even if no log file could be found.
9692
9693 1998-11-20  Mike Grupenhoff <kashmir@munge.com>
9694
9695         * common-src/bsd-security.c: define STREAM_BUFSIZE to be
9696         the size of the tcp socket buffers
9697         * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
9698         adapt to the stream_server() interface changes.  Set socket
9699         buffers to STREAM_BUFSIZE.
9700
9701 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
9702
9703         * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
9704         updated to current CVS libtool
9705
9706 1998-11-19  John R. Jackson  <jrj@purdue.edu>
9707
9708         * server-src/conffile.c (get_holdingdisk, init_holdingdisk_defaults):
9709         set the default chunksize and the "0" and "-1" special chunksizes
9710         to 64 KBytes less than the maximum to allow the final read at EOF.
9711         * server-src/dumper.c (main): leave the chunksize as it is when it
9712         comes in except to truncate it to a 32 KByte boundary.
9713         * man/amanda.8.in: add some chunksize comments and clean up a few
9714         minor odds and ends.
9715
9716 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
9717
9718         Give amrecover its own security bits.  It has different needs
9719         and a different protocol than the rest of amanda, so it shouldn't
9720         try to reuse the security bits
9721         * recover-src/amrecover.c (get_security): new function, implements
9722         bsd security
9723         * recover-src/amrecover.c (main): call get_security()
9724         * recover-src/amrecover.h: get_security() prototype
9725         * recover-src/extract_list.c (extract_files_setup): call
9726         get_security()
9727         * restore-src/amidxtaped.c (check_security): new function, implements
9728         * restore-src/amidxtaped.c (main): call check_security()
9729
9730 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
9731
9732         * common-src/stream.c (stream_server, stream_client): cast 4th
9733         arg of setsockopt() to (void *) to quash a compiler warning
9734         under solaris.
9735
9736 1998-11-19  John R. Jackson  <jrj@purdue.edu>
9737
9738         * recover-src/amrecover.c (main): use set_host to find the initial
9739         host name so we get the same alias resolution at startup as the
9740         sethost command.
9741         * recover-src/set_commands.c (set_host): report alternate names being
9742         attempted and only clear the directory list if a host is found.
9743
9744 1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
9745
9746         * server-src/driverio.c (update_info_dumper): do not update
9747         compression or dump rates when called from
9748         update_failed_dump_to_date
9749         Reported by Michael Schmitz <mschmitz@sema.de>
9750
9751 1998-11-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9752
9753         * server-src/dumper.c (main): reduce the size of the chunksize by
9754         2 blocks.
9755
9756 1998-11-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
9757
9758         * configure.in: hack for paxutils was not working; fixed
9759
9760 1998-11-18  Michael Povel  <mcp@ladyada.han.de>
9761
9762         * server-src/changer.h added new functions:changer_query
9763         ,changer_search,changer_find, changer_label
9764         * server-src/changer.c added changer_query, changer_search,
9765         changer_find, changer_label
9766         * server-src/amcheck.c (taper_scan) now uses changer_find 
9767         * server-src/amtape.c (load_label and taper_scan) now use changer_find
9768         * server-src/taper.c (taper_scan) now uses changer_find
9769         * server-src/amlabel.c (main) added call to changer_label
9770         which is only an empty dummy at the moment
9771
9772 1998-11-18  Thomas Hepper <th@icem.de>
9773
9774         * changer-src/chg-scsi.c Added debug print option
9775         * changer-src/chg-scsi.c If the load fails do not continue
9776         * changer-src/scsi-aix.c changed #include <config.h> to <amanda.h>
9777         * changer-src/scsi-aix.c Added debug prints to SCSI_ExecuteCommand
9778         * changer-src/scsi-changer-driver.c changed #include <config.h> to 
9779         #include <amanda.h>
9780         * changer-src/scsi-changer-driver.c Added debugging prints
9781         * changer-src/scsi-changer-driver.c Remove unused funktion TestUnitReady
9782         * changer-src/scsi-chio.c added missing funktion Tape_Ready
9783         * changer-src/scsi-hpux.c removed #include "config.h", is already done
9784         in amanda.h
9785         * changer-src/scsi-hpux_new.c  changed #include <config.h> to 
9786         #include <amanda.h>
9787         * changer-src/scsi-irix.c changed #include <config.h> to 
9788         #include <amanda.h>
9789         * changer-src/scsi-linux.c changed #include <config.h> to 
9790         #include <amanda.h>
9791         * changer-src/scsi-solaris.c changed #include <config.h> to 
9792         #include <amanda.h>
9793
9794 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
9795
9796         * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
9797         is defined
9798
9799 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9800
9801         * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
9802         to shift the tpsave array.
9803
9804 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
9805
9806         * example/amanda.conf.in: document that infofile is supposed to be a
9807         directory with the default database format
9808         * docs/FAQ: New questions: `infofile update failed' and `using the
9809         same host in different configurations'
9810
9811 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9812
9813         changer-src/scsi-linux.c (Tape_Ready): typo, the argument Device
9814         to the SCSI_CloseDevice() is not defined, I changed it to tapedev.
9815
9816 1998-11-17  Brendan M Coffey <bcoffey@connix.com>
9817
9818         * common-src/stream.c (stream_server): add requested send and receive
9819         socket size parameters.
9820         * common-src/stream.h (stream_server): ditto
9821         * server-src/taper.c (file_reader_side): set a large receive socket
9822         buffer size.
9823         * client-src/sendbackup.c (main): set a large send and receive socket
9824         buffer size for the data path, use defaults for the message and index
9825         paths.
9826
9827 1998-11-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
9828
9829         * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
9830
9831 1998-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9832
9833         * server-src/infofile.h (get_dumpdate): rename record parameter to info.
9834         * server-src/infofile.h (get_info): rename record parameter to info.
9835         * server-src/infofile.h (put_info): rename record parameter to info.
9836         * server-src/infofile.c (get_dumpdate): rename rec parameter to info.
9837         * server-src/infofile.c (zero_info): rename ip parameter to info.
9838         * server-src/infofile.c (get_info): rename record parameter to info.
9839         * server-src/infofile.c (put_info): rename record parameter to info.
9840         * server-src/infofile.c (dump_rec): rename r parameter to info.
9841         * server-src/infofile.c (dump_db): rename record variable to info.
9842         * server-src/planner.c (last_level): rename ip parameter to info.
9843         * server-src/planner.c (next_level0): rename ip parameter to info.
9844         * server-src/planner.c (runs_at): rename ip parameter to info.
9845         * server-src/planner.c (askfor): rename inf parameter to info.
9846         * server-src/planner.c (setup_estimate): rename inf variable to info.
9847         * server-src/driverio.c (update_info_dumper): rename inf parameter 
9848         to info.
9849         * server-src/driverio.c (update_info_taper): rename inf parameter 
9850         to info.
9851         * server-src/amadmin.c (next_level0): rename ip parameter to info.
9852         * server-src/amadmin.c (force_one): rename inf variable to info.
9853         * server-src/amadmin.c (unforce_one): rename inf variable to info.
9854         * server-src/amadmin.c (delete_one): rename inf variable to info.
9855         * server-src/amadmin.c (info_one): rename inf variable to info.
9856         * server-src/amadmin.c (due_one): rename inf variable to info.
9857         * server-src/amadmin.c (balance): rename inf variable to info.
9858
9859 1998-11-11  Thomas Hepper <th@icem.de>
9860
9861         * configure.in: amanda_cv_hpux_scsi was double defined.
9862         Replaced it in the chio check with amanda_cv_hpux_scsi_chio
9863         * docs/TAPE.CHANGERS: update the notes about chg-scsi
9864         * changer-src/chg-scsi.c: Unload the cleaning tape only
9865         if it is loaded
9866         Pass the changerdev and tapedev Tape_Ready, so we can check
9867         if changerdev=tapedev. In this case the fd is already open.
9868         * changer-src/scsi-aix.c: cleanup and first parts are running :-)
9869         * changer-src/scsi-changer-driver.c: Pass back the scsi status
9870         field to the calling function, not the result from the ioctl
9871         if the return form the ioctl is >= 0
9872         * changer-src/scsi-hpux.c: Add additional param to Tape_Ready
9873         fill Tape_Ready with live 
9874         * changer-src/scsi-hpux_new.c: Return the scsi status if 
9875         the ioctl result is >=0. Add new Parameter to Tape_Ready
9876         * changer-src/scsi-irix.c: same as scsi-hpux_new.c
9877         * changer-src/scis-linux.c: Add additional param to Tape_Ready
9878         * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
9879
9880 1998-11-11  Mike Grupenhoff <kashmir@munge.com>
9881
9882         * server-src/security.h: add driver entry points and macros
9883         for security_stream_accept() and security_stream_auth()
9884         * server-src/bsd-security.c: implement security_stream_accept()
9885         and security_stream_auth() for bsd security
9886
9887 1998-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9888
9889         * server-src/driver.c (main): redo my patch about total_disksize that
9890         Alexendre has undone, only the 2.4.1 branch was broken.
9891
9892 1998-11-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
9893
9894         * server-src/driver.c (main): total_disksize was only added after
9895         the loop terminated, i.e., when hdp was NULL -> crash.  fixed.
9896
9897 1998-11-09  John R. Jackson  <jrj@purdue.edu>
9898
9899         * server-src/reporter.c (main): ignore SIGPIPE so if a child process
9900         dies we do not also go away.  Also fix a core dump if amanda.conf
9901         cannot be processed, and clean up a few error messages.
9902
9903 1998-11-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9904
9905         * server-src/infofile.h (struct info_s): add last_level and 
9906         consecutive_runs.
9907         * server-src/infofile.c: support new last_level and consecutive_runs
9908         * server-src/planner.c (last_level): return ip->last_level.
9909         * server-src/planner.c (runs_at): return ip->consecutive_runs.
9910         * server-src/driverio.c (update_info_dumper): update inf.last_level
9911         and inf.consecutive_runs.
9912         
9913 1998-11-09  Mike Grupenhoff <kashmir@munge.com>
9914
9915         * client-src/sendbackup-dump.c (start_backup): don't close indexf
9916         if it was never open
9917         * client-src/sendbackup-gnutar.c (start_backup): ditto
9918
9919 1998-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9920
9921         * server-src/driver.c (main): add hdp->disksize to total_disksize
9922         even when we create the datestamp dir. (reserve was unusable).
9923
9924 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
9925
9926         * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
9927         STRATEGY-API
9928         * docs/STRATEGY-API: new file
9929
9930         * configure.in (GNUTAR): accept tar from Free paxutils, the new name
9931         of GNU tar
9932
9933 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
9934
9935         * changer-src/scsi-solaris.c: added missing #endif
9936
9937         * configure.in: merge with camlib.h patch from Oct 31
9938         remove all uses of test ... -a ...; this is not portable.
9939         (AC_CHECK_HEADERS) added header files for Linux and Solaris
9940
9941 1998-11-07  Thomas Hepper  <th@icem.de>
9942
9943         * changer-src/chg-scsi: Add config option scsidev
9944         * changer-src/chg-scsi: Remove function tape_ready
9945         * changer-src/chg-scsi: Add new parameter tapedev to function
9946         ask_clean
9947         * changer_src/scsi-hpux.c: changed HAVE_HPUX_SCSI to 
9948         HAVE_HPUX_SCSI_CHIO, changed in configure.in too
9949         * changer-src/libscsi.h: Expand definition for get_clean_state
9950         * new files in /changer-src:
9951         scsi-aix.c, scsi-changer-driver.c, scsi-defs.h
9952         scsi-hpux_new.c, scsi-irix.c, scsi-linux.c, scsi-solaris.c
9953         * configure.in checks for scsi ioctl added, check for header files
9954         for the scsi suport added
9955         * config/acconfig.h new:
9956         HAVE_HPUX_LIKE_SCSI, HAVE_HPUX_SCSI_CHIO, HAVE_LINUX_LIKE_SCSI
9957         HAVE_IRIX_LIKE_SCSI, HAVE_SOLARIS_LIKE_SCSI, HAVE_AIX_LIKE_SCSI
9958                removed: HAVE_HPUX_SCSI
9959         * changer-src/Makefile.am: New conditional for building chg-scsi-chio
9960         and chg-scsi. chg-scsi-chio is the old chg-scsi
9961
9962 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
9963
9964         * common-src/bsd-security.c (bsd_stream_write): callback's third
9965         arg should now be an int.
9966         * common-src/bsd-security.c: quash some gcc -Wall warnings
9967
9968 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
9969
9970         * common-src/security.h: the callback to stream_read should
9971         take signed type as its 'length' argument so errors can be
9972         expressed as a negative number.
9973
9974 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
9975
9976         * common-src/bsd-security.c (stream_read_callback): do reads into
9977         a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
9978         buffer in the stream handle instead of on the stack, since it's
9979         huge
9980
9981 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
9982
9983         * common-src/event.c (event_loop): Consider error conditions on
9984         file descriptors as read or write events.  The caller will be
9985         able to differentiate when they call read or write and it
9986         fails.
9987
9988 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
9989
9990         * common-src/event.c (event_loop): print out WHY select failed
9991
9992 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
9993
9994         * common-src/bsd-security.c: adjust for the recvpkt timeout
9995         interface changes
9996         * common-src/bsd-security.c (handleq_remove): add a missing ; after
9997         an assertion
9998         * common-src/bsd-security.c (gethandle): initialize the error buffer
9999         in the security handle, since errors may be set before the handle
10000         is passed up to the general security layer
10001         * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
10002         called several times, or when no recvpkt was scheduled
10003
10004 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
10005
10006         * common-src/security.h: define security_recvpkt_status_t
10007         * common-src/security.h: security_driver_t->recvpkt() now
10008         takes a timeout argument, and its callback takes a
10009         security_recvpkt_status_t
10010         * common-src/security.h: adjust the security_recvpkt() macro
10011         for the above changes
10012
10013 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
10014
10015         * common-src/event.c (event_loop): assert that we are not firing
10016         a dead event
10017
10018 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10019
10020         * recover-src/amrecover.c: remove declaration of errstr.
10021
10022 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10023
10024         * server-src/amindexd.c (build_disk_table): call find_dump() instead
10025         of popen("amadmin <conf> find ...")
10026
10027 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10028
10029         * server-src/holding.h: rename dir_list to holding_list because
10030         dir_list is also declared in amflush.c
10031         * server-src/holding.c: ditto
10032         * server-src/find.c: ditto
10033
10034 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10035
10036         * server-src/amstatus.pl.in: remove warning.
10037
10038 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
10039
10040         * common-src/event.c (event_register): delete some improper debug
10041         code that shouldn't have made it in
10042
10043 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
10044
10045         * common-src/bsd-security.c: new file: security driver that
10046         implements "BSD" security.
10047
10048 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
10049
10050         * common-src/security.h: new file: the security api header
10051
10052 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
10053
10054         * common-src/event.c: new file: the event handler.  Handles file
10055         descriptor io, signals, and timed events.
10056         * common-src/event.h: new file: interface for the event handler.
10057
10058 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
10059
10060         * common-src/packet.c: new file: description of pkt_t's and routines
10061         for formatting
10062         * common-src/packet.h: new file: header for common-src/packet.c
10063
10064 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
10065
10066         * common-src/queue.h: new file: the 4.4BSD queue macros, with
10067         additions from NetBSD
10068
10069 1998-11-04  John R. Jackson  <jrj@purdue.edu>
10070
10071         * server-src/amverify.sh.in: tolerate extra amtape output.
10072
10073 1998-11-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
10074
10075         * configure.in: bumped to 2.5.0
10076
10077         * server-src/taper.c (read_file): if a new tape cannot be found,
10078         report a no-tape error to the log file and exit, just like it does
10079         for the first tape
10080
10081 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10082
10083         * server-src/planner.c (pick_inclevel): return base_level even
10084         when the estimate failed.
10085         * server-src/planner.c (output_scheduleline): test for degr_size
10086         instead of degr_level.
10087
10088 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10089
10090         * server-src/planner.c (last_level): update last_date otherwise only
10091         level 0 or the highest is returned.
10092
10093 1998-11-03  Mike Grupenhoff  <kashmir@munge.com>
10094
10095         * common-src/alloc.c: const arguments to the stralloc functions
10096         * common-src/amanda.h: update stralloc prototypes for const
10097         poisoning
10098
10099 1998-11-03  John R. Jackson  <jrj@purdue.edu>
10100
10101         * server-src/dumper.c (do_dump): do not report FAILED back to driver
10102         when it sent us ABORT.  Clean up and send back ABORT-FINISHED.
10103
10104 1998-11-03  John R. Jackson  <jrj@purdue.edu>
10105
10106         * server-src/driver.c (handle_dumper_result): do not abort a dumper
10107         that reports NO-ROOM if taper is busy since some holding disk space
10108         will eventually be released (this code it not used when PORT-DUMP is
10109         in progress).
10110
10111 1998-11-03  John R. Jackson  <jrj@purdue.edu>
10112
10113         * server-src/taper.c (write_buffer): calling lseek after every tape
10114         write is wasteful and makes utilities like lsof less useful.  Only
10115         reset the offset when the amount written is about to go over 2 GBytes.
10116
10117 1998-11-02  John R. Jackson  <jrj@purdue.edu>
10118
10119         * server-src/driver.c (main, start_degraded_mode): fix rounding problem
10120         that made the code think there was a little room for full dumps in
10121         degraded mode, and fix the code that decides whether to do a full dump
10122         in degraded mode.
10123
10124 1998-11-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10125
10126         * server-src/amstatus.pl.in: initialize variable to remove warning.
10127
10128 1998-11-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
10129
10130         * client-src/Makefile.am (CLIENT_SCRIPTS): rename to
10131         CLIENT_SCRIPTS_OPT, because *_SCRIPTS is interpreted by automake
10132         * configure.in (CLIENT_SCRIPTS): ditto
10133         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
10134
10135         * configure.in (LIBTOOL_M4): no longer defined
10136         (LIBTOOL_M4_MACRO_DIR): defined assuming CWD is top_srcdir
10137         * Makefile.am (ACLOCAL_M4_FROM_SRCDIR): relative to srcdir
10138         (ACLOCAL_M4): defined and created using ACLOCAL_M4_FROM_SRCDIR
10139         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
10140         
10141         * client-src/sendbackup.c (backup_program): rename to
10142         gnutar_program, that's the name it should have had from the
10143         beginning
10144         * client-src/sendbackup-gnutar.c (backup_program): ditto
10145
10146 1998-10-31  Michael Schmitz <mschmitz@iname.com>
10147
10148         * configure.in: let configure check whether strcasecmp is
10149         present
10150         * common-src/strcasecmp.c: new file which contains a definition
10151         of strcasecmp
10152         * common-src/amanda.h: added code to declare strcasecmp in
10153         case it's not declared in a standard header
10154
10155 1998-10-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
10156
10157         * configure.in (snprintf): arrange that it is included in the
10158         distribution automatically
10159         * common-src/Makefile.am (EXTRA_DIST): removed, not needed
10160
10161         * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
10162         if WANT_CHG_SCSI
10163
10164         * configure.in (NO_SCSI_CHANGER_MODE): chg-scsi does not support the
10165         new FreeBSD 3.0 chio.h, so disable it if camlib.h is found.
10166         * docs/SYSTEM.NOTES (FreeBSD 3.0): add a note about this
10167         (SunOS 4.x): libtool will no longer find incorrect library versions
10168
10169 1998-10-30  John R. Jackson  <jrj@purdue.edu>
10170
10171         * common-src/security.c (bsd_security_ok): change error message to
10172         reflect that it is a host name we were looking up rather than an
10173         address (also makes the two similar messages unique).
10174
10175 1998-10-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
10176
10177         * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates 
10178
10179 1998-10-28  John R. Jackson  <jrj@purdue.edu>
10180
10181         * recover-src/set_commands.c (set_host): if the host given by the user
10182         does not work, try the canonical name and aliases returned by
10183         gethostbyname.
10184
10185 1998-10-28  John R. Jackson  <jrj@purdue.edu>
10186
10187         * configure.in: use "df /" instead of just "df" when trying to find
10188         the device that has the root file system to avoid things like NFS
10189         hangs that df sometimes suffers from.
10190
10191 1998-10-27  Mike Grupenhoff <kashmir@munge.com>
10192
10193         * common-src/stream.c (stream-client): add a 'localport' argument
10194         in which we can get the port this stream is bound to locally
10195         * common-src/stream.h (stream-client): update prototype
10196         * server-src/dumper.c: update stream-client calls
10197
10198 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10199
10200         * client-src/amandad.c (main): better logging of received packet,
10201         do not send a P_ACK when the received packet is not a P_REQ.
10202
10203 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10204
10205         * client-src/amandad.c (main): terminate immediately if started
10206         by a P_ACK packet without sending a P_NAK packet.
10207
10208 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10209
10210         * server-src/conffile.h (dtimeout): new keyword 
10211         * server-src/conffile.c (dtimeout): ditto
10212         * server-src/dumper.c: use dtimeout instead of READ_TIMEOUT
10213         * example/amanda.conf.in: document it
10214         * man/amanda.8.in: ditto
10215         * NEWS: ditto
10216
10217 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10218
10219         * server-src/dumper.c (sendbackup_response): a nak error will
10220         be a TRY-AGAIN instead of a FAILED.
10221
10222 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10223
10224         * server-src/amlabel.c: move declaration of vtbl_no, datestr
10225         and slotcommand to the main function.
10226
10227 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10228
10229         * server-src/amlabel.c: remove declaration of pname.
10230
10231 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10232
10233         * server-src/amcheckdb.sh.in: modify to match new tapelist file
10234         format (keyword reuse and no-reuse). Probably no-one use this
10235         program.
10236
10237 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10238
10239         * server-src/driver.c (handle_dumper_result): Add sleep time
10240         when a dumper failed, it could be a temporary network problem,
10241         such as NIS or NFS, better wait a few seconds before retrying.
10242
10243 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10244
10245         * server-src/driverio.h: remove declaration of argc et argv.
10246         * server-src/driverio.h (getresult): add parameters result_argc, 
10247         result_argv and max_arg.
10248         * server-src/driverio.c (getresult): use new parameters.
10249         * server-src/amflush.c (flush_holdingdisk, run_dumps): declare
10250         and use result_argc and result_argv instead of global variables
10251         argc and argv.
10252         * server-src/driver.c (main, handle_taper_result, 
10253         handle_dumper_result, dump_to_tape): ditto
10254
10255 1998-10-24  John R. Jackson  <jrj@purdue.edu>
10256
10257         * server-src/amstatus.pl.in: do not be quite so accurate in matching
10258         the log file lines since messages may be intermixed.  Turn on perl
10259         -w switch and make first cut at cleaning up warnings.
10260
10261 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10262
10263         * server-src/driverio.h: remove datestamp declaration.
10264         * server-src/amcheck.c: remove 'extern' to datestamp declaration.
10265         * server-src/amflush.c: declare datestamp.
10266         * server-src/amtape.c: remove 'extern' to datestamp declaration.
10267         * server-src/driver.c: declare datestamp.
10268         * server-src/dumper.c: remove 'extern' to datestamp declaration.
10269         * server-src/reporter.c: remove 'extern' to datestamp declaration.
10270
10271 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10272
10273         * server-src/driverio.h: remove declaration of tok.
10274         * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
10275         tok locally.
10276         * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
10277         dump_to_tape): declare tok locally.
10278
10279 1998-10-23  John R. Jackson  <jrj@purdue.edu>
10280
10281         * configure.in: disable the -E and -h dump estimate checks if $DUMP
10282         is not executable.
10283
10284 1998-10-19  John R. Jackson  <jrj@purdue.edu>
10285
10286         * server-src/amindexd.c (is_config_valid): fix core dump by moving
10287         amfree of conf_dir later in case it is needed in an error message.
10288
10289 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10290
10291         * server-src/reporter.c: remove declaration of curlinenum,
10292         curlog, curprog and curstr.
10293
10294 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10295
10296         * server-src/amflush.c (main): move declaration of diskqp from
10297         global to local.
10298
10299 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10300
10301         * server-src/amcheck.c (main): move declaration of mailout and 
10302         tempfname from global to local.
10303
10304 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10305
10306         * server-src/amadmin.c (search_logfile): remove declaration
10307
10308 1998-10-15  Mike Grupenhoff <kashmir@munge.com>
10309
10310         * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
10311         label not found
10312
10313 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10314
10315         * server-src/conffile.h: remove declaration of holdingdisks and 
10316         num_holdingdisks, declare getconf_holdingdisks().
10317         * server-src/conffile.c: define getconf_holdingdisks(),
10318         * server-src/holding.c: use getconf_holdingdisks
10319         * server-src/find.c: ditto
10320         * server-src/amcheck.c: ditto
10321         * server-src/amflush.c: ditto
10322         * server-src/driver.c ditto
10323
10324 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10325
10326         * server-src/driver.c: remove verbose and force_parameters
10327         variables.
10328
10329 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10330
10331         * server-src/dumper.c: remove declaration of pid.
10332         * server-src/dumper.c(do_dump): move declaration of runtime, 
10333         dumptime, compresspid, indexpid and killerr from global to local.
10334
10335 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10336
10337         * server-src/planner.c: remove declaration of total_waiting and
10338         result_socket.
10339         * server-src/planner.c(main): move declaration of initial_size from
10340         global to local.
10341
10342 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10343
10344         * server-src/driverio.h,server-src/driver.c: move declaration
10345         of big_dumpers, degraded_mode and reserved_space from 
10346         driverio.h to driver.c
10347
10348 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10349
10350         * server-src/driverio.h (optionstr): remove declaration
10351
10352 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10353
10354         * configure.in (SAMBA_CLIENT): fix typo
10355
10356 1998-10-14  John R. Jackson  <jrj@purdue.edu>
10357
10358         * restore-src/amrestore.c (read_file_header): make a couple of error
10359         messages clearer that they refer to problems with a header rather
10360         than the image data.
10361
10362 1998-10-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
10363
10364         * client-src/Makefile.am (libamclient_a_SOURCES): missing since
10365         clean-up; re-added
10366
10367 1998-10-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10368
10369         * docs/INTERNALS (driver and dumper): document <dumpdate> in 
10370         FILE-DUMP and PORT-DUMP request, document <chunksize> in 
10371         FILE-DUMP request.
10372
10373 1998-10-12  John R. Jackson  <jrj@purdue.edu>
10374
10375         * server-src/amtape.c (usage, main, show_device): apply patch from
10376         Chris Jones <cjones@clydesdale.math.montana.edu> to support "device"
10377         as an option to return the drive device name as reported by the
10378         changer.
10379         * man/amtape.8: document the new "device" option.
10380         * server-src/amverify.sh.in: use the new amtape "device" option to
10381         better handle tape changers.  Overhaul for general cleanup and some
10382         security issues, plus amverify now tries to support non-tar images.
10383         * man/amverify.8.in: document non-tar image issues.
10384
10385 1998-10-08  John R. Jackson  <jrj@purdue.edu>
10386
10387         * example/amanda.conf.in: fix runspercycle example and comments
10388
10389 1998-10-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
10390
10391         * configure.in (SAMBA_CLIENT): try to find it by default; minimal
10392         checking
10393         * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
10394         enable findpass.o
10395         * docs/SAMBA: document that --with-smbclient is no longer required
10396         to enable SAMBA support
10397         
10398         * docs/FAQ: about inconsistencies in active filesystems
10399
10400 1998-10-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10401
10402         * docs/DUMPER-API: add `no-record' option to the `backup' command.
10403
10404 1998-10-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10405
10406         * docs/DUMPER-API: subdivise section 3.1.
10407
10408 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10409
10410         * docs/DUMPER-API: New `index-<mode>' options.
10411         define `support parse-estimate' and `support parse-backup' subcommand.
10412         New 'estimate-direct', `estimate-parse', `backup-direct' and
10413         `backup-parse' options.
10414         Remove PARSE keyword from estimate and backup command.
10415
10416 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10417
10418         * docs/DUMPER-API: define PARSE keyword in stderr of the backup
10419         command
10420
10421 1998-10-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
10422
10423         * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not 
10424         generated by autoconf get into the distribution
10425
10426 1998-10-02  Josef Karthauser  <joe@pavilion.net>
10427
10428         * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression 
10429         for $line; the trailing `s' of slots was missing
10430
10431 1998-10-02  John R. Jackson  <jrj@purdue.edu>
10432
10433         * server-src/amstatus.pl.in: fix error message.
10434
10435 1998-10-02  John R. Jackson  <jrj@purdue.edu>
10436
10437         * server-src/taper.c (write_file): fix a problem with tha taper
10438         stats where the times were all the same.  The wallclock_str function
10439         returns a pointer to a static area so it cannot be called more
10440         than once as an argument to a function.
10441
10442 1998-10-01  John R. Jackson  <jrj@purdue.edu>
10443
10444         * common-src/protocol.c (parse_integer): allow negative numbers.
10445
10446 1998-10-01  John R. Jackson  <jrj@purdue.edu>
10447
10448         * server-src/amstatus.pl.in: add timestamps.
10449
10450 1998-10-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
10451
10452         * docs/DUMPER-API: define `support index', to be used instead of the
10453         previous `index-*' sub-commands
10454
10455 1998-09-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
10456
10457         * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use 
10458         backslashes for continuation; this seems to break automake :-(
10459
10460 1998-09-30  John R. Jackson  <jrj@purdue.edu>
10461
10462         * man/amanda.8.in: minor typo in "reserve" description.
10463
10464 1998-09-29  John R. Jackson  <jrj@purdue.edu>
10465
10466         * server-src/taper.c (end_tape): do not rewind the tape when done.
10467
10468 1998-09-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
10469
10470         * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER, 
10471         WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
10472         conditionals
10473         * amplot/Makefile.am: use them
10474         * changer-src/Makefile.am: ditto
10475         * client-src/Makefile.am: ditto
10476         * common-src/Makefile.am: ditto
10477         * man/Makefile.am: ditto
10478         * recover-src/Makefile.am: ditto
10479         * restore-src/Makefile.am: ditto
10480         * server-src/Makefile.am: ditto
10481         * tape-src/Makefile.am: ditto
10482
10483         * Makefile.am: don't print commands that work around old aclocal bug
10484
10485         * docs/DUMPER-API: remove environment variables, and mention a
10486         program that will help translating disklist entries to device names, 
10487         mount points and filesystem types
10488
10489         * recover-src/extract_list.c (extract_files_child): do not crash
10490         after failing to read the dump file header
10491         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
10492
10493 1998-09-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
10494
10495         * server-src/taper.c (taperscan_slot): initialize scan_datestamp, to
10496         avoid amfree of uninitialized pointer
10497         Reported by Lance A. Brown <brown9@niehs.nih.gov>
10498
10499 1998-09-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10500
10501         * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
10502         (estimate, estimate-parse): can print `KILL' after the estimate
10503         
10504         * docs/DUMPER-API: various suggestions from Eric Siegerman
10505         <erics@now.com> and some explanations added
10506         
10507 1998-09-27  Andy Farkas  <andyf@speednet.com.au>
10508
10509         * man/amlabel.8.in (labelstr): fix typo
10510
10511 1998-09-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
10512
10513         * recover-src/extract_list.c (extract_files_child): fix-up
10514         no_initial_params if password or domain information is not found
10515         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
10516
10517         * docs/DUMPER-API: extended `index' to `index-from-output' or
10518         `index-from-image', as suggested by Dale Hagglund <rdh@best.com>.
10519         Explained that the dumptype option `program' is the name of the
10520         wrapper program
10521
10522 1998-09-25  John R. Jackson  <jrj@purdue.edu>
10523
10524         * configure.in: fix --with-dump-honor-nodump test.  Patch by
10525         Jonas Oberg <jonas@coyote.org>.
10526
10527 1998-09-24  John R. Jackson  <jrj@purdue.edu>
10528
10529         * example/disklist: document the "spindle" and "interface" fields.
10530         Reported by Brendan M Coffey <bcoffey@connix.com>.
10531
10532 1998-09-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
10533
10534         * docs/DUMPER-API: added draft description of the DUMPER API
10535         * Makefile.am (EXTRA_DIST): add it to the distribution
10536
10537         * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
10538         cached values for host, build and target system types match with the
10539         guessed ones
10540         * configure.in: use it
10541
10542 1998-09-23  John R. Jackson  <jrj@purdue.edu>
10543
10544         * server-src/amstatus.pl.in: sort the host and partition names.
10545         From David Wolfskill <dhw@whistle.com>.
10546
10547 1998-09-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
10548
10549         * server-src/taper.c (getcmd): typo in last DEBUGging patch
10550
10551 1998-09-22  Tim Perkins  <Tim.Perkins@ddg.phar.cam.ac.uk>,  Alexandre Oliva <oliva@dcc.unicamp.br>
10552
10553         * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
10554
10555 1998-09-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
10556
10557         * changer-src/chg-mtx.sh.in: replace rew with rewind
10558         * changer-src/chg-zd-mtx.sh.in: ditto
10559         Reported by Henning Holtschneider <hh@loca.net>
10560
10561         * client-src/sendsize.c: remove usage of #error
10562         Reported by Jay Orr <orr@vss.fsi.com>
10563
10564 1998-09-21  John R. Jackson  <jrj@purdue.edu>
10565
10566         * man/amanda.8.in: document the new "tapebufs" parameter.
10567
10568 1998-09-21  Kelly Setzer  <setzer@telalink.net>
10569
10570         * server-src/taper.c (NBUFS): replaced with conf_tapebufs
10571         (THRESHOLD): now means `empty bufs' instead of `full bufs'
10572         * server-src/conffile.c: add support for the "tapebufs" option
10573         * server-src/planner.c: ditto
10574         * examples/amanda.conf.in: add sample "tapebufs" entry
10575
10576         * server-src/amlabel.c (main): adds entry to tapelist with date
10577         19700101
10578
10579 1998-09-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
10580
10581         * server-src/taper.c (getcmd): print DEBUGging output to stderr
10582         Reported by Henning Holtschneider <hh@loca.net>
10583
10584 1998-09-19  Eric Doutreleau <Eric.doutreleau@int-evry.fr>
10585
10586         * server-src/driverio.h (MAX_DUMPERS): increased from 15 to 63 in
10587         order to launch more dumper in parallel
10588         * example/amanda.conf.in (inparallel): Add the fact that it is
10589         limited by MAX_DUMPERS
10590
10591 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
10592
10593         * common-src/Makefile.am (libamanda_la_LDFLAGS): use libtool
10594         -release instead of -version_info, so as to encode the Amanda
10595         release number in the library name.  Problems related with
10596         pre-installed libraries should disappear, and separate releases can
10597         now be installed into the same directory without the risk of one
10598         using libraries from the other.
10599
10600 1998-09-18  Michael C. Povel  <Michael.Povel@hub.de>
10601
10602         * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
10603         until success or timeout
10604         (ask_clean, main): use it
10605
10606 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
10607
10608         * client-src/selfcheck.c (check_options): don't require runtar for
10609         SAMBA backups
10610         
10611         * client-src/rundump.c: fix support for VDUMP-only installation
10612         * client-src/selfcheck.c (check_options): fix detection of advfs
10613         * client-src/sendsize.c (getsize_dump): ditto
10614         * client-src/sendbackup-dump.c (start_backup): ditto
10615         Reported by Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>
10616
10617 1998-09-16  John R. Jackson  <jrj@purdue.edu>
10618
10619         * man/amadmin.8.in: document that "hostname" is optional for "info".
10620         Reported by David Wolfskill <dhw@whistle.com>.
10621
10622 1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10623
10624         * docs/FAQ: common compile-time and link-time errors
10625
10626 1998-09-11  John R. Jackson  <jrj@purdue.edu>
10627
10628         * server-src/tapefile.c (lookup_last_reusable_tape): use new
10629         calling sequence that passes how old a tape to return.  Remove
10630         lookup_previous_reusable_tape().
10631         * server-src/tapefile.h (lookup_last_reusable_tape): use new
10632         calling sequence that passes how old a tape to return.  Remove
10633         lookup_previous_reusable_tape().
10634         * server-src/amadmin.c (tape): use new lookup_last_reusable_tape
10635         calling sequence.
10636         * server-src/amcheck.c (taper_scan, start_server_check): use new
10637         lookup_last_reusable_tape calling sequence.
10638         * server-src/amflush.c (confirm): use new lookup_last_reusable_tape
10639         calling sequence.
10640         * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
10641         calling sequence.
10642         * server-src/reporter.c (output_tapeinfo): use new
10643         lookup_last_reusable_tape calling sequence.
10644         * server-src/taper.c (taper_scan): use new lookup_last_reusable_tape
10645         calling sequence.
10646
10647 1998-09-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
10648
10649         * client-src/sendbackup-gnutar.c (re_table): ignore
10650         `load_client_codepage' message from SAMBA
10651
10652 1998-09-11  John R. Jackson  <jrj@purdue.edu>
10653
10654         * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
10655         problems.  Reported by David Eckelkamp <davide@locutus.tradewave.com>.
10656
10657         * man/amstatus.8.in (all): fix minor typos.
10658
10659 1998-09-10  John R. Jackson  <jrj@purdue.edu>
10660
10661         * configure.in (LFS): add code that might support configuring large
10662         files on HP-UX.
10663
10664 1998-09-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
10665
10666         * server-src/conffile.c (dump_configuration): runspercycle is not a
10667         member of dumptype_t
10668         (init_holdingdisk_defaults): init chunksize with documented default,
10669         not -1, because it wouldn't be recalculated
10670
10671         * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
10672
10673 1998-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10674
10675         * docs/SAMBA: 1.9.18p10 has a bug
10676
10677 1998-09-09  Terje Malmedal  <tm@funcom.com>
10678
10679         * common-src/stream.c (stream_server, stream_client): added
10680         SO_KEEPALIVE option so we get an error if the other side crashes
10681
10682 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
10683
10684         * configure.in (CHIO): look for chio and AC_SUBST it
10685         (MT, CHS): if not found, use just the program name
10686         
10687 1998-09-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10688
10689         * server-src/planner.c (last_level): return the last level
10690         even it is still on holding disk if reserve < 100.
10691
10692 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
10693
10694         * server-src/reporter.c (divzero, divzero_wide): print `#'s on
10695         overflow
10696
10697         * server-src/amtape.c (show_init): no longer print `scanning'
10698         message
10699         (show_init_show, current_init_all): call show_init, then print the
10700         appropriate `scanning' message
10701         Reported by David Wolfskill <dhw@whistle.com>
10702
10703         * changer-src/chg-scsi.c (main): use new multi-configuration
10704         mechanism only if tape_device contains only a single digit
10705
10706 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10707
10708         * server-src/planner.c (setup_estimate): Don't write a
10709         "mismatch: no tapelist record, but curinfo next_level0" message
10710         and force a level 0 when reserve < 100.
10711
10712 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10713
10714         * server-src/holding.h (get_amanda_names): return a filetype_t
10715         instead of an int.
10716         * server-src/holding.c (get_amanda_names): return the filetype_t
10717         of the file or F_UNKNOWN if it's not an amanda file.
10718         * server-src/find.c (search_holding_disk): Use the new return 
10719         type of get_amanda_names.
10720         * server-src/amflush.c (flush_holdingdisk): Don't write a
10721         "ignoring cruft file" message for chunk files,
10722         filetype is F_CONT_DUMPFILE.
10723
10724 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10725
10726         * recover-src/extract_list.c (extract_files_child): don't write
10727         the samba password to the debug file.
10728
10729 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10730
10731         * server-src/driverio.c (update_info_dumper): set inf.command to
10732         NO_COMMAND if reserve< 100 because if you force a level 0 with
10733         'amadmin force', it will do level 0 every days until you flush them
10734         to tape.
10735
10736 1998-09-03  Matthias Urlichs    <smurf@noris.net>
10737
10738         * recover-src/uscan.l: recognize "?" as alias for "help"
10739
10740         * configure.in (MAILER): recognize "mail" as well as "Mail" and
10741         "mailx"
10742
10743         * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
10744         sizes of directories and files
10745
10746         * client-src/amandates.c (start_amandates): create amandates if
10747         error is either EINTR or ENOENT
10748
10749         * common-src/dgram.c (dgram_send_addr): handle ECONNREFUSED by not
10750         dying when receiving, and retrying when sending, a packet.  The
10751         server may get this error when a client reboots and hasn't started
10752         inetd yet.
10753         * common-src/protocol.c (handle_incoming_packet): ditto
10754
10755         * server-src/driver.c (read_schedule): catch cases when the time
10756         goes negative.  Some operators have the bad habit of syncing clocks
10757         late at night. ;-)
10758
10759         * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
10760         * NEWS: ditto
10761         * client-src/amandad.c (main): read the pipe from the child
10762         incrementally: the pipe buffer of many OSes is shorter than
10763         MAX_DGRAM.  Instead of SIGCHLD, note end-of-data by way of
10764         end-of-file
10765         (sigchild_jump, sigchild_flag): removed
10766         * client-src/sendbackup.c (main): instead of fork-and-exit, tell
10767         amandad to process our data by closing our end of the pipe
10768         
10769 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
10770
10771         * NEWS: another typo (too late :-(
10772
10773 1998-09-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10774
10775         * server-src/driver.c: amanda will not use an holding disk
10776         if the directory with the datestamp already exist.
10777
10778 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
10779
10780         * Amanda 2.4.1 released
10781         
10782 1998-08-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10783
10784         * NEWS: typo
10785
10786 1998-08-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10787
10788         * docs/INSTALL: update some version numbers; SAMBA 1.9.18p10 has
10789         fixed the bug in p8; using p8 is not recommended any more
10790         * docs/SAMBA: ditto
10791
10792         * config/config.guess: updated to libtool 1.2b's, in order to
10793         auto-detect some recent architectures
10794         * config/config.sub: ditto
10795
10796         * server-src/amcleanup.sh.in (sbindir): amreport now lives in
10797         sbindir; added it to PATH and removed full pathnames to binaries
10798
10799 1998-08-27  Blair Zajac  <blair@gps.caltech.edu>
10800
10801         * configure.in: Add the directory /usr/lib/fs/vxfs to the search
10802         path where configure looks for vxdump and vxrestore.  This is for
10803         Solaris so it can automatically handle vxfs filesystems.
10804         * client-src/sendbackup-dump.c: add missing last NULL argument to
10805         newvstralloc().
10806         * server-src/dumper.c: add missing last NULL argument to
10807         newvstralloc().
10808         * NEWS: reorder 2.4.1 items into most to least important for most
10809         users.
10810         * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
10811         include systems where the Veritas filesystem is used.
10812
10813 1998-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
10814
10815         * man/amanda.8.in (nofull): only level 1 incrementals
10816
10817 1998-08-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
10818
10819         * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
10820
10821         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
10822         (AC_OUTPUT): ditto
10823         * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
10824         * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
10825         (chg-mtx): mentioned chg-zd-mtx
10826
10827 1998-08-20  Eric Doutreleau  <Eric.Doutreleau@int-evry.fr>
10828
10829         * changer-src/chg-zd-mtx.sh.in: new changer script for
10830         Zubkoff/Dandelion version of mtx.
10831
10832 1998-08-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
10833
10834         * docs/SAMBA: updated; documented new patch (sambatar.diff,
10835         available in the patches page) and requirements about backup user.
10836         * docs/INSTALL: documented new patch
10837
10838 1998-08-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
10839
10840         * client-src/sendsize.c (regex_s): refuse to compile if SAMBA_CLIENT
10841         and HAVE_DUMP_ESTIMATE are both defined: the regexp that matches the
10842         estimate from DU 4.0's dump also matches an output line from
10843         smbclient, that provides an incorrect estimate.
10844         * docs/SYSTEM.NOTES: document the problem
10845
10846 1998-08-14  John R. Jackson  <jrj@purdue.edu>
10847
10848         * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
10849
10850 1998-08-13  Alexandre Oliva  <oliva@dcc.unicamp.br>, Marcel Hild  <hild@id-pro.de>
10851
10852         * configure.in (--with-portrange): validate and define PORTRANGE
10853         * example/config.site: document it
10854         * config/acconfig.h (PORTRANGE): prepare for configure define
10855         * common-src/stream.c (stream_server): use PORTRANGE to limit TCP
10856         unreserved server sockets
10857
10858 1998-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
10859
10860         * docs/FAQ: working around `dumps way too big'
10861
10862 1998-08-11  Alexandre Oliva  <oliva@dcc.unicamp.br>, Gunnar Gunnarsson  <gunnar@ki.ericsson.se>
10863
10864         * common-src/token.h (rxquote, shquote): new functions
10865         * common-src/token.c (rxquote) quotes a string into an equivalent
10866         regular expression
10867         (shquote): quotes all shell special meta-characters, so that a
10868         string can be safely passed down for shell interpretation in
10869         system() or popen()-like calls
10870         * server-src/amindexd.c (build_disk_table): quote the disk_name with 
10871         both rxquote and shquote
10872
10873 1998-08-11  John R. Jackson  <jrj@purdue.edu>
10874
10875         * changer-src/chg-manual.sh.in: put the debug file in DEBUG_DIR for
10876         security.  Clean up and enhance logging.  Fix locations of the
10877         changer files.  Source the changerfile into the script so it can
10878         override the request() function and allow alternatives to /dev/tty
10879         (e.g. E-mail, syslog).  Issue rewind before status (Solaris does
10880         not give a good status report right after a tape is loaded).
10881
10882 1998-08-10  Nick Hibma  <nick.hibma@jrc.it>
10883
10884         * changer-src/chg-chio.pl.in: move to first slot if last is unused
10885
10886 1998-08-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
10887
10888         * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
10889
10890 1998-08-07  Günter Felkel  <G.Felkel@edelmann.de>
10891
10892         * example/DIN-A4.ps: new file
10893
10894 1998-08-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
10895
10896         * tape-src/tapetype.c (initrandombytes): use random() instead of
10897         rand(), its low-order bits are more random
10898         (main): call srandom(seed) instead of srand(seed)
10899         (USE_RAND): if defined, reverts to using rand() and srand(seed)
10900
10901         * docs/FAQ: some notes about driving real tape changers
10902
10903 1998-08-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
10904
10905         * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
10906
10907 1998-08-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
10908
10909         * client-src/sendsize.c: revert 1998-08-01's change, it wouldn't
10910         even compile, as amfree() expands to a statement, not an expression, 
10911         so it cannot be used as the `increment' part of a for loop.
10912
10913         * server-src/planner.c (main): if runs_per_cycle is set to zero or
10914         negative, set it to 1, in order to avoid division by zero.
10915         * server-src/amadmin.c (balance): ditto
10916
10917 1998-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
10918
10919         * client-src/sendsize.c: replace free(line) with amfree(line),
10920         because line is not ensured to be non-NULL
10921         
10922         * docs/FAQ: amandad: error receiving message
10923         
10924         * docs/FAQ: difference between skip-full and strategy nofull
10925
10926 1998-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
10927
10928         * docs/FAQ: software or hardware compression?
10929
10930         * server-src/driver.c (adjust_diskspace): do not abort just because
10931         a holding disk file is missing
10932         (main): report warning if holding disk directory could not be
10933         created, and do not use it
10934         Reported by Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
10935
10936         * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
10937         distribution
10938         Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
10939
10940         * server-src/conffile.c (get_holdingdisk): define chunksize 0 as
10941         INT_MAX/1024, and chunksize -1 as -INT_MAX/1024
10942         * server-src/driver.c (find_diskspace): accept negative chunksizes
10943         as the maximum size (in modulus) for using the holding disk
10944         * man/amanda.8.in (chunksize): document the usage of negative
10945         values, and improve the explanation of chunking
10946         * example/amanda.conf.in: ditto
10947
10948 1998-07-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
10949
10950         * docs/FAQ: disk offline
10951
10952 1998-07-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10953
10954         * restore-src/amidxtaped.c (main): use tape_rewind() instead of
10955         running `mt'
10956
10957         * server-src/amcleanup.sh.in (reporter): update to call amreport.
10958         (amdump.<n>) update to use the same renaming technique introduced in
10959         June 30's change to amdump.
10960
10961 1998-07-25  Michael Graff  <explorer@vix.com>
10962
10963         * changer-src/Makefile.am (install-exec-hook): support $(DESTDIR)
10964         * client-src/Makefile.am (install-exec-hook): ditto
10965         * man/Makefile.am (install-data-hook): ditto
10966         * recover-src/Makefile.am (install-exec-hook): ditto
10967         * restore-src/Makefile.am (install-exec-hook): ditto
10968         * server-src/Makefile.am (install-exec-hook): ditto
10969
10970         * configure.in: link krb5 and com_err in for Kerberos support, if
10971         they exist
10972
10973 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10974
10975         * server-src/reporter.c (copy_template_file): add braces to 
10976         remove warning
10977         * tape-src/tapeio.h: declare is_zftape to remove warning in
10978         amlabel.c and taper.c
10979
10980 1998-07-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
10981
10982         * server-src/driver.c (any_delayed_disk): new variable, to ensure
10983         that we do not leave the main driver loop if there are delayed disks 
10984         but there are no active dumpers
10985         (main): instead of checking whether idle_reason is IDLE_START_WAIT,
10986         check whether there is any_delayed_disk for remaining in the loop
10987         (start_degraded_mode): set any_delayed_disk when needed
10988         Reported by Peter Walker <peter@talarian.com>
10989
10990 1998-07-23  John R. Jackson  <jrj@purdue.edu>
10991
10992         * server-src/reporter.c (main): handle LPRCMD being undefined.
10993
10994 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10995
10996         * client-src/selfcheck.c (check_suid): new function to check if a
10997         program is SUID root.
10998         * client-src/selfcheck.c (check_overall): check that runtar and
10999         rundump are SUID root.
11000
11001 1998-07-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
11002
11003         * configure.in: version number set to 2.4.1
11004
11005         * recover-src/Makefile.am (LDADD): libamtape imports symbols from
11006         libamanda, so it must be listed first
11007
11008         * changer-src/Makefile.am (LDADD): remove duplication of libamserver
11009         and libamanda, as they no longer provide symbols for each other
11010         * server-src/Makefile.am (LDADD): ditto
11011         
11012 1998-07-21  Blair Zajac  <blair@gps.caltech.edu>
11013
11014         * server-src/amrmtape.sh.in: now use amanda.conf's tapelist variable
11015         * server-src/amcheckdb.sh.in:  now use amanda.conf's tapelist variable
11016         * server-src/amfreetapes.sh.in: now use amanda.conf's tapelist variable
11017         * server-src/amtoc.pl.in: now use amanda.conf's tapelist variable,
11018         make perl4 compatible
11019
11020 1998-07-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11021
11022         * docs/FAQ (results missing): suggestions to work around the UDP
11023         packet size limit
11024
11025 1998-07-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
11026
11027         * docs/FAQ (amrecover): a config name may have to be specified
11028         Reported by digital messiah <dmessiah@silcon.com>
11029
11030 1998-07-15  Blair Zajac  <blair@gps.caltech.edu>
11031
11032         * server-src/reporter.c (main): declare optind
11033
11034 1998-07-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
11035
11036         * configure.in: created Amanda 2.4.1 branch
11037
11038         * example/amanda.conf.in: strategy noinc is not implemented yet
11039
11040 1998-07-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11041
11042         * NEWS: new runspercycle keyword
11043         * server-src/conffile.h: new runspercycle keyword
11044         * server-src/conffile.c: new runspercycle keyword
11045         * server-src/amadmin.c (balance): new runspercycle keyword
11046         * server-src/planner.c (main): new runspercycle keyword
11047         * man/amanda.8.in: document new runspercycle keyword
11048         * example/amanda.conf.in: example for new runspercycle keyword
11049
11050 1998-07-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
11051
11052         * docs/FAQ: What to do if DUMP program is not available.
11053         * client-src/selfcheck.c (check_overall): if a needed program is
11054         missing, print an error message.
11055         Reported by Klaus Hoffmann <handatalog@csi.com>
11056
11057         * */Makefile.am: checked library version numbers, no need for update
11058         
11059         * configure.in: version number set to 2.4.1b1
11060
11061 1998-07-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
11062
11063         * docs/FAQ: new entries: how to label tapes, (not) spanning large
11064         filesystems across tapes, how to enable index generation,
11065         overwriting selected tapes, cleaning up databases, selecting tape
11066         changer.
11067         
11068 1998-07-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
11069
11070         * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
11071
11072         * configure.in (AC_OUTPUT): generate chg-chio.pl
11073         * changer-src/Makefile.am (EXTRA_DIST): removed chg-chio.c
11074         * changer-src/chg-chio.c: removed, as it was confusing make
11075         
11076 1998-07-10  Nick Hibma  <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
11077
11078         * changer-src/chg-chio.pl.in: new script, created to replace old
11079         chg-chio written in C
11080         * docs/TAPE.CHANGERS (chg-chio): document it
11081         * changer-src/Makefile.am (EXTRA_SCRIPTS): add chg-chio
11082         (EXTRA_DIST): still include chg-chio.c, just in case it is useful
11083         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): add chg-chio
11084         
11085 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
11086
11087         * server-src/reporter.c (main): if no arguments are given, preserve
11088         original behavior; require config name otherwise.  Perform better
11089         argument checking.
11090         * example/DLT.ps (DrawHost): discard additional argument introduced
11091         in Steven Freed's modification
11092         * example/EXB-8500.ps (DrawHost): ditto
11093         * example/HP-DAT.ps (DrawHost): ditto
11094
11095         * server-src/Makefile.am (amreport_SOURCES): build from reporter.c
11096         (driver_SOURCES) removed, no longer needed
11097         * man/Makefile.am (EXTRA_DIST): added amreport.8
11098
11099 1998-07-08  Steven Freed  <sfreed@gilasoft.com>
11100
11101         * server-src/reporter.c (usage): new function
11102         (main): accept command-line arguments for selecting config name,
11103         output file, log file name to read from, postscript file to write
11104         to.
11105         (output_summary): print tape labels list, tape section numbers and
11106         dump sizes.
11107         * server-src/amdump.sh.in: run amreport
11108         * server-src/amflush.c (main): ditto
11109         (run_dumps): ditto
11110         * configure.in (BUILD_SERVER_PROGS_SBIN): add amreport
11111         (BUILD_SERVER_PROGS_LIBEXEC): remove reporter
11112         * man/amreport.8.in: new file
11113         * man/Makefile.am (man_MANS): added amreport.8
11114         * example/8.5x11.ps: new file
11115
11116 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
11117
11118         * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
11119
11120 1998-07-07  John R. Jackson  <jrj@purdue.edu>
11121
11122         * changer-src/scsi-chio.c: move #include's so this will compile on
11123         systems without <sys/mtio.h> (e.g. AIX).
11124
11125 1998-07-06  John R. Jackson  <jrj@purdue.edu>
11126
11127         * client-src/sendsize.c (handle_dumpline): allow the dump block
11128         count estimate to be negative.  Found by Lance A. Brown
11129         <brown9@niehs.nih.gov> on NeXT.
11130
11131         * common-src/Makefile.am, common-src/security.c: add TEST code to
11132         security.c so people can do "make security" and have a test program
11133         to track down why they are getting "access as XXX not allowed from
11134         YYY@ZZZ".
11135
11136         * common-src/security.c (bsd_security_ok): allow the remote user
11137         field in .amandahosts to be empty ala .rhosts.
11138
11139 1998-07-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11140
11141         * server-src/amcheck.c (start_server_check): report space use for
11142         holding disk if a negative value is given in the use parameter.
11143
11144         * server-src/driver.c (main): compute holding disk space if 
11145         a negative value is given in the use parameter..
11146
11147         * man/amanda.8.in (use) : document negative use paramater for 
11148         holding disk.
11149
11150         * example/amanda.conf.in (use): document negative use paramater for
11151         holding disk..
11152
11153 1998-07-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
11154
11155         * man/amanda.8.in (reserve): document it
11156         * example/amanda.conf.in (reserve, gigabytes): ditto
11157         (etimeout) negative number stands for total estimate time
11158
11159         * NEWS: documented major changes since amanda 2.3.0.4
11160
11161         * docs/INSTALL: refer to patch-system for editing services and
11162         inetd.conf
11163
11164         * docs/FAQ: added entries for common amdump and amcheck errors
11165
11166         * COPYRIGHT: updated to 1998, refer to Amanda Development Team
11167         * AUTHORS: who is the Amanda Development Team
11168
11169 1998-07-03  John R. Jackson  <jrj@purdue.edu>
11170
11171         * docs/SYSTEM.NOTES: add comment about using the variable device name
11172         on IRIX.  Otherwise, IRIX will write 4KByte physical blocks, which
11173         it appears to read OK, but not if you take the tape to some other
11174         system that does what you tell it.  Discovered by Steve E. Khoo
11175         (steve@gordian.com).
11176
11177 1998-07-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
11178
11179         * server-src/planner.c (setup_estimate): handle new disks with
11180         skip-full correctly.
11181
11182         * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
11183         force it to be newer on distributions.
11184
11185 1998-07-01  John R. Jackson  <jrj@purdue.edu>
11186
11187         * server-src/driverio.h: change reserved_space to unsigned long to
11188         match free_space() and avoid a compiler warning.
11189
11190 1998-06-30  John R. Jackson  <jrj@purdue.edu>
11191
11192         * man/amanda.8.in: fix amrecover synopsis and add a short description.
11193         Noted by Brendan M Coffey <bcoffey@connix.com>.
11194
11195         * example/amanda.conf.in: make tapecycle example fit dumpcycle value
11196         better.  Noted by Tom.Croll@radisys.com and suggested comments from
11197         Alexandre Oliva <oliva@dcc.unicamp.br>.
11198
11199 1998-06-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
11200
11201         * server-src/amdump.sh.in (maxdays): set up with tapecycle+2
11202         (days): loops from 1 to $maxdays, but stops if amdump.$days does not 
11203         exist, so that we only rename amdump log files that exist.  This
11204         prevents too long loops in case of an infinite tapecycle.
11205         Reported by Nick Hibma <nick.hibma@jrc.it>
11206
11207 1998-06-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
11208
11209         * common-src/security.c (bsd_security_ok): accept case mismatches
11210         when comparing hostnames and usernames from amandahosts, and assume
11211         localuser if username is missing.
11212         * docs/INSTALL: clarify BSD security and amandahosts, WRT to
11213         non-FQDNs.
11214         Reported by Chris Shenton <chris@absinthe.shenton.org>
11215
11216         * server-src/reporter.c (output_tapeinfo): degraded mode no longer
11217         implies incremental dumps only.
11218         Reported by Randy Dees <rrd@amherst.com>
11219
11220 1998-06-26  John R. Jackson  <jrj@purdue.edu>
11221
11222         * configure.in: fix BSD/OS Kerberos include file location.
11223
11224 1998-06-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
11225
11226         * config/ltmain.sh: install official patch to libtool 1.2a
11227
11228         * configure.in: do not set max file size for Solaris 2.6, it is no
11229         longer used.
11230
11231 1998-06-26  Tim McNerney  <mumbly@netcom.com>
11232
11233         * common-src/fileheader.c (parse_file_header): accept missing
11234         PROGRAM in tape section header, for backward compatibility.
11235
11236 1998-06-25  Blair Zajac  <blair@gps.caltech.edu>
11237
11238         * server-src/amflush.c: fix mismatch arguments to error()
11239
11240 1998-06-24  Steven Freed  <sfreed@gilasoft.com>
11241
11242         * configure.in (dump-honor-nodump): fix test for `-h' support
11243
11244 1998-06-24  Scott Mesches  <mesches@allison.Colorado.EDU>
11245
11246         * example/DLT.ps: new file
11247         * example/Makefile.am (EXTRA_DIST): add DLT.ps
11248
11249 1998-06-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
11250
11251         * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
11252
11253         * recover-src/extract_list.c (extract_files_child): handle
11254         IS_UNKNOWN dumptype as IS_DUMP
11255
11256         * client-src/sendsize.c (getsize_dump): always create pipe for
11257         killpgrp.
11258
11259         * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
11260         NULL.
11261
11262         * amplot/amplot.awk: ignore `interface-state'
11263         Reported by Peter Walker <peter.walker@talarian.com>
11264
11265 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
11266
11267         * server-src/amrmtape.sh.in: enable verbose by default; implement -q 
11268         for quiet.
11269         * man/amrmtape.8.in: ditto
11270         Suggested by Nick Hibma  <nick.hibma@jrc.it>
11271         
11272 1998-06-24  Nick Hibma  <nick.hibma@jrc.it>
11273
11274         * server-src/amrmtape.sh.in: better error reporting for incorrect
11275         database entries
11276
11277 1998-06-24  Dan Swartzendruber <dswartz@druber.com>
11278         
11279         * server-src/conffile.h (RESERVE): new keyword.
11280         * server-src/conffile.c (RESERVE): ditto.
11281         (getconf_seen): recognize "reserve" keyword.
11282         (getconf_int): return value of "reserve" keyword.
11283         (read_confline): parse "reserve" line.
11284         * server-src/driverio.h (reserved_space): new global
11285         * server-src/driver.c (main): compute holding disk space to reserve
11286         for degraded dumps.
11287         (start_degraded_mode): if we haven't hit degraded mode reservation
11288         limit, allow full dump.
11289         
11290 1998-06-18  Blair Zajac <blair@gps.caltech.edu>
11291
11292         * config/ltconfig: update to 1.2a
11293         * config/ltmain.sh: update to 1.2a
11294         * config/libtool/libtool.m4: update to 1.2a
11295
11296 1998-06-17  John R. Jackson  <jrj@purdue.edu>
11297
11298         * server-src/dumper.c (write_tapeheader): comment out some variables
11299         to get rid of a compiler warning.
11300
11301 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11302
11303         * server-src/amadmin.c (bumpsize): write wrong equation for bump
11304         threshold.
11305
11306 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11307
11308         * man/amanda.8.in: add info about the chunksize parameter
11309         of the holdingdisk.
11310         * man/amanda.8.in: add info about amstatus command
11311
11312 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
11313
11314         * common-src/Makefile.am (libamanda_version): updated
11315         * tape-src/Makefile.am (libtape_version): updated
11316         * client-src/Makefile.am (libclient_version): updated
11317         * server-src/Makefile.am (libserver_version): updated
11318
11319         * server-src/taper.c (read_file): if switching to the next file
11320         fails or there's no next file, do not send a `W' to taper writer.
11321
11322         * server-src/changer.h (changer_clean): new function
11323         * server-src/changer.c (changer_clean): ditto
11324
11325 1998-06-13  Michael C. Povel  <mcp@ladyada.han.de>
11326
11327         * changer-src/chg-scsi.c: added ejetct_tape and sleep for external
11328         tape devices, and changed some code to allow multiple drives to use
11329         their own slots. Also added support for reserverd slots.
11330         * changer-src/libscsi.h (get_clean_state, eject_tape): new functions 
11331         * changer-src/scsi-chio.c (get_clean_state, eject_tape): implemented 
11332         using Linux ioctls
11333         * changer-src/scsi-hpux.c (get_clean_state, eject_tape): do nothing, 
11334         until someone implements them
11335         * changer-src/scsi-proto.c (get_clean_state, eject_tape): new
11336         functions
11337         * docs/TAPE.CHANGERS: document new configuration file format
11338         * example/chg-scsi.conf: sample configuration file
11339         * example/Makefile.am: add chg-scsi.conf to the distribution
11340         * server-src/amtape.c: add support for `clean' command
11341
11342 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
11343
11344         * docs/SYSTEM.NOTES: clean-up
11345
11346         * docs/FAQ: new file
11347         * docs/SUNOS4.BUG: removed
11348         * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
11349         
11350         * example/amanda.conf.in (bumpmult): fixed equation for threshold
11351         * man/amanda.8.in (bumpsize): fix threshold example.
11352         problem reported by Brian McEntire <brianm@fsg1.nws.noaa.gov>
11353
11354         * server-src/logfile.c (open_log): open log file with mode 0600.
11355
11356         * server-src/amdump.sh.in: refuse to run if either amdump or log
11357         exist in logdir.
11358         * server-src/amflush.c (main): refuse to run if log exists.
11359         * server-src/amcheck.c (start_server_check): do not perform tape
11360         testing if amdump and/or log exist in logdir.
11361
11362 1998-06-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11363
11364         * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
11365         should not dup2( A, B ); aclose(A) when A == B
11366
11367 1998-06-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
11368
11369         * client-src/sendsize.c (getsize_dump): use killpgrp
11370         unconditionally, so we're not bitten by setuid dump programs.
11371         * client-src/killpgrp.c: enable unconditionally.
11372
11373         * tape-src/tapetype.c: new program: calculates tapetype parameters.
11374         * tape-src/Makefile.am (EXTRA_PROGRAMS): added tapetype.
11375         * example/amanda.conf.in: point to tapetype program.
11376
11377 1998-06-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
11378
11379         * docs/SAMBA: added notes about (not) backing up registry files and
11380         ACLs with SAMBA.
11381         * docs/INSTALL: point to docs/SAMBA for usage and limitations
11382
11383 1998-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
11384
11385         * configure.in (amanda_cv_print_command): removed; using PRINT
11386         instead.
11387
11388 1998-06-07  Todd Kover <kovert@omniscient.com>
11389
11390         * add --with-owner option to allow installed binaries to be owned
11391         by someone other than the amanda user
11392
11393         * add GB as valid holding disk size.
11394
11395 1998-06-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11396
11397         * server-src/amadmin.c (info): don't need to specify an host.
11398
11399         * server-src/amadmin.c (due): new due command to write when a
11400         filesystem is due ffor next level 0 or how much days it is
11401         overdue.
11402
11403         * server-src/amstatus.pl.in (dump_size): new function to report
11404         the size of a dump split on multiple files.
11405
11406 1998-06-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11407
11408         * recover-src/extract_list.c (read_buffer): write a message
11409         when amrecover timeout waiting for amrestore to send the dump.
11410
11411 1998-06-04  John R. Jackson  <jrj@purdue.edu>
11412
11413         * client-src/getfsent.c (main): use a dynamically allocated string
11414         for the lookups since dev2rdev alters it on the fly and some systems
11415         drop core for trying to write into read only memory.  Also add the
11416         capability of passing additional lookups on the command line.
11417
11418         * common-src/Makefile.am, common-src/file.c (main),
11419         common-src/token.c (main), server-src/conffile.c (dump_configuration,
11420         main), server-src/diskfile.c (main), server-src/infofile.c (main):
11421         Clean up compiler warnings in the test programs and make them all
11422         work again.
11423
11424 1998-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
11425
11426         * amplot/amplot.sh.in: modified command line argument parsing
11427         mechanism, so as to prevent shell quoting problems and unportable
11428         constructs.
11429         Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
11430
11431 1998-06-02  John R. Jackson  <jrj@purdue.edu>
11432
11433         * server-src/amcheck.c (main), server-src/reporter.c (main): make
11434         sure internal errors, such as the mail command failing, get
11435         reported.  In the case of amcheck, they go to stderr even if -m is
11436         set since there didn't seem to be anyplace better to do so and if
11437         this is running from a cron job it might get back to a real user.
11438         For reporter, the errors go to .../amdump along with everything
11439         else from the amdump script, and they should also go to .../log,
11440         except since it's reporter that's having the trouble, they probably
11441         will not make it into the mail report.
11442
11443 1998-06-01  John R. Jackson  <jrj@purdue.edu>
11444
11445         * client-src/killpgrp.c: clean up minor compiler warnings by not
11446         building term_kill_{soft,hard} unless they are needed.
11447
11448         * server-src/driverio.c (dumper_cmd): clean up compiler warning
11449         in printf format by forcing argument to always be long and using %ld.
11450
11451         * server-src/driver.c: include <holding.h> to get declaration for
11452         unlink_holding_files and avoid a compiler warning.
11453
11454         * common-src/amanda.h, common-src/match.c (validate_glob, match_glob,
11455         glob_to_regex), recover-src/amrecover.h, recover-src/extract_list.c
11456         (add_glob, add_regex, add_file, delete_glob, delete_regex,
11457         delete_file), recover-src/help.c (help_list), recover-src/uparse.y,
11458         recover-src/uscan.l, man/amrecover.8.in: add shell wildcard support
11459         for the add/delete amrecover commands.  Add addx/deletex commands
11460         that use regular expressions.  Support more characters in path names.
11461
11462 1998-06-01  Dan Swartzendruber  <dswartz@druber.com> via John R. Jackson
11463
11464         * server-src/amlabel.c (main): check argc before referencing too
11465         far into argv for "-f".
11466
11467 1998-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
11468
11469         * docs/SYSTEM.NOTES: advise Linux users to use dump without
11470         setuid/setgid
11471
11472         * docs/INDEXING: update dumptype syntax
11473
11474 1998-05-29  John R. Jackson  <jrj@purdue.edu>
11475
11476         * server-src/amindexd.c (uncompress_file, process_ls_dump,
11477         build_disk_table, is_dir_valid_opaque, opaque_ls): fix file
11478         descriptor leak, log the amadmin find command, fix error reporting
11479         from routines that do not generate system errors.
11480         * common-src/amanda.h: make sure errno is saved through amfree().
11481
11482 1998-05-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
11483
11484         * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
11485         * patches/tar-1.12.patch: ditto.
11486
11487         * server-src/taper.c (endtape): do not log amount of used tape after 
11488         entering degraded mode.
11489
11490         * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
11491         killpgrp.
11492
11493 1998-05-28  Paul R. Johnson  <prj@mit.edu>
11494
11495         * client-src/sendbackup.c (check_status): when checking whether
11496         return status 1 is valid for dump, make sure it was *not* tar that
11497         was running.
11498
11499 1998-05-28  Tom Lear <toml@accesscom.com>, John R. Jackson  <jrj@purdue.edu>
11500
11501         * man/amcheck.8.in: document new -Maddress command line flag.
11502         * server-src/amcheck.c (usage, main): add -Maddress command line
11503         flag to send mail to a specific address instead of mailto from
11504         amanda.conf.
11505
11506 1998-05-27  John R. Jackson  <jrj@purdue.edu>
11507
11508         * man/amrestore.8: update for host/disk/date triplets.
11509         * recover-src/extract_list.c (extract_files_setup): pass datestamp
11510         argument in new position and without -d.
11511         * restore-src/amidxtaped.c (main): remove -d checks.
11512         * restore-src/amrestore.c (restore, usage, main): fix file descriptor
11513         leak, move datestamp to host/disk triplet and allow all to be repeated.
11514
11515 1998-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
11516
11517         * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
11518         stdin.
11519
11520         * client-src/sendsize.c (getsize_dump): close the other end of
11521         killpgrp's stdin pipe before trying to kill it, because we just
11522         can't kill it.
11523
11524         * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
11525         supports HP/UX-like changer commands.
11526
11527         * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
11528         interface is supported.
11529
11530         * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
11531         HAVE_SYS_SCSI_H.
11532
11533 1998-05-25  Allen Briggs  <briggs@canolog.ninthwonder.com>
11534
11535         * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
11536         NetBSD's mt
11537
11538 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
11539
11540         * client-src/sendsize.c (getsize_dump): killpgrp must be direct
11541         child of sendsize, otherwise sendsize won't be able to kill it.
11542
11543 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
11544
11545         * configure.in (bcopy, bzero, fread, fwrite, vfprintf, vprintf,
11546         vsprintf): check for these in stdlib.h
11547         (memmove): check for it in strings.h
11548         
11549         * common-src/amanda.h (memmove): fix declaration of memmove, so as
11550         to be compatible with the ones in common-src/memmove.c and
11551         regex-src/fake/memmove.c
11552         
11553         reported by Tim Potter <tpot@acsys.anu.edu.au>
11554
11555 1998-05-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
11556
11557         * client-src/sendbackup.c (check_status): when checking whether dump 
11558         returned 1, make sure it was not tar; #ifdef'ed out the code that
11559         ignores exit status 2 from gnutar (will be compiled in only if
11560         IGNORE_TAR_ERRORS is defined)
11561         * client-src/sendbackup-gnutar.c (GNUTAR active filesystem errors): 
11562         updated comment; compile in GNUTAR error messages as DMP_NORMAL if
11563         IGNORE_TAR_ERRORS is defined; compile in SMBCLIENT error messages as 
11564         DMP_NORMAL if IGNORE_SMBCLIENT_ERRORS is defined.
11565         
11566 1998-05-20  Tom Lear  <toml@accesscom.com>
11567
11568         * client-src/sendbackup.h (tarpid): new variable, used to check
11569         whether it is gnutar that is running
11570         * client-src/sendbackup-gnutar.c (start_backup): set tarpid when
11571         starting gnutar
11572         * client-src/sendbackup.c (check_status): if gnutar returns 2,
11573         ignore the error
11574
11575 1998-05-19  Jean-Louis Martineau <martineau@IRO.UMontrealCA>
11576
11577         * client-src/amandad.c: set parse_errmsg when unexpected packet
11578         * recover-src/amrecover.c: overflow in clean_pathname()
11579         * recover-src/extract_list.c: add log in delete_file().
11580         small bug when call clean_pathname()
11581         * server-src/amindexd.c: ORLD command is not working
11582         * server-src/dumper.c: fixe overflow
11583
11584 1998-05-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11585
11586         * configure.in: do not check for MAXFILESIZE
11587         * config/acconfig.h: do not define MAXFILESIZE
11588         * server-src/conffile.c: use INT_MAX instead of MAXFILESIZE
11589         * example/amanda.conf.in: ditto
11590
11591         * server-src/driver.c (interface_state): new function; print the
11592         free bandwidth for each interface.
11593         (short_dump_state): call interface_state before holdingdisk_state
11594
11595         * ChangeLog: renamed from CHANGES.  Original entries follow.
11596
11597         fix skip-incr handling so that reporter reports SKIPPED
11598         instead of missing result.
11599         -Jim Simmons <s4i@sws6.ctd.ornl.gov>
11600
11601         split big dumps ( > MAXFILESIZE ) in multiple files on holding disk. 
11602         new chunksize parameter in holdingdisk description of 
11603         the amanda.conf file.
11604         -J-L Martineau <martineau@IRO.UMontreal.CA>
11605
11606         an amstatus command that give the current state of a run.
11607         -J-L Martineau <martineau@IRO.UMontreal.CA>
11608
11609         possibility to amflush multiple runs on one tape.
11610         possibility to select dump by datestamp in amrestore (-d datestamp).
11611         -J-L Martineau <martineau@IRO.UMontreal.CA>
11612
11613         amidxtrm keep index of all active tapes as listed in tapelist file.
11614         -J-L Martineau <martineau@IRO.UMontreal.CA>
11615
11616         the tapelist file keep every active tapes.
11617         "amadmin reuse" and "amadmin no-reuse" to mark tapes you want
11618         to keep for a long time.
11619         -J-L Martineau <martineau@IRO.UMontreal.CA>
11620
11621         amlabel will not overwrite an amanda tape.
11622         The -f flag allow to overwriting an amanda tape.
11623         -J-L Martineau <martineau@IRO.UMontreal.CA>
11624
11625         be consistent and use 1048576 as a dump size everyplace instead of
11626         100000 in some places (mostly cosmetic).  -JJ
11627
11628         negative numbers are now accepted in the configuration file
11629         parser.  -oliva
11630
11631         allow a total estimate time-out to be specified.  -oliva
11632         Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
11633
11634         fix amtoc behavior in case of failed reads.
11635         -Niek Rijnbout <niek@knoware.nl>
11636
11637         index files are now stored in a directory tree ala curinfo instead
11638         of a flat namespace. -JJ
11639
11640         amrecover will now restore files using SAMBA.
11641         -Rob Riggs <rob@devilsthumb.com>
11642
11643         VXDUMP needs not be run as root, so it no longer enables
11644         rundump automatically.  -oliva
11645
11646         new `killpgrp' setuid-root program.  It is used to kill
11647         VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
11648         safe manner.
11649         -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
11650
11651         fixed amrmtape so that it will delete from tapelist only the
11652         entry that corresponds to the specified tape, not others that
11653         contain the tape name as a substring.
11654         -Nick Hibma <nick.hibma@jrc.it> & oliva
11655
11656         Added support for FreeBSD dump -h flag (honor nodump).
11657         -James E. Housley <housley@pr-comm.com>
11658
11659         Added support for ZFTAPE on Linux.
11660         -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
11661
11662         Added support for printing tape labels.
11663         -Scott Mesches <mesches@allison.Colorado.EDU>
11664
11665         Do not let amrecover die because of SIGPIPE if the pager terminates
11666         early during a long listing.  Use the PAGER environment variable if
11667         available, else "more".  -JJ
11668
11669         Change log() calls to log_add() so it does not conflict with the math
11670         function of the same name.  Replace pname global variable with two
11671         functions to set/get.  Get rid of libamnolog.  -JJ
11672
11673         chg-chio was renamed to chg-scsi, and now it will support not
11674         only chio.h, but also tape changer interfaces available on
11675         HPUX, Solaris 2.5, IRIX and possibly others.  Currently, only
11676         chio and HPUX are implemented.
11677         -Eric Schnoebelen <eric@cirr.com>
11678
11679         Numerous bugs/errors were fixed in chg-chio/chg-scsi.  it now
11680         properly responds to -eject requests, among other things.
11681         -Eric Schnoebelen <eric@cirr.com>
11682
11683 Version 2.4.0p1
11684
11685         updated to libtool 1.2a.  -oliva
11686
11687         fix kerberos encryption to work.  -Chris Ross <cross@uu.net>
11688
11689         add --with-owner option to optionally not have things owned by
11690         the amanda user.  (meant to be in 2.4.0) -kovert
11691
11692         only call initgroups() if it is available.  -oliva
11693
11694         check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
11695         -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
11696
11697         amindexd no longer considers prefixes of hostnames as valid
11698         hostnames. -oliva
11699
11700         fix strappend2 so that it accepts a NULL first argument.
11701         -Rob Riggs <rob@devilsthumb.com>
11702
11703         pass kerberos encryption switch to client.
11704         -Fredrik Jönsson <fjo@nada.kth.se>
11705
11706         rename afree to amfree, to work around IRIX 6.4's afree.
11707         -oliva, reported Stephan P. Martin <smartin@schlund.de>
11708
11709         implement `strategy skip' just like `ignore'.
11710         -oliva,
11711         reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
11712
11713         amcheck now checks whether COMPRESS_PATH is executable, which
11714         would prevent server-compression and indexing from working.
11715         -oliva, reported by Peter Schultze <peter@mbi.ucla.edu>
11716
11717         fixed dump estimate regular expression for DU 4.0.
11718         -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
11719
11720 Version 2.4.0
11721
11722         fixed memory corruption error in amtape.
11723         -oliva
11724
11725         fixed VXDUMP support.
11726         -Andrew Ivanov <ivanov@mics.msu.su> & oliva
11727
11728         typos fixed in chg-chs.
11729         -David Barr <dbarr@simplex.com>
11730
11731         chg-mtx now prints error message if tapedev or changerdev must
11732         be defined.
11733         -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
11734
11735         fixed amflush problem, reported by Dietmar Goldbeck
11736         <dietmar@telemedia.de>  -oliva
11737
11738 Version 2.4.0-980319
11739
11740         chg-mtx should use changer-dev if specified.
11741         -Steve Khoo <steve@gordian.com>
11742
11743         flex-related backward-compatibility problem fixed.
11744         -Norman K Scherer <nsche@seros-48.hac.com>
11745
11746         ported to RISCOS 4BSD.  -Harlan Stenn <Harlan.Stenn@pfcs.com>
11747
11748         when amrecover starts up, it will warn you $CWD is not the root
11749         of the selected filesystem.  -oliva
11750
11751         removed all uses of #elif, because some C compilers won't
11752         handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
11753
11754         fixed VDUMP-only (no DUMP defined) estimates.
11755         -Joern Behrens <jbehren@umpa05.gwdg.de>
11756
11757         ported to UnixWare.  -Jeff Moscow <jeff@rtr.com>
11758
11759         improved vxdump support so that rundump will be used for vxfs
11760         filesystems only, and it will be enabled automatically.  -oliva
11761
11762         various portability problems fixed.
11763
11764         taper will now log reason for tape error to log.<DATE> file,
11765         in addition to amdump.<n>.
11766         -Liudvikas Bukys <bukys@cs.rochester.edu>
11767
11768         amflush now correctly updates the info database.  -oliva
11769         reported by Liudvikas Bukys <bukys@cs.rochester.edu>
11770
11771         sendsize now wait()s for tar and samba child processes.  -oliva
11772         reported by Brian Morris <brian@mvhs.fuhsd.org>
11773
11774         ensure that `amadmin find' reports multiple backups performed on
11775         the same day in the correct sequence.
11776         -Liudvikas Bukys <bukys@cs.rochester.edu>
11777
11778         if backup server has multiple IP addresses, security code
11779         might reject it.  -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
11780
11781         vdump would not work.  -oliva
11782
11783         kerberos support was broken.  -mike
11784
11785 Version 2.4.0-980222
11786
11787         retry tape open on AIX if it fails with EAGAIN errno.
11788         -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
11789
11790         fix amrmtape so that it behaves well when files to amflush
11791         remain.  Reported by Dietmar Goldbeck <dietmar@telemedia.de>
11792
11793         retry tape rewind on FreeBSD.  -Bob Willcox <bob@prm.com>
11794
11795         read all output from amrestore otherwise, instead of the
11796         beginning of the next tape section, it would read garbage.
11797         -Terje Malmedal <tm@odin.funcom.com> & oliva
11798
11799         formatting error in amoverview fixed.
11800         -Terje Malmedal <tm@odin.funcom.com>
11801
11802 Version 2.4.0b6p4
11803
11804         use vdump to dump advfs filesystems only.  add support for vdump
11805         indexes.
11806         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
11807
11808         change index generation commands so that they are less prone
11809         to be fooled by blanks or strange characters in filenames.
11810         -oliva
11811
11812         check whether exclude-list file exists before calling gnutar.
11813         If it does not, log a message to debugging file and discard it.
11814         selfcheck should check for that too, and print a warning message,
11815         but this is left for a future version.  -oliva
11816
11817         fix sendbackup-gnutar crashing problem.  -oliva
11818
11819         ensure that, in case of tape failure when dumping to tape, no
11820         incremental relative to the failed backup is performed.
11821         -oliva & Liudvikas Bukys <bukys@cs.rochester.edu>
11822
11823         Fix buffer use and write() error handling in the index pipeline.
11824         -Dietmar Goldbeck <dietmar@telemedia.de>
11825         & Lars Fenneberg <lf@elemental.net>
11826
11827         new index generation commands.  -oliva
11828
11829 Version 2.4.0b6p3
11830
11831         accept curses and ncurses in addition to termcap for readline
11832         support, just as readline itself does.  -oliva
11833
11834         fix NO-ROOM handling when Kerberos encryption is enabled.
11835         -oliva & Eric Siegerman <erics@now.com>
11836
11837         patch file for automake 1.2d provided. -oliva
11838
11839         sendbackup.debug now contains the argument list of child
11840         processes. -oliva
11841
11842         wait() for child processes, such as server compressor, before
11843         accepting other commands.
11844         -Liudvikas Bukys <bukys@cs.rochester.edu>
11845
11846         amrecover will print an error message if it is not run by root.
11847         It will not crash if you `pwd' before selecting a disk.  -oliva
11848
11849         updated to libtool 1.0i. -oliva
11850
11851         fixed tape block size of vxdump on HPUX 10.20.
11852         -Andrew Ivanov <ivanov@mics.msu.su>
11853
11854         Use "a" mode instead of "w" for the fdopen of the debug file.
11855         -David Lamkin <drl@net-tel.co.uk>
11856
11857         allow multiple concurrent gnutar backups, by fixing amandates
11858         locking mechanism.
11859         -Liudvikas Bukys <bukys@cs.rochester.edu>
11860
11861         amdump should check for a hold file, as says the man-page.
11862         -oliva
11863
11864         fix automatic enabling of USE_RUNDUMP for systems that require
11865         this.  xfsdump support no longer requires USE_RUNDUMP to be
11866         defined, rundump will be enabled and used for xfs filesystems
11867         even if USE_RUNDUMP is not defined, unless XFSDUMP is not defined.
11868         This seems to have completely solved the xfsdump problems.
11869         -oliva
11870
11871         when USE_RUNDUMP is enabled, instead of checking for read or write
11872         access in selfcheck, just test for the existence of disk devices.
11873         -oliva
11874
11875         fixed code that computed the dump size when incomplete
11876         writes occurred in dumper.  -Eric Siegerman <erics@now.com>
11877
11878         amplot no longer crashes if there's no holding disk. -oliva
11879
11880 Version 2.4.0b6p2
11881
11882         fix xfsdump index generation command.
11883         -Robert Tarrall <tarrall@bamboo.colorado.edu>
11884
11885         tape device wouldn't rewind if opened O_WRONLY.
11886         -Palle Girgensohn <girgen@partitur.se> & oliva
11887
11888         use setpgid instead of setpgrp if available
11889         -Mark Woodford <woodford@uniprise.com> & oliva
11890
11891         chg-mtx will check whether slot 6 is a cleaning tape or not.
11892         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
11893
11894         amrmtape updated to text database.  -oliva
11895
11896         incorrect NO-ROOM error when dumping directly to tape fixed.
11897         -oliva
11898
11899         --with-user and --with-group become are now required.  -oliva
11900
11901         patch-system script much more configurable.  -oliva
11902
11903         amindexd must get an exact match for diskname.
11904         -Richard Kail <e8903122@student.tuwien.ac.at> & oliva 
11905
11906         fix serial number message in amflush
11907         -Liudvikas Bukys <bukys@cs.rochester.edu>
11908
11909         removed backslashes from inside macro calls.
11910         un-indented # directives.
11911         -Gregory Neil Shapiro <gshapiro@WPI.EDU>
11912
11913         bsd-security is now enabled by default.  -oliva
11914
11915         fixed estimate command for XFSDUMP.
11916         -Mark Radleigh <radleigh@image.ucr.edu>
11917         & Jeff Moskow <jeff@rtr.com>
11918
11919 Version 2.4.0b6p1
11920
11921         documented etimeout configuration option.  -oliva&jrj
11922
11923         prevent a few crashes in dumper and reporter.  -jrj
11924
11925         reporter would report the same host and disk for RESULTS MISSING.
11926         -martineau
11927
11928         fix a few file-locking configure bugs.  -oliva
11929
11930         chg-multi updates and bugfixes.
11931         -Liudvikas Bukys <bukys@cs.rochester.edu>
11932
11933 Version 2.4.0b6
11934
11935         amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
11936
11937         New --disable-libtool configure option, for those who really don't
11938         want libraries to be installed.  Shared libraries won't be
11939         built, of course.  -oliva
11940
11941         samba-related bugfixes.
11942         -Klaus Thiele <kth@becker-software.com>
11943
11944         xfsdump, DNS and amidxtaped bugfixes. -martineau
11945
11946         exclude-list support was broken, the filename was not copied
11947         to the gnutar argument list.
11948         -Stefan Bohm <Stefan.Bohm@rp-online.de>
11949
11950         chg-chio still thought it was seagate-changer, and contained a
11951         few bugs.  -Tim Tsai <tim@futuresouth.com>
11952
11953         New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
11954
11955 Version 2.4.0b5
11956
11957         Make sure amverify waits for the tape device to be ready before it
11958         starts reading each section. -oliva
11959
11960         Fix amrecover so that it accepts filenames with blanks.
11961         -J. Shirk <jshirt@ksu.edu> & oliva
11962
11963         Add a TIMEOUT config file parameter to replace the hard coded value
11964         in planner.  -Daniel David Benson <bensond@ucdavis.edu>
11965
11966         Change amrecover/amindexd/amidxtaped to require a SECURITY
11967         exchange if --with-bsd-security is enabled.  It is done on a
11968         reserved port, which means amrecover must be run as root and that
11969         amindexd/amidxtaped need an entry for the incoming amrecover in
11970         either .rhosts or .amandahosts (Kerberos is not yet supported).  --JJ
11971
11972         Make our internal TEXTDB the default database style for the infofile.
11973         If you wish to keep using a dbm style database use the configure
11974         option "--with-db={db,dbm,gdbm,ndbm}".
11975         -scott
11976
11977         Sanitise the disk name in the TEXTDB code.
11978         **NOTE** if your infofile database uses TEXTDB (which has only been
11979                  available since Amanda-2.4.0b1) and you have '/'s in the
11980                  first field in disklist you will need to 'amadmin export'
11981                  the data using the old version of Amanda, 'mv' the old
11982                  database out of the way and 'amadmin import' it back again
11983                  using the new version.  When you are happy with the new
11984                  version you may delete the old database.
11985         -scott
11986
11987         Get rid of DEV_ROOT/DEV_RROOT and figure out the raw name on the
11988         fly by trying a leading 'r' before each path element one at a time
11989         until we find a character device.  This should handle all the current
11990         cases plus things like Solaris DiskSuite that have /dev/md/rdsk/xxx
11991         names.  -JJ
11992
11993         Change kill logic in sendsize to try TERM first, then KILL if that
11994         does not get dump's attention.  This fixes a problem on AIX 4.x
11995         where dump was always getting a KILL and leaving orphaned message
11996         queues, which would eventually run the system out of resources.  -JJ
11997
11998         Extensive buffer management, bug and defensive coding overhaul
11999         including:
12000             * Use proper fgets/fread/read buffer size.
12001             * Wrote agets and areads to get a line without buffer overflow
12002               and changed most gets/fgets and some read calls to use it.
12003             * Replaced all *scanf("...%s...") with explicit pointer work.
12004             * Replaced most fixed size buffers with dynamic ones.  This has
12005               no doubt introduced some memory leaks.
12006             * Replaced most sprintf calls with vstralloc (new routine).
12007             * Added overflow checks to some remaining explicit buffer
12008               management.
12009             * Made almost all read() and write() calls into loops to handle
12010               short and broken up transfers.
12011             * Fixed potentially uninitialized fstype field.
12012             * Added more sanity checks when parsing various things, including
12013               converting some assert() calls to real code.
12014             * The pattern amtrmidx used to find old index files to delete
12015               thought the date field was YYYY-MM-DD, but it is YYYYMMDD,
12016               so no files were being deleted.
12017             * Limited the number of directories listed by amflush to 26 to
12018               avoid funny characters in the user prompt.
12019             * Changed some of the amrecover routines to soak up the rest of
12020               the continuation lines after an error.
12021             * If a dumper dies, driver still tries to send a QUIT command
12022               which fails because the file descriptor has been closed.
12023             * Wrote afree macro that calls free and then sets the pointer
12024               to NULL.  Changed most free calls to afree.
12025             * Wrote aclose/afclose/apclose macros to do the associated close
12026               and then set the argument to something invalid (-1 or NULL).
12027             * Check the file descriptor before calling FD_ISSET in dumper.
12028               Otherwise it goes to -1 on EOF and FD_* doesn't like that.
12029             * Call aclose() after FD_CLR (so the descriptor is not -1).
12030         Odds and ends:
12031             * Added some TEXTDB support code to the infofile test program.
12032             * Set it up so -DPROTO_DEBUG could come from the compiler command
12033               line instead of having to modify the source.
12034             * Added -t command line flag code to sendbackup.c to support some
12035               limited debugging.
12036             * Added a test to amcheck to see if the log file is writable
12037               (if it already exists).  During debugging, I keep leaving one
12038               around owned by root :-).
12039             * Changed upper limit on close loops from 255 to FD_SETSIZE.
12040               This probably needs some more study.
12041         -JJ
12042
12043         If krb4 auth was compiled in but not enabled, clients would hang
12044         forever.  -Aidan Cully <aidan@panix.com>
12045
12046         Make sure SAMBA will not clear archive bits when performing an
12047         incremental backup, so any incremental will be a level 1.
12048         -martineau
12049
12050         Add a LOGDIR option to amanda.conf and use it to replace the
12051         --with-logdir option to configure (this was only used for the
12052         amdump files) and the logfile option in amanda.conf.  Log
12053         files are now LOGDIR/log and amdump files are LOGDIR/amdump.
12054         Note: if there is a LOGFILE option in amanda.conf it has its
12055         filename removed and is used as the LOGDIR (eg, if you have
12056         "logfile /usr/adm/amanda/log" in amanda.conf it is translated to
12057         "logdir /usr/adm/amanda" instead).  This should not cause a
12058         problem for most sites.
12059         -scott
12060
12061         Remove --with-dbdir option from configure.  This was only used
12062         to setup things for the man pages and example files.  Oh.. and
12063         amrmtape.  Fix this as well.
12064         -scott
12065
12066         Remove --with-indexdir option from configure.  This is obtained
12067         from amanda.conf at run time.  Also fix things so that it *is*
12068         obtained from amanda.conf in all cases.
12069         -scott
12070
12071         This is no longer tested on configure.in, since it is
12072         expressly forbidden to include kernel headers under glibc,
12073         according to Matthias Urlichs <smurf@noris.de>.  However, Eric
12074         Doutreleau <ed@cti.ecp.fr> said he needed to include this
12075         header file in order to build amanda on
12076         sparc-unknown-linux-gnu.  -oliva
12077
12078         It is now possible to specify a username to be used to backup
12079         up with samba.
12080         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
12081
12082         Make sure dumper replies with ABORT_FINISHED when a PORT-DUMP
12083         is aborted because of tape error.
12084         -Michael C. Povel <Michael.Povel@hub.de>
12085
12086         Amcheck checks only for the needed features.
12087         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
12088
12089         Performance and memory-usage improvements to amrecover.
12090         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
12091
12092         Use extended regular expressions.
12093         -Noel Hunt <noel@jpmorgan.com>
12094
12095         Fixed regular expressions for samba support.
12096         -Brian Fernald <fernald@nsi.edu>
12097
12098         Fixed a few bugs that caused arithmetic exceptions in planner.
12099         -Bob Willcox <bob@luke.pmr.com>, Evan Champion
12100         <evanc@synapse.net>, scott and oliva
12101
12102         amrecover should now be able to handle GNUtar restores.
12103         -Jean-Louis Martineau <martinea@iro.umontreal.ca>, plus
12104         incremental (-G) patch by Lars Fenneberg <lf@elemental.net>
12105
12106         Ported to SINIX (Reliant Unix V5.43).
12107         -Michael Schmitz <mschmitz@iname.com>
12108
12109         Configure now looks for large file support and will use it under
12110         Solaris 2.6 and above.
12111         -Blair Zajac <blair@gps.caltech.edu>
12112
12113         Compatibility problems fixed for:
12114                 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
12115
12116 Version 2.4.0b4
12117
12118         New changerfile and changerdev configuration keywords, that
12119         allow changer scripts to be configured in the main amanda
12120         configuration file.  Each changer script has been adapted, so
12121         that it uses those flags whenever possible.  Also,
12122         documentation about built-in scripts has been added to
12123         docs/TAPE.CHANGERS.  -oliva & Eric Schnoebelen
12124         <eric@egsner.cirr.com>
12125
12126         --with-debugging now accepts a directory name, where debugging
12127         files should be stored.  -John R. Jackson <jrj@cc.purdue.edu>
12128
12129         Compatibility problems fixed for:
12130                 NextStep 3.3: Fabrice GAILLARD <gaillard@ina.fr>
12131                 SCO OpenServer V5: Christopher B. Olsen <colsen@compus.com>
12132                 AIX: Georg Rehfeld <georg@wmd.de>
12133
12134         Planner would core dump if it had to delay dumps.  -Georg
12135         Rehfeld <georg@wmd.de>
12136
12137         Added patch for samba to support very long filenames.  -Todd
12138         Pfaff <todd@edge.cis.mcmaster.ca>
12139
12140         Added VXDUMP support to estimate program.  -oliva & John
12141         R. Jackson <jrj@cc.purdue.edu>
12142
12143         Fixed amflush so that it cd's to the configuration directory
12144         before invoking reporter.  -oliva
12145
12146         driver no longer opens the infofile, so a deadlock is
12147         prevented.  -oliva & John R. Jackson <jrj@cc.purdue.edu>
12148
12149         Fixed typo in sendbackup-dump that would prevent compilation
12150         if either xfsdump or vxdump were enabled.  -oliva
12151
12152         Debugging messages produced by sendbackup are no longer
12153         included in the dump stream.  -oliva
12154
12155         amrestore should wait for the child process to die before
12156         re-opening the tape device.  -Dietmar Braun
12157         <dietmar@tin-lizzy.hig>
12158
12159 Version 2.4.0b3 
12160
12161         fixed race condition in debug file open operation.  -oliva and
12162         Thomas Schmeidl
12163
12164         exclude-list and exclude-file are correctly handled by
12165         sendsize.  -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
12166
12167         fix some kerberos4 problems; no longer require low ports for
12168         kerberized connections; now use amanda@REALM instead of
12169         amanda.amanda@REALM in .klogin's.  -kovert
12170
12171         amrecover no longer depends on GNU flex library.  -oliva
12172
12173         Ensure that malloc(0) is not called.  -Wolfram Schmidt
12174         <Wolfram.Schmidt@iao.fhg.de>
12175
12176         Compression is now performed where specified, and server
12177         compress best specifications are obeyed. -oliva
12178
12179         genversion now correctly recognizes the selected locking scheme.
12180         -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
12181
12182 Version 2.4.0b2
12183
12184         Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
12185
12186         AIX's restore support added to amrecover.  -David B. Anderson
12187         <dbanders@mail.physics.utah.edu>
12188
12189         Dump process would not be killed unless it supported the -E
12190         flag (flipped #ifdef): fixed.  -Steve Bower <sbower@raytheon.com>
12191
12192         --with-testing now supports a trailing argument, that
12193         specifies the a string to be appended to service names.  -oliva
12194
12195         Recent versions of Samba require additional arguments so that
12196         estimates and total sizes are logged to stdout, not to syslog.
12197         -Ernie Oporto <ernie_oporto@MENTORG.COM> & Norbert Holzknecht
12198         <Holzknecht@fs31.vdeh-bfi.de>
12199
12200 Version 2.4.0b1
12201
12202         Improved planner backup-delaying mechanism.  -scott
12203
12204         Concurrent estimates are now supported.  -oliva
12205
12206         Shared library support included with GNU libtool.  -oliva
12207
12208         New hard-link-based locking mechanism for operating systems
12209         that do not support standard locking system calls.  -scott
12210
12211         New configuration file format, simpler and easier to
12212         extend.  -scott
12213
12214         New curinfo database format that uses only text files.  The
12215         old dbm format is used by default, though.  -scott
12216
12217         DGUX support. -Brian Harvey <bharvey@raven.phs.com>
12218
12219         Tentative HPUX vxdump support.  -oliva
12220
12221         Integrated amgetidx into dumper/sendbackup protocol.  This
12222         ***breaks backward compatibility***!  -oliva
12223
12224         Have sendbackup-dump and sendbackup-gnutar list the actual
12225         program that should be used to restore a file from a backup
12226         instead of just listing restore or gtar. -blair&oliva
12227
12228         Have configure check for the initgroups() declaration in
12229         unistd.h in addition to grp.h and sys/types.h, which is where
12230         some OSes have the declaration. -blair
12231
12232         SAMBA backups wouldn't succeed if GNUTAR listed incrementals
12233         were enabled.  SAMBA password file can now specify workgroup
12234         and may contain comments.  -oliva
12235
12236         Fixed xfsdump support. -oliva
12237
12238         Fixed srvcompress option. -oliva
12239
12240         Fixed exclude/exclude-list support. -oliva
12241
12242         Change umask to 066 before creating index file in /tmp. -oliva
12243
12244         Fixed autoconf for gdbm on linux. -oliva
12245
12246         configure now seeks out a few possible locations for
12247         kerberos4 includes and tries to find the correct path if
12248         the kerberos bits have been installed.  It's possible for
12249         someone to just specify the root of a kerberos tree for
12250         where the bits live, as well. -kovert
12251
12252 Version 2.3.0.4
12253
12254         Have bsd_security_ok() in amandad return 1 when BSD security is
12255         not turned on.  Patch from Michael C. Grant
12256         <mcgrant@rascals.Stanford.EDU>.
12257
12258         Add a configure option, --with-db, which lets the user specify
12259         the database library to use.  The available codes to look for
12260         are db,dbm,gdbm,ndbm.  The new configure code goes to a lot
12261         more length to find pairs of header files and libraries.  If a
12262         header file exists and the library does not, but dbm_open() is
12263         found by linking against -lc, then that header file is used.
12264         Patch from Blair Zajac <blair@gps.caltech.edu>.
12265
12266         Fixed bug at line 158 where selfcheck was testing that the
12267         result returned by open() was nonzero.  The correct thing to do
12268         is check for non-negative values returned by open().  Changed
12269         the "ERROR" in line 169 to "OK" to prevent selfcheck from
12270         flagging the non-existence of /etc/amandapass as an error.
12271         Using "OK" in this line flags this condition as an informative
12272         statement rather than an error - which is to say this will be
12273         reported along with other errors but it isn't enough in itself
12274         to generate an error report.  The reason that I think this is
12275         the right fix is because although every Amanda client is
12276         capable of backing up PCs using smbclient it isn't the case
12277         that we will back up PCs with every Amanda client.  This also
12278         implies that we don't want to have /etc/amandapass files on all
12279         these machines either.  If an Amanda client does have a samba
12280         "//host/share" entry in its disklist file then selfcheck will
12281         flag the non-existence of the /etc/amandapass file on line 105
12282         when it attempts to check that partition, so I believe that
12283         this is a safe fix.  Patch from Michael Brantley
12284         <Michael-Brantley@deshaw.com>.
12285
12286         Have all calls to gethostname() leave the result in character
12287         arrays of length 1025.  This will make sure that gethostname
12288         behaves correctly.  Patch from  blair Zajac
12289         <blair@gps.caltech.edu>.
12290
12291         Have amrecover.c include history.h or readline/history.h if
12292         configure finds it.  Patch from blair Zajac
12293         <blair@gps.caltech.edu>.
12294
12295         Have Amanda use cat if gzip and compress cannot be found.  In
12296         this case, do not #define COMPRESS_FAST_OPT, COMPRESS_BEST_OPT,
12297         or UNCOMPRESS_OPT as "" since cat will look look for a file by
12298         the name of "".  Place #ifdef's around code that uses any of
12299         the _OPT defines.  Patch from Blair Zajac
12300         <blair@gps.caltech.edu>.
12301
12302         Rewrite amgetidx to use amandad instead of rsh/rcp.  amgetidx
12303         now only gets the index files from a given day.  It now takes
12304         two optionally arguments <on day> or <ago days>.  <on day> lets
12305         the user specify the day in one of the forms YYYYMMDD MMDD DD
12306         YYYY-MM-DD --MM-DD ---DD.  <ago days> gets the files from days
12307         days ago.  Have configure look for an appropriate directory to
12308         use for the temporary files on the clients.  Use /var/tmp, then
12309         /usr/tmp, and if neither of those exist, then use /tmp.  Have
12310         selfcheck check if the index holding directory has enough space
12311         in it.  Add a new program called sendindex which sends the
12312         index files.  Add the file docs/INDEXING which describes the
12313         index code.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
12314
12315         Have configure set up mt to use either the -f or the -t option
12316         depending upon the operating system.  Patch from Blair Zajac
12317         <blair@gps.caltech.edu>.
12318
12319         Include the amanda_tapetypes.txt file as docs/TAPETYPES.  File
12320         composed by Chris Stacey <chris@snrc.uow.edu.au>.
12321
12322         Allow certain dumptypes to be kicked off at specific times.
12323         Add a new, optional, parameter to the dumptype description in
12324         the config file.  The parameter is called "starttime" and takes
12325         one argument which is a time of day (local timezone) formated
12326         as either hhmm or hmm (no `.'s, no `:'s, just an integer).
12327                 define dumptype comp-user-2am {
12328                         comment "Non-root partitions on fast machines"
12329                         options compress-fast
12330                         priority medium
12331                         starttime 0200
12332                 }
12333         Any partitions listed in disklist with this dumptype will be
12334         fired off no earlier than 2am.  If 2am today is less than 43200
12335         seconds past (12 hours ago) it will assume you meant 2am today
12336         and fire the dumps off right away.  But if 2am today is more
12337         than 12 hours in the past, it will wait till 2am tomorrow.
12338         Patch from Brad Huntting <huntting@misc.glarp.com>.
12339
12340         Totally rewrite the socket buffering code for dumper.
12341         Eliminate SO_SNDTIMEO and SO_RCVTIMEO setsockopt calls.  Remove
12342         the check for HAVE_SO_SNDTIMEO from configure.  Add a new
12343         option to configure named --enable-buffered-dump to enable this
12344         code.  Patch from Brad Huntting <huntting@misc.glarp.com>.
12345
12346         Have amflush call setsid() to detach amflush from the
12347         controlling terminal.  Patch from Ken Laprade
12348         <klaprade@harris.com>.
12349
12350         Have configure correctly work on systems where dbm_open is in
12351         libc.  Patch from Farzad Farid <farzy@sgip.fr>.
12352
12353         Patches to amrmtape which remove C style comments and let the
12354         script remove a tape if there is only one tape in the tapelist
12355         file.  Patch from Andrew A. Ivanov <IVANOV@mics.msu.su>.
12356
12357         Sprintf formatting error in amgetidx fixed.  Patch from Yossi
12358         Gottlieb <yogo@xpert.com>.
12359
12360         I'm using a Sony SDT/STL-7000 4mm DAT changer.  I could not
12361         find any method of directly controlling the device, except for
12362         simply using the 'offline' mt command for advancing to the next
12363         tape.  Using this method, however, I could not go beyond the
12364         last cassette (that is, to roll back to the first one).  This
12365         means the device is currently being used as a simple gravity
12366         changer, only able to change forward.  The chg-generic.conf
12367         should list the default tape device for all slots, disable
12368         'needeject', enable 'gravity' and enable the new option named
12369         'multieject'.  Patch from Yossi Gottlieb <yogo@xpert.com>.
12370
12371         Update the example chg-generic.conf file to include comments
12372         that describe how to use the multieject feature of the script.
12373         Patch from Yossi Gottlieb <yogo@xpert.com>.
12374
12375         Protocol seems to loop when a A_TIMEOUT occurs because
12376         p->reqtries was not being decremented.  Problem noted by Neal
12377         Becker <neal@ctd.comsat.com>.
12378
12379         About half the calls to gethostname() in Amanda fail to
12380         null-terminate properly.  This patch makes them all
12381         consistent.  In addition it updates sendbackup-dump and
12382         sendbackup-gnutar so they handle USE_FQDN is a way consistent
12383         with the amindex stuff.  In particular when USE_FQDN is set,
12384         the dump clients will not truncate their hostname before
12385         putting it in the dump headers.  My patches to amflush are
12386         already in the Amanda betas so amflush should be able to match
12387         up both FQDN and non-FQDN clients against FQDN and non-FQDN
12388         disklist files.  I also fixed an error message that was
12389         attributed to gethostname when it actually came from
12390         getpeername.  Patches from James Mathiesen
12391         <james@nyc.deshaw.com>.
12392
12393         I have run into the problem, on a Linux system, where the first
12394         time I run configure it generates valid Makefiles and Amanda
12395         compiles without problem.  If I run configure again, or I alter
12396         a Makefile.in or something which causes autoconf to be called,
12397         the resulting Makefiles are no good - the programs in
12398         server-src don't finish linking because there is no dbm
12399         library.  That is, the first time through configure -lgdbm is
12400         added to LIBS but the second, and any subsequent times, it is
12401         not.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
12402
12403         I've just found a bug that has prevented Amanda from running on
12404         my site for almost one week.  Just after a dumper replied that
12405         it timed-out, the driver would send it another dump request.
12406         Then the driver would log to amdump an event of receiving a
12407         message from the dumper, but that message would be empty, the
12408         holding file for the requested filesystem would not exist, and
12409         driver would quit.  It turned out that the problem was that
12410         dumper started to close its sockets (datafd, mesgfd and outfd)
12411         since release 2.3.0.4b3.  outfd is initialized before invoking
12412         startup_dump, but it is sendbackup_response, intended to be
12413         invoked by the amandad protocol driver, that opens sockets and
12414         initializes datafd and mesgfd.  If sendbackup_response is never
12415         run (because the amandad request times out), datafd and mesgfd
12416         will not be initialized, so they may contain already closed
12417         (and possibly already reopened) file descriptor numbers or
12418         still be uninitialized, containing any garbage, but usually 0
12419         --- but 0 is stdin, used for reading commands from the driver,
12420         it should not be closed!  I've solved the problem by
12421         initializing them to -1 in startup_dump.  Patch from Alexandre
12422         Oliva <oliva@dcc.unicamp.br>.
12423
12424         Include declarations for select(), bind(), connect(), fread(),
12425         fwrite(), getopt(), getpeername(), getsockname(), getsockopt(),
12426         initgroups(), listen(), lstat(), mktemp(), mktime(), puts(),
12427         recvfrom(), select(), sendto(), setpgrp(), setsockopt(),
12428         shmat(), shmctl(), shmdt(), shmget(), socketpair(), sscanf(),
12429         strftime(), strncasecmp(), system() if the system does not
12430         declare these in any header files.  Patch from Blair Zajac
12431         <blair@gps.caltech.edu>.
12432
12433         Have configure correctly substitute for DB_DIR and LOG_DIR in
12434         example/amanda.conf when --prefix was not used.  Problem noted
12435         by Philippe Charnier <charnier@xp11.frmug.org>.
12436
12437         Include seagate-changer.c from Larry D. Pyeatt
12438         <pyeatt@cs.colostate.edu>.  This program was written to control
12439         the Seagate/Conner/Archive autoloading DAT drive.  This drive
12440         normally has 4 tape capacity but can be expanded to 12 tapes
12441         with an optional tape cartridge.  This program may also work on
12442         other drives.  This program works for me under Linux with Gerd
12443         Knorr's <kraxel@cs.tu-berlin.de> SCSI media changer driver
12444         installed as a kernel module.  The kernel module is available
12445         at
12446         http://sunsite.unc.edu/pub/Linux/kernel/patches/scsi/scsi-changer*
12447         Since the Linux media changer is based on NetBSD, this program
12448         should also work for NetBSD, although I have not tried it.  It
12449         may be necessary to change the IOCTL calls to work on other
12450         OS's.
12451
12452         Add a new configure option, --with-group, which tells Amanda
12453         the group to install all files as.  Patch from Alexandre Oliva
12454         <oliva@dcc.unicamp.br>.
12455
12456         If --with-bsd-security was not set, then dumper would not find
12457         the amanda/udp port to use to connect to clients.  Patch from
12458         Alan McIvor <alan@auck.irl.cri.nz>.
12459
12460         The order of dump programs to search for (ufsdump, vdump, dump,
12461         backup) didn't work on AIX systems, where backup should be used
12462         but a program named dump exists on the system.  Patch by Blair
12463         Zajac <blair@gps.caltech.edu>.
12464
12465         The configure --with-mmap was not working properly since
12466         configure was using the wrong variable to see if the system had
12467         a working mmap().  Problem noted by Keith Mitchell
12468         <kmitch@weenix.guru.org>.
12469
12470 Version 2.3.0.4b3
12471
12472         Save the results of getchar() into int's instead of char's in
12473         amidxtaped.c.  Patch by Blair Zajac <blair@gps.caltech.edu>.
12474
12475         Fix sendbackup-gnutar so that it can be compiled with a K&R
12476         compiler.  Patch by Blair Zajac <blair@gps.caltech.edu>.
12477
12478         Since I installed Amanda 2.3.0.4b3, I noticed some annoying
12479         messages in amdump:
12480                 dumper: pid 8696 setsockopt(SO_SNDTIMEO): Invalid argument
12481         This is because Solaris 2.5 does declare SO_SNDTIMEO in
12482         sys/socket.h, but fails to setsockopt with the given
12483         arguments.  Unfortunately, it is not documented, so I could not
12484         find out the correct way to do this, so I just added a test in
12485         configure to check whether SO_SNDTIMEO works as expected or
12486         not.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12487
12488         Include amplot-2.2.6 written by Olafur Gudmundsson
12489         <ogud@tis.com> into Amanda.  Have amplot be configured using
12490         configure instead of amplot.conf.  It will be installed if
12491         gnuplot and the version of awk configure finds can handle
12492         variable assignment from the command line.  I also changed some
12493         of the command line options so that the amdump files will not
12494         be compressed unless amplot is told to do so on the command
12495         line.  It also takes a new command line option, -t, which lets
12496         the user set the time of the right side of the plot.  Work done
12497         by Blair Zajac <blair@gps.caltech.edu>.
12498
12499         Made rth-changer check all system calls for valid returns.
12500         Patch by Blair Zajac <blair@gps.caltech.edu>.
12501
12502         amrestore.c and sendbackup-common.c would do an ifdef on
12503         HAVE_GZIP, which was no longer being defined if Amanda was
12504         using gzip.  Now, define HAVE_GZIP if gzip is being used.
12505         Patch by Blair Zajac <blair@gps.caltech.edu>.
12506
12507         Include a script, amoverview, that outputs an overview of all
12508         of the backups done on all of the disks.  Script written by
12509         Dave Disser <disser@sdd.hp.com>.
12510
12511         The prototype for amname_to_fstype() is missing in
12512         createindex-dump.c when xfsdump is available.  Patch from Ken
12513         Laprade <klaprade@harris.com>.
12514
12515         Apparently SGI provides a dummy libsun.a that does not really
12516         have anything in it.  I guess this tricks configure into adding
12517         it to the Makefile.  Have configure not check for libsun.a on
12518         SGI systems.  Patch from Ken Laprade <klaprade@harris.com>.
12519
12520         The global variable overwrite in amcheck.c apparently is seen
12521         as a potential conflict with the overwrite() curses function
12522         which is apparently in SGI's libtermcap.a.  Declaring the
12523         variable static eliminates the warning.  Patch from Ken Laprade
12524         <klaprade@harris.com>.
12525
12526         Add a new configure option, --with-fqdn, which allows Amanda to
12527         back up systems in different domains.  This requires that the
12528         disklist file have the fully qualified domain names (FQDNs)
12529         listed.  Patch from Joe Ammond <Joe.Ammond@ee.gatech.edu>.
12530
12531         Include rundump, a setuid program that runs dump as root.  This
12532         is used under OSF1 systems.  Patch from Alexandre Oliva
12533         <oliva@dcc.unicamp.br>.
12534
12535         Install setuid files executable only by the owner and group of
12536         the files.  This stops other users from running these programs,
12537         making security tighter.  Patch from Alexandre Oliva
12538         <oliva@dcc.unicamp.br>.
12539
12540         On FreeBSD 3.0, amanda.h needs to include <sys/types.h> before
12541         <dirent.h>.  Problem noted by Keith Mitchell
12542         <kmitch@weenix.guru.org>.
12543
12544         Amanda had a bug regarding the recent addition of support for
12545         excluding files in GNUTAR.  planner and sendsize did not
12546         understand each other about empty exclusion lists, so there
12547         were failures using gnutar, as dump does not support excludes.
12548         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12549
12550         Fixed a problem in configure where DUMP was being set to
12551         /no/restore/available when no restore program could be found
12552         instead of setting RESTORE to this.  Patch from Alexandre Oliva
12553         <oliva@dcc.unicamp.br>.
12554
12555         Have no-changer and hp-changer check for the existence of the
12556         logging directory before trying to use it.  Patch by Blair
12557         Zajac <blair@gps.caltech.edu>.
12558
12559         Patches to have nicer looking Samba support code.  Patch from
12560         Michael Zucchi <cismpz@cis.unisa.edu.au>.
12561
12562         Got Amanda to compile fine on a m88k-motorola-sysv4 system.
12563         Patches from Blair Zajac <blair@gps.caltech.edu>.
12564
12565         In amandad.c, pk_t dupmsg was conflicting with dupmsg in
12566         /usr/include/sys/stream.h on an m88k-motorola-sysv4 system.
12567         Rename dupmsg to dup_msg.  To keep things consistent, rename
12568         inmsg to in_msg and outmsg to out_msg.  Patch by Blair Zajac
12569         <blair@gps.caltech.edu>.
12570
12571         Check for the dbm_open declaration in any header file that may
12572         contain it.  If it doesn't exist, then declare it and all of
12573         the other dbm_ functions.  Check if struct datum is declared in
12574         any header files and if it isn't then declare it.  Patch from
12575         Blair Zajac <blair@gps.caltech.edu>.
12576
12577         Have runtar make sure that it is being invoked by the
12578         CLIENT_LOGIN user, since it is a suid executable.  Patch from
12579         Alexandre Oliva <oliva@dcc.unicamp.br>.
12580
12581         Have selfcheck check for /etc/vdumpdates if vdump is being
12582         used.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12583
12584         If we're on an Ultrix system, then define STATFS_ULTRIX.  Patch
12585         by Blair Zajac <blair@gps.caltech.edu>.
12586
12587         amadmin export produces a full version number (2.3.0.4b2, for
12588         instance), while amadmin import expects three integers
12589         separated by dots, so it fails to import an exported file by
12590         itself.  Patch by Alexandre Oliva <oliva@dcc.unicamp.br>.
12591
12592         Sendsize.c would loop forever if debugging was not turned on.
12593         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12594
12595         Define STATFS_OSF1 if we are on a *-dec-osf-* system.  Change
12596         ifdef OSF1_HANG_BUG to ifdef OSF1_VDUMP, since I'd rather not
12597         have too many defines floating around.  Patch by Blair Zajac
12598         <blair@gps.caltech.edu>.
12599
12600         There was a bug in selfcheck.c when Blair installed the Samba
12601         support.  I deleted an extra space that was added after
12602         SAMBA_CLIENT when the command was being put together.  Fix by
12603         Michael Zucchi <cismpz@cis.unisa.edu.au>.
12604
12605         Add a needed ; to client-src/Makefile.am and
12606         server-src/Makefile.am.  Patch from Alexandre Oliva
12607         <oliva@dcc.unicamp.br>.
12608
12609         Have planner.c and amcheck.c always get the amanda port number
12610         even if BSD security is turned off.  Patch by Blair Zajac
12611         <blair@gps.caltech.edu>.
12612
12613         Change the way amgetidx caches host up/down information.  It
12614         used to stralloc() a string depending on if the host was up or
12615         down.  Now, create two static character arrays, one holding
12616         "down" and the other holding "up" and simply point the
12617         hostinfo->up pointer to one of the two arrays.  This should
12618         save a little memory.  Patch by Blair Zajac
12619         <blair@gps.caltech.edu>.
12620
12621         The Bourne shell in FreeBSD can't handle setting IFS to : and
12622         expanding $LOCPATH:$SYSPATH.  Create two new variables before
12623         their use called $LOCSYSPATH and $SYSLOCPATH.  Patch by Blair
12624         Zajac <blair@gps.caltech.edu>.
12625
12626         Have open_fstab for BSD systems return the value of setfsent.
12627         Patch by Blair Zajac <blair@gps.caltech.edu>.
12628
12629         Configure was searching for the dump program in the following
12630         order: ufsdump, vdump, backup, dump.  On HP-UX systems,
12631         configure would find backup, which is a valid program but does
12632         not do what dump does.  So switch the order of the programs to
12633         ufsdump, vdump, dump, backup.  Patch by Blair Zajac
12634         <blair@gps.caltech.edu>.
12635
12636         Fixed some dbprintf(()) bugs in amgetidx.c.  Patch by Blair
12637         Zajac <blair@gps.caltech.edu>.
12638
12639         Have amrecover.c always declare
12640             extern char *optarg;
12641             extern int optind;
12642         This makes amrecover.c compile on Ultrix systems.  Problem
12643         noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
12644
12645         Patch to configure to have it recognize gnutar version 1.11.2.
12646         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12647
12648 Version 2.3.0.4b2
12649
12650         Have amcleanup, no-changer, and hp-changer find out where the
12651         logging directory, or amdump error file is from getconf instead
12652         of using @LOG_DIR@ or @DB_DIR@ from configure.  Problem noted
12653         by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
12654
12655         Remove VarDir=@DB_DIR@ from amrmtape.sh.in, since amrmtape
12656         figures out where the curinfo files are from the amanda.conf
12657         file.  Problem noted by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
12658
12659         Include rth-changer, a tape changer script for the Robotic Tape
12660         Handling system OEM'd by Andataco (RTH-406).  Script written by
12661         Erik Frederick <edf@tyrell.mc.duke.edu>.
12662
12663         Add a new configure option called --with-pid-debug-files which
12664         has Amanda append the process ID to the debugging files placed
12665         in /tmp.  The PID will not be appended unless this option is
12666         used.  Suggestion by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
12667
12668         Add a new #define UNCOMPRESS_OPT to pass to UNCOMPRESS_PATH to
12669         get compressed standard input decompressed and pass it to
12670         standard output.  The configure script only recognized gzip and
12671         compress right now, so it will set UNCOMPRESS_OPT to -dc and
12672         set UNCOMPRESS_PATH to the same value as COMPRESS_PATH.  Edit
12673         all of the files that make use of UNCOMPRESS_PATH to also make
12674         use of UNCOMPRESS_OPT now.  Patch by Blair Zajac
12675         <blair@gps.caltech.edu>.
12676
12677         The readline() substitute in amrecover.c when the real
12678         readline() code is not available did not return to the caller
12679         what the user typed in.  It now does so.  Patch from Blair
12680         Zajac <blair@gps.caltech.edu>.
12681
12682         Avoid -lnsl on Irix.  On IRIX 5.x and 6.x systems that have the
12683         svr4net module installed, there will be a /usr/lib/libnsl.so
12684         present on the system. The configure script looks for this and
12685         tosses into the library list if it's there.  It is not
12686         advisable to link against libnsl on IRIX unless you really need
12687         it for SVR4 networking (TLI/STREAMS). If you _do_ link against
12688         it, you should use include '-lc' _before_ '-lnsl'. The reason
12689         for this is that libnsl.so also contains the SysV TI-RPC code,
12690         which is RPC based on STREAMS/TLI rather than sockets. (Solaris
12691         2.x now uses this by default.) TI-RPC has some compatibility
12692         functions with the same names as older RPC functions, such as
12693         clnt_call(), clnt_create(), clnt_destroy(), and these conflict
12694         with the functions in libc.so. The main place this will hose
12695         you is NIS: NIS v2 expects the underlying RPC code to use
12696         sockets, not STREAMS, and it fails if the TI-RPC symbols in
12697         libnsl.so override the RPC symbols in libc.so.  Again, you
12698         don't need libnsl.so unless you're actually using STREAMS/TLI
12699         or TI-RPC, so in Amanda's case it's safe to just ignore it. If
12700         you _do_ need it, you must do 'cc -o foo foo.c -lc -lnsl' in
12701         order to make sure the linker resolves the RPC symbol
12702         references correctly. The primary symptom of this problem is
12703         that things like getpwent(), getgrent() and getnetgrent() stop
12704         working in an NIS environment.  To make a long story short: on
12705         IRIX, avoid using libnsl. Amanda doesn't need it anyway. So far
12706         I haven't encountered a problem with this, but you never know.
12707         Note from Bill Paul <wpaul@ctr.columbia.edu>.
12708
12709         Include patches to have Amanda do incrementals of gnutar based
12710         backups.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
12711
12712         Delete the GNUTAR_BROKEN_PIPE from configure and acconfig.h
12713         since no code was testing for it.  Patch by Blair Zajac
12714         <blair@gps.caltech.edu>.
12715
12716         Have configure check for the number of arguments that
12717         gettimeofday takes and have clock.c use the appropriate number
12718         of arguments.  Patch by Blair Zajac <blair@gps.caltech.edu>.
12719
12720         Have sendbackup-common.c include tapeio.h instead of defining
12721         BUFFER_SIZE.  Fix by Philip Guenther <guenther@gac.edu>.
12722
12723         Put in more support for AIX by defining AIX_BACKUP if the
12724         system is an AIX system.  Fix createindex-dump.c to pass the -B
12725         flag to restore to have it read from standard input.  Problem
12726         noted by Bill Paul <wpaul@ctr.columbia.edu>.  Patch by Blair
12727         Zajac <blair@gps.caltech.edu>.
12728
12729         Add a regexp for AIX 4's backup in sendbackup-dump.c and
12730         sendsize.c.  Patch from Bill Paul <wpaul@ctr.columbia.edu>.
12731
12732         Add a comment to tapeio.h about BUFFER_SIZE and what it is used
12733         for and how people should not change it.  Noted by Bill Paul
12734         <wpaul@ctr.columbia.edu>.
12735
12736         Added a --with-mmap option to force the use of mmap() instead
12737         of shared memory support.  Requested by wpaul@ctr.columbia.edu
12738         <Bill Paul>.  Patch by Blair Zajac <blair@gps.caltech.edu>.
12739
12740         On FreeBSD 2.x and 3.x, the SO_SNDTIMEOUT value is too large in
12741         dumper.c.  Looking at the kernel source, the maximum value for
12742         tv_sec is about 227.  The value used is READ_TIMEOUT/4, or
12743         (30*60)/4 == 450 seconds.  This causes setsockopt() to return
12744         EDOM (Numerical argument out of domain), and again everything
12745         grinds to a halt.  I changed the value from READ_TIMEOUT/4 to
12746         READ_TIMEOUT/8, which reduces the SO_SNDTIMEO value to 225.  I
12747         haven't extensively tested this yet, but based on eyeballing
12748         the kernel source it should work.  Patch from Bill Paul
12749         <wpaul@ctr.columbia.edu>.
12750
12751         In dumper.c:do_dump(), there is code to set the transmission
12752         timeout, receive buffer size and receive low water mark on the
12753         data socket using setsockopt().  For SO_RECVBUF, the receive
12754         buffer size (recbuf) is set to DATABUF_SIZE * 4, which is
12755         32*1024*4, or 131072.  On SunOS 4.1.x, this value is too
12756         large:  dumper generates a 'no buffer space available' error
12757         and everything grinds to a halt.  I took away the '*4', which
12758         reduces the size to 32767 bytes, which seems to work.  I'm
12759         surprised nobody else has noticed this since it breaks SunOS
12760         Amanda servers.  I can only surmise that people aren't using
12761         SunOS machines as servers these days. :)   Patch from Bill Paul
12762         <wpaul@ctr.columbia.edu>.
12763
12764         Have Amanda include either readline.h or readline/readline.h
12765         Fix suggested by Neal Becker <neal@ctd.comsat.com>.
12766
12767         Have --with-includes put the -I flags into $CPPFLAGS and
12768         $CFLAGS so that AC_CHECK_HEADERS will find other include
12769         files.  Problem noted by Neal Becker <neal@ctd.comsat.com>.
12770
12771         Fixed common-src/Makefile.am to put the extra libamanda.a
12772         sources into the EXTRA_libamanda_a_SOURCES variable instead of
12773         EXTRA_DIST.  Fix from Tom Tromey <tromey@drip.Colorado.EDU>.
12774
12775         When compiling amgetidx.c with some compilers, trigraph
12776         substitutions were being made when they should not have been.
12777         Protect the code from this.  Patch from Blair Zajac
12778         <blair@gps.caltech.edu>.
12779
12780         Test for flock support in the following order:
12781                 1) POSIX fcntl file locking
12782                 2) flock locking
12783                 3) lockf locking
12784         The common-src/flock.c file will only be used if the lockf type
12785         locking is needed on this system.  Patch from Blair Zajac
12786         <blair@gps.caltech.edu>.
12787
12788         Have Samba support compile in only if requested by the user.
12789         Patch from Blair Zajac <blair@gps.caltech.edu>.
12790
12791         Configure was not using $CFLAGS and $CPPFLAGS when trying to
12792         calculate the select argument type.  Patch from Blair Zajac
12793         <blair@gps.caltech.edu>.
12794
12795         Updated amanda.h to include alloca.h if the system has it and
12796         if it's ok to include.  Also protect more include files with
12797         #ifdefs found by configure.  Patch from Blair Zajac
12798         <blair@gps.caltech.edu>.
12799
12800         Linux does not use the raw device names to do backups.
12801         configure now checks to see if it can find a raw disk device
12802         file whose name is built from root's mount point.  If it can't,
12803         then set RDEV_PREFIX to use /dev/ instead of /dev/r.  Fix
12804         suggested by Brian <brian.s.mogged@uwrf.edu> and Ken Latta
12805         <latta@parc.xerox.com>.
12806
12807         Fixed const cast message from regex.c.  Problem noted by Ken
12808         Laprade <klaprade@harris.com>.  Patch from Blair Zajac
12809         <blair@gps.caltech.edu>.
12810
12811         Configure was not checking for the OSF1_VDUMP #ifdef used in
12812         Amanda.  It now will set OSF1_VDUMP if vdump is found on the
12813         system.  However, it does not check if the system is really a
12814         OSF system.  Patch from Blair Zajac <blair@gps.caltech.edu>.
12815
12816         Have configure check for asm/byteorder.h for
12817         sparc-unknown-linux-gnu.  Problem noted by Eric Doutreleau
12818         <ed@cti.ecp.fr>.
12819
12820         Remove the check for libintl.h from configure.  It was only
12821         being used for regex.c, which really didn't need it.  Patch
12822         from Blair Zajac <blair@gps.caltech.edu>.
12823
12824         Convert all code to K&R C by trying to compile Amanda using
12825         /usr/bin/cc on a SunOS 4.1.1 machine.  Have configure check if
12826         the compiler can handle the volatile keyword and if it can't,
12827         #define it to empty in the config.h file.  Patch from Blair
12828         Zajac <blair@gps.caltech.edu>.
12829
12830         Move the contents of versuff.h into version.h and remove
12831         versuff.h.  Add a new function called version() which returns
12832         the version string.  Use version() in some of the programs.
12833         Patch from Blair Zajac <blair@gps.caltech.edu>.
12834
12835         m88k-motorola-sysv4 systems define L_FAIL, which is used by
12836         logfile.h.  Undefine it in logfile.h.  Patch from Blair Zajac
12837         <blair@gps.caltech.edu>.
12838
12839         Include amindex-1.0 from Alan McIvor.  It includes these
12840         improvements over 0.3:
12841                 Amrecover now provides the ability to restore files
12842                 from the tapes, via the "extract" command.
12843
12844                 Support for gnutar based index generation (but not file
12845                 restoration yet).
12846
12847                 Numerous bug fixes.
12848
12849         Have amgetidx try to open a socket to the shell/tcp port on the
12850         remote machine and cache if it succeeds.  If it connection
12851         attempt succeeds, then attempt to get the index files over from
12852         the client.  Patch from Blair Zajac <blair@gps.caltech.edu>.
12853
12854         Update patch-system to include the amidxtape service at
12855         10083/tcp.  Patch from Blair Zajac <blair@gps.caltech.edu>.
12856
12857         Configure said that the server configuration was OK and then
12858         next said it wasn't.  Remove these checks.  Patch from Blair
12859         Zajac <blair@gps.caltech.edu>.
12860
12861         Fixed building Amanda for multiple architectures in
12862         subdirectories of Amanda.  Problem noted by Thomas Hepper
12863         <Thomas.Hepper@icem.de>.
12864
12865 Version 2.3.0.4b1
12866
12867         Fix a problem with `amadmin <conf> balance' dumping core.  If
12868         some disks are overdue, they are stored in the sequence array
12869         with a negative index.  This has the potential to cause memory
12870         corruption, and it makes the reported balance figures not add up
12871         to the same as the total.  Since overdue disks are really going
12872         to be candidated for today's backups, they are thrown in the
12873         bin for those.  Patch from Ken Laprade <klaprade@harris.com>.
12874
12875         Add Samba client support using smbclient to Amanda.  Samba must
12876         be patched with the file patches/samba-1.9.16p2.1.patch - this
12877         is a patch for 1.9.16p2 of Samba, and modifies the way the
12878         'dir' command works, and adds totals to both the dir command
12879         and the tar command, via stderr.  These are used by amanda to
12880         estimate and count backup sizes.  This should be installed on
12881         an amanda 'client' host, that will act as the 'samba server'
12882         host.  This will most likely be the same machine as the Amanda
12883         master server.  Patches from Michael Zucchi
12884         <zucchi@cis.unisa.edu.au>.
12885
12886         Amrmtape converted from Bash to Bourne shell.  Patch from Blair
12887         Zajac <blair@gps.caltech.edu>.
12888
12889         Fix the indexing code to use "arglist.h" instead of <stdarg.h>
12890         Patch from Blair Zajac <blair@gps.caltech.edu>.
12891
12892         Have amdump call amgetidx and amtrmidx.  Put amgetidx and
12893         amtrmidx into the libexec directory instead of the bin
12894         directory, since Amanda users will not use these by hand.
12895         Patch from Blair Zajac <blair@gps.caltech.edu>.
12896
12897         Modified diskfile.c to match hostname in the backup header
12898         against the fully qualified domain name in disklist file,
12899         because amflush fails in a multidomain backup environment, as
12900         backup headers have only the hostname.  Patch from Karl
12901         Lehenbauer <karl@neosoft.com>.
12902
12903         Have autoconf figure out if some functions are not declared and
12904         if they are not, then declare them.  Patch from Blair Zajac
12905         <blair@gps.caltech.edu>.
12906
12907         Add security fixes to amandad.c.  It now checks the forward and
12908         reverse DNS names for consistency.  Added a configure option
12909         --amandahosts to use Michael's code to use .amandahosts instead
12910         of .rhosts.  Patch from Michael Douglass <mikedoug@texas.net>.
12911
12912         Add amverify, a simple shell script to check Amanda tapes -
12913         gnutar driven backups only.  Patch from Thomas Hepper
12914         <Thomas.Hepper@icem.de>.
12915
12916         Add the version option to amadmin (eg amadmin <conf> version).
12917         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12918
12919         Add the current option to amtape (eg amtape <conf> current).
12920         This let's you the label of the current tape only without using
12921         dd.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12922
12923         Gnutar support for amindex added.  Patch from Thomas Hepper
12924         <Thomas.Hepper@icem.de>.
12925
12926         Calcsize supports exclude-list (gtar).  The source was
12927         extracted from gnutar itself to be 100% compatible.  Patch from
12928         Thomas Hepper <Thomas.Hepper@icem.de>.
12929
12930         Calcsize checks the file type and ignores special files and
12931         pipes.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12932
12933         Calcsizes calculation for gnu tar archives had a bug (gtar file
12934         blocks always are a multiple of 2k).  Patch from Thomas Hepper
12935         <Thomas.Hepper@icem.de>.
12936
12937         `amandates.c': amdandad suffered by missing AMANDATES_FILE.
12938         Now it creates this file before missing it.  Patch from Thomas
12939         Hepper <Thomas.Hepper@icem.de>.
12940
12941         `createindex-gnutar.c' added.  Patch from Thomas Hepper
12942         <Thomas.Hepper@icem.de>.
12943
12944         alloca(), strdup.c and getcwd added for those system who don't
12945         have them.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12946
12947         A dirty hack for BSD based systems without sigaction(), see
12948         amanda.h.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12949  
12950         Add two scripts, hp-changer and no-changer. hp-changer is a
12951         tape changer script for a HP DAT changer. Every 10th tape a
12952         taper clean runs.  no-changer is a changer-like script for
12953         single tape streamer.  It makes Amanda see a tape changer unit
12954         with an infinite count of tapes (and requires an operator to
12955         change the tapes :-)). Every 10 tapes the operator is
12956         recommended to insert a cleaning tape.  Patch from Thomas
12957         Hepper <Thomas.Hepper@icem.de>.
12958
12959         The version suffix adding is done with a seperate function
12960         versionsuffix() also available as standalone program.  Patch
12961         from Thomas Hepper <Thomas.Hepper@icem.de>.
12962
12963         Several files got debug support. Patch from Thomas Hepper
12964         <Thomas.Hepper@icem.de>.
12965
12966         Added an idle type file-too-large to driver.c to avoid dumping
12967         files to the holding disk(s) which exceed the maximum file size
12968         (2 GB on the most 32-bit machines).  Patch from Thomas Hepper
12969         <Thomas.Hepper@icem.de>.
12970
12971         Some minor bug fixes, mostly regarding missing or wrong casts
12972         confusing c compilers (shmat()/shmdt(), select()).  Patch from
12973         Thomas Hepper <Thomas.Hepper@icem.de>.
12974
12975         Genversion gives some more information.  Patch from Thomas
12976         Hepper <Thomas.Hepper@icem.de>.
12977
12978         getfsent.c and statfs.c have been cleaned up. The have to be
12979         checked on non-Irix/Solaris/NextStep/HPUX/AIX/Linux-systems.
12980         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
12981
12982         Simple support if readline.a is missing.  NEVER TESTED!  Patch
12983         from Thomas Hepper <Thomas.Hepper@icem.de>.
12984
12985         Linux requires libdb.a and ndbm.h to handle database files. Not
12986         really what I expected.  Patch from Thomas Hepper
12987         <Thomas.Hepper@icem.de>.
12988  
12989         Here's a simple patch which fixes a problem that causes amflush
12990         to erroneously complain "ignoring cruft file" about good dump
12991         files on the holding disk, and fail to flush them to tape.
12992         This happens if your holding disk directory has a long name,
12993         and the dump file also has a long name (i.e. if you use
12994         filesystem mount points in disklist).  The problem occurs if
12995         the holding directory + filename exceeds 80 bytes.  The patch
12996         still leaves a length limitation, but at least it matches the
12997         size limit imposed by driver (and thus dumper & taper) of 128
12998         bytes.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
12999
13000         Use regex.h and regex.c from
13001         ftp://prep.ai.mit.edu/sh-utils-1.15.tar.gz instead of the regex
13002         checking code in the system.  This code includes re_comp and
13003         re_exec calls, so it will work on any system.  Patch by Blair
13004         Zajac <blair@gps.caltech.edu>.
13005
13006         Amadmin find reports the wrong tape file numbers after when a
13007         dump is amflush'ed to tape.  Patch by Ralf Fassel
13008         <ralf@atg.venture.de>.
13009
13010         Fix a bug where dumps of disks on the Amanda server are counted
13011         against the available network bandwidth.  Patch from Marion
13012         Hakanson <hakanson@cse.ogi.edu>.
13013
13014         Tell gnutar to not exit with a nonzero value if a read failed.
13015         This prevents backups from aborting if a file disappeared
13016         before gnutar could save it.  Patch from Hal Snyder
13017         <hal@vailsys.com>.
13018
13019         Fix dumper which can cause the entire amdump run to hang after
13020         dumper issues a "TRY-AGAIN" message to driver while dumping
13021         directly to tape.  Patch from Marion Hakanson's
13022         <hakanson@cse.ogi.edu>.
13023
13024         Added Marion Hakanson's <hakanson@cse.ogi.edu> patches to fix
13025         problems when amanda dumps directly to tape (i.e. when holding
13026         space is full, or you're backing up a huge filesystem, etc.).
13027         The bug occurs in the way taper determines it has succeeded
13028         when doing a PORT-WRITE operation (i.e. dumping directly to
13029         tape).  It used to assume that an EOF meant no more data --
13030         true if it's reading from a file, but when reading from a port
13031         (i.e. directly from a dump process), an EOF could signal
13032         abnormal exit as well as a normal one.  So, I extended the
13033         protocol between driver and taper when dumping directly to tape
13034         (see dump_to_tape() in driver.c) so the taper will wait for the
13035         driver to pass PORT-WRITE-SUCCESS or PORT-WRITE-FAILURE to the
13036         taper (since driver gets OK/not-OK from the dumper) before the
13037         taper records success or failure.  Note that this change
13038         affects only the PORT-WRITE case in taper.  FYI, the bug
13039         resulted in the curinfo database for a failed port-dump to have
13040         the tape-label & file-number fields updated with the location
13041         of the failed dump, even though the timestamp & dump statistics
13042         still have the values of the last successful dump (the latter
13043         fields are updated by dumper itself).
13044
13045         Patches from George Scott <George.Scott@cc.monash.edu.au> to
13046         fix the following problems in planner.c.
13047         1) Initialise total_size, total_lev0 and balanced_size.  They
13048         are updated in analyze_estimates() but never initialised.  Zero
13049         them before the first call.
13050         2) Remove oversize dumps.   If there is a dump whose estimated
13051         size is larger than the tape the planner would tend to throw
13052         away all the other dumps and then probably generate an
13053         unworkable plan anyway.  (The standard 2.2.6 planner probably
13054         tossed these dumps fairly quickly for other reasons, but my
13055         next fix made this one almost mandatory!)  The fix is to drop
13056         these enormous dumps right at the begining.  This shouldn't be
13057         triggered for anyone with a sane configuration.
13058         3) Promote hills.  There are two ways to create a balanced
13059         cycle.  The first is to fill in any holes and the second is to
13060         remove any hills.  The original planner is good at doing the
13061         first but doesn't even attempt the second.  A quick look at
13062         "amadmin balance" would show big hills quite clearly.  This fix
13063         effectively does an "amadmin balance" and promotes a dump from
13064         one of the "hills".  This type of promotion is quite
13065         restricted:
13066           - don't bother if we already plan to do any level 0 dumps
13067           - don't promote a dump if it was going to be the only level 0
13068             to be done on that run (ie, ignore hills that are only one
13069             dump high)
13070           - only promote one level 0 by this method
13071           - don't exceed tape_length
13072         The key to it is the first restriction.  Large sites (with
13073         large numbers of disks and a large balanced_size) will have at
13074         least one level 0 scheduled for each day in the dump cycle and
13075         will already have a balanced cycle.  This code will not
13076         activate for them.  Small sites will probably not have a level
13077         0 scheduled and will benefit.  The second restriction will stop
13078         Amanda from constantly promoting dumps when the schedule is as
13079         balanced as it will go.  The third restriction will stop Amanda
13080         over reacting.  Promoting one dump by this method would take
13081         total_lev0 larger that balanced_size.  If it wouldn't then the
13082         first stage promotion didn't work like it should.
13083         4) Initialise got_estimate for all cases.  This fix was from
13084         der Mouse <mouse@collatz.mcrcim.mcgill.edu>.  "got_estimate"
13085         wasn't being initialised for skipped disks.  Later in the code
13086         it was being used in all cases.  The fix is to move its
13087         initialisation up a few lines.
13088         5) Explicitly ignore off-line disks.  If a disk is off-line
13089         when the planner is run it gets -1 for all dump sizes.  These
13090         were ignored at a later stage.  This fix explicitly ignores
13091         them up front.
13092         6) Ignore down machines.  If a machine is down when the planner
13093         is run it guesses from historical data what the size of
13094         tonights dump is likely to be and schedules a dump anyway.  The
13095         dumper then usually discovers that the machine is still down
13096         and ends up with a half full tape.  Unfortunately the planner
13097         had to delay another dump because it thought that the tape was
13098         full.  The fix here is for the planner to discard unavailable
13099         machines totally rather than just ignore the fact that they are
13100         unavailable.
13101         7) Keep at least one total.  Amanda moves level 0 dumps back to
13102         incrementals to try and fit everything onto the tape.
13103         Unfortunately if all your incrementals are too big (or your
13104         tape too small) it can move all of your level 0 dumps.  This
13105         ends up being a kind of deadlock since, unless a level 0 gets
13106         done, the incrementals will not reduce in size and until the
13107         incrementals reduce in size there will not be enough room to
13108         fit in a level 0.  (This is not quite accurate since a level 4
13109         dump can get bumped to a level 5 which reduces its size.
13110         However, this deadlock has happened to me and for many days in
13111         a row.)  The fix is to pick on the highest priority level 0 and
13112         not let it be moved.  This change will not affect users with
13113         reasonably sized tapes since Amanda would not have moved all
13114         their disks to incrementals.
13115         8) Make usage of total_lev0 consistent.  "total_lev0" is a
13116         double and doesn't include tape_mark's.  Make it so.
13117
13118         Add a fflush(outf) to amcheck.c.  Patch from Mike Russell
13119         <Michael_Russell@Brown.EDU>.
13120
13121         Fix problems with amhpfixdevs.  Patch from Michael Schmitz
13122         <mschmitz@iname.com>.
13123
13124         Have DEC OSF1 use installbsd instead of install.  Patch from
13125         Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
13126
13127         Have amcontrol take the first command line argument as the
13128         configuration to use.  If there are no command line arguments,
13129         then use daily.  Patch from Thomas Schmeidl
13130         <schmeidl@nwp.kwu.siemens.de>.
13131
13132         Removed --atime-preserve from sendbackup-gnutar.c so that
13133         incremental backups of filesystems will work.  Patch from
13134         Alexandre Oliva <oliva@dcc.unicamp.br>.
13135
13136         Change all #if __STDC__ to #ifdef __STDC__ for those systems
13137         that define __STDC__ to 0, such as Solaris using cc -Xt, cc
13138         -Xa.  Patch from Blair Zajac <blair@gps.caltech.edu>.
13139
13140         Increase the socket buffer size, and set a low watter mark at
13141         32k.  This cut the number of syscalls done to process one 32k
13142         block from dozens down to 4 (select, read, lseek, write).
13143         Patch from Brad Huntting <huntting@glarp.com>.
13144
13145         Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
13146
13147         Add the "srvcompress" option to compress dumps on the tape host
13148         instead of on the client machines.  This may be useful when a
13149         fast tape host is backing up slow clients.  The patches add a
13150         dump-type option, analogous to "compress-fast" or
13151         "compress-best" - the way to use it is to create a new dumptype
13152         in your amanda.conf that includes "srvcompress" and use the new
13153         dumptype for those filesystems you wish to have compressed on
13154         the tape server. For example, in amanda.conf:
13155             define dumptype srvcomp-user {
13156             comment "Partitions on slow machines, compressed on tapehost"
13157             options srvcompress
13158             priority medium
13159         }
13160         Patches from Eric Volpe <epv@panix.com>.
13161
13162         Increase the planner timeout for one estimate from 30 seconds
13163         to 120 seconds.  Patch from Michael Schmitz
13164         <mschmitz@iname.com>.
13165
13166         The select(2) prototype on HPUX specifies 'int' as argument
13167         type of the filedescriptor arguments. All other systems I know
13168         of use 'fd_set'. This has been fixed by having configure check
13169         the argument type to select and adding casts to the select(2)
13170         calls.  Patch from Michael Schmitz  <mschmitz@iname.com>.
13171
13172         Improve the diagnostic output and increase the robustness of
13173         the system by adding better error checking on communication
13174         between taper & driver, and among the two taper processes.
13175         Patches from Marion Hakanson <hakanson@cse.ogi.edu>.
13176
13177         Convert all flock() calls to use POSIX-style locks via the
13178         fcntl(2) call.  This operation was prompted by the fact that
13179         the flock() emulation in the Amanda-provided common-src/flock.c
13180         was broken for read-only file descriptors, and the fcntl(2)
13181         locks are widely available.  This patch makes it possible to
13182         have a read-only lock on the /etc/amandates file on systems
13183         which want to use it.  I've built and tested the patched code
13184         on Amanda servers running on Digital Unix v3.2B (on Alpha
13185         hardware) and on SPARC Solaris-2.5.1.  It's also been compiled
13186         here on SPARC's running SunOS-4.1.3u1b, HP-UX 9.0[345], and
13187         NeXTstep-3.3 (NeXT hardware).  Note that the patches also
13188         remove all trace of the NEED_FLOCK define, and I have removed
13189         the file common-src/flock.c from our source tree here.  Patch
13190         from Marion Hakanson <hakanson@cse.ogi.edu>.
13191
13192         For disk/filesystem names which are wider than 14 characters,
13193         have reporter print out the rightmost characters of the disk
13194         name, which is usually more meaningful in a daily backup
13195         summary.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
13196
13197         Lets amflush work in a wider variety of cases than was
13198         previously true (it used to work if the disklist contains only
13199         the first token of each hostname).  sendbackup-dump.c and
13200         sendbackup-gnutar.c now do not trim the domain name from the
13201         host name that is sent back to the server.  amflush now looks
13202         for an exact match, in the database.  If it can't find one it
13203         strips the last token off the dump header hostname and keeps
13204         trying until it finds a match in the disklist or runs out of
13205         tokens.  This also has the advantage that if gethostname()
13206         returns FQDNs and you specify the same FQDNs in the disklist,
13207         then amflush will always work.  It will also work as long as
13208         the disklist and gethostname() on the clients return enough
13209         information to be unambiguous.  Patch from James Mathiesen
13210         <james@deshaw.com>.
13211
13212         Increase the READ_TIMEOUT in dumper.c to 30 minutes.  This
13213         needs to be longer than the longest amount of time dump will
13214         not produce output.  People have observed dumps taking more
13215         than 10 minutes to finish mapping some of the passes
13216         sometimes.  Patch from James Mathiesen <james@deshaw.com>.
13217         
13218         Added Adrian T. Filipi-Martin's <atf3r@cs.virginia.edu>
13219         amrmtape script, which allows you to invalidate the contents of
13220         an existing backup tape within the Amanda current tape
13221         database.  This is meant as a recovery mecanism for when a good
13222         backup is damaged either by faulty hardware or user error,
13223         i.e.  the tape is eaten by the tape drive, or the tape has been
13224         overwritten.  Blair Zajac wrote a quick little manual page for
13225         this script.
13226
13227         amrmtape was using the return value from amadmin and amadmin
13228         was exiting with a non-zero value, causing amrmtape to quit.
13229         Added a return 0 statement to amadmin.c.  Patch from Blair
13230         Zajac <blair@gps.caltech.edu>.
13231
13232         Went through all of the files and changed void main()'s to int
13233         main()'s.  Patch from Blair Zajac <blair@gps.caltech.edu>.
13234
13235         Removed the 50 tape file limit in amcleanup and amdump.
13236
13237         createindex-dump and sendbackup-dump did not always take into
13238         account the version suffix.  This is now handled.  Patch from
13239         Philippe Charnier <charnier@lirmm.fr>
13240
13241         Compile and install amrecover and amrestore as client programs,
13242         not a server program.  The motovation for this is that
13243         amrecover is truly a program for all of the users on the
13244         system, while the remaining amanda programs could be used by
13245         only the system administrator.  Patch from Alexandre Oliva
13246         <oliva@dcc.unicamp.br>.
13247
13248         The program amtrmidx fails to close some of the pipes it uses,
13249         and this can lead to failure on systems with large numbers of
13250         disks with incomplete database sets, and file descriptor
13251         ulimits set.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
13252
13253 Version 2.3.0.3
13254
13255         Expanded the width of the DISK column from the reporter
13256         output.  I like to use mount points like /export/home?? instead
13257         of device names to back up.  Since the width of the disk name
13258         field from reporter's output is pretty small, I couldn't easily
13259         figure out the statistics for a particular partition.  Patch
13260         from Blair Zajac <blair@gps.caltech.edu>.
13261
13262         Included Eric Doutreleau <ed@cti.ecp.fr> patch's for amadmin to
13263         handle multiple tapes better.  The patch that he posted on used
13264         a hardwired value of 6 for runtapes, which I changed.
13265
13266         Included Marion Hakanson's <hakanson@cse.ogi.edu> patches to
13267         amadmin.c and amadmin.8 to let amadmin use the same disk
13268         regular expression matching as amrestore.  So now "^/$" will
13269         match only the root partition, not all of the disks.
13270
13271         Added a patch from George.Scott@cc.monash.edu.au which makes
13272         new disks and forces dump with a higher priority.
13273
13274         Changed tools/munge to delete blank lines and the commented
13275         lines that the C preprocessor generates (i.e. # 123).  We also
13276         remove the space after the = sign that can be generated by cpp
13277         on some systems.
13278
13279         Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
13280         with the following patches:
13281
13282                 Fix problem so that rsh'ing on a hpux host works.
13283                 Patch from Neal Becker <neal@ctd.comsat.com>.  This
13284                 patch includes a new #define for RSH_COMMAND, which is
13285                 set to rsh in config-common.h and defined as remsh in
13286                 config.h-hpux.
13287
13288                 Fix bugs in createindex-dump.c when comparing errno to
13289                 EINTR.  The code was using = instead of ==.  Patch from
13290                 Neal Becker <neal@ctd.comsat.com>.  I'm guessing this
13291                 might fix some of the runaway createindex-dump
13292                 processes that I have seen on my system.
13293
13294                 On my system, we use MAE which likes to generate path
13295                 names with spaces in them.  I patched
13296                 createindex-dump.c so that filenames with spaces have
13297                 the whole filename listed.  Patch from Blair Zajac
13298                 <blair@gps.caltech.edu>.
13299
13300                 Patch amtrmidx.c so that backups using the mount points
13301                 for disks instead of the device name have the /'s
13302                 replaced with _'s.  Patch from Blair Zajac
13303                 <blair@gps.caltech.edu>.
13304
13305 Version 2.3.0.2
13306
13307         Changed the signals being sent to xfsdump for Irix so that it
13308         will be killed without dumping a core.
13309
13310         Fixed a typo in the definition of XFSDUMP in config.h-irix.
13311
13312         Removed the extra option.s-* and copied options.h to
13313         options.h-vanilla.
13314
13315         Moved the amrestore manual page into the man directory so it
13316         would get installed.
13317
13318 Version 2.3.0.1
13319
13320         amindex-0.1 written by Alan McIvor <alan@kauri.auck.irl.cri.nz>
13321         installed.  amindex generates an index of all of the files that
13322         were dumped.  It is nice to see what files were dumped before
13323         you restore a whole bunch of tapes looking for a file.  I
13324         patched some of this code.  Here are some of the changes:
13325
13326                 Switched the Imakefile to Makefile and Makefile.in to
13327                 be more consistent with the system used by the rest of
13328                 amanda.
13329
13330                 Moved the configuration #defines out of the specific
13331                 files (such as amrecover.c) into options.h, so that
13332                 people installing this version of amanda would be able
13333                 to see the required changes more easily and not have to
13334                 edit multiple files.
13335
13336                 Made some changes to the codes to remove #include's
13337                 where amanda.h would include them and also check if the
13338                 system had the particular include file.
13339
13340                 Added code to set_commands.c and amgetidx.c to change
13341                 /'s in disk names to _'s.
13342
13343                 Added code to amrecover.c to properly compile on
13344                 Solaris hosts.
13345
13346                 With the -Xc compiler option on Solaris and with
13347                 amindex, the sigaction structure was not being
13348                 declared.  Added -D__EXTENSIONS__ to config.h-sunos5 so
13349                 that sigaction would be declared.
13350
13351                 I changed a bunch of fprintf to perrors.
13352
13353         Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
13354         for FreeBSD-2.1.5.
13355
13356         Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
13357
13358         Installed Ken Laprade's <klaprade@harris.com> patches for
13359         amanda to handle both EFS and XFs file systems on the same
13360         client.  The only change from his patch is to #ifdef XFSDUMP
13361         the kill(-dumppid, SIGTERM) so the SIGTERM signal will be used
13362         on other systems, while SIGQUIT will be used on Irix systems.
13363
13364         Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
13365         the main config file to include subsidiary config files.
13366
13367         On Solaris, sometimes the hdr->handle variable in amandad.c
13368         would be null, causing core dumps when it was used in a sprintf
13369         statement.  The code now checks if hdr->handle is null and
13370         prints a "" if it is null.  This was only done in amandad.c.
13371
13372         Fix a problem where new disks would be added but not backed up
13373         concurrently.  Changes to diskfile.c.  I forgot who put this
13374         patch up on the mailing list.
13375
13376         I made some changes to options.h to allow the user to more
13377         easily install the programs under a different user.  This meant
13378         defining two new #defines, MK_AMANDA_USER and
13379         MK_QUOTED_AMANDA_USER which are used in the appropriate
13380         Makefiles.
13381
13382         Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
13383         for multiple tapes.
13384
13385         Included Joachim Loehr's <Joachim.Loeh@stadt-mh.de>
13386         script to automatically figure out which kind of HP-UX file
13387         system is being dumped.  Look in tools for the script and a
13388         README.
13389
13390 Local Variables:
13391 mode: change-log
13392 left-margin: 8
13393 fill-column: 76
13394 End: