1 2008-05-13 Dan Locks <dwlocks@zmanda.com>
2 * packaging/deb/buildpkg: modified build script to create unsigned
5 2008-05-12 Jean-Louis Martineau <martineau@zmanda.com>
6 Patch by Orion Poplawski
7 * server-src/planner.c: Warn about overwrite of last level 1, and
8 force backup of level 1 if overwrite on this run.
10 2008-05-12 Dustin J. Mitchell <dustin@zmanda.com>
11 * server-src/dumper.c server-src/server_util.c
12 server-src/infofile.c server-src/amtrmlog.c common-src/debug.c
13 common-src/file.c: Always call mkpdir without the 02000 bit set,
14 as it is not needed and causes problems on MacOS X.
16 2008-05-08 Jean-Louis Martineau <martineau@zmanda.com>
17 * packaging/deb/buildpkg packaging/rpm/buildpkg: AMVER=amanda-2.6.0p1
18 * packaging/deb/changelog: amanda (2.6.0p1-1)
19 * packaging/deb/rules: AMVER=2.6.0p1
20 * packaging/rpm/amanda.spec: amanda_version 2.6.0p1, amanda_release 1
21 * NEWS: Update for 2.6.0p1
22 * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0p1")
24 2008-05-08 Jean-Louis Martineau <martineau@zmanda.com>
25 * common-src/conffile.c: Define default tapetype.
27 2008-05-07 Jean-Louis Martineau <martineau@zmanda.com>
28 * common-src/conffile.c: Check the tapetype is defined.
30 2008-05-07 Jean-Louis Martineau <martineau@zmanda.com>
31 * device-src/tape-device.c: Allow user to set "read_buffer_size"
33 * restore-src/amrestore.c: Don't limit blocksize to
34 --with-maxtapeblocksize.
35 * common-src/conffile.c: Increase readblocksize to blocksize.
36 blocksize and readblocksize can be bigger than
37 --with-maxtapeblocksize.
39 2008-05-02 Dan Locks <dwlocks@zmanda.com>
40 * packaging/rpm/amanda.spec: Replace ${ with %{ where applicable.
42 2008-04-23 Jean-Louis Martineau <martineau@zmanda.com>
43 * common-src/security-util.c: Typo.
45 2008-04-23 Jean-Louis Martineau <martineau@zmanda.com>
46 * server-src/driver.c: Always sent a FAILED to taper if dumper failed.
48 2008-04-23 Jean-Louis Martineau <martineau@zmanda.com>
49 * server-src/planner.c: Fix vstrextend use.
51 2008-04-16 Dan Locks <dwlocks@zmanda.com>
52 * Fixes to debian package reported by daniel_P
53 * packaging/deb/preinst: remove spaces near ${amanda_group}
54 * packaging/deb/amanda-backup-server.dirs
55 packaging/deb/amanda-backup-client.dirs: added var/amanda and
56 usr/share/lintian/overrides
57 * packaging/deb/rules: added logic to find PERLSITELIB and append that
58 to amanda-backup-server.install, removed broken brace expansion
59 * packaging/deb/buildpkg: removed extraneous configure step
60 * packaging/deb/amanda-backup-server.postinst: added check for correct
61 permissions on /tmp/amanda
63 2008-04-16 Jean-Louis Martineau <martineau@zmanda.com>
64 * server-src/amadmin.c: Improve message.
65 * man/xml-source/amanda.conf.5.xml: Fix man page.
66 * server-src/planner.c: Fix DS_INCRONLY and FORCE_FULL
68 2008-04-16 Dustin J. Mitchell <dustin@zmanda.com>
69 * config/amanda/dumpers.m4: continue searching for gnutar if we
70 find a binary claiming to be gnu tar that is not. This gets
71 around serious breakage on Ubuntu, where star is installed as
72 /bin/gnutar, but /bin/tar is actually GNU Tar.
74 2008-04-15 Dustin J. Mitchell <dustin@zmanda.com>
75 * common-src/file.c(mk1dir): fix reversed conditional to handle
78 2008-04-15 Jean-Louis Martineau <martineau@zmanda.com>
79 * common-src/debug.c (debug_logging_handler, debug_printf): Don't print
80 msg_timestamp() to stderr.
82 2008-04-15 Jean-Louis Martineau <martineau@zmanda.com>
83 * server-src/find.c (dumps_match_dumpspecs): New function to only keep
84 dumps that match a dumpspecs, using it simplify amfetchdump.
85 * server-src/find.h (dumps_match_dumpspecs): Prototype.
86 * restore-src/amrestore.c: Add a first_restored_file to
87 search_a_tape(), to allow restore ot stop after the first image.
88 * restore-src/restore.c: Set first_restored_file, it was never set,
89 it's needed to stop after the first image.
90 * restore-src/restore.c (restore_from_tapelist): break if piping to
92 * restore-src/amfetchdump.c: Use dumps_match_dumpspecs.
93 * restore-src/amfetchdump.c: If -p, the keep only one dump.
94 * perl/Amanda/Logfile.swg (dumps_match_dumpspecs): New prototype.
95 * perl/Amanda/Cmdline.swg: cmdline_parse_dumpspecs.
96 * perl/amglue/dumpspecs.swg: Map dumpspecs to perl.
97 * perl/Makefile.am (AMGLUE_SWG): Add amglue/dumpspecs.swg.
99 2008-04-15 Jean-Louis Martineau <martineau@zmanda.com>
100 * tape-src/tapetype.c: Initialize an default config.
102 2008-04-15 Jean-Louis Martineau <martineau@zmanda.com>
103 * common-src/util.c (connect_portrange, connect_port, bind_portrange):
104 Return the latest errno reported.
106 2008-04-04 Jean-Louis Martineau <martineau@zmanda.com>
107 * man/xml-source/*.xml: Use ulink tag to link to wiki.zmanda.com.
109 2008-04-04 Jean-Louis Martineau <martineau@zmanda.com>
110 * restore-src/restore.c: Check last_header->type != F_UNKNOWN.
112 2008-03-31 Dan Locks <dwlocks@zmanda.com>
113 * packaging/deb/buildpkg
114 packaging/rpm/buildpkg: added -p to cp to preserve file timestamps.
116 2008-03-31 Dan Locks <dwlocks@zmanda.com>
117 * packaging/Makefile.am: add deb subdirectory.
119 2008-03-27 Jean-Louis Martineau <martineau@zmanda.com>
120 * device-src/activate-devpay.c (parse_commandline): Always return.
122 2008-03-25 Jean-Louis Martineau <martineau@zmanda.com>
123 * config/amanda/readline.m4: Don't add READLINE_LIBS to LIBS.
124 * oldrecover-src/Makefile.am (LDAAD): Add READLINE_LIBS.
125 * recover-src/Makefile.am (LDAAD): Add READLINE_LIBS.
126 * config/amanda/swig.m4: AM_CONDITIONAL(WANT_CYGWIN_COPY_PERL_DLL)
127 * config/amanda/swig.m4: Add library to PERLEXTLIBS on cygwin.
128 * config/amanda/syshacks.m4: Add '-no-undefined' to AMANDA_ADD_LDFLAGS.
129 * amandad-src/Makefile.am,
130 * client-src/Makefile.am, device-src/Makefile.am,
131 server-src/Makefile.am, server-src/server_util.c,
132 tape-src/Makefile.am: Add library to many *_LIBADD.
133 * perl/Makefile.am (install-data-hook): Copy cygwin ddl if
134 WANT_CYGWIN_COPY_PERL_DLL.
136 2008-03-25 Jean-Louis Martineau <martineau@zmanda.com>
137 * server-src/reporter.c: Check difference between origsize and outsize
138 to find if the image is compressed.
140 2008-03-25 Jean-Louis Martineau <martineau@zmanda.com>
141 Greg Troxel reported the bug and possible solution.
142 * common-src/stream.c (stream_server): New family argument, it is used
143 to create the socket.
144 * common-src/stream.h (stream_server): New prototype.
145 * server-src/chunker.c, server-src/taper.c: Call stream_server with
146 family of 'localhost', it's the name dumper use to contact them.
147 * restore-src/amidxtaped.c: Call stream_server with AF_INET.
148 * common-src/bsd-security.c, common-src/security-util.c: Call
149 stream_server with family of incoming packet.
151 2008-03-25 Jean-Louis Martineau <martineau@zmanda.com>
152 * common-src/security-util.c (show_stat_info): Use getpwuid_r
155 2008-03-25 Dustin J. Mitchell <dustin@zmanda.com>
156 * config/amanda/swig.m4: fix the fix to the fix for FreeBSD systems'
157 peculiar linking of threading libraries.
159 2008-03-20 Dan Locks <dwlocks@zmanda.com>
160 * packaging/deb/control: removed grep dependency
161 * packaging/deb/amanda-backup-client.postinst
162 packaging/deb/amanda-backup-server.postinst
163 packaging/deb/amanda-backup-server.postrm
164 packaging/deb/amanda-backup-client.postrm: removed call to
165 ldconfig to satisfy lintian
166 * packaging/deb/amanda-backup-server.lintian
167 packaging/deb/amanda-backup-client.lintian: sorted and added new
169 * packaging/deb/amanda-backup-client.dirs: removed var/amanda
171 2008-03-18 Jean-Louis Martineau <martineau@zmanda.com>
172 * Amanda 2.6.0 released.
173 * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0")
174 * packaging/rpm/amanda.spec: %define amanda_version 2.6.0
175 * packaging/rpm/buildpkg: AMVER=amanda-2.6.0
177 2008-03-17 Jean-Louis Martineau <martineau@zmanda.com>
178 * server-src/diskfile.c: Correctly check if two hosts map to the same
181 2008-03-14 Dan Locks <dwlocks@zmanda.com>
182 * packaging/deb/*: Initial debian package release. This package is
183 based on Bdale Garbee's work as the official debian maintainer for
186 2008-03-13 Dan Locks <dwlocks@zmanda.com>
187 * packaging/rpm/amanda.spec: changed the PKG_CONFIG_PATH macro so that
188 it works with rpm versions earlier than 4.4
190 2008-03-12 Dan Locks <dwlocks@zmanda.com>
191 * packaging/rpm/buildpkg: made the script quieter, simplified its
192 usage by creating the required tarball on the fly.
193 * packaging/rpm/amanda.spec: fixed a number of complaints from rpmlint,
194 added --quiet to the configure invocation
196 2008-03-10 Jean-Louis Martineau <martineau@zmanda.com>
197 * device-src/tests/semaphore-test.c,
198 device-src/tests/vfs_test.c: Call amanda_thread_init(NULL).
200 2008-03-07 Jean-Louis Martineau <martineau@zmanda.com>
201 * Amanda 2.6.0b3 released.
202 * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0b3")
203 * packaging/rpm/amanda.spec: %define amanda_version 2.6.0b3
204 * packaging/rpm/buildpkg: AMVER=amanda-2.6.0b3
206 2008-03-06 Jean-Louis Martineau <martineau@zmanda.com>
207 * common-src/Makefile.am: dest=$(amlibexecdir).
209 2008-03-06 Jean-Louis Martineau <martineau@zmanda.com>
210 * changer-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE,
211 Add chg-lib.sh.in to EXTRA_DIST.
212 * dumper-src/Makefile.am: Rename SCRIPTSDATA to SCRIPTS_INCLUDE,
213 Add generic-dumper.pl to EXTRA_DIST.
214 * common-src/Makefile.am: Add amanda-sh-lib.sh to SCRIPTS_INCLUDE,
215 Add amanda-sh-lib.sh.in to EXTRA_DIST.
217 2008-03-05 Jean-Louis Martineau <martineau@zmanda.com>
218 * changer-src/Makefile.am: Move chg-lib.sh to SCRIPTSDATA.
219 * dumper-src/Makefile.am: Move generic-dumper to SCRIPTSDATA.
221 2008-03-05 Jean-Louis Martineau <martineau@zmanda.com>
222 * config/amanda/swig.m4: Check for *freebsd[123456]*
224 2008-03-05 Jean-Louis Martineau <martineau@zmanda.com>
225 * changer-src/chg-scsi-chio.c: Compile fix.
226 * changer-src/scsi-chio.c: Compile fix.
227 * config/amanda/changer.m4: Check for linux/chio.h
229 2008-03-05 Jean-Louis Martineau <martineau@zmanda.com>
230 * packaging/rpm/amanda.spec: Give CFLAGS after ./configure
232 2008-03-05 Dustin J. Mitchell <dustin@zmanda.com>
233 * config/amanda/swig.m4: With many thanks to John E. Hein
234 <jhein@timing.com>, fix the comment and make the change committed
235 yesterday apply to all FreeBSD < 7.0.
237 2008-03-05 Dustin J. Mitchell <dustin@zmanda.com>
238 * config/amanda/summary.m4: quote all warning messages that will be
239 included in heredocs, to avoid spurious interpretation of backquotes
241 2008-03-05 Jean-Louis Martineau <martineau@zmanda.com>
242 * packaging/rpm/amanda.spec: Add %{PERLSITELIB} in %files sections.
244 2008-03-05 Jean-Louis Martineau <martineau@zmanda.com>
245 * restore-src/amidxtaped: Use default config if amrecover doesn't send a config name. (amoldrecover doesn't send a config).
246 * restore-src/restore.c: amrecover from 2.4.5 doesn't send the filenum, so desired_tape->numfiles == 0.
247 If amidxtaped is launched directly from xinetd, then
248 flags->pipe_to_fd == STDOUT_FILENO, but this test should only
249 succeed for amrestore of amfetchdump.
251 2008-03-05 Jean-Louis Martineau <martineau@zmanda.com>
252 * device-src/tape-device.c: Set d_self->is_eof to FALSE.
254 2008-03-04 Dustin J. Mitchell <dustin@zmanda.com>
255 * perl/Makefile.am config/amanda/swig.m4: add a special case for
256 FreeBSD-6.2: include -lpthread in the linking of each perl
257 extension, because libgthread does not pull in libpthread as
258 it does on other platforms.
260 2008-03-03 Jean-Louis Martineau <martineau@zmanda.com>
261 * common-src/security-util.c: getnameinfo return != 0 on error.
263 2008-03-03 Jean-Louis Martineau <martineau@zmanda.com>
264 * config/amanda/dumpers.m4: Typo.
266 2008-03-03 Jean-Louis Martineau <martineau@zmanda.com>
267 * device-src/tests/vfs_test.c: Fix ignoring
268 return value of 'pipe', declared with attribute warn_unused_result.
270 2008-02-29 Dustin J. Mitchell <dustin@zmanda.com>
271 * common-src/amanda.h: add <stdint.h>
273 2008-02-29 Dustin J. Mitchell <dustin@zmanda.com>
274 * installcheck/Amanda_Config.pl: fix Amanda_Config's use of the
275 missing Amanda::Tests
277 2008-02-29 Dustin J. Mitchell <dustin@zmanda.com>
278 * installcheck/Makefile.am: remove Amconfig.pm from EXTRA_DIST, as it
281 2008-02-28 Dustin J. Mitchell <dustin@zmanda.com>
282 Thanks to John E. Hein <jhein@timing.com> for identifying this problem
283 * installcheck/Amanda_Config.pl: use a properly-sized constant to
284 check parsing of large configuration values
286 2008-02-28 Jean-Louis Martineau <martineau@zmanda.com>
287 * server-src/amindexd.c: Compute maxpart, call clean_dump.
288 * server-src/disk_history.h (DUMP_ITEM): Add maxpart field.
289 * server-src/disk_history.h (add_dump): New prototype,
290 add maxpart argument.
291 * server-src/disk_history.c (add_dump): Remove a DUMP_ITEM if the
292 previous part is not already added.
293 * server-src/disk_history.c (clean_dump): New function to remove
294 DUMP_ITEM if all part are not added.
295 * common-src/tapelist.h (tapelist_t): Add partnum field.
296 * common-src/tapelist.h (append_to_tapelist): New prototype,
297 add partnum argument.
298 * common-src/tapelist.c (append_to_tapelist): New partnum argument.
299 * restore-src/amfetchdump.c: Use new append_to_tapelist prototype.
301 2008-02-27 Jean-Louis Martineau <martineau@zmanda.com>
302 * server-src/find.c: Use sort_key in switch statement.
304 2008-02-26 Jean-Louis Martineau <martineau@zmanda.com>
305 * NEWS, ReleaseNotes: Document --with-amlibdir.
306 * config/amanda/dirs.m4: Add AS_HELP_STRING for --without-amlibdir and
307 --without-amlibexecdir,
308 Set AMPERLLIB to $amlibdir/perl.
310 2008-02-26 Dustin J. Mitchell <dustin@zmanda.com>
311 * perl/Makefile.am config/amanda/dirs.m4 config/amanda/summary.m4:
312 add --with-amperldir, --without-amperldir, and install perl modules
313 in Perl's installsitearch by default; thanks to Orion Poplawski
314 <orion@cora.nwra.com> for help and suggestions.
316 2008-02-26 Jean-Louis Martineau <martineau@zmanda.com>
317 * client-src/getfsent.c: Don't fail if stat of mount point fail.
319 2008-02-26 Jean-Louis Martineau <martineau@zmanda.com>
320 * common-src/util.c: Don't log a note if CLIENT_LOGIN == dumpuser for
321 RUNNING_AS_DUMPUSER_PREFERRED.
323 2008-02-25 Jean-Louis Martineau <martineau@zmanda.com>
324 * server-src/reporter.c: Report size of data on holding disk.
326 2008-02-20 Jean-Louis Martineau <martineau@zmanda.com>
327 * config/amanda/dirs.m4: Add --with-amlibdir and --with-amlibexecdir.
328 * NEWS, ReleaseNotes: Document it.
330 2008-02-20 Jean-Louis Martineau <martineau@zmanda.com>
331 * server-src/amcheck.c, server-src/dumper.c,
332 server-src/planner.c: Call waitpid to cleanup defunct process.
334 2008-02-20 Dustin J. Mitchell <dustin@zmanda.com>
335 * device-src/tape-posix.c: keep ioctl error message in
338 2008-02-19 Jean-Louis Martineau <martineau@zmanda.com>
339 * device-src/device.c, device-src/null-device.c,
340 device-src/s3.c, device-src/tape-device.c,
341 device-src/queueing.h, device-src/s3.h,
342 device-src/vfs-device.c, device-src/rait-device.c,
343 server-src/taper-source-test.c, server-src/server_util.c,
344 server-src/taper-disk-port-source.c, perl/Amanda/Device.swg,
345 perl/amglue/integers.swg, restore-src/restore.c,
346 common-src/glib-util.c: Fix solaris compiler warning.
348 2008-02-19 Jean-Louis Martineau <martineau@zmanda.com>
349 * common-src/util.c (quote_string): Quote single quote (').
350 * server-src/find.c:Correctly compute length of diskname.
352 2008-02-15 Dustin J. Mitchell <dustin@zmanda.com>
353 * configure.in config/amanda/progs.m4 config/amanda/flags.m4:
354 use AC_PROG_EGREP instead of the Amanda version
355 * server-src/find.c: fix compiler warning on Solaris 8
357 2008-02-15 Jean-Louis Martineau <martineau@zmanda.com>
358 * packaging/rpm/amanda.spec: Fix typo.
360 2008-02-15 Jean-Louis Martineau <martineau@zmanda.com>
361 * oldrecover-src/Makefile.am: Build all files in the build directory.
362 * recover-src/Makefile.am: Build all files in the build directory.
363 * config/amanda/config.m4: Use $srcdir to buld common-src/svn-info.h
364 * configure.in: execute AMANDA_GET_SVN_INFO after AC_OUTPUT because
365 AC_OUTPUT create the common-src directory.
367 2008-02-15 Jean-Louis Martineau <martineau@zmanda.com>
368 * server-src/amadmin.c: Use 'long long' and '%lld' to sscanf.
369 * file server-src/infofile.c: Use %jd to print intmax_t value.
370 * file server-src/driver.c: Use 'long long' and '%lld' to sscanf.
372 2008-02-15 Jean-Louis Martineau <martineau@zmanda.com>
373 * server-src/amdump.sh: Don't use 'date -d', use sed.
375 2008-02-13 Dan Locks <dwlocks@zmanda.com>
376 * packaging/rpm/amanda.spec: added a check for PKG_CONFIG_PATH in the
377 build environment as well as if provided on rpmbuild commandline.
378 Conditionalized this var to handle cross compiling on FC8.
380 2008-02-12 Jean-Louis Martineau <martineau@zmanda.com>
381 * server-src/dumper.c: Fail if no header or no data.
383 2008-02-12 Jean-Louis Martineau <martineau@zmanda.com>
384 * server-src/amstatus.pl: Report failure if dumper succeed and
387 2008-02-07 Jean-Louis Martineau <martineau@zmanda.com>
388 * NEWS, ReleaseNotes: Add notes about rsh/ssh and amandad_path.
390 2008-02-07 Jean-Louis Martineau <martineau@zmanda.com>
391 * Amanda 2.6.0b2 released.
392 * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0b2")
393 * packaging/rpm/amanda.spec: %define amanda_version 2.6.0b2
394 * packaging/rpm/buildpkg: AMVER=amanda-2.6.0b2
396 2008-02-07 Jean-Louis Martineau <martineau@zmanda.com>
397 * recover-src/amrecover.c: Use tapedev from server if it is not set
398 in amanda.client.conf
399 * example/amanda-client.conf.in: Document it.
401 2008-02-07 Jean-Louis Martineau <martineau@zmanda.com>
402 * device-src/tape-device.c (tape_device_init): Init min_block_size
403 and fixed_block_size to 32768.
405 2008-02-07 Jean-Louis Martineau <martineau@zmanda.com>
406 * device-src/tape-posix.c (tape_is_ready): Don't use GMT_ONLINE.
408 2008-02-07 Dustin J. Mitchell <dustin@zmanda.com>
409 * man/xml-source/amcheckdump.8.xml: add -o option
410 * man/Makefile.am: build amcheckdump manpage
411 * server-src/amdevcheck.pl: tweak @ARGV parsing
412 * server-src/amcheckdump.pl installcheck/Installcheck/Run.pm
413 installcheck/amcheckdump.pl: significant rewrite to catch more errors
414 and not loop for ever on some errors.
416 2008-02-01 Dan Locks <dwlocks@zmanda.com>
417 * packaging/rpm/amanda.spec: added amdumpcheck.8.gz to the %files list
418 for both client and server, removed amplot from client, added missing
419 directory %{SYSCONFDIR}/amanda
421 2008-01-29 Dan Locks <dwlocks@zmanda.com>
422 * packaging/rpm/amanda.spec: changed %{SYSCONFDIR} to %{LOCALSTATEDIR}
423 where amanda/amandates is concerned. also added %{LOCALSTATEDIR} to
426 2008-01-29 Dan Locks <dwlocks@zmanda.com>
427 * man/xml-src/*: added wiki.zmanda.com to "see also" section of all
430 2008-01-29 Jean-Louis Martineau <martineau@zmanda.com>
431 * client-src/sendbackup.c: Check for g_options.
432 * client-src/sendsize.c: Check for g_options.
433 * client-src/selfcheck.c: Check for g_options.
434 * amandad-src/amandad_util.c (free_g_options): Check g_options != NULL.
436 2008-01-28 Jean-Louis Martineau <martineau@zmanda.com>
437 * server-src/amstatus.pl: Fix "Use of uninitialized value in string".
439 2008-01-28 Dustin J. Mitchell <dustin@zmanda.com>
440 * installcheck/Amanda_Config.pl common-src/conffile.c: uppercase
441 displayunit, and add a unit test to be sure.
443 2008-01-28 Jean-Louis Martineau <martineau@zmanda.com>
444 * server-src/amstatus.pl: handle lowercase displayunit.
446 2008-01-28 Dustin J. Mitchell <dustin@zmanda.com>
447 * configure.in config/amanda/ipv6.m4 common-src/amanda.h: check
448 for netinet/in.h and in_port_t, and define the latter if
449 necessary. Thanks to Craig Dewick <cdewick@lios.apana.org.au>
452 2008-01-28 Paddy Sreenivasan <paddy@zmanda.com>
453 * man/xml-source/amanda.8.xml: Update amanda(8) to reflect 2.6.0
456 2008-01-28 Jean-Louis Martineau <martineau@zmanda.com>
457 * amandad-src/amandad.c: Send service stderr to amandad debug file,
458 Wait for service termination and send error message to server.
460 2008-01-28 Jean-Louis Martineau <martineau@zmanda.com>
461 * device-src/device.c: Set PROPERTY_BLOCK_SIZE with a G_TYPE_INT
462 Set PROPERTY_READ_BUFFER_SIZE with a G_TYPE_UINT
464 2008-01-22 Dustin J. Mitchell <dustin@zmanda.com>
465 * man/Makefile.am man/xml-source/amcheckdump.8.xml: new manpage
466 * server-src/amcheckdump.pl: fix usage message
468 2008-01-22 Dustin J. Mitchell <dustin@zmanda.com>
469 * configure.in config/amanda/userid.m4: add --with-single-userid
471 2008-01-22 Dustin J. Mitchell <dustin@zmanda.com>
472 * perl/amglue/amglue.h perl/amglue/bigint.c: Include integer limits
473 for all amglue files where they are missing from glib headers
475 2008-01-22 Dustin J. Mitchell <dustin@zmanda.com>
476 * installcheck/Makefile.am: condition installchecks on the selected
479 2008-01-22 Dustin J. Mitchell <dustin@zmanda.com>
480 * installcheck/Makefile.am Makefile.am: distribute
481 installcheck/Installcheck scripts, make sure enough parameters
482 are passed along to distcheck for it to succeed, and also clean
483 up properly after tests are run.
485 2008-01-22 Dustin J. Mitchell <dustin@zmanda.com>
486 * config/amanda/dumpers.m4: eliminate strange warning when
487 --without-smbclient is given
489 2008-01-16 Dustin J. Mitchell <dustin@zmanda.com>
490 * installcheck/Makefile.am: Require user to specify
491 CLOBBER_MY_CONFIG=OK when running installchecks
493 2008-01-16 Jean-Louis Martineau <martineau@zmanda.com>
494 * packaging/rpm/amanda.spec: Don't set PKG_CONFIG_PATH.
496 2008-01-16 Jean-Louis Martineau <martineau@zmanda.com>
497 * oldrecover-src/extract_list.c, client-src/sendbackup.c,
498 client-src/sendsize.c, client-src/selfcheck.c,
499 recover-src/extract_list.c, server-src/changer.c,
500 server-src/amflush.c, server-src/driverio.c,
501 common-src/pipespawn.c: Call safe_fd before exec*.
503 2008-01-15 Jean-Louis Martineau <martineau@zmanda.com>
504 * packaging/rpm/amanda.spec: Remove build_host.
506 2008-01-15 Dustin J. Mitchell <dustin@zmanda.com>
507 * perl/Amanda/Types.swg perl/Amanda/Config.swg perl/Amanda/Device.swg
508 perl/amglue/integers.swg: fix typos and compiler warnings
510 2008-01-15 Jean-Louis Martineau <martineau@zmanda.com>
511 * packaging/Makefile.am: New file.
512 * packaging/README: New file.
513 * packaging/rpm/buildpkg: New file.
514 * packaging/rpm/amanda.spec: New file.
516 * config/amanda/dirs.m4 (AMANDA_WITH_DUMPERDIR): Give a warning if used.
517 * config/amanda/dirs.m4 (AMANDA_EXPAND_DIRS): Expand DUMPER_DIR to
518 ${amlibexecdir}/application
519 * Makefile.am (SUBDIRS): Add packaging.
520 * amanda.spec: Remove file.
522 2008-01-15 Jean-Louis Martineau <martineau@zmanda.com>
523 * device-src/Makefile.am (AM_CFLAGS): Set to $(AMANDA_WARNING_CFLAGS)
524 * device-src/tape-device.c, device-src/tape-posix.c,
525 device-src/vfs-device.c: include "util.h"
526 * device-src/rait-device.c: fix compiler warning.
528 2008-01-14 Dustin J. Mitchell <dustin@zmanda.com>
529 * perl/amglue/bigint.c: fix the range-checking mechanics for large
530 integers, since the precompiler seems to get confused by large
533 2008-01-14 Dustin J. Mitchell <dustin@zmanda.com>
534 * config/amanda/krb5-security.m4: abort configure run if krb5
535 is requested by libraries aren't found
537 2008-01-13 Dustin J. Mitchell <dustin@zmanda.com>
538 * man/xml-source/amanda.conf.5.xml: use × instead of ×
540 2008-01-11 Paddy Sreenivasan <paddy@zmanda.com>
541 * device-src/Makefile.am: Don't install queueing.h and device.h
543 2008-01-11 Dustin J. Mitchell <dustin@zmanda.com>
544 * perl/Amanda/Config.swg perl/Amanda/Debug.swg: complete documentation
546 2008-01-11 Jean-Louis Martineau <martineau@zmanda.com>
547 * amandad-src/Makefile.am: Install amandad in $libexecdir/amanda
548 * installcheck/amgetconf.pl: usetimestamps defaults to yes.
549 * NEWS, ReleaseNotes: Notes about make installcheck.
551 2008-01-11 Jean-Louis Martineau <martineau@zmanda.com>
552 * NEWS: Add amcryptsimple, amgpgcrypt, amserverconfig and amaddclient.
553 * ReleaseNotes: Ditto.
555 2008-01-11 Jean-Louis Martineau <martineau@zmanda.com>
556 * ReleaseNotes: Update for amanda-2.6.0
557 * News: Update for amanda-2.6.0
558 * configure.in: AM_INIT_AUTOMAKE(amanda, "2.6.0b1")
559 * Makefile.am (pkgdata_DATA): Add NEWS, ChangeLog and amanda.spec
560 * amanda.spec: %{!?amanda_version: %define amanda_version 2.6.0b1}
562 2008-01-10 Jean-Louis Martineau <martineau@zmanda.com>
563 * common-src/conffile.c (usetimestamps): Default ot yes.
564 * man/xml-source/amanda.conf.5.xml (usetimestamps): Document it.
566 2008-01-10 Jean-Louis Martineau <martineau@zmanda.com>
567 * server-src/amverifyrun.sh, server-src/amverify.sh,
568 tape-src/ammt.c, tape-src/amdd.c: Write deprecated message.
570 2008-01-10 Jean-Louis Martineau <martineau@zmanda.com>
571 * config/amanda/defaults.m4: Set amandates to $localstatedir/amanda/amandate
573 2008-01-10 Jean-Louis Martineau <martineau@zmanda.com>
574 * server-src/amfreetapes.sh: Use amlibexecdir.
576 2008-01-10 Jean-Louis Martineau <martineau@zmanda.com>
577 * config/amanda/dirs.m4: Set amlibexecdir to $libexecdir/amanda.
578 * amandad-src/amandad.c, amplot/amplot.sh,
579 amplot/Makefile.am, changer-src/chg-chs.sh,
580 changer-src/chg-disk.sh, changer-src/chg-juke.sh,
581 changer-src/chg-lib.sh.in, changer-src/chg-manual.sh,
582 changer-src/chg-mcutil.sh, changer-src/chg-mtx.sh,
583 changer-src/chg-multi.sh, changer-src/chg-null.sh,
584 changer-src/chg-rait.sh, changer-src/chg-rth.pl,
585 changer-src/chg-zd-mtx.sh, changer-src/Makefile.am,
586 client-src/Makefile.am, client-src/patch-system.sh,
587 client-src/selfcheck.c, client-src/sendbackup-dump.c,
588 client-src/sendbackup-gnutar.c, client-src/sendsize.c,
589 common-src/amaespipe.sh, common-src/amanda-sh-lib.sh.in,
590 common-src/amcrypt-ossl-asym.sh, common-src/amcrypt-ossl.sh,
591 common-src/amcrypt.sh, common-src/genversion.c,
592 common-src/local-security.c, common-src/Makefile.am,
593 common-src/rsh-security.c, common-src/ssh-security.c,
594 dumper-src/amgtar.pl, example/xinetd.amandaclient,
595 example/xinetd.amandaserver, installcheck/amgetconf.pl,
596 perl/Amanda/Changer.pm, perl/Amanda/Paths.pm.in,
597 restore-src/Makefile.am, server-src/amcheck.c,
598 server-src/amcheckdb.sh, server-src/amcleanup.sh,
599 server-src/amdump.sh, server-src/amflush.c,
600 server-src/amoverview.pl, server-src/amrmtape.sh,
601 server-src/amverifyrun.sh, server-src/amverify.sh,
602 server-src/changer.c, server-src/driver.c,
603 server-src/getconf.c, server-src/Makefile.am,
604 tape-src/Makefile.am: Use amlibexecdir.
606 2008-01-10 Jean-Louis Martineau <martineau@zmanda.com>
607 * config/amanda/flags.m4 (AMANDA_STATIC_FLAGS):
608 Set AMANDA_STATIC_LDFLAGS to '-static' if set.
609 * configure.in: Call AMANDA_STATIC_FLAGS.
610 * amandad-src/Makefile.am, changer-src/Makefile.am,
611 client-src/Makefile.am, common-src/Makefile.am,
612 dumper-src/Makefile.am, oldrecover-src/Makefile.am,
613 recover-src/Makefile.am, restore-src/Makefile.am,
614 server-src/Makefile.am,
615 tape-src/Makefile.am(AM_LDFLAGS): Set to AMANDA_STATIC_LDFLAGS.
617 2008-01-09 Jean-Louis Martineau <martineau@zmanda.com>
618 * configure.in (AC_CONFIG_FILES): Add example/template.d/amanda-S3.conf
619 * example/Makefile.am (dist_template_DATA): Add
620 template.d/amanda-S3.conf
622 2008-01-09 Jean-Louis Martineau <martineau@zmanda.com>
623 * changer-src/scsi-solaris.c: Cleanup.
625 2008-01-09 Ian Turner <ian@zmanda.com>
626 * changer-src/chg-zd-mtx.sh.in: Don't write a corrupt changerfile
627 when a tape has no barcode label.
629 2008-01-08 Dustin J. Mitchell <dustin@zmanda.com>
630 * server-src/amcheckdump.pl: call critical() rather than
633 2008-01-08 Jean-Louis Martineau <martineau@zmanda.com>
634 * server-src/amcheckdump.pl: Parse 'amflush: starttime' and
635 'planner: timestamp' line.
636 * server-src/amflush.c: Print correct starttime line.
638 2008-01-08 Ian Turner <ian@zmanda.com>
639 Most of this work was done by Dustin J. Mitchell
640 <dustin@zmanda.com>, with contributions by Ian Turner <ian@zmanda.com>.
641 * example/template.d/amanda-S3.conf.in: Example configuration
643 * device-src/device.c: Register the S3 device.
644 * device-src/tests/get-activation-key.pl: Tool to retrieve
645 a DevPay activation key.
646 * device-src/s3-device.c, device-src/s3-device.h: S3 device driver.
647 * device-src/s3.c, device-src/s3.h: Network support for S3 driver.
648 * device-src/property.c, device-src/property.h: Register S3
649 authentication properties.
650 * device-src/activate-devpay.c: Tool to convert a devpay
651 activation key into user tokens.
652 * device-src/Makefile.am: Support all these new files.
653 * configure.in: Check S3 prerequesites.
654 * config/amanda/s3-device.m4: Check if the S3 device should be
656 * config/amanda/libs.m4: Code to check for libcurl version and
658 * common-src/util.c: Use libcurl header.
660 2008-01-08 Dustin J. Mitchell <dustin@zmanda.com>
661 * server-src/amcheckdump.pl: call critical() rather than
664 2008-01-08 Jean-Louis Martineau <martineau@zmanda.com>
665 * common-src/local-security.c: New 'local' security driver.
666 * common-src/security.c (drivers): Add local_security_driver
667 * common-src/Makefile.am (libamanda_la_SOURCES): Add local-security.c
668 * man/xml-source/amanda.conf.5.xml,
669 man/xml-source/amanda-client.conf.5.xml,
670 example/amanda-client.conf.in,
671 example/template.d/dumptypes: Document 'local' security driver.
673 2008-01-08 Dustin J. Mitchell <dustin@zmanda.com>
674 * server-src/amcheckdump.pl perl/Amanda/Util.swg: don't use
675 the C safe_fd, which kills the Perl debugger; just check
676 that fd's 0-2 are open
678 2008-01-08 Dustin J. Mitchell <dustin@zmanda.com>
679 * perl/Amanda/Types.swg perl/Makefile.am: add new Amanda::Types module
680 to contain data structures common to several other modules.
681 * perl/Amanda/Device.swg: move dumpfile_t to Amanda::Types
682 * installcheck/Amanda_Types.pl installcheck/Makefile.am: simple tests
684 * common-src/fileheader.c common-src/fileheader.h: build_header
685 now takes a precise size, not a minimum.
687 2008-01-08 Jean-Louis Martineau <martineau@zmanda.com>
688 * recover-src/amrecover.c: Call apply_config_overwrites before
689 config_init(CONFIG_INIT_EXPLICIT_NAME ...)
691 2008-01-07 Jean-Louis Martineau <martineau@zmanda.com>
692 * common-src/util.c (strquotedstr, hexdump): Remove function.
693 * common-src/util.h (strquotedstr, hexdump): Remove prototype.
694 * common-src/fileheader.c (strquotedstr, hexdump): Add function.
695 * common-src/fileheader.c (strquotedstr): Fix.
697 2008-01-07 Jean-Louis Martineau <martineau@zmanda.com>
698 * perl/Amanda/Changer.pm: Use Amanda::Config::get_config_dir().
700 2008-01-07 Jean-Louis Martineau <martineau@zmanda.com>
701 * config/automake/scripts.am: Don't set CHECK_PERL.
702 * changer-src/Makefile.am: Set CHECK_PERL.
703 * client-src/Makefile.am: Set CHECK_PERL.
704 * dumper-src/Makefile.am: Set CHECK_PERL.
705 * common-src/Makefile.am: Set CHECK_PERL.
707 2008-01-07 Jean-Louis Martineau <martineau@zmanda.com>
708 * common-src/krb5-security.c: Fix argument to resolve_hostname.
709 * config/amanda/krb4-security.m4: Check .a or .so lib.
710 * config/amanda/krb5-security.m4: Check .a or .so lib.
712 2008-01-07 Jean-Louis Martineau <martineau@zmanda.com>
713 * device-src/Makefile.am: Merge typo.
714 * example/Makefile.am: Merge Typo.
716 2007-12-27 Dustin J. Mitchell <dustin@zmanda.com>
717 * configure.in config/amanda/printf.m4: remove unused
720 2007-12-27 Paddy Sreenivasan <paddy@zmanda.com>
721 * server-src/reporter.c: Check for NULL mailto
723 2007-12-27 Satya Ganga <gsat@zmanda.com>
724 * server-src/amserverconfig.pl: holding disk will be created
725 only if we have at least 1G free space in the Amanda home dir
727 2007-12-27 Ian Turner <ian@zmanda.com>
728 * server-src/taperscan.c server-src/taper.c: only print error_message
731 2007-12-27 Dustin J. Mitchell <dustin@zmanda.com>
732 * server-src/amrmtape.sh: remove @DB_EXT@, which no longer
733 exists (since 2007-10-09).
735 2007-12-26 Dustin J. Mitchell <dustin@zmanda.com>
736 * server-src/amverify.sh: fix multiple non-portable shell
739 2007-12-23 Dustin J. Mitchell <dustin@zmanda.com>
740 Large-scale merge of perl interface to Amanda, along with
741 a fleet of related changes. Patch authors are given for
742 changes not made by Dustin.
744 * perl/Makefile.am config/amanda/swig.m4: use
745 ExtUtils::Embed::perl_inc() to get the include directory
746 and let Amanda's compiler/linker flags and libtool take
748 * perl/Amanda/Config.swg: use accessors for config_name,
749 config_filename, and config_dir
750 * server-src/amcheckdump.pl server-src/amdevcheck.pl
751 perl/Amanda/Util.swg installcheck/Amanda_Config.pl: use
753 * perl/Amanda/Util.swg common-src/amanda.h: use a .-relative
754 path in two #include directives to avoid accidentally
755 including perl's headers of the same name; this is a temporary
756 hack until a larger-scale overhaul of Amanda's headers is done.
757 * config/amanda/swig.m4: error out if shared libraries are disabled
758 * server-src/amcheckdump.pl: Use timestamp from latest
759 amdump.1 or amflush.1 log file. (Jean-Louis Martineau
760 <martineau@zmanda.com>)
761 * server-src/amcheckdump.pl: Output partnum. (Jean-Louis
762 Martineau <martineau@zmanda.com>)
763 * server-src/amcheckdump.pl: Add a '/' after the config name.
764 (Jean-Louis Martineau <martineau@zmanda.com>)
765 * perl/Amanda/Logfile.swg perl/Amanda/Device.swg perl/Makefile.am
766 perl/amglue/integers.swg perl/amglue/amglue.h
767 perl/amglue/amglue.swg perl/amglue/glib.swg
768 perl/amglue/bigint.c: Always use Math::BigInt to convert numeric
769 quantities from C to Perl, to avoid integer overflow and automatic
771 * perl/Amanda/Debug.swg client-src/versionsuffix.c
772 common-src/util.c common-src/util.h common-src/debug.c
773 common-src/debug.h common-src/conffile.c
774 common-src/conffile.h common-src/file.c common-src/file.h:
775 - move get_/set_pname to util.c
776 - rename RunningAsWho to running_as_flags
777 - cache original cwd before changing it in safe_cd, and use the
778 cached value in conffile
779 * server-src/logfile.c: call set_logerror in open_log
780 * client-src/runtar.c common-src/debug.c common-src/amanda.h
781 common-src/file.c common-src/file.h: replace client_uid,
782 client_gid globals with functions, to eliminate the need
784 * server-src/logfile.c: Update warning about globals
785 * server-src/find.c: Update search_logfile to possibly search
786 all tapes in a logfile. Also, other miscellaneous
787 refactoring. (Ian Turner <ian@zmanda.com>)
788 * server-src/find.h: Document new interface.
789 * server-src/amindexd.c, server-src/amadmin.c,
790 server-src/amtrmidx.c, restore-src/amfetchdump.c: Use new
792 * common-src/util.c, common-src/util.h: New function
793 compare_possibly_null_strings, which is like strcmp() but
794 orders NULL pointers before non-null strings.
795 * Makefile.am: reflect BINARY_OWNER into distcheck-triggered
797 * common-src/conffile.c common-src/conffile.h: completely
798 new API, almost complete rewrite
799 * common-src/columnar.c common-src/columnar.h
800 common-src/Makefile.am: new files, extracted from
802 * oldrecover-src/amrecover.c oldrecover-src/extract_list.c
803 changer-src/chg-scsi-chio.c changer-src/chg-scsi.c
804 client-src/sendbackup.c client-src/sendsize.c
805 client-src/selfcheck.c amandad-src/amandad.c
806 device-src/device.c recover-src/amrecover.c
807 recover-src/extract_list.c server-src/diskfile.h
808 server-src/logfile.c server-src/amlogroll.c
809 server-src/amindexd.c server-src/amcheck.c
810 server-src/dumper.c server-src/planner.c
811 server-src/chunker.c server-src/amadmin.c
812 server-src/amtape.c server-src/amcleanupdisk.c
813 server-src/getconf.c server-src/amflush.c
814 server-src/amtrmlog.c server-src/driverio.c
815 server-src/holding.c server-src/driverio.h
816 server-src/driver.c server-src/reporter.c server-src/taper.c
817 server-src/find.c server-src/amindex.c server-src/amtrmidx.c
818 server-src/diskfile.c server-src/amlabel.c
819 perl/Amanda/Config.swg config/amanda/defaults.m4
820 restore-src/amidxtaped.c restore-src/amrestore.c
821 restore-src/restore.c restore-src/amfetchdump.c
822 common-src/util.h common-src/glib-util.c tape-src/tapeio.c
823 common-src/amanda.h tape-src/tapeio.h: use new conffile API
824 * installcheck/Makefile.am installcheck/Amconfig.pm.in
825 installcheck/Installdirs.pm.in installcheck/Amanda_Config.pl
826 installcheck/Amanda_Changer.pl installcheck/Amanda_Cmdline.pl
827 installcheck/Amanda_Logfile.pl installcheck/amcheckdump.pl
828 installcheck/amdevcheck.pl installcheck/amgetconf.pl:
829 new unit tests for new modules, applications
830 * server-src/amdevcheck.pl server-src/amcheckdump.pl: new pure-
831 Perl applications; amcheckdump.pl is by Ian Turner
833 * perl/Amanda perl/Makefile.am perl/Amanda/Paths.pm.in
834 perl/Amanda/Logfile.swg perl/Amanda/Changer.pm
835 perl/Amanda/Config.swg perl/Amanda/Debug.swg
836 perl/Amanda/Tapefile.swg perl/Amanda/Cmdline.swg
837 perl/Amanda/Util.swg perl/Amanda/Device.swg: new directory
838 containing perl interfaces to Amanda modules
839 * perl/amglue perl/amglue/integers.swg perl/amglue/amglue.h
840 perl/amglue/exports.swg perl/amglue/ghashtable.c
841 perl/amglue/amglue.swg perl/amglue/constants.swg
842 perl/amglue/glib.swg perl/amglue/bigint.c: functions and
843 macros to glue Amanda to perl
845 2007-12-21 Satya Ganga <gsat@zmanda.com>
846 * server-src/amserverconfig.pl: correct holding disk size
847 validation logic so that it works on solaris too
849 2007-12-21 Satya Ganga <gsat@zmanda.com>
850 * server-src/amserverconfig.pl: amserverconfig needs to create a empty
853 2007-12-21 Jean-Louis Martineau <martineau@zmanda.com>
854 Bug reported by Tim Bunnell.
855 * client-src/getfsent.c (dev2rdev): Do it only for block device.
857 2007-12-21 Jean-Louis Martineau <martineau@zmanda.com>
858 * server-src/taper.c: Unquote holding_disk_file.
860 2007-12-20 Dustin J. Mitchell <dustin@zmanda.com>
861 * common-src/debug.h: fix (cosmetic, but confusing) typo
863 2007-12-19 Jean-Louis Martineau <martineau@zmanda.com>
864 * common-src/util.c (quote_string): Quote ':'.
866 2007-12-19 Ian Turner <ian@zmanda.com>
867 * server-src/taper.c: Don't crash if there is a problem writing a
870 2007-12-19 Jean-Louis Martineau <martineau@zmanda.com>
871 * server-src/planner.c: Correctly set planner_timestamp if
872 usetimestamps is set to no.
874 2007-12-18 Jean-Louis Martineau <martineau@zmanda.com>
875 * server-src/driverio.c (childstr): Check dumper->chunker.
877 2007-12-14 Ian Turner <ian@zmanda.com>
878 * device-src/tape-device.c: Try to open tape devices as O_NONBLOCK
879 at first; if the device is not ready, we will let the changer script
880 retry, instead of having the kernel do it for us.
881 * device-src/tape-ops.h, device-src/tape-aix.c,
882 device-src/tape-uware.c, device-src/tape-xenix.c,
883 device-src/tape-posix.c: Add new tape_is_ready() function.
885 2007-12-14 Jean-Louis Martineau <martineau@zmanda.com>
886 * config/amanda/dumpers.m4: Don't set STAR in AMANDA_PROG_SAMBA_CLIENT.
888 2007-12-14 Jean-Louis Martineau <martineau@zmanda.com>
889 * server-src/find.c (search_logfile): Parse taper result line before
892 2007-12-14 Jean-Louis Martineau <martineau@zmanda.com>
893 * server-src/find.c (find_log): Result should not have duplicate
896 2007-12-10 Jean-Louis Martineau <martineau@zmanda.com>
897 * server-src/amstatus.pl: Parse NEW-TAPE line
898 * server-src/taper.c: Add the handle in NEW-TAPE result.
899 * server-src/driver.c: Check number of arguments in NEW-TAPE result.
901 2007-12-10 Jean-Louis Martineau <martineau@zmanda.com>
902 * config/amanda/progs.m4: Define AMLINT To 'echo;false' to no lint
905 2007-12-10 Jean-Louis Martineau <martineau@zmanda.com>
906 * common-src/bsdudp-security.c: Loop over all address until a bind
908 * common-src/bsd-security.c: Loop over all address until a bind
910 * common-src/stream.c: Loop over all address until a connect is
913 2007-12-07 Jean-Louis Martineau <martineau@zmanda.com>
914 * server-src/amindexd.c: Don't use duplicate part.
916 2007-12-07 Jean-Louis Martineau <martineau@zmanda.com>
917 * restore-src/amfetchdump.c: Don't use duplicate part.
919 2007-12-07 Jean-Louis Martineau <martineau@zmanda.com>
920 * server-src/holding.c (holding_get_all_datestamps): Don't add
923 2007-12-07 Jean-Louis Martineau <martineau@zmanda.com>
924 * server-src/amcheck.c: Don't complain about correct unlabeled
927 2007-12-06 Jean-Louis Martineau <martineau@zmanda.com>
928 * client-src/sendbackup.c, client-src/sendsize.c,
929 client-src/selfcheck.c, client-src/calcsize.c,
930 amandad-src/amandad.c, device-src/device.c,
931 device-src/vfs-device.c, server-src/changer.c,
932 server-src/dumper.c, server-src/planner.c,
933 server-src/chunker.c, server-src/server_util.c,
934 server-src/taperscan.c, server-src/driver.c,
935 server-src/taper.c, server-src/find.c,
936 server-src/diskfile.c, common-src/pipespawn.c,
937 common-src/util.c, common-src/conffile.c: Fix memory leak.
939 2007-12-06 Jean-Louis Martineau <martineau@zmanda.com>
940 * server-src/find.c (search_logfile): Parse PARTPARTIAL line.
942 2007-12-06 Jean-Louis Martineau <martineau@zmanda.com>
943 * server-src/taper.c: Use g_strdup if pointer can be NULL.
945 2007-12-05 Jean-Louis Martineau <martineau@zmanda.com>
946 * server-src/taperscan.c: Don't output the latest changer result.
948 2007-12-05 Jean-Louis Martineau <martineau@zmanda.com>
949 * common-src/util.c (resolve_hostname): Take a new socktype argument.
950 * common-src/util.h (resolve_hostname): New prototype.
951 * common-src/bsd-security.c, common-src/bsdtcp-security.c,
952 common-src/bsdudp-security.c, common-src/krb5-security.c,
953 common-src/rsh-security.c, common-src/security-util.c,
954 common-src/ssh-security.c, common-src/stream.c,
955 recover-src/set_commands.c, server-src/amcheck.c,
956 server-src/dumper.c: Call resolve_hostname with socktype argument.
958 2007-12-05 Jean-Louis Martineau <martineau@zmanda.com>
959 * common-src/util.c (resolve_hostname): Don't return V4MAPPED address.
960 * common-src/amanda.h (AI_V4MAPPED, AI_ALL): Don't define.
962 2007-12-04 Ian Turner <ian@zmanda.com>
963 * server-src/taperscan.c, server-src/taperscan.h: Support persistence
964 between invocations of taper_scan(), so that you can get second-best
966 * server-src/amcheck.c, server-src/amtape.c: Use the new taperscan
968 * server-src/taper.c: Do the right thing if there is an error writing
971 2007-12-04 Jean-Louis Martineau <martineau@zmanda.com>
972 * server-src/amtape.c: Correctly output the result of taper scan.
974 2007-12-04 Jean-Louis Martineau <martineau@zmanda.com>
975 * server-src/amcheck.c, server-src/dumper.c
976 server-src/planner.c: Don't crash is securoty driver is not found.
978 2007-12-04 Jean-Louis Martineau <martineau@zmanda.com>
979 * server-src/changer.c: Print better message if the changer script
982 2007-12-03 Jean-Louis Martineau <martineau@zmanda.com>
983 * man/xml-source/amserverconfig.8.xml: Fix indentation.
985 2007-11-30 Jean-Louis Martineau <martineau@zmanda.com>
986 * server-src/taper-mem-port-source.c, server-src/taper-file-source.c
987 server-src/taper.c: Cast guint64 to uintmax_t and use %ju to print.
989 2007-11-30 Jean-Louis Martineau <martineau@zmanda.com>
990 * man/xml-source/amanda.conf.5.xml: Improve documentation.
991 * example/amanda.conf.in: Ditto.
993 2007-11-30 Jean-Louis Martineau <martineau@zmanda.com>
994 * server-src/server_util.c (cmdstr): Remove SPLIT-NEEDNEXT
996 * server-src/server_util.h (cmd_t): Remove SPLIT_NEEDNEXT
998 * server-src/taper.c: Send part_kbyte in PARTDONE result.
999 * server-src/amstatus.pl: Parse part_kbyte in PARTDONE result line.
1000 Parse REQUEST-NEW_TAPE line.
1001 * common-src/conffile.h: CONF_FLUSH_THRESHOLD_DUMPED,
1002 CONF_FLUSH_THRESHOLD_SCHEDULE, CONF_TAPERFLUSH.
1003 * common-src/conffile.c: CNF_FLUSH_THRESHOLD_DUMPED,
1004 CNF_FLUSH_THRESHOLD_SCHEDULE, CNF_TAPERFLUSH.
1005 * server-src/driverio.h: Add Many globals.
1006 * server-src/driver.c: Split runq in runq and directq.
1007 Implement flush-threshold-*/taperflush.
1008 * example/amanda.conf.in: Example for flush-threshold-* and taperflush.
1009 * man/xml-source/amanda.conf.5.xml: Document flush-threshold-*
1012 2007-11-30 Jean-Louis Martineau <martineau@zmanda.com>
1013 * server-src/taperscan.c: Fix output formating.
1015 2007-11-30 Jean-Louis Martineau <martineau@zmanda.com>
1016 * recover-src/set_commands.c: Add a terminating '/' in cd_regex.
1017 Never add it in cd_dir.
1019 2007-11-30 Jean-Louis Martineau <martineau@zmanda.com>
1020 * config/automake/scripts.am: Build of the scripts also depend on
1021 $(top_builddir)/config.status
1023 2007-11-30 Jean-Louis Martineau <martineau@zmanda.com>
1024 * server-src/amdump.sh: Pass a --startime argument to planner.
1025 * server-src/planner.c: Get the --starttime command line argument.
1027 2007-11-30 Jean-Louis Martineau <martineau@zmanda.com>
1028 * server-src/amstatus.pl: New --locale-independent-date-format option.
1029 * man/xml-source/amstatus.8.xml: Document it.
1030 * server-src/amflush.c: Output a "starttime-locale-independent" line.
1031 * server-src/amdump.sh: Output a "starttime-locale-independent" line.
1033 2007-11-30 Jean-Louis Martineau <martineau@zmanda.com>
1034 * server-src/find.c: Remove seen_chunk_of function.
1036 2007-11-28 Jean-Louis Martineau <martineau@zmanda.com>
1037 * config/macro-archive/docbook-dtd.m4: Check return code of 5.
1039 2007-11-28 Dustin J. Mitchell <dustin@zmanda.com>
1040 * installcheck/Amconfig.pm.in: fix quoting error leading to
1041 directories named '"'
1043 2007-11-28 Dustin J. Mitchell <dustin@zmanda.com>
1044 * common-src/file.c: only chown new directories when running as root
1046 2007-11-28 Dustin J. Mitchell <dustin@zmanda.com>
1047 * config/automake/installperms.am: strip directory names from build
1048 filenames when setting permissions; fixes errors from examples/
1051 2007-11-28 Dustin J. Mitchell <dustin@zmanda.com>
1052 * man/Makefile.am: Allow installs, but not tarballs, without
1055 2007-11-27 Jean-Louis Martineau <martineau@zmanda.com>
1056 * server-src/planner.c: Check dp->todo before using (est)->dp.
1058 2007-11-27 Jean-Louis Martineau <martineau@zmanda.com>
1059 * device-src/device.c (default_device_start): Overwrite label only
1060 if mode == ACCESS_WRITE.
1062 2007-11-20 Ian Turner <ian@zmanda.com>
1063 * device-src/device.c, device-src/device.h
1064 device-src/tape-device.c, device-src/rait-device.c: Change API
1065 semantics with respect to label reading. This patch makes it
1066 possible to open and read a volume with properties while only
1067 reading its label once. Thanks to Jean-Louis Martineau
1068 <martineau@zmanda.com> for suggesting this change.
1070 2007-11-20 Ian Turner <ian@zmanda.com>
1071 * device-src/vfs-device.c: Be more thourough about updating volume
1074 2007-11-20 Ian Turner <ian@zmanda.com>
1075 * changer-src/chg-lib.sh.in: Use a more robust check for MT path.
1076 * server-src/amverify.sh.in: Use amrestore instead of amdd/ammt.
1078 2007-11-09 Ian Turner <ian@zmanda.com>
1079 * server-src/taperscan.c: Fix a memory allocation bug and be a little
1082 2007-11-06 Ian Turner <ian@zmada.com>
1083 * server-src/taperscan.c: Print a proper message if there is
1084 only one flag from device_read_label().
1086 2007-11-26 Dustin J. Mitchell <dustin@zmanda.com>
1087 * configure.in config/amanda/config.m4 common-src/genversion.c
1088 common-src/Makefile.am: explicitly generate svn info at configure
1089 time, rather than relying on svn keywords
1091 2007-11-26 Ian Turner <ian@zmanda.com>
1092 * server-src/Makefile.am: Move amdevcheck from libexec/ to sbin/.
1093 Thanks to Satya Ganga <gsat@zmanda.com> for noticing this problem.
1095 2007-11-26 John Franks <jrfranks@zmanda.com>
1096 * common-src/debug.c For cygwin builds: change to
1097 close and reopen log file handle on successful rename.
1098 This is to ensure that Windows has no possibility of
1099 preventing access to the original file name if processes
1102 2007-11-23 Jean-Louis Martineau <martineau@zmanda.com>
1103 * server-src/amflush.c: Send config option (-o) to child process.
1105 2007-11-23 Jean-Louis Martineau <martineau@zmanda.com>
1106 * server-src/planner.c: Don't set est(dp)->state before testing it.
1108 2007-11-23 Jean-Louis Martineau <martineau@zmanda.com>
1109 * config/amanda/readline.m4: Include termcap, curses or ncurese in LIBS.
1111 2007-11-23 Jean-Louis Martineau <martineau@zmanda.com>
1112 * server-src/diskfile.c (match_disklist): Fix for disk not found.
1114 2007-11-23 Jean-Louis Martineau <martineau@zmanda.com>
1115 * server-src/driver.c: Don't release taper_ev_read in
1116 start_degraded_mode.
1118 2007-11-20 Paddy Sreenivasan <paddy@zmanda.com>
1119 * amanda.spec: Added calls to Zmanda
1120 * example/amanda-client.conf.in: Switch to bsdtcp
1122 2007-11-14 Jean-Louis Martineau <martineau@zmanda.com>
1123 * server-src/amstatus.pl: Handle taper FAILED message.
1125 2007-11-14 Jean-Louis Martineau <martineau@zmanda.com>
1126 * config/amanda/userid.m4: Use $enableval in AC_ARG_ENABLE.
1128 2007-11-07 Paddy Sreenivasan <paddy@zmanda.com>
1129 * server-src/amserverconfig.pl server-src/amaddclient.pl:
1130 new configuration tools
1131 * common-src/amgpgcrypt.pl common-src/amcryptsimple.pl:
1132 new encryption plugins
1133 * man/xml-source/amaddclient.8.xml man/xml-source/amgpgcrypt.8.xml
1134 man/xml-source/amcryptsimple.8.xml
1135 man/xml-source/amserverconfig.8.xml: man pages for new tools
1136 * example/template.d/* - Configuration file templates
1137 * example/amanda-client.conf.in: Updated amanda configuration file
1138 * example/Makefile.am man/Makefile.am server-src/Makefile.am
1139 common-src/Makefile.am: Added amserverconfig, amaddclient,
1140 amgpgcrypt and amcryptsimple
1141 * device-src/Makefile.am: Fixed libamdevice version
1142 * configure.in: Added template files
1143 * amanda.spec: Updated spec file for new utilities
1145 2007-11-01 Dustin J. Mitchell <dustin@zmanda.com>
1146 * config/automake/installperms.am: new method of specifying
1147 permissions on installed files
1148 * config/amanda/userid.m4 configure.in: add --disable-installperms
1149 to disable any permsisions settings (useful for packaging builds)
1150 * oldrecover-src/Makefile.am example/Makefile.am
1151 changer-src/Makefile.am amplot/Makefile.am
1152 client-src/Makefile.am amandad-src/Makefile.am man/Makefile.am
1153 dumper-src/Makefile.am recover-src/Makefile.am
1154 server-src/Makefile.am restore-src/Makefile.am
1155 Makefile.am support/Makefile.am common-src/Makefile.am
1156 tape-src/Makefile.am: use installperms.am
1158 2007-11-01 Dustin J. Mitchell <dustin@zmanda.com>
1159 Suggested by Jon LaBadie
1160 * config/automake/precompile.am: new rule to make
1161 precompiler output files; useful for debugging
1162 * */Makefile.am: include precompile.am
1164 2007-11-01 Jean-Louis Martineau <martineau@zmanda.com>
1165 * AUTHORS: Add Dustin J. Mitchell.
1167 2007-10-31 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
1168 * most C files, amanda.h: Switch to using the g_printf family, which
1169 supports a consistent set of %-conversions, including the 'z'
1170 (size_t) and 'j' (intmax_t) size specifiers. Convert various
1171 printf format strings accordingly.
1173 2007-10-31 Dustin J. Mitchell <dustin@zmanda.com>
1174 * common-src/genversion.c common-src/Makefile.am: fix BUILD_REV
1175 and BUILD_BRANCH to work even when packages are built from
1176 distribution tarballs
1178 2007-10-31 Ian Turner <ian@zmanda.com>
1179 * server-src/taperscan.c: Don't segfault if there is an error opening
1180 a device during taperscan.
1182 2007-10-30 Dustin J. Mitchell <dustin@zmanda.com>
1183 * docs autogen INSTALL UPGRADING configure.in
1184 DEVELOPING Makefile.am: remove docs/ directory in favor of
1185 manpages and online reference; most docs/* were outdated
1187 2007-10-29 Dustin J. Mitchell <dustin@zmanda.com>
1188 * changer-src/chg-zd-mtx.sh: fix typo
1190 2007-10-29 Ian Turner <ian@zmanda.com>
1191 * restore-src/restore.c: Don't mention slot numbers when running
1194 2007-10-29 Ian Turner <ian@zmanda.com>
1195 * man/xml-source/amfetchdump.8.xml: Remove documentation for
1198 2007-10-26 Dustin J. Mitchell <dustin@zmanda.com>
1199 Add support for post-install tests, which can be more thorough than
1201 * configure.in Makefile.am installcheck/*: new directory
1202 * installcheck/amgetconf.pl: test some of amgetconf's functionality
1203 * docs/developing.txt: notes on various test mechanisms
1204 * config/automake/scripts.am: add CHECK_PERL_FLAGS
1205 * common-src/debug.c: only try to chown debug files if running as root
1207 2007-10-25 Dustin J. Mitchell <dustin@zmanda.com>
1208 * config/mkinstalldirs config/depcomp config/config.guess
1209 config/ltmain.sh config/config.sub config/missing
1210 config/install-sh config/ylwrap: update files with automake-1.10,
1212 * autogen: don't call automake with --add-missing, as it stomps all
1213 over the working copy
1215 2007-10-25 Dustin J. Mitchell <dustin@zmanda.com>
1216 * gnulib/* config/*: updated to latest gnulib
1217 * gnulib/regenerate/regenerate: update gnulib date
1218 * gnulib/regenerate/getaddrinfo-cygwin.patch: update to patch new
1220 * device-src/tests/vfs_test.c: mkdtemp.h no longer exists
1222 2007-10-24 Jean-Louis Martineau <martineau@zmanda.com>
1223 * client-src/Makefile.am: Remove duplicate entry for
1224 libamclient_la_SOURCES.
1226 2007-10-23 Dustin J. Mitchell <dustin@zmanda.com>
1227 * config/automake/scripts.am: rules to build (substitute) scripts
1228 * config/automake/vars.am: define empty variables for later appending
1229 * config/automake/check-perl.am config/automake/check-shell.pm:
1231 * changer-src/Makefile.am amplot/Makefile.am client-src/Makefile.am
1232 dumper-src/Makefile.am server-src/Makefile.am
1233 common-src/Makefile.am: Use new include files
1234 * configure.in: remove now-unnecessary AC_CONFIG_FILES
1235 * *.sh.in *.pl.in *.awk.in: renamed
1237 2007-10-20 Jean-Louis Martineau <martineau@zmanda.com>
1238 * server-src/reporter.c: Always call sort_disks.
1240 2007-10-20 Jean-Louis Martineau <martineau@zmanda.com>
1241 * man/xml-source/amanda.conf.5.xml: Correctly document portrange.
1242 * common-src/conffile.c: Fix portrange.
1244 2007-10-20 Jean-Louis Martineau <martineau@zmanda.com>
1245 * common-src/conffile.c: Allow reserved-udp-port and reserved-tcp-port
1246 in amanda-client.conf.
1248 2007-10-17 Dustin J. Mitchell <dustin@zmanda.com>
1249 * common-src/amanda.h: remove amflock cruft
1251 2007-10-16 Dustin J. Mitchell <dustin@zmanda.com>
1252 * config/amanda/defaults.m4: Change EXAMPLE_TAPEDEV to use the 'tape:'
1253 syntax, and to indicate "you need to change this!" more explicitly
1255 2007-10-16 Ian Turner <ian@zmanda.com>
1256 * common-src/glib-util.c: Allow use of units in parsing GValues; in
1257 particular, this allows use of units when specifying device
1258 properties in the configuration file.
1259 * common-src/conffile.c, common-src/conffile.h: Make unit suffixes
1260 available outside of conffile.c.
1262 2007-10-16 Ian Turner <ian@zmanda.com>
1263 * device-src/device.c: Fix a compilation error in
1264 device_set_startup_properties_from_config().
1266 2007-10-16 Ian Turner <ian@zmanda.com>
1267 * man/xml-source/amanda.conf.5.xml, server-src/taper.c,
1268 common-src/conffile.c, common-src/conffile.h: Add new
1269 configuration directive device_output_buffer_size to replace
1272 2007-10-15 Ian Turner <ian@zmanda.com>
1273 * device-src/device.c: Don't complain about problems setting
1274 MAX_VOLUME_USAGE; do complain about problems setting
1277 2007-10-16 Jean-Louis Martineau <martineau@zmanda.com>
1278 * client-src/sendbackup-gnutar.c: Use GNUTAR.
1280 2007-10-15 Dustin J. Mitchell <dustin@zmanda.com>
1281 * device-src/device.c: do not fall back to tape:/foo if the tape
1282 device is not available (WANT_TAPE_DEVICE is not set)
1284 2007-10-12 Dustin J. Mitchell <dustin@zmanda.com>
1285 * changer-src/chg-mtx.sh.in changer-src/chg-zd-mtx.sh.in
1286 changer-src/chg-multi.sh.in: add missing definition of prefix
1288 2007-10-12 Jean-Louis Martineau <martineau@zmanda.com>
1289 * common-src/protocol.c (s_repwait): return PA_FINISH on P_NAK.
1291 2007-10-11 Dustin J. Mitchell <dustin@zmanda.com>
1292 * config/amanda/tape.m4: fix typo (have_MTIOCTOP -> HAVE_MTIOCTOP)
1294 2007-10-10 Dustin J. Mitchell <dustin@zmanda.com>
1295 * common-src/amflock-test.c common-src/amflock-lnlock.c: don't use
1296 AMANDA_TMPDIR during build-time testing
1298 2007-09-14 Dustin J. Mitchell <dustin@zmanda.com>
1299 * recover-src/uscan.l recover-src/extract_list.c
1300 recover-src/uparse.y recover-src/amrecover.h
1301 recover-src/help.c recover-src/set_commands.c: deprecate
1302 'settape', add 'setdevice'
1303 * man/xml-source/amrecover.8.xml: corresponding doc update
1304 * example/amanda.conf.in: update comments in example config,
1305 change default value of amrecover_changer from the confusing
1308 2007-10-09 Dustin J. Mitchell <dustin@zmanda.com>
1309 * common-src/amflock-test.c: lock files in the cwd, rather than /tmp,
1310 and pay attention to errors from unlink()
1312 2007-10-09 Dustin J. Mitchell <dustin@zmanda.com>
1313 * gnulib/regenerate/regenerate gnulib/mkdtemp.c gnulib/mkdtemp.h
1314 gnulib/gettimeofday.c gnulib/sys_time_.h gnulib/tempname.c
1315 gnulib/tempname.h gnulib/stat_.h gnulib/Makefile.am
1316 device-src/tests/vfs_test.c config/gnulib/mkdtemp.m4
1317 config/gnulib/sys_time_h.m4 config/gnulib/tempname.m4
1318 config/gnulib/gnulib-comp.m4 config/gnulib/sys_stat_h.m4
1319 config/gnulib/gnulib-cache.m4 config/gnulib/gettimeofday.m4:
1320 add 'mkdtemp' gnulib module, use it in vfs_test.c
1322 2007-10-09 Jean-Louis Martineau <martineau@zmanda.com>
1323 * common-src/util.c (portable_readdir): Don't use reentrant function.
1325 2007-10-08 Dustin J. Mitchell <dustin@zmanda.com>
1326 * autogen configure.in config/macro-archive/*.m4
1327 config/amanda/*.m4 config/libtool/*.m4: move most autoconf
1328 checks to macros in .m4 files. Hilights of changes along the way:
1329 - use AC_REQUIRES to enforce check ordering
1330 - Add a post-configure summary of important results
1331 - use AM_CONDITIONAL to control conditional compilation of whole
1332 files, instead of preprocessor macros
1333 - correct spelling of PRINCIPLE -> PRINCIPAL
1334 - remove support for dbmalloc (we use valgrind, coverity, etc. now)
1335 - remove support for infofiles in anything but text format
1336 - change DONT_SUID_ROOT to !WANT_SETUID_ROOT
1337 - remove unused --with-broken-fsf
1338 - remove multiple unused function and header checks, the defines
1339 from which do not appear in any source file
1340 - remove LTLIBOBJS cruft based on
1341 http://www.delorie.com/gnu/docs/autoconf/autoconf_165.html
1342 - remove unused LTALLOCA definition based on
1343 http://www.delorie.com/gnu/docs/libtool/libtool_30.html
1344 - use autoconf macro archive's
1345 AC_DEFINE_DIR to expand $prefix, etc. in directory variables
1346 - do not *require* --with-{user,group}; this allows 'make distcheck'
1348 * docs/developing.txt: describe how to update gnulib, libtool, and
1350 * po/reautopoint.patch po/reautopoint: script to update gettext,
1351 parallel to gnulib/regenerate/regenerate
1352 * amandad-src/amandad.c changer-src/scsi-aix.c
1353 changer-src/scsi-bsd.c changer-src/scsi-cam.c
1354 changer-src/scsi-changer-driver.c changer-src/scsi-chio.c
1355 changer-src/scsi-hpux.c changer-src/scsi-hpux_new.c
1356 changer-src/scsi-irix.c changer-src/scsi-linux.c
1357 changer-src/scsi-proto.c changer-src/scsi-solaris.c
1358 changer-src/sense.c client-src/calcsize.c client-src/getfsent.c
1359 client-src/selfcheck.c client-src/sendbackup.c
1360 client-src/sendsize.c common-src/alloc.c common-src/amanda.h
1361 common-src/conffile.c common-src/debug.c common-src/file.c
1362 common-src/genversion.c common-src/krb4-security.c
1363 common-src/writev.c device-src/tape-posix.c server-src/amadmin.c
1364 server-src/amcheck.c server-src/amlabel.c server-src/amlogroll.c
1365 server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c
1366 server-src/changer.c server-src/chunker.c server-src/diskfile.c
1367 server-src/driver.c server-src/dumper.c server-src/getconf.c
1368 server-src/infofile.c server-src/infofile.h server-src/planner.c
1369 server-src/reporter.c tape-src/output-tape.c: changes corresponding
1370 to simplifications and fixes in autoconf
1371 * gnulib/regenerate/no-error.patch gnulib/regenerate/regenerate: no
1372 need to create gnulib.m4i anymore
1374 2007-10-08 Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
1375 * example/amanda.conf.in: add segate LTO tapetype
1377 2007-10-08 Paddy Sreenivasan <paddy@zmanda.com>
1378 * changer-src/chg-lib.sh.in
1379 changer-src/chg-null.sh.in changer-src/chg-disk.sh.in
1380 changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in
1381 changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in
1382 amplot/amplot.sh.in client-src/patch-system.sh.in
1383 server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in
1384 server-src/amrmtape.sh.in server-src/amverify.sh.in
1385 server-src/amfreetapes.sh.in server-src/amcleanup.sh.in
1386 server-src/amdump.sh.in common-src/amanda-sh-lib.sh.in
1387 common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt.sh.in
1388 common-src/amaespipe.sh.in common-src/Makefile.am
1389 common-src/amcrypt-ossl.sh.in: move amanda-sh-lib.sh from
1390 $libexecdir/amanda to just $libexecdir
1392 2007-10-04 Dustin J. Mitchell <dustin@zmanda.com>
1393 * device-src/tests/Makefile.am device-src/tests/vfs_test.c: add a test
1395 * device-src/property.c device-src/vfs-device.c: add
1398 2007-10-04 Dan Locks <dwlocks@zmanda.com>
1399 * amanda.spec: add .spec file Zmanda uses for community builds
1401 2007-10-04 Dustin J. Mitchell <dustin@zmanda.com>
1402 * device-src/device.c device-src/Makefile.am configure.in: add
1403 WANT_TAPE_DEVICE conditional, for machines that have no tape
1404 support whatsoever (Mac OS X)
1406 2007-10-03 Dan Locks <dwlocks@zmanda.com>
1407 * configure.in: Added /opt/local/bin AC_PATH_PROG(PKG_CONFIG.. for
1408 mac osx and macports
1410 2007-10-03 Jean-Louis Martineau <martineau@zmanda.com>
1411 * server-src/driver.c: Go in degraded mode after out of tape.
1413 2007-10-02 Jean-Louis Martineau <martineau@zmanda.com>
1414 * man/xml-source/amanda.conf.5.xml: Fix indentation.
1416 2007-10-02 Dustin J. Mitchell <dustin@zmanda.com>
1417 * server-src/amcheck.c: Fix typo in merge found by
1418 martineau@zmanda.com
1420 2007-10-01 Ian Turner <ian@zmanda.com>
1421 * device-src/rait-device.c, device-src/queueing.c,
1422 device-src/tests/device_test.c, device-src/device.h,
1423 device-src/device.c: Remove device_is_eof() function in favor of
1424 accessing is_eof member directly.
1426 2007-10-01 Dustin J. Mitchell <dustin@zmanda.com>
1428 * amandad-src/amandad.c: fix a use-after-free
1430 2007-10-01 Ian Turner <ian@zmanda.com>
1431 * device-src/device.c: Automatically register the CANONICAL_NAME
1432 property for all devices.
1434 2007-10-01 Ian Turner <ian@zmanda.com>
1435 * device-src/tape-posix.c: Use MTEOD on systems that have it but not
1438 2007-10-01 Ian Turner <ian@zmanda.com>
1439 * device-src/device.c, device-src/vfs-device.c,
1440 device-src/rait-device.c: Use g_strdup() instead of strdup().
1442 2007-10-01 Ian Turner <ian@zmanda.com>
1443 * changer-src/chg-lib.sh.in: Fix some compilation problems on
1446 2007-09-25 Dan Locks <dwlocks@zmanda.com>
1447 * common-src/util.c: cast uid_t to long long for printf formatting
1449 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1450 * oldrecover-src/Makefile.am changer-src/Makefile.am
1451 client-src/Makefile.am amandad-src/Makefile.am
1452 recover-src/Makefile.am server-src/Makefile.am
1453 restore-src/Makefile.am common-src/Makefile.am
1454 tape-src/Makefile.am: replace -I../config with
1455 -I$(top_builddir)/config
1456 * device-src/tests/Makefile.am: Replace -I.. with
1457 -I$(top_srcdir)/device-src
1459 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1460 * client-src/sendsize.c: change "smbclient" to SAMBA_CLIENT to allow
1463 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1464 * common-src/amflock-flock.c common-src/amflock-posix.c
1465 common-src/amflock-lockf.c common-src/amflock-lnlock.c
1466 common-src/amflock.c: use G_GNUC_UNUSED to avoid compiler
1469 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1470 * common-src/amanda.h common-src/file.h: move declaration of
1471 canonicalize_pathname to file.h
1473 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1474 * common-src/util.c common-src/util.h: only check euid==uid
1475 if not RUNNING_AS_UID_ONLY; set_root_privs() checks that euid=0
1476 * client-src/runstar.c client-src/noop.c client-src/runtar.c
1477 client-src/sendbackup.c client-src/killpgrp.c
1478 client-src/sendsize.c client-src/selfcheck.c
1479 client-src/rundump.c amandad-src/amandad.c
1480 server-src/amlogroll.c server-src/amindexd.c
1481 server-src/amcheck.c server-src/dumper.c server-src/planner.c
1482 server-src/chunker.c server-src/amadmin.c server-src/amtape.c
1483 server-src/amcleanupdisk.c server-src/amflush.c
1484 server-src/amtrmlog.c server-src/amdevcheck.c
1485 server-src/driver.c server-src/reporter.c server-src/taper.c
1486 server-src/amtrmidx.c server-src/amlabel.c
1487 restore-src/amidxtaped.c restore-src/amfetchdump.c:
1488 remove RUNNING_WITHOUT_SETUID and change RUNNING_AS_SETUID_ROOT
1489 to RUNNING_AS_UID_ONLY (with corresponding checks for root-ness)
1490 * client-src/calcsize.c: drop root privs immediately, and only
1491 regain them for stat() and opendir() operations
1493 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1494 * device-src/property.c device-src/property.h: create VERBOSE property
1496 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1497 * device-src/device.h device-src/queueing.h: expand comments
1498 * tape-src/output-rait.h tape-src/output-null.c
1499 tape-src/output-null.h tape-src/output-file.c
1500 tape-src/output-file.h tape-src/output-tape.c
1501 tape-src/output-tape.h tape-src/output-rait.c: add deprecation
1504 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1505 * changer-src/chg-zd-mtx.sh.in: Don't pass stripped device names back
1508 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1509 * changer-src/chg-mtx.sh.in, changer-src/chg-manual.sh.in,
1510 changer-src/chg-zd-mtx.sh.in, changer-src/chg-juke.sh.in,
1511 changer-src/chg-chs.sh.in, changer-src/chg-multi.sh.in: Don't use
1512 ammt for anything; use system mt and only for device operations that
1514 * changer-src/chg-lib.sh.in: Support for above change.
1516 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1517 * device-src/tape-device.c: Fix a border case bug where
1518 tape_device_robust_read() would abort when called with a buffer
1519 exactly equal to the minimum read size.
1521 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1522 * device-src/tape-device.c: Use g_strdup() instead of strdup().
1524 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1525 * device-src/vfs-device.h, device-src/fd-device.c,
1526 device-src/tape-device.c, device-src/Makefile.am,
1527 device-src/fd-device.h, device-src/tape-device.h,
1528 device-src/vfs-device.c: Delete the FdDevice and make TapeDevice
1529 and VfsDevice direct descendants of Device. Also, correct all
1530 reading and writing of volume and part labels for both drivers.
1531 * server-src/amcheck.c: Unlabeled tapes are OK, at least with
1532 label_new_tapes_option.
1534 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1535 * server-src/taperscan.c: Fix the order of arguments to
1536 scan_read_label(). Patch by Dustin J. Mitchell <dustin@zmanda.com>.
1538 2007-09-25 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1539 * restore-src/restore.c: Change "no tapedev specified" message.
1541 2007-09-25 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1542 * server-src/amtape.c: changer_label should be called only on success.
1544 2007-09-25 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1545 * restore-src/restore.c: init cur_tapedev.
1547 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1548 * gnulib/regenerate/regenerate gnulib/* config/gnulib/*: add
1549 gnulib module 'fsusage'
1550 * common-src/statfs-test.c common-src/statfs.c
1551 common-src/statfs.h common-src/Makefile.am: remove old statfs
1552 * client-src/selfcheck.c client-src/calcsize.c
1553 server-src/amcheck.c server-src/driver.c: use fsusage instead of
1556 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1557 * common-src/alloc.c: Do away with debug_amfree(), which makes invalid
1558 assumptions about the way system malloc() works.
1559 * common-src/amanda.h: Update definition of amtable_free() accordingly.
1561 2007-09-25 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1562 * server-src/amadmin.c: Allow 'f' sort order.
1563 * server-src/find.c: Fix parsing of log files.
1564 * server-src/find.h (DEFAULT_SORT_ORDER): Set to "hkdlpbf".
1566 2007-09-25 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1567 * server-src/driverio.h (sched_t): Split attempted in dump_attempted
1568 and taper_attempted.
1569 * server-src/driver.c: Split attempted in dump_attempted
1570 and taper_attempted.
1571 * server-src/driver.c (file_taper_result): Retry dump if INPUT-ERROR.
1573 2007-09-25 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1574 * server-src/dumper.c (add_msg_data): Remove bogus handling of "
1577 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1578 * server-src/taper-file-source.c: If there's a problem reading the
1579 holding disk, log the error as we get it from the OS.
1581 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1582 * server-src/taper-source.c, server-src/taper.c: Do the right thing
1583 if the connection to dumper is severed before we recieve a header.
1585 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1586 * server-src/taper-source.c, server-src/taper-source.h,
1587 server-src/taper-source-test.c, server-src/taper-port-source.c,
1588 server-src/taper-port-source.h: Don't have TaperPortSource track
1589 the control FD, and make it responsible for closing the data FD.
1590 * server-src/taper.c: ditto, plus close control socket correctly.
1592 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1593 * server-src/vfs-device.c: Fix a bug where all VFS device volumes
1594 were thought unlabeled. Also do the right thing when there are
1595 extra files in the VFS volume directory.
1596 * server-src/amlabel.c: Fail if there is a problem re-reading the
1599 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1600 * device-src/device.c: Set the device name before reading the label.
1601 * device-src/fd-device.c: An invalid header indicates an unlabeled
1602 volume, not a volume error.
1603 * device-src/taper-device.c: Insufficient buffer space causes
1604 ENOMEM, not ENOSPC, at least on Linux.
1605 * server-src/amlabel.c: Correctly handle the case where
1606 device_read_label() returns exactly 1 set bit.
1608 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1609 * server-src/taper-source.c, server-src/taper-disk-port-source.c,
1610 server-src/taper.c: Be careful not to use strings from getcwd()
1611 past the next invocation of getcwd().
1613 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1614 * device-src/vfs-device.c: Use old VFS device specification.
1616 2007-09-25 Ian Turner <ian@zmanad.com> (merged by dustin@zmanda.com)
1617 * server-src/amlabel.c: Don't dump core on successful labeling.
1619 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1620 * device-src/tests/semaphore-test.c device-src/tests/Makefile.am:
1621 test semaphore module
1622 * device-src/semaphore.c: bugfixes, optimizations
1623 * device-src/semaphore.h: inline documentation
1625 2007-09-25 Nikhil Bandiwadekar <nikhil@zmanda.com> (merged by dustin@zmanda.com)
1626 * server-src/driver.c: Added quoting to directory name while logging
1627 in statistics section
1628 * server-src/reporter.c: Handled quoted string for directory name in
1631 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1632 * device-src/device.c, device-src/device.h, device-src/s3-device.c,
1633 device-src/fd-device.c, device-src/tape-device.c,
1634 device-src/vfs-device.c, device-src/rait-device.c: Implement new,
1635 more nuanced device_read_label() interface.
1636 * server-src/amcheck.c, server-src/amtape.c, server-src/taperscan.c,
1637 server-src/amlabel.c, restore-src/amrestore.c,
1638 restore-src/restore.c: Use new interface.
1639 * common-src/glib-util.c, common-src/glib-util.h: New Flags->string
1641 * server-src/amdevcheck.c: New tool to check device/volume status.
1642 * man/xml-source/amdevcheck.8.xml: Document it.
1643 * server-src/Makefile.am: Add amdevcheck
1644 * man/Makefile.am: Add amdevcheck.8
1646 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1647 * device-src/s3-device.c: adjust glib logging calls to match debug.h's
1649 * common-src/debug.c: typo
1650 * common-src/debug.h: add definitions for g_info() and g_debug() if
1653 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1654 Thanks to Pavel Pragin <ppragin@zmanda.com> for finding these issues.
1655 * server-src/amtape.c: Update the changer database in 'amtape update'.
1656 Thanks to Dustin J. Mitchell <dustin@zmanda.com> for this fix.
1657 * server-src/taperscan.c: Update the changer database during the
1658 taper scan algorithm.
1660 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1661 Thanks to Jean-Louis Martineau <martineau@zmanda.com> for these fixes:
1662 * server-src/dumper.c: Log packet to debug file.
1663 * server-src/planner.c: Improve quoting.
1664 * server-src/driver.c: Don't call free_serial if we still need it.
1665 * server-src/driver.c: Wait for dumper result if taper fail.
1666 * server-src/amstatus.pl.in: Improve parsing of initial schedule.
1668 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1669 * device-src/tape-device.c: Use the right default block size for
1672 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1673 * device-src/vfs-device.c: add forgotten device_add_property() call
1675 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1676 * server-src/taper.c: Remove an erroneous assertion. Thanks to
1677 Jean-Louis Martineau <martineau@zmanda.com> for noticing this issue.
1679 2007-09-25 Patch by Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1680 * server-src/driverio.h server-src/driver.c: Record
1681 information from first PARTDONE result. Remove duplicate
1682 update_info_dumper. Call update_info_taper as needed.
1684 2007-09-25 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1685 * restore-src/restore.c: Don't send text to prompt_out if amidxtaped.
1687 2007-09-25 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
1688 * restore-src/amfetchdump.c: Fix a bug where amfetchdump will never
1689 try to use the changer.
1691 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1692 * restore-src/amfetchdump.c: Fix a bug where amfetchdump will
1693 still try to use the changer even with the -d parameter.
1695 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1696 * man/xml-source/amadmin.8.xml server-src/amadmin.c: add an
1697 'outd' column to 'amadmin CONF holding list -l', indicating
1698 an "outdated" dump, and a '-d' option to list only outdated
1699 holding disk files. Outdated dumps are described in the
1700 amadmin documentation.
1702 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1703 * client-src/sendsize.c configure.in server-src/getconf.c
1704 restore-src/amrestore.c restore-src/amfetchdump.c
1705 common-src/util.c common-src/genversion.c common-src/util.h
1706 common-src/debug.c common-src/error.c common-src/amanda.h
1707 common-src/Makefile.am:
1708 - support the glib logging infrastructure by feeding messages
1710 - merge the error module into the debug module
1711 - document debug.h with verbose comments
1712 - call g_critical() for error() and g_error() for errordump()
1713 - remove double dgettext() call in debug_printf
1714 - remove --without-debugging (so debugging is always on)
1715 - remove mostly unused debug prefix support
1716 - remove onerror(), replacing its few uses with alternatives
1718 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1719 * device-src/tests/device_test.c configure.in
1720 recover-src/extract_list.c recover-src/uparse.y
1721 server-src/amlogroll.c server-src/dumper.c server-src/reporter.c
1722 common-src/conffile.c common-src/amanda.h common-src/getcwd.c
1723 common-src/getcwd.h common-src/Makefile.am: Replace calls
1724 to safe_getcwd with calls to g_get_current_dir(), which
1725 has the same signature and semantics.
1727 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1728 * restore-src/restore.c: Fix a bug where amfetchdump would not
1729 restore anything when given the -p option. Thanks to Jean-Louis
1730 Martineau <martineau@zmanda.com> for help in the development of
1733 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1734 * man/xml-source/amanda.conf.5.xml: note that includefile can
1736 * server-src/amcleanupdisk.c: fix local variable shadowing
1739 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1740 * server-src/holding.c (holding_walk_file): amfree(filename).
1742 2007-09-25 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
1743 * man/Makefile.am: fixes for conditional compiles
1745 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1746 * common-src/conffile.c: Clean up some bad warning suppression and
1747 obselete unused code.
1749 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1750 * example/config.site man/xml-source/amanda.conf.5.xml
1751 device-src/device.c device-src/device.h device-src/property.c
1752 device-src/fd-device.c device-src/tape-device.c
1753 device-src/property.h device-src/tape-device.h
1754 device-src/tape-ops.h server-src/amcheck.c server-src/amtape.c
1755 server-src/taperscan.c server-src/taper.c server-src/amlabel.c
1756 restore-src/amrestore.c restore-src/restore.c:
1757 This patch adds a new property READ_BUFFER_SIZE which is used
1758 only by the tape device. The VFS device still uses BLOCK_SIZE
1759 for reading; other devices don't need the property.
1761 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1762 * server-src/amcheck.c: remove debugging message
1763 * device-src/tape-posix.c: fix compilation
1764 errors when MTCOMPRESSION is not defined
1766 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1767 * Makefile.am config/Makefile.am config/ax_create_stdint_h.m4i
1768 autogen configure.in: remove AX_CREATE_STDINT_H
1769 * configure.in: add system-specific glib configuration
1770 * changer-src/scsi-cam.c device-src/device.c
1771 device-src/device.h device-src/tests/device_test.c
1772 device-src/rait-device.c server-src/amcheck.c
1773 server-src/taper.c server-src/amlabel.c
1774 restore-src/amrestore.c restore-src/restore.c
1775 common-src/glib-util.c common-src/security-util.c
1776 common-src/amanda.h common-src/krb4-security.c:
1777 replace references to stdint types and defines with glib
1780 2007-09-25 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1781 * device-src/s3.c, device-src/tape-device.c,
1782 device-src/rait-device.c: Fix a number of compiler warnings, some
1783 legimate, others not. Thanks to Dustin J. Mitchell
1784 <dustin@zmanda.com> and Jean-Louis Martineau <martineau@zmanda.com>
1785 for help identifying warnings that need fixing.
1787 2007-09-25 Dustin J. Mitchell <dustin@zmanda.com>
1788 * man/xml-source/amcleanup.8.xml server-src/amcleanupdisk.c
1789 server-src/amcleanup.sh.in: add -v option for verbose output
1790 * server-src/holding.c server-src/holding.h: rewrite
1791 implementation of the holding API to use functors
1792 * server-src/driver.c: modifications to holding API changes
1794 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1795 * device-src/device.c: Suppress a compiler warning.
1797 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1798 * device-src/device.h, device-src/device.c, device-src/fd-device.c,
1799 device-src/tape-device.c, device-src/vfs-device.c,
1800 device-src/rait-device.c: Update the seek_file API skip missing
1801 files. Thanks to Dustin J. Mitchell <dustin@zmanda.com> and
1802 Jean-Louis Martineau <martineau@zmanda.com> for help with this patch.
1803 * restore-src/restore.c: Use the new API.
1805 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1806 * client-src/Makefile.am, device-src/tests/Makefile.am,
1807 device-src/Makefile.am, configure.in, common-src/Makefile.am,
1808 tape-src/Makefile.am: Use AM_CFLAGS and LDFLAGS when
1809 compiling. These changes by Dustin J. Mitchell <dustin@zmanda.com>.
1810 * device-src/device.c, device-src/null-device.c,
1811 device-src/device.c, device-src/queueing.c, device-src/property.c,
1812 device-src/fd-device.c, device-src/s3-device.c,
1813 device-src/semaphore.h, device-src/property.h,
1814 device-src/vfs-device.c: Fix compiler warnings revealed by above
1815 change. Thanks to Jean-Louis Martineau Jean-Louis Martineau
1816 <martineau@zmanda.com> for help with these fixes.
1818 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1819 * restore-src/restore.c restore-src/restore.h:
1820 Allow NULLs in arguments to dump_match(); make it a static
1823 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1824 * device-src/device.c device-src/vfs-device.h
1825 device-src/rait-device.h device-src/device.h
1826 device-src/null-device.c device-src/tape-aix.c
1827 device-src/tape-uware.c device-src/null-device.h
1828 device-src/tape-xenix.c device-src/queueing.c
1829 device-src/semaphore.c device-src/property.c
1830 device-src/fd-device.c device-src/tape-device.c
1831 device-src/queueing.h device-src/semaphore.h
1832 device-src/property.h device-src/tape-posix.c
1833 device-src/fd-device.h device-src/tape-device.h
1834 device-src/vfs-device.c device-src/rait-device.c
1835 device-src/tape-ops.h common-src/glib-util.c
1836 common-src/glib-util.h: restrict to GPLv2
1838 2007-09-24 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
1839 * Correct Cygwin build errors:
1840 common-src/Makefile.am
1843 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1844 * server-src/cmdline.c server-src/planner.c server-src/amadmin.c
1845 server-src/amcleanupdisk.c server-src/amflush.c
1846 server-src/holding.c server-src/holding.h server-src/driver.c
1847 server-src/find.c common-src/glib-util.c common-src/glib-util.h:
1848 remove 'verbose' flag, remove holding directories from API (they
1849 will be gone soon anyway), and rework the holding module to use
1850 glib data structures
1852 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1853 * gnulib/regenerate/regenerate gnulib/Makefile.am
1854 device-src/tests/Makefile.am device-src/Makefile.am
1855 server-src/taper-mem-port-source.c server-src/taper.c
1856 config/gnulib/gnulib-comp.m4 config/gnulib/gnulib-cache.m4
1857 config/gnulib.m4i common-src/physmem.c common-src/physmem.h
1858 common-src/amanda.h common-src/base64.c common-src/Makefile.am
1859 common-src/base64.h: move base64, physmem into gnulib and set
1860 device API to include libgnu.
1862 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1863 * common-src/Makefile.am: remove redundant use of EXTRA_DIST
1865 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1866 * device-src/device.c device-src/tests/device_test.c
1867 device-src/rait-device.c server-src/amcheck.c
1868 server-src/amtape.c server-src/taperscan.c server-src/taper.c
1869 server-src/amlabel.c restore-src/restore.c: device_open() no
1870 longer free()s the device name it is given.
1872 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1873 * restore-src/restore.c: fix uninitialized value error
1875 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1876 * server-src/changer.c server-src/amindexd.c
1877 restore-src/amidxtaped.c common-src/debug.c common-src/amanda.h
1878 common-src/alloc.c: fix support for builds without --with-debugging
1880 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1881 * device-src/tests/queue_test.c: simplify signal handling to
1884 2007-09-24 Dustin J. Mitchell <dustin@zmanda.com>
1885 * server-src/cmdline.c server-src/cmdline.h:
1886 Optionally parse datestamps and levels
1887 * server-src/amadmin.c: pass flags to cmdline functions
1888 * server-src/find.c restore-src/amidxtaped.c
1889 restore-src/amrestore.c restore-src/restore.c
1890 restore-src/restore.h restore-src/amfetchdump.c:
1891 Use cmdline module in amrestore, amidxtaped, and amfetchdump
1893 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1894 * restore-src/amrestore.c: Fix a segmentation fault that occurs
1895 when the user specifies hostname, diskname, and date. Thanks to
1896 Jean-Louis Martineau <martineau@zmanda.com> for finding and
1899 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1900 * device-src/device.c (device_set_startup_properties_from_config):
1901 Use tapetype parameters as well as device_property directives.
1902 * device-src/device.h: ditto.
1903 * common-src/conffile.c: Use a new macro DEFAULT_TAPE_LENGTH
1904 as default tapetype length.
1905 * common-src/conffile.h: ditto.
1906 * restore-src/amrestore.c: Use new interface to
1907 devic_set_startup_properties_from_config().
1908 * restore-src/restore.c: ditto.
1909 * server-src/amcheck.c: ditto.
1910 * server-src/amlabel.c: ditto.
1911 * server-src/amtape.c: ditto.
1912 * server-src/taper.c: ditto.
1913 * server-src/taperscan.c: ditto.
1915 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1916 * server-src/amcheck.c: Return 0 if everything is good with the
1917 tape. Thanks to Dustin Mitchell <dustin@zmanda.com> for
1918 reporting this issue, and to Jean-Louis Martineau
1919 <martineau@zmanda.com> for suggesting the form of the fix.
1921 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1922 * server-src/restore.c: Only restore files matching requested
1923 disknames. Report and patch by Jean-Louis Martineau
1924 <martineau@zmanda.com>.
1926 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1927 * server-src/restore.c: Drop some globals, use data types
1930 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1931 * server-src/taper.c: Be slightly more rigorous in sanity-checking
1932 the expected number of splits.
1933 * server-src/taper-file-source.c: Correctly predict the number
1936 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1937 * device-src/vfs-device.c: Accept device names without a
1940 2007-09-24 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
1941 Merge in new Device API. Thanks to Jean-Louis and Dustin for their
1942 code contributions to this patch.
1944 2007-09-20 Dustin J. Mitchell <dustin@zmanda.com>
1945 * oldrecover-src/extract_list.c recover-src/extract_list.c:
1946 change stralloc2 to newstralloc2 to avoid possible memory
1947 leak (coverity bug #214)
1949 2007-09-17 Jean-Louis Martineau <martineau@zmanda.com>
1950 * client-src/client_util.c: Parse kencrypt in option string.
1951 * client-src/sendbackup.c: Send KENCRYPT keyword in REP packet.
1952 * client-src/client_util.h: Add kencrypt field in option_t.
1953 * amandad-src/amandad.c: Enable kencrypt.
1954 * server-src/dumper.c: Enable kencrypt.
1955 * common-src/security.h (accept): New prototype, add conf_fn and datap.
1956 * common-src/bsdtcp-security.c (bsdtcp_accept): Use new param.
1957 * common-src/ssh-security.c (ssh_connect): Set rh->rc->conf_fn and
1959 * common-src/security-util.c (sec_accept): Set rc->conf_fn and
1961 * common-src/amanda.h (kencrypt_type): New enum.
1962 * common-src/bsdudp-security.c (bsdudp_accept): Use new param.
1963 * common-src/security-util.h (sec_accept): New prototype.
1964 * common-src/krb5-security.c: encryption enabled based on kencrypt.
1965 * common-src/bsd-security.c (bsd_accept): Use new param.
1967 2007-09-14 Dustin J. Mitchell <dustin@zmanda.com>
1968 * common-src/util.c common-src/util.h: add euid checks to
1970 * client-src/runstar.c client-src/noop.c client-src/runtar.c
1971 client-src/sendbackup.c client-src/killpgrp.c
1972 client-src/sendsize.c client-src/selfcheck.c
1973 client-src/rundump.c client-src/calcsize.c
1974 amandad-src/amandad.c configure.in server-src/amlogroll.c
1975 server-src/amindexd.c server-src/dumper.c server-src/planner.c
1976 server-src/chunker.c server-src/amadmin.c server-src/amtape.c
1977 server-src/amcleanupdisk.c server-src/amflush.c
1978 server-src/amtrmlog.c server-src/amdevcheck.c
1979 server-src/driver.c server-src/reporter.c server-src/taper.c
1980 server-src/amtrmidx.c server-src/amlabel.c
1981 restore-src/amidxtaped.c restore-src/amfetchdump.c: use them
1982 * common-src/krb5-security.c: remove unused variable
1984 2007-09-14 Dustin J. Mitchell <dustin@zmanda.com>
1985 * server-src/getconf.c: Don't check running_as in amgetconf, as
1986 it may not have a configuration file (e.g., for build params)
1988 2007-09-12 Dustin J. Mitchell <dustin@zmanda.com>
1989 Bug identified by Satya Ganga <gsat@zmanda.com>
1990 * common-src/util.c: handle bad call to check_running_as correctly
1992 2007-09-11 Dustin J. Mitchell <dustin@zmanda.com>
1993 Bug reported by Bill Bartlett; patch by Jean-Louis Martineau
1994 <martineau@zmanda.com>
1995 * common-src/statfs.c: fix error in available-space calculations
1997 2007-09-10 Dustin J. Mitchell <dustin@zmanda.com>
1998 * server-src/amcheck.c: quiet compiler warnings when SINGLE_USERID is
2001 2007-09-10 Dustin J. Mitchell <dustin@zmanda.com>
2002 * configure.in: change FORCE_USERID to CHECK_USERID, add SINGLE_USERID
2003 (when all of Amanda runs as the same userid) and WANT_SETUID_CLIENT
2004 (clint binaries should be setuid-root), currently only used on
2006 * common-src/util.c common-src/util.h: utility functions for userid
2007 checks and manipulations
2008 * oldrecover-src/amrecover.c client-src/runstar.c
2009 client-src/noop.c client-src/runtar.c client-src/sendbackup.c
2010 client-src/killpgrp.c client-src/sendsize.c
2011 client-src/selfcheck.c client-src/rundump.c
2012 client-src/calcsize.c amandad-src/amandad.c
2013 recover-src/amrecover.c server-src/amlogroll.c
2014 server-src/amindexd.c server-src/amcheck.c server-src/dumper.c
2015 server-src/planner.c server-src/chunker.c server-src/amadmin.c
2016 server-src/amtape.c server-src/amcleanupdisk.c
2017 server-src/getconf.c server-src/amflush.c server-src/amtrmlog.c
2018 server-src/amdevcheck.c server-src/driver.c
2019 server-src/reporter.c server-src/taper.c server-src/amdump.sh.in
2020 server-src/amtrmidx.c server-src/amlabel.c common-src/genversion.c
2021 restore-src/amidxtaped.c restore-src/amfetchdump.c
2022 common-src/bsdtcp-security.c common-src/bsdudp-security.c
2023 common-src/krb5-security.c common-src/krb4-security.c
2024 common-src/bsd-security.c: use utility functions to check userids.
2026 2007-09-07 Dustin J. Mitchell <dustin@zmanda.com>
2027 Change by Paul Bijnens
2028 * man/xml-source/amanda.conf.5.xml: Clarify 'etimeout'
2030 2007-09-07 Dustin J. Mitchell <dustin@zmanda.com>
2031 * gnulib/regenerate/no-error.patch gnulib/Makefile.am: remove
2032 spurious sign-compare warnings from gnulib
2034 2007-09-05 Dustin J. Mitchell <dustin@zmanda.com>
2035 Bug identified downstream in Debian packaging
2036 * changer-src/chg-null.sh.in: fix typo
2038 2007-08-29 Dustin J. Mitchell <dustin@zmanda.com>
2039 * common-src/genversion.c common-src/Makefile.am: add subversion revision
2040 and branch info to 'amadmin x version'
2042 2007-08-23 Dustin J. Mitchell <dustin@zmanda.com>
2043 sf bug #1775316 reported by joerg <altix@users.sourceforge.net>
2044 * configure.in: use 'sed' instead of shell substitutions to C-quote
2047 2007-08-22 Dustin J. Mitchell <dustin@zmanda.com>
2048 * common-src/Makefile.am: adjust dependencies so that 'make dist' can
2049 run without a 'make all'
2051 2007-08-20 Dustin J. Mitchell <dustin@zmanda.com>
2052 * client-src/sendbackup-gnutar.c client-src/sendsize.c: use
2053 sanitized, canonicalized, and quoted filenames where necessary
2054 * server-src/driver.c: quote diskname in logfile
2055 * common-src/amanda.h common-src/file.c: Add ':' to the list
2056 of characters sanitised when constructing filenames from
2057 disknames; add canonicalize_pathname()
2059 2007-08-14 Dustin J. Mitchell <dustin@zmanda.com>
2060 * common-src/amanda.h common-src/util.h: move readline headers
2061 out of amanda.h and into util.h, since the corresponding
2062 functions are in util.c
2063 * common-src/util.c: comments
2064 * configure.in: check for both headers and libraries and define
2065 HAVE_READLINE if both are found; add new --with-readline
2066 to require readline and --without-readline to not search
2068 * oldrecover-src/Makefile.am recover-src/Makefile.am: remove explicit
2069 use of READLINE_LIBS
2071 2007-08-09 Dustin J. Mitchell <dustin@zmanda.com>
2072 Patch by C R Ritson <c.r.ritson@newcastle.ac.uk>
2073 * server-src/amverifyrun.sh.in: "lock" the logfile by creating a
2076 2007-08-06 Dustin J. Mitchell <dustin@zmanda.com>
2077 * example/DLT-A4.ps example/Makefile.am: add new template contributed
2078 by Terry Burton <tez@terryburton.co.uk>.
2080 2007-08-01 Dustin J. Mitchell <dustin@zmanda.com>
2081 Patch by Satya Ganga <gsat@zmanda.com>
2082 * server-src/amcleanup.sh.in: shell-compatibility fixes for bash-2.03
2085 2007-07-31 Dustin J. Mitchell <dustin@zmanda.com>
2086 * common-src/statfs-test.c common-src/statfs.c common-src/statfs.h
2087 common-src/Makefile.am: Add a statfs-test to make sure that
2088 statfs works on target systems.
2090 2007-07-27 Ian Turner <ian@zmanda.com>
2091 * restore-src/amfetchdump.c: Check for required arguments in
2094 2007-07-27 Dustin J. Mitchell <dustin@zmanda.com>
2095 * config/automake/check-perl.am: new automake fragment to check perl scripts
2096 * config/automake/check-shell.am: new automake fragment to check shell scripts
2097 * configure.in changer-src/Makefile.am client-src/Makefile.am dumper-src/Makefile.am
2098 server-src/Makefile.am common-src/Makefile.am: use new checks
2099 * changer-src/chg-lib.sh.in: add newline for Solaris's 'bash'
2100 * changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in: fix errors found by
2103 2007-07-26 Ian Turner <ian@zmanda.com>
2104 * restore-src/restore.c: If tpchanger is not defined, then (duh)
2105 don't use the changer. This patch by Jean-Louis Martineau
2106 <martineau@zmanda.com>.
2108 2007-07-24 Dustin J. Mitchell <dustin@zmanda.com>
2109 * changer-src/chg-lib.sh.in common-src/amanda-sh-lib.sh.in
2110 configure.in common-src/Makefile.am: new general-purpose
2111 shell-script library
2112 * configure.in: check for prog 'gettext'
2113 * changer-src/chg-null.sh.in
2114 changer-src/chg-manual.sh.in changer-src/chg-disk.sh.in
2115 changer-src/chg-juke.sh.in changer-src/chg-rait.sh.in
2116 changer-src/chg-chs.sh.in changer-src/chg-mcutil.sh.in
2117 amplot/amplot.sh.in client-src/patch-system.sh.in
2118 server-src/amcheckdb.sh.in server-src/amverifyrun.sh.in
2119 server-src/amrmtape.sh.in server-src/amverify.sh.in
2120 server-src/amfreetapes.sh.in server-src/amcleanup.sh.in
2121 server-src/amdump.sh.in common-src/amcrypt-ossl-asym.sh.in
2122 common-src/amcrypt.sh.in common-src/amaespipe.sh.in
2123 common-src/amcrypt-ossl.sh.in: use new library to function
2124 correctly even when gettext is missing.
2126 2007-07-23 Jean-Louis Martineau <martineau@zmanda.com>
2127 * common-src/conffile.c: Set MaxWidth for numerical value
2128 * server-src/reporter.c: Calculate the size if a numerical value.
2130 2007-07-20 Jean-Louis Martineau <martineau@zmanda.com>
2131 Patch by Dimitri Gorokhovik
2132 * changer-src/chg-multi.sh.in: Typo.
2134 2007-07-18 Ian Turner <ian@zmanda.com> (merged by dustin@zmanda.com)
2135 * changer-src/chg-lib.sh.in, changer-src/chg-zd-mtx.sh.in: Correctly
2136 accept the use of tape:/dev/nst0 notation in chg-zd-mtx.
2138 2007-07-18 Dustin J. Mitchell <dustin@zmanda.com>
2139 * server-src/reporter.c: fix reporting of STRANGE messages
2141 2007-07-16 Dustin J. Mitchell <dustin@zmanda.com>
2142 * changer-src/chg-zd-mtx.sh.in: check for validity of 'mt' and 'mtx'
2143 binaries early, and produce appropriate error messages
2145 2007-07-13 Dustin J. Mitchell <dustin@zmanda.com>
2146 * configure.in: add /usr/sfw/bin to SYSPATH for Solaris 10
2148 2007-07-13 Jean-Louis Martineau <martineau@zmanda.com>
2149 * changer-src/chg-lib.sh.in: Remoce duplicate amdd, add ammt.
2151 2007-07-12 Dustin J. Mitchell <dustin@zmanda.com>
2152 * autogen config/Makefile.am config/ax_compare_version.m4i
2153 Makefile.am: new m4 file
2154 * config/docbook-xslt-min.m4i config/docbook-dtd.m4i
2155 config/docbook-xslt.m4i: major bug fixing
2157 2007-07-11 Dustin J. Mitchell <dustin@zmanda.com>
2158 * recover-src/amrecover.c recover-src/extract_list.c: Add detailed
2159 logging of the amrecover user conversation.
2161 2007-07-11 Jean-Louis Martineau <martineau@zmanda.com>
2162 Patch by Paul Bijnens
2163 * changer-src/chg-multi.sh.in: Typo.
2165 2007-07-10 Dustin J. Mitchell <dustin@zmanda.com>
2166 * configure.in: an empty 'MAILER' is no longer an error, just a
2168 * changer-src/chg-manual.sh.in changer-src/chg-scsi-chio.c
2169 changer-src/chg-scsi.c server-src/amverify.sh.in
2170 server-src/getconf.c common-src/genversion.c: conditionalize
2171 references to MAILER, to handle the situation when it is not
2174 2007-07-09 Dustin J. Mitchell <dustin@zmanda.com>
2175 Documentation patch as suggested by Chris Hoogendyk and Olivier
2177 * man/xml-source/amanda.8.xml: add better documentation about the
2178 -o command-line option for configuration override.
2180 2007-07-09 Jean-Louis Martineau <martineau@zmanda.com>
2181 * restore-src/restore.c: Don't do superfluous fsf,
2182 improve error handling.
2184 2007-07-05 Dustin J. Mitchell <dustin@zmanda.com>
2185 * server-src/amadmin.c: correct misalignment of 'amadmin x balance'
2186 output, as reported by Stefan G. Weichinger <sgw@amanda.org>.
2188 2007-07-03 Dustin J. Mitchell <dustin@zmanda.com>
2189 * common-src/amanda.h common-src/amflock.c: remove unused
2190 CONFIGURE_TEST conditionals
2192 2007-06-28 Dustin J. Mitchell <dustin@zmanda.com>
2193 * common-src/security-util.c: Change authorization error message to
2194 "Please add the line "HOST USER SERVICE" to AMANDAHOSTS on the client"
2195 as suggested by Paddy Sreenivasan <paddy@zmanda.com>.
2197 2007-06-28 Dustin J. Mitchell <dustin@zmanda.com>
2198 * configure.in common-src/amflock-flock.c
2199 common-src/amflock-posix.c common-src/amanda.h
2200 common-src/amflock-lockf.c common-src/amflock-test.c
2201 common-src/amflock-lnlock.c common-src/amflock.c
2202 common-src/amflock.h common-src/Makefile.am:
2203 refactor file locking support into multiple implementations,
2204 only test for availability (not functionality) at configure
2205 time, and add a 'make check' test script. Fixes a bug reported
2206 by Paul Crittenden. Chris Hoogendyk, Jon LaBadie, and Jean-Louis
2207 Martineau helped track it down.
2209 2007-06-27 Dustin J. Mitchell <dustin@zmanda.com>
2210 * autogen config/ax_create_stdint_h.m4i config/acinclude.m4i
2211 Makefile.am: use updated version of ax_create_stdint_h.m4
2212 from http://autoconf-archive.cryp.to/ax_create_stdint_h.html.
2213 Original by Guido U. Draheim <guidod@gmx.de>, patched locally
2214 to avoid spurious "command not found" on Solaris 10.
2215 * config/Makefile.am: add ax_create_stdint_h.m4i
2217 2007-06-25 Dustin J. Mitchell <dustin@zmanda.com>
2218 * server-src/cmdline.c server-src/cmdline.h server-src/taperscan.c
2219 server-src/taperscan.h config/docbook-dtd.m4i
2220 config/docbook-xslt-min.m4i config/docbook-xslt.m4i
2221 config/xsltproc.m4i common-src/sockaddr-util.c
2222 common-src/sockaddr-util.h common-src/amaespipe.sh.in:
2225 2007-06-25 Dustin J. Mitchell <dustin@zmanda.com>
2226 * client-src/sendbackup.c client-src/killpgrp.c
2227 client-src/sendsize.c client-src/selfcheck.c
2228 server-src/amcheck.c server-src/reporter.c common-src/util.c
2229 common-src/util.h common-src/security-util.c: add str_exit_status()
2230 to interpret the status resulting from wait(), use it throughout
2233 2007-06-20 Dustin J. Mitchell <dustin@zmanda.com>
2234 * server-src/planner.c common-src/bsdudp-security.c
2235 common-src/krb5-security.c common-src/bsd-security.c:
2236 remove dead/unused code
2238 2007-06-20 Dustin J. Mitchell <dustin@zmanda.com>
2239 * client-src/sendsize.c: call dbfn(), not debug_fn()
2240 * common-src/amanda.h: make dbfn() return a meaningful string
2241 when debugging is disabled
2243 2007-06-19 Dustin J. Mitchell <dustin@zmanda.com>
2244 * tape-src/tapetype.c: close and re-open tape after rewind
2245 (patch from Franz Fischer <amanda@franz-fischer.de>, modified
2246 by Jean-Louis Martineau <martineau@zmanda.com>)
2248 2007-06-06 Jean-Louis Martineau <martineau@zmanda.com>
2249 * restore-src/restore.c: accept all header with size >= DISK_BLOCK_BYTES
2251 2007-06-18 Jean-Louis Martineau <martineau@zmanda.com>
2252 * server-src/amstatus.pl.in: Set and use chunk_time.
2254 2007-06-07 Dustin J. Mitchell <dustin@zmanda.com>
2255 * server-src/amcleanupdisk.c: don't try to clean up holding disks
2258 2007-06-06 Dustin J. Mitchell <dustin@zmanda.com>
2259 * client-src/sendbackup.c: remove bogus check for unknown program
2261 2007-06-07 Jean-Louis Martineau <martineau@zmanda.com>
2262 Christopher McCrory found the cause of the problem.
2263 * server-src/find.c: Send ouput to stderr.
2265 2007-06-07 Jean-Louis Martineau <martineau@zmanda.com>
2266 * configure.in: detect GNU tar's 'backup' and ignore it. Thanks
2267 to Jeanna Geier <jeanna@webteam.net> for spotting this.
2269 2007-06-05 Jean-Louis Martineau <martineau@zmanda.com>
2270 * common-src/util.c: Don't use -w flags for od execution.
2272 2007-06-05 Dustin J. Mitchell <dustin@zmanda.com>
2273 * client-src/selfcheck.c: fix formatting typo
2274 * common-src/security.h: fix prototypes in comments
2275 * common-src/security-util.c common-src/util.c: fix
2277 * common-src/debug.c common-src/amanda.h: remove
2279 * changer-src/scsi-linux.c changer-src/chg-scsi-chio.c
2280 changer-src/scsi-cam.c client-src/calcsize.c
2281 recover-src/amrecover.c server-src/driver.c
2282 client-src/sendbackup-gnutar.c server-src/find.c
2283 server-src/diskfile.c : format string / i18n tweaks
2284 * common-src/amcrypt-ossl.sh.in: fix shell quoting
2286 2007-06-04 Dustin J. Mitchell <dustin@zmanda.com>
2287 * changer-src/sense.c server-src/driver.c server-src/reporter.c
2288 server-src/amadmin.c server-src/amtape.c common-src/amanda.h:
2289 use T_() instead of _T() as the macro flagging static strings
2290 in need of translation; fixes compilation error on Mac OS X, where
2291 _T is defined in the system headers.
2293 2007-06-04 Dustin J. Mitchell <dustin@zmanda.com>
2294 * changer-src/chg-zd-mtx.sh.in changer-src/chg-multi.sh.in:
2295 use chg-lib.sh fully, fix i18n problems.
2297 2007-06-04 Dustin J. Mitchell <dustin@zmanda.com>
2298 * common-src/krb5-security.c common-src/bsdtcp-security.c
2299 common-src/security-util.c: check results from getnameinfo()
2302 2007-06-04 Dustin J. Mitchell <dustin@zmanda.com>
2303 * server-src/amstatus.pl.in: use perl flags -Tw
2305 2007-06-04 Dustin J. Mitchell <dustin@zmanda.com>
2306 * common-src/debug.c common-src/error.c: fix compilation errors
2307 on strict platforms.
2309 2007-06-04 Jean-Louis Martineau <martineau@zmanda.com>
2310 * common-src/bsd-security.c common-src/bsdudp-security.c:
2311 Make bsd, bsdudp open an IPv4 and an IPv6 socket; fixes bug reported
2314 2007-06-04 Dustin J. Mitchell <dustin@zmanda.com>
2315 * oldrecover-src/Makefile.am changer-src/Makefile.am
2316 amplot/Makefile.am client-src/Makefile.am
2317 amandad-src/Makefile.am dumper-src/Makefile.am
2318 recover-src/Makefile.am restore-src/Makefile.am
2319 tape-src/Makefile.am: add quotes to allow spaces in user
2322 2007-06-04 Dustin J. Mitchell <dustin@zmanda.com>
2323 * changer-src/chg-scsi.c: use long int for tape sleep time
2324 * client-src/selfcheck.c: error out if no calcsize program is found
2325 * server-src/amindexd.c: run 'sort' in the C locale
2326 * server-src/amcheck.c: flag localhost not resolving as an error
2327 * server-src/diskfile.c: improve error handling
2328 * common-src/amcrypt.sh.in common-src/amcrypt-ossl-asym.sh.in
2329 common-src/amcrypt-ossl.sh.in: search /opt/csw/bin for openssl
2330 binaries; improve error handling
2332 2007-06-04 Dustin J. Mitchell <dustin@zmanda.com>
2333 * server-src/planner.c server-src/amcleanupdisk.c
2334 server-src/amflush.c server-src/holding.c server-src/holding.h:
2335 do not assume anything about the names of holding
2336 directories; use holding disk files themselves to discover
2337 dump time/datestamps
2339 2007-06-04 Jean-Louis Martineau <martineau@zmanda.com>
2340 * common-src/krb5-security.c: Typo.
2342 2007-06-01 Ian Turner <ian@zmanda.com>
2343 * restore-src/restore.c: Set flags->fsf = 0 by default.
2345 2007-05-29 Jean-Louis Martineau <martineau@zmanda.com>
2346 * server-src/driver.c: Check dumper->down.
2347 * server-src/dumper.c (sendbackup_response): Only call
2348 security_close_connection if pkt != NULL.
2350 2007-05-29 Jean-Louis Martineau <martineau@zmanda.com>
2351 * server-src/amstatus.pl.in: Use compressed size.
2353 2007-05-29 Jean-Louis Martineau <martineau@zmanda.com>
2354 * server-src/planner.c: Don't report overwrite if no label.
2356 2007-05-29 Jean-Louis Martineau <martineau@zmanda.com>
2357 * changer-src/chg-manual.sh.in: Don't reset the slot to 0 on eject.
2359 2007-05-25 Kevin Till <ktill@zmanda.com>
2360 * example/amanda.conf.in: ditto
2361 * man/xml-source/amanda.conf.5.xml: ditto
2362 * common-src/conffile.c: ditto
2364 2007-05-24 Dustin J. Mitchell <dustin@zmanda.com>
2365 * changer-src/scsi-changer-driver.c changer-src/scsi-cam.c
2366 client-src/sendbackup.c client-src/selfcheck.c
2367 recover-src/extract_list.c server-src/amindexd.c
2368 server-src/amcheck.c server-src/driver.c server-src/dumper.c
2369 server-src/planner.c server-src/amadmin.c server-src/diskfile.c
2370 contrib/set_prod_link.pl common-src/krb5-security.c
2371 common-src/bsd-security.c common-src/security-util.c
2372 common-src/conffile.c common-src/bsdudp-security.c:
2373 trivial changes to add _(), etc. -- harmonization of branch
2374 divergence caused by manual resolution of merge conflicts
2376 2007-05-24 Satya Ganga <gsat@zmanda.com> (merged by dustin@zmanda.com)
2377 * server-src/amcleanup.sh.in: rewrite to find all the active
2378 process/children for a given configuration
2380 2007-05-24 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2381 * common-src/fileheader.c:
2382 Remove ".exe" extension from program name is tape header.
2384 2007-05-24 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2385 * config/gettext-macros/gettext.m4
2386 config/gettext-macros/inttypes-pri.m4:
2387 Change name gl_HEADER_INTTYPES_H to gl_AC_HEADER_INTTYPES_H
2389 2007-05-24 Dustin J. Mitchell <dustin@zmanda.com>
2390 * configure.in: add configure.in recognition for Mac OS X
2392 2007-05-24 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2393 * configure.in: IPV6 on cygwin only partially works.
2394 Force WORKING_IPV6 to false.
2396 2007-05-24 Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
2397 * server-src/driver.c: use amanda text domain in driver
2399 2007-05-24 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2400 * config/libtool.m4i:
2401 Fix to pass loader variables correctly on Solaris systems
2402 with a gcc that does not use -static or -shared.
2404 2007-05-24 Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
2405 * server-src/amstatus.pl.in: parse directory and holding_disk_dir with
2408 2007-05-24 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2409 * client-src/sendbackup.c client-src/sendsize.c client-src/sendbackup-star.c
2410 configure.in server-src/amindexd.c server-src/taper.c server-src/diskfile.c
2411 config/acinclude.m4i common-src/amanda.h common-src/util.c
2412 common-src/security-util.c:
2413 Fix compilation problems using GCC on solaris.
2415 2007-05-24 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
2416 * server-src/reporter.c: Split FAILED and STRANGE section.
2418 2007-05-23 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2419 * common-src/conffile.c: Fix windows compilation warning.
2421 2007-05-23 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2422 * po/Makefile.am changer-src/scsi-changer-driver.c changer-src/sense.c
2423 client-src/unctime.c server-src/amadmin.c server-src/amtape.c
2424 server-src/driver.c server-src/reporter.c common-src/amanda.h
2425 tape-src/tapeio.h tape-src/tapetype.c:
2426 Change _() gettext macro to call gettext()
2427 Create _T() to allow gettext translation of static strings.
2428 * common-src/security.c: Create larger buffers for error messages.
2430 2007-05-23 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2431 * configure.in: Prevent annoying lint usage message from
2432 being displayed in configure console output.
2434 2007-05-23 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2436 Fix problem of not generating po/Makefile.in on fresh checkout.
2437 * server-src/logfile.c:
2438 Always output to logfile in "C" locale.
2439 * amandad-src/amandad.c changer-src/chg-scsi-chio.c
2440 changer-src/chg-scsi.c client-src/calcsize.c client-src/getfsent.c
2441 client-src/killpgrp.c client-src/noop.c client-src/rundump.c
2442 client-src/runstar.c client-src/runtar.c client-src/selfcheck.c
2443 client-src/sendbackup.c client-src/sendsize.c
2444 client-src/versionsuffix.c common-src/amfeatures.c
2445 common-src/amflock.c common-src/file.c common-src/genversion.c
2446 common-src/statfs.c common-src/token.c oldrecover-src/amrecover.c
2447 recover-src/amrecover.c restore-src/amfetchdump.c
2448 restore-src/amidxtaped.c restore-src/amrestore.c server-src/amadmin.c
2449 server-src/amcheck.c server-src/amcleanupdisk.c server-src/amflush.c
2450 server-src/amindexd.c server-src/amlabel.c server-src/amlogroll.c
2451 server-src/amtape.c server-src/amtrmidx.c server-src/amtrmlog.c
2452 server-src/chunker.c server-src/diskfile.c server-src/driver.c
2453 server-src/dumper.c server-src/getconf.c server-src/infofile.c
2454 server-src/planner.c server-src/reporter.c server-src/taper.c
2455 tape-src/amdd.c tape-src/ammt.c tape-src/tapeio.c tape-src/tapetype.c:
2456 Change back to always run in "C" locale.
2458 2007-05-23 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
2459 * changer-src/chg-manual.sh.in: Fix quoting; fix gettext usage.
2461 2007-05-23 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2463 New gettext routines.
2464 * server-src/amcheckdb.sh.in server-src/amcleanup.sh.in
2465 server-src/amverifyrun.sh.in server-src/amrmtape.sh.in
2466 server-src/amverify.sh.in server-src/amdump.sh.in
2467 server-src/amfreetapes.sh.in amplot/amplot.sh.in
2468 changer-src/chg-mtx.sh.in changer-src/chg-null.sh.in
2469 changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in
2470 changer-src/chg-disk.sh.in changer-src/chg-juke.sh.in
2471 changer-src/chg-rait.sh.in changer-src/chg-scsi.c
2472 changer-src/chg-chs.sh.in changer-src/chg-multi.sh.in
2473 changer-src/chg-mcutil.sh.in client-src/patch-system.sh.in
2474 common-src/amcrypt.sh.in common-src/amaespipe.sh.in
2475 common-src/amcrypt-ossl-asym.sh.in common-src/amcrypt-ossl.sh.in:
2476 Internationalize shell messages
2477 * autogen config/gettext-macros/nls.m4
2478 config/gettext-macros/lib-link.m4:
2479 Update for autoconf version 2.6 autogen
2480 * oldrecover-src/amrecover.c recover-src/amrecover.c
2481 server-src/amflush.c server-src/logfile.c server-src/amtrmlog.c
2482 server-src/amlogroll.c server-src/amindexd.c server-src/amcheck.c
2483 server-src/driver.c server-src/dumper.c server-src/chunker.c
2484 server-src/planner.c server-src/reporter.c server-src/amadmin.c
2485 server-src/amtape.c server-src/taper.c server-src/server_util.c
2486 client-src/versionsuffix.c client-src/runtar.c
2487 server-src/amtrmidx.c server-src/amcleanupdisk.c
2488 server-src/getconf.c server-src/diskfile.c
2489 changer-src/chg-scsi-chio.c client-src/noop.c server-src/infofile.c
2490 server-src/amlabel.c client-src/sendbackup.c client-src/getfsent.c
2491 client-src/killpgrp.c client-src/sendsize.c client-src/selfcheck.c
2492 client-src/rundump.c client-src/calcsize.c restore-src/amidxtaped.c
2493 restore-src/amrestore.c restore-src/amfetchdump.c Makefile.am
2494 amandad-src/amandad.c common-src/genversion.c common-src/debug.c
2495 common-src/error.c common-src/statfs.c common-src/amflock.c
2496 common-src/file.c common-src/token.c common-src/security-util.c
2497 common-src/conffile.c common-src/amanda.h common-src/amfeatures.c
2498 tape-src/ammt.c tape-src/amdd.c tape-src/tapeio.c
2499 tape-src/tapetype.c:
2500 Use amanda domain for LC_MESSAGES.
2502 2007-05-22 Maitreyee Karmarkar <maitreyee@zmanda.com> (merged by dustin@zmanda.com)
2503 * server-src/amcheck.c : Changed some amcheck messages
2504 * common-src/conffile.c : Changed some amcheck messages
2506 2007-05-22 Maitreyee Karmarkar <maitreyee@zmanda.com> (merged by dustin@zmanda.com)
2507 * client-src/selfcheck.c, server-src/changer.c, server-src/amcheck.c,
2508 server-src/taperscan.c, server-src/diskfile.c,
2509 common-src/conffile.c:
2510 Change in some amcheck error messages
2512 2007-05-22 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2513 * common-src/krb5-security.c common-src/security-util.c
2514 server-src/taper.c server-src/taperscan.c:
2515 Fix botched *vstrallocf conversions.
2516 * oldrecover-src/extract_list.c server-src/amlogroll.c
2517 server-src/chunker.c server-src/driver.c server-src/dumper.c
2518 server-src/getconf.c server-src/holding.c server-src/planner.c
2519 server-src/reporter.c server-src/taper.c:
2520 Add errno text when printing getcwd() error message.
2522 2007-05-22 Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
2523 * configure.in: move crypt scripts to common-src since they are needed
2524 by both server and client
2525 * common-src/Makefile.am: ditto
2526 * server-src/Makefile.am: ditto
2528 2007-05-17 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2529 * configure.in oldrecover-src/amrecover.c
2530 oldrecover-src/extract_list.c oldrecover-src/display_commands.c
2531 oldrecover-src/help.c oldrecover-src/set_commands.c
2532 recover-src/amrecover.c recover-src/extract_list.c
2533 recover-src/display_commands.c recover-src/help.c
2534 recover-src/set_commands.c server-src/amflush.c
2535 server-src/changer.c server-src/taperscan.c server-src/logfile.c
2536 server-src/amtrmlog.c server-src/driverio.c
2537 server-src/amlogroll.c server-src/tapefile.c
2538 server-src/amindexd.c server-src/driver.c server-src/amcheck.c
2539 server-src/dumper.c server-src/chunker.c server-src/planner.c
2540 server-src/reporter.c server-src/server_util.c
2541 server-src/amadmin.c server-src/amtape.c server-src/taper.c
2542 server-src/amcleanupdisk.c server-src/find.c
2543 server-src/amtrmidx.c server-src/getconf.c
2544 server-src/diskfile.c server-src/infofile.c
2545 server-src/amlabel.c changer-src/scsi-linux.c
2546 changer-src/chg-scsi-chio.c changer-src/scsi-chio.c
2547 changer-src/scsi-hpux.c changer-src/scsi-changer-driver.c
2548 changer-src/scsi-cam.c changer-src/chg-scsi.c
2549 changer-src/scsi-bsd.c changer-src/scsi-irix.c
2550 changer-src/scsi-solaris.c changer-src/sense.c
2551 changer-src/scsi-aix.c changer-src/scsi-hpux_new.c
2552 autogen client-src/unctime.c client-src/versionsuffix.c
2553 client-src/noop.c client-src/client_util.c client-src/runtar.c
2554 client-src/sendbackup-gnutar.c client-src/getfsent.c
2555 client-src/sendbackup.c client-src/sendbackup-dump.c
2556 client-src/killpgrp.c client-src/sendsize.c
2557 client-src/selfcheck.c client-src/rundump.c
2558 client-src/calcsize.c client-src/amandates.c
2559 restore-src/amidxtaped.c restore-src/amrestore.c
2560 restore-src/restore.c restore-src/amfetchdump.c Makefile.am
2561 amandad-src/amandad_util.c amandad-src/amandad.c
2562 common-src/rsh-security.c common-src/pipespawn.c
2563 common-src/security.c common-src/krb5-security.c
2564 common-src/util.c common-src/genversion.c
2565 common-src/bsdtcp-security.c common-src/debug.c
2566 common-src/fileheader.c common-src/dgram.c
2567 common-src/stream.c common-src/match.c
2568 common-src/protocol.c common-src/ssh-security.c
2569 common-src/statfs.c common-src/krb4-security.c
2570 common-src/amflock.c common-src/bsd-security.c
2571 common-src/file.c common-src/token.c common-src/event.c
2572 common-src/security-util.c common-src/conffile.c
2573 common-src/amanda.h common-src/bsdudp-security.c
2574 common-src/alloc.c common-src/clock.c common-src/amfeatures.c
2575 tape-src/ammt.c tape-src/amdd.c tape-src/output-file.c
2576 tape-src/tapeio.c tape-src/tapeio.h tape-src/output-tape.c
2577 tape-src/tapetype.c tape-src/output-rait.c:
2578 o First stage of internationalization.
2579 - Add GNU gettext to configuration.
2580 - Add _() macro to flag translatable strings and modify
2581 code to use it. Macros like SSIZE_T_FMT are included in
2582 this call, even though xgettext will not parse them; this
2583 will be fixed later.
2584 - Add plural() function for selecting singular or plural form
2585 of string and modify code to use it.
2586 - Add amanda.po target to Makefile.
2588 2007-05-17 Jean-Louis Martineau <martineau@zmanda.com>
2589 * server-src/amcheck.c: Remove bogus amfree(newtapefile).
2591 2007-05-17 Jean-Louis Martineau <martineau@zmanda.com>
2592 * server-src/amcheck.c: Check all tapelist filename.
2594 2007-05-17 Jean-Louis Martineau <martineau@zmanda.com>
2595 * server-src/dumper.c (read_datafd): Reset timeout after the write.
2597 2007-05-17 Jean-Louis Martineau <martineau@zmanda.com>
2598 * amplot/amplot.sh.in: Remove function keyword.
2599 * changer-src/chg-lib.sh.in: Remove function keyword.
2600 * changer-src/chg-multi.sh.in: Remove function keyword.
2601 * changer-src/chg-zd-mtx.sh.in: Remove function keyword.
2603 2007-05-17 Jean-Louis Martineau <martineau@zmanda.com>
2604 * server-src/diskfile.c: Fix double free.
2606 2007-05-17 Jean-Louis Martineau <martineau@zmanda.com>
2607 * common-src/amanda.h: define sockaddr_storage and ss_family.
2608 * common-src/amanda.h: define INET_ADDRSTRLEN.
2609 * config/acinclude.m4i (AC_SOCKADDR_STORAGE): New macro.
2610 * configure.in: AC_SOCKADDR_STORAGE.
2612 2007-05-17 Jean-Louis Martineau <martineau@zmanda.com>
2613 * common-src/amanda.h: Define AI_V4MAPPED and AI_ALL.
2615 2007-05-17 Jean-Louis Martineau <martineau@zmanda.com>
2616 * util.c (cmp_sockaddr): un-map V4mapped address before comparison.
2617 * common-src/security-util.c: add debugging.
2619 2007-05-17 Dustin J. Mitchell <dustin@zmanda.com> (merged by dustin@zmanda.com)
2620 * common-src/amanda.h: fix typo (missing 'extern') in erroutput_type
2622 2007-05-16 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2623 * oldrecover-src/amrecover.c oldrecover-src/extract_list.c
2624 oldrecover-src/display_commands.c oldrecover-src/set_commands.c
2625 recover-src/amrecover.c recover-src/extract_list.c
2626 recover-src/display_commands.c recover-src/set_commands.c
2627 server-src/changer.c server-src/taperscan.c
2628 server-src/amtrmlog.c server-src/amindexd.c server-src/driver.c
2629 server-src/amcheck.c server-src/dumper.c server-src/chunker.c
2630 server-src/planner.c server-src/reporter.c server-src/taper.c
2631 server-src/amtrmidx.c changer-src/scsi-linux.c
2632 changer-src/chg-scsi-chio.c changer-src/scsi-chio.c
2633 changer-src/scsi-hpux.c changer-src/scsi-cam.c
2634 changer-src/scsi-changer-driver.c changer-src/chg-scsi.c
2635 changer-src/scsi-bsd.c changer-src/scsi-irix.c
2636 changer-src/scsi-solaris.c changer-src/sense.c
2637 changer-src/scsi-aix.c changer-src/scsi-hpux_new.c
2638 client-src/client_util.c client-src/runtar.c
2639 client-src/sendbackup-gnutar.c client-src/sendbackup.c
2640 client-src/sendbackup-dump.c client-src/killpgrp.c
2641 client-src/sendsize.c client-src/selfcheck.c
2642 client-src/rundump.c client-src/calcsize.c
2643 client-src/amandates.c restore-src/amidxtaped.c
2644 restore-src/restore.c amandad-src/amandad_util.c
2645 amandad-src/amandad.c common-src/rsh-security.c
2646 common-src/sockaddr-util.c common-src/pipespawn.c
2647 common-src/security.c common-src/krb5-security.c
2648 common-src/util.c common-src/util.h common-src/bsdtcp-security.c
2649 common-src/tapelist.c common-src/debug.c common-src/fileheader.c
2650 common-src/error.c common-src/dgram.c common-src/stream.c
2651 common-src/protocol.c common-src/ssh-security.c
2652 common-src/krb4-security.c common-src/bsd-security.c
2653 common-src/event.c common-src/security-util.c
2654 common-src/conffile.c common-src/amanda.h
2655 common-src/bsdudp-security.c common-src/security-util.h
2656 common-src/alloc.c tape-src/output-file.c tape-src/tapeio.c
2657 tape-src/output-tape.c:
2658 - Change dbprintf() to use __VA_ARGS__. (Remove extra parens)
2659 - Prepend program name and nano second accuracy time stamp
2660 to each line in debug file.
2661 - Emove any resulting duplicate timestamps from functions that
2662 inserted them in each dbprintf() line.
2663 - Fix dballoc compilation.
2664 - Fix dbmalloc compilation.
2665 - Fix amfree() to report file and line # of amfree line during
2667 - Add vstrallocf() and newvstrallocf() functions. These are
2668 the same as vstralloc() and newvstralloc() except they use
2669 printf style format strings. (Required to eliminate
2670 untranslateable string concatenations in messages.)
2671 - Change files to use *allocf() functions where it seemed
2673 - Fix kerberos 4 compilation.
2674 - Fix kerberos 5 compilation.
2676 2007-05-16 Jean-Louis Martineau <martineau@zmanda.com> (merged by dustin@zmanda.com)
2677 * common-src/debug.c (debug_rename): Fix for cygwin: rename
2678 will not overwrite an existing file
2680 2007-05-15 John Franks <jrfranks@zmanda.com> (merged by dustin@zmanda.com)
2681 * client-src/sendbackup.c common-src/dgram.c common-src/event.c
2682 server-src/changer.c server-src/driverio.c:
2683 Cast FD_SETSIZE to int to avoid compilation problems.
2685 2007-05-15 Kevin Till <ktill@zmanda.com> (merged by dustin@zmanda.com)
2686 * common-src/debug.c: dbrename patch by Jean-Louis Martineau to
2687 unlink the target of the rename operation before renaming.
2689 2007-05-15 Dustin J. Mitchell <dustin@zmanda.com>
2690 * client-src/sendsize.c: fix parsing of include/excludes for
2693 2007-05-11 Jean-Louis Martineau <martineau@zmanda.com>
2694 * server-src/amcrypt-ossl-asym.sh.in: Use CLIENT_LOGIN.
2695 * server-src/amcrypt-ossl.sh.in: Use CLIENT_LOGIN.
2697 2007-05-08 Jean-Louis Martineau <martineau@zmanda.com>
2698 * common-src/krb5-security.c: Fix compilation.
2700 2007-05-09 Dustin J. Mitchell <dustin@zmanda.com>
2701 * common-src/stream.c: add errno's to stream_client_internal
2703 2007-05-09 Dustin J. Mitchell <dustin@zmanda.com>
2704 * server-src/amadmin.c server-src/infofile.c
2705 common-src/security-util.c common-src/krb5-security.c:
2706 fix type-punning warnings
2708 2007-05-09 Dustin J. Mitchell <dustin@zmanda.com>
2709 * recover-src/set_commands.c server-src/amcheck.c
2710 server-src/dumper.c common-src/rsh-security.c
2711 common-src/krb5-security.c common-src/util.c common-src/util.h
2712 common-src/bsdtcp-security.c common-src/stream.c
2713 common-src/ssh-security.c common-src/bsd-security.c
2714 common-src/security-util.c common-src/bsdudp-security.c
2715 common-src/security-util.h: Add IPv6-savvy resolve_hostname() and use it
2718 2007-05-08 Jean-Louis Martineau <martineau@zmanda.com>
2719 * config/Makefile.am (EXTRA_DIST): Add docbook-dtd.m4i,
2720 docbook-xslt.m4i, docbook-xslt-min.m4i and xsltproc.m4i.
2722 2007-05-07 Jean-Louis Martineau <martineau@zmanda.com>
2723 * common-src/stream.c: pass correct sockaddr size to bind()
2725 2007-05-07 Pieter Bowman <bowman@math.utah.edu>
2726 * common-src/file.c: reverse the order of chown/chmod to correctly
2727 create temporary files.
2729 2007-05-07 Jean-Louis Martineau <martineau@zmanda.com>
2730 * common-src/krb5-security.c: Fix compilation.
2732 2007-05-04 Dustin J. Mitchell <dustin@zmanda.com>
2733 * server-src/cmdline.c server-src/holding.c server-src/holding.h
2734 server-src/amadmin.c server-src/amcleanupdisk.c: remove
2735 holding_file_read_header()
2737 2007-05-04 Dustin J. Mitchell <dustin@zmanda.com>
2738 * common-src/sockaddr-util.h common-src/bsdtcp-security.c common-src/security-util.c
2739 common-src/krb5-security.c common-src/stream.c: add and use a copy_sockaddr() macro
2741 2007-05-04 Dustin J. Mitchell <dustin@zmanda.com>
2742 * configure.in common-src/rsh-security.c common-src/bsdtcp-security.c
2743 common-src/ssh-security.c common-src/bsdudp-security.c
2744 common-src/krb5-security.c common-src/krb4-security.c common-src/bsd-security.c
2745 common-src/Makefile.am: use AM_CONDITIONAL to select security modules to compile
2747 2007-05-04 Dustin J. Mitchell <dustin@zmanda.com>
2748 * autogen man/Makefile.am configure.in config/acinclude.m4i
2749 config/docbook-xslt-min.m4i config/docbook-dtd.m4i config/docbook-xslt.m4i
2750 config/xsltproc.m4i Makefile.am: detect xsltproc, docbook xslt, and docbook
2751 dtd versions better, to ensure proper creation of manpages.
2753 2007-05-04 Dustin J. Mitchell <dustin@zmanda.com>
2754 * server-src/amindexd.c common-src/sockaddr-util.c common-src/sockaddr-util.h
2755 common-src/util.c common-src/security-util.c common-src/amanda.h
2756 common-src/dgram.c common-src/stream.c common-src/Makefile.am: add new
2757 sockaddr-util.[ch] containing sockaddr-related functions.
2759 2007-05-04 Jean-Louis Martineau <martineau@zmanda.com>
2760 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.3alpha)
2762 2007-05-03 Jean-Louis Martineau <martineau@zmanda.com>
2763 * docs/*.txt: Update from xml-docs.
2765 2007-05-03 Jean-Louis Martineau <martineau@zmanda.com>
2766 * man/xml-source/amrecover.8.xml: Fix space.
2768 2007-05-03 Jean-Louis Martineau <martineau@zmanda.com>
2769 * Amanda 2.5.2 released.
2770 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2).
2772 2007-05-02 Jean-Louis Martineau <martineau@zmanda.com>
2773 * docs/*.txt, man/xml-source/*.xml: Change OVERWRITE bu OVERRIDE.
2774 * man/xml-source/amadmin.8.xml: Add notees on no-reuse command.
2776 2007-05-02 Jean-Louis Martineau <martineau@zmanda.com>
2777 * amandad-src/amandad.c: Improve 'invalid service' message.
2779 2007-05-01 Jean-Louis Martineau <martineau@zmanda.com>
2780 * recover-src/extract_list.c: Report the error message.
2781 * recover-src/extract_list.c: Don't call close_connection.
2782 * common-src/security-util.c: (tcpm_close_connection): Check for rh->rc
2784 2007-04-27 Jean-Louis Martineau <martineau@zmanda.com>
2785 * common-src/security-util.c (tcp1_stream_client): Set rh->rc->driver.
2787 2007-04-27 Jean-Louis Martineau <martineau@zmanda.com>
2788 * common-src/bsd-security.c, common-src/bsdudp-security.c,
2789 common-src/krb4-security.c: Fix ntohs for port number.
2790 * common-src/dgram.c: Add socket number in comment.
2792 2007-04-27 Dustin J. Mitchell <dustin@zmanda.com>
2793 * server-src/holding.c server-src/holding.h server-src/find.c:
2794 use holding module in find.c:search_holding_disk()
2796 2007-04-27 Jean-Louis Martineau <martineau@zmanda.com>
2797 * server-src/amcheck.c: Fix infobad setting.
2799 2007-04-26 Jean-Louis Martineau <martineau@zmanda.com>
2800 * server-src/amcheck.c: Set *bad on error.
2802 2007-04-26 Jean-Louis Martineau <martineau@zmanda.com>
2803 * server-src/amflush.c: Quote L_DISK and FLUSH line.
2804 * server-src/driver.c: Parse quoted FLUSH line.
2805 * server-src/planner.c: Quote L_DISK and FLUSH line.
2807 2007-04-25 Dustin J. Mitchell <dustin@zmanda.com>
2808 * configure.in common-src/ssh-security.c: allow build-time configuration of SSH options
2810 2007-04-23 Paddy Sreenivasan <paddy@zmanda.com>
2811 * changer-src/scsi-solaris.c common-src/protocol.c: changes to build on Solaris
2813 2007-04-20 Dustin J. Mitchell <dustin@zmanda.com>
2814 * configure.in: remove unused AMANDA_C_VOLATILE
2815 * config/acinclude.m4: remove unused AMANDA_C_VOLATILE
2817 2007-04-20 Dustin J. Mitchell <dustin@zmanda.com>
2818 * autogen: silence unnecessary warnings about GNU make, return exit status
2820 2007-04-20 Dustin J. Mitchell <dustin@zmanda.com>
2821 * common-src/stream.c: retry socket creation if OS does not support IPv6
2824 2007-04-20 Jean-Louis Martineau <martineau@zmanda.com>
2825 * amplot/amplot.sh.in (test_awk,find_gnuplot): Imported from zmanda.
2826 * amplot/amplot.awk: Fix some parsing.
2827 * server-src/driver.c (free_kps): Return 0 instead of big value.
2829 2007-04-18 Jean-Louis Martineau <martineau@zmanda.com>
2830 * oldrecover-src/Makefile.am, changer-src/Makefile.am,
2831 client-src/Makefile.am, amandad-src/Makefile.am,
2832 recover-src/Makefile.am, server-src/Makefile.am,
2833 restore-src/Makefile.am: Link libgnu after libamanda.
2835 2007-04-18 Jean-Louis Martineau <martineau@zmanda.com>
2836 * client-src/sendbackup.c: Improve tar argument in amanda header for
2839 2007-04-18 Dustin J. Mitchell <dustin@zmanda.com>
2840 * man/Makefile.am configure.in config/acinclude.m4i: add xsltproc- and docbook-
2841 related autoconf macros, use them to ensure the environment is appropriate for
2842 building manpages; manpage build is off by default.
2844 2007-04-17 Jean-Louis Martineau <martineau@zmanda.com>
2845 * changer-src/chg-disk.sh.in: Send error message to stdout.
2847 2007-04-17 Dustin J. Mitchell <dustin@zmanda.com>
2848 * changer-src/chg-zd-mtx.sh.in: fix more typos (thanks to
2849 "Stefan G. Weichinger" <sgw@amanda.org>)
2851 2007-04-17 Jean-Louis Martineau <martineau@zmanda.com>
2852 * restore-src/restore.c: Fix restoration of split and encrypted backup.
2854 2007-04-13 Dustin J. Mitchell <dustin@zmanda.com>
2855 * changer-src/chg-zd-mtx.sh.in: fix typo in error message
2857 2007-04-13 Jean-Louis Martineau <martineau@zmanda.com>
2858 * Amanda 2.5.2b1 released.
2859 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.2b1).
2861 2007-04-13 Jean-Louis Martineau <martineau@zmanda.com>
2862 * client-src/sendbackup.c (first_num): Removed function.
2863 * client-src/sendbackup.c (the_num): return the nth number in a string.
2864 * client-src/sendbackup.h (AM_SIZE_RE): Need a field.
2865 * client-src/sendbackup-dump.c: Use new AM_SIZE_RE.
2866 * client-src/sendbackup-gnutar.c: Use new AM_SIZE_RE.
2868 2007-04-13 Jean-Louis Martineau <martineau@zmanda.com>
2869 * NEWS: Change in amanda-2.5.2
2870 * ReleaseNotes: Releases Notes for 2.5.2
2871 * server-src/chunker.c (write_tapeheader): Set errno to ENOSPC.
2873 2007-04-12 Dustin J. Mitchell <dustin@zmanda.com>
2874 * server-src/dumper.c: use fullwrite() instead of write()
2876 2007-04-12 Jean-Louis Martineau <martineau@zmanda.com>
2877 * amandad-src/amandad.c: Remove duplicate setsockopt(,,SO_REUSEADDR).
2878 * common-src/bsd-security.c: Use int for setsockopt.
2879 * common-src/stream.c (try_socksize): Use int for setsockopt.
2881 2007-04-12 Jean-Louis Martineau <martineau@zmanda.com>
2882 * server-src/amcheck.c: Remove duplicate test.
2883 * server-src/dumper.c: Use newvstralloc.
2885 2007-04-12 Jean-Louis Martineau <martineau@zmanda.com>
2886 * server-src/reporter.c: Take value from chunker if it succeed and
2889 2007-04-10 Jean-Louis Martineau <martineau@zmanda.com>
2890 * configure.in: Use krb5 shared library.
2892 2007-04-10 Dustin J. Mitchell <dustin@zmanda.com>
2893 * changer-src/chg-zd-mtx.sh.in: remove configurability of mt, mtx paths
2895 2007-04-10 Jean-Louis Martineau <martineau@zmanda.com>
2896 * common-src/krb5-security.c: Initialize rc->gss_context.
2898 2007-04-09 Dustin J. Mitchell <dustin@zmanda.com>
2899 * changer-src/chg-zd-mtx.sh.in: fix bugs in configuration for mt, mtx paths
2901 2007-04-06 Dustin J. Mitchell <dustin@zmanda.com>
2902 * oldrecover-src/extract_list.c oldrecover-src/display_commands.c
2903 client-src/sendbackup.c client-src/getfsent.c client-src/sendsize.c
2904 client-src/selfcheck.c recover-src/amrecover.c recover-src/extract_list.c
2905 recover-src/display_commands.c server-src/amlogroll.c
2906 server-src/amindexd.c server-src/tapefile.c server-src/amcheck.c
2907 server-src/dumper.c server-src/planner.c server-src/reporter.c
2908 server-src/amadmin.c server-src/find.c server-src/infofile.c
2909 restore-src/amidxtaped.c common-src/security-util.c common-src/amanda.h:
2910 improve parsing with strcmp_const and strcmp_const_skip
2912 2007-04-06 Jean-Louis Martineau <martineau@zmanda.com>
2913 * server-src/taper.c: Limit splitsize to 1G in PORT-WRITE.
2915 2007-04-06 Jean-Louis Martineau <martineau@zmanda.com>
2916 * common-src/krb5-security.c: Report client hostname.
2918 2007-04-06 Jean-Louis Martineau <martineau@zmanda.com>
2919 * common-src/tapelist.c (append_to_tape): Don't call dump_tapelist.
2921 2007-04-05 Dustin J. Mitchell <dustin@zmanda.com>
2922 * contrib/macosx/org.amanda.amandad.bsd*.plist: updated to use username
2925 2007-04-05 Dustin J. Mitchell <dustin@zmanda.com>
2926 * amplot/amplot.sh.in configure.in config/acinclude.m4i:
2927 move checks for gnuplot, awk to runtime for easier packaging;
2928 add fake gettext functions to ease the transition to
2929 full gettext support
2931 2007-04-05 Dustin J. Mitchell <dustin@zmanda.com>
2932 * server-src/amindex.c: fix bug where debug fd was closed by safe_fd,
2933 remove remote_hostname, rewrite to use getaddrinfo/getnameinfo
2934 * server-src/dumper.c server-src/amcheck.c recover-src/set_commands.c:
2935 use getaddrinfo/getnameinfo
2936 * common-src/security-util.[ch]: add try_resolving_hostname()
2937 * common-src/ssh-security.c common-src/rsh-security.c:
2938 use try_resolving_hostname, rewrite to avoid gethostbyname
2939 * common-src/krb5-security.c: use getaddrinfo instead of gethostbyname
2941 2007-04-05 Dustin J. Mitchell <dustin@zmanda.com>
2942 * changer-src/chg-lib.sh.in changer-src/chg-mtx.sh.in
2943 changer-src/chg-manual.sh.in changer-src/chg-zd-mtx.sh.in
2944 changer-src/chg-multi.sh.in changer-src/Makefile.am
2945 configure.in: make the path to MTX and other executables configurable
2946 in changer scripts; introduce new changer shell library to reduce
2947 code duplication; add fake gettext functions to ease the transition to
2948 full gettext support
2950 2007-04-04 Dustin J. Mitchell <dustin@zmanda.com>
2951 * server-src/dumper.c server-src/chunker.c: remove assumed ENOSPC
2952 error in static write_tapeheader functions
2954 2007-04-03 Jean-Louis Martineau <martineau@zmanda.com>
2955 * common-src/security-util.c: Remove buggy &.
2957 2007-04-03 Jean-Louis Martineau <martineau@zmanda.com>
2958 * common-src/conffile.c: Add READBLOCKSIZE tapetype config option.
2959 * common-src/conffile.c(getconf_readblocksize): Function to retrieve
2960 the tapetype readblocksize or the configured maxtapeblocksize.
2961 * common-src/conffile.h: Add READBLOCKSIZE tapetype config option.
2962 * man/xml-source/amanda.conf.5.xml: Document it.
2963 * tape-src/output-tape.c: Use getconf_readblocksize.
2964 * tape-src/tapeio.c: Use getconf_readblocksize.
2966 2007-04-03 Jean-Louis Martineau <martineau@zmanda.com>
2967 * common-src/bsd-security.c, common-src/bsdtcp-security.c,
2968 common-src/bsdudp-security.c,
2969 common-src/security-util.c: Fix auth_debug and dbprintf usage.
2971 2007-04-03 Jean-Louis Martineau <martineau@zmanda.com>
2972 Merge from zmanda ext.
2973 * man/xml-source/amadmin.8.xml man/xml-source/amanda.8.xml
2974 server-src/amflush.c server-src/cmdline.c server-src/cmdline.h
2975 server-src/holding.c server-src/holding.h server-src/driver.c
2976 server-src/planner.c server-src/amadmin.c server-src/taper.c
2977 server-src/amcleanupdisk.c server-src/find.c
2978 server-src/Makefile.am: revise holding-disk management, add new
2979 'amadmin' subcommand to list and delete dumps from the holding
2981 * server-src/amadmin.c: Add 'amadmin XX holding list -l'
2983 2007-04-02 Dustin J. Mitchell <dustin@zmanda.com>
2984 * common-src/bsdtcp-security.c common-src/bsd-security.c
2985 common-src/security-util.c common-src/bsdudp-security.c:
2986 bugfixes, always check for NULL ai_canonname
2987 * common-src/util.c common-src/util.h common-src/krb4-security.c
2988 common-src/security-util.c: bugfix for hosts with multiple addresses,
2989 improved cmp_sockaddr, remove redundant checks
2990 * server-src/taper.c: add log message when new tapes are auto-labeled
2991 * common-src/security-util.c: patch to avoid spurious compiler warnings
2994 2007-03-30 Dustin J. Mitchell <dustin@zmanda.com>
2995 * common-src/file.c: remove unused amanda_setup()
2997 2007-03-30 Jean-Louis Martineau <martineau@zmanda.com>
2998 * common-src/amanda.h: Define a _() macro.
3000 2007-03-28 Dustin J. Mitchell <dustin@zmanda.com>
3001 * common/amanda.h: fix typo in SS_SET_INADDR_ANY for non-IPv6
3003 * gnulib/regenerate/regenerate: update to include visibility
3004 and lock modules (See 2007-03-14)
3005 * recover-src/extract_list.c common-src/krb4-security.c
3006 common-src/event.c common-src/security-util.c: use
3007 SELECT_ARG_TYPE instead of fd_set
3009 2007-03-27 Jean-Louis Martineau <martineau@zmanda.com>
3010 * common-src/krb5-security.c: Fix for krb5 and IPv6.
3011 * common-src/security-util.c: Fix for krb5 and IPv6.
3013 2007-03-27 Jean-Louis Martineau <martineau@zmanda.com>
3014 * common-src/krb5-security.c: Compile with heimdal kerberos.
3016 2007-03-27 Jean-Louis Martineau <martineau@zmanda.com>
3017 Fix solaris 9 problem:
3018 * common-src/krb5-security.c: Use putenv instead of setenv.
3019 * common-src/security-util.c: Set flags according to family.
3021 2007-03-27 Jean-Louis Martineau <martineau@zmanda.com>
3022 Merge from zmanda EXT.
3024 2007-03-27 Jean-Louis Martineau <martineau@zmanda.com>
3025 * Makefile.am (EXTRA_DIST): Remove contrib/gnulib-update-current.
3027 2007-03-27 Jean-Louis Martineau <martineau@zmanda.com>
3028 * server-src/reporter.c: Ouput quoted diskname in "DUMP SUMMARY"
3031 2007-03-23 Jean-Louis Martineau <martineau@zmanda.com>
3032 * changer-src/chg-zd-mtx.sh.in: Exit with a message if the
3033 configuration file doesn't exist.
3035 2007-03-23 Jean-Louis Martineau <martineau@zmanda.com>
3036 * common-src/conffile.c: Fix error message.
3038 2007-03-23 Jean-Louis Martineau <martineau@zmanda.com>
3039 * amandad-src/amandad.c: Fix segfault.
3041 2007-03-23 Jean-Louis Martineau <martineau@zmanda.com>
3042 * common-src/security-util.c: Use SS_LEN.
3043 * common-src/util.c: Use SS_LEN.
3045 2007-03-21 Jean-Louis Martineau <martineau@zmanda.com>
3046 * common-src/security.h (security_driver): Add data_encrypt and
3047 data_decrypt function.
3048 * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3049 common-src/bsdudp-security.c, common-src/krb4-security.c,
3050 common-src/rsh-security.c,
3051 common-src/ssh-security.c: Set data_encrypt and data_decrypt to NULL.
3053 * common-src/conffile.c: Parse KRB5KEYTAB and KRB5PRINCIPAL on client.
3054 * common-src/krb5-security.c: Complete rewrite.
3055 * common-src/security-util.h: Change many prototype.
3056 * common-src/security-util.c: Change argument to function.
3057 * recover-src/amrecover.c: Use generic_client_get_security_conf.
3058 * recover-src/extract_list.c: Use generic_client_get_security_conf.
3060 2007-03-21 Jean-Louis Martineau <martineau@zmanda.com>
3061 Merge from zmanda EXT.
3062 - Add SS_INIT, SS_SET_INADDR_ANY, SS_GET_PORT and SS_SET_PORT
3063 macros for IPv6 portability
3064 - add SS_LEN() macro for calculating length of a
3065 struct sockaddr, use it in a few locations where incorrect
3066 lengths were being passed.
3067 - New script for rebuilding gnulib from scratch; current
3068 gnulib is from "cvs update -D '2007-01-31 13:12:51 -0600'"
3070 2007-03-12 Jean-Louis Martineau <martineau@zmanda.com>
3071 * recover-src/set_commands.c (set_tape): Don't amfree(tape).
3072 * oldrecover-src/set_commands.c (set_tape): Don't amfree(tape).
3074 2007-02-22 Jean-Louis Martineau <martineau@zmanda.com>
3075 * changer-src/scsi-linux.c, common-src/security-util.c,
3076 common-src/stream.c, oldrecover-src/amrecover.c,
3077 restore-src/restore.c, server-src/amcheck.c,
3078 server-src/taper.c: Use SIZE_T_FMT and SSIZE_T_FMT instead of %z.
3080 2007-02-22 Jean-Louis Martineau <martineau@zmanda.com>
3081 * common-src/bsd-security.c: Always retry getaddrinfo if INET6 failed.
3082 * common-src/bsdudp-security.c: Ditto.
3084 2007-02-22 Jean-Louis Martineau <martineau@zmanda.com>
3085 * common-src/debug.c: Remove old file in current directory.
3087 2007-02-22 Jean-Louis Martineau <martineau@zmanda.com>
3088 * changer-src/chg-chio.pl.in: Typo.
3090 2007-02-21 Jean-Louis Martineau <martineau@zmanda.com>
3091 * recover-src/extract_list.c: Remove match for path_on_disk_slash.
3093 2007-02-20 Jean-Louis Martineau <martineau@zmanda.com>
3094 * common-src/stream.c, common-src/util.c: Pass exact socklen_t to
3095 bind and connect call.
3097 2007-02-20 Jean-Louis Martineau <martineau@zmanda.com>
3098 * server-src/taper.c: Set splitsize to 0 if no data in file.
3099 * server-src/amflush.c: Don't send FLUSH request if no data in file.
3100 * server-src/planner.c: Don't send FLUSH request if no data in file.
3101 * server-src/driver.c: Don't send request to taper if no data in file.
3103 2007-02-19 Jean-Louis Martineau <martineau@zmanda.com>
3104 * amandad-src/amandad.c: Fix compilation with --without-ipv6.
3106 2007-02-19 Jean-Louis Martineau <martineau@zmanda.com>
3107 * server-src/amverify.sh.in: Remove bogus fi.
3109 2007-02-16 Jean-Louis Martineau <martineau@zmanda.com>
3110 * server-src/amverify.sh.in: Add timeout on wait for device ready.
3111 * changer-src/chg-chio.pl.in: Wait (with timeout) for drive ready.
3113 2007-02-15 Jean-Louis Martineau <martineau@zmanda.com>
3114 * server-src/taper.c: Don't call free_server_config.
3116 2007-02-15 Jean-Louis Martineau <martineau@zmanda.com>
3117 * patching file oldrecover-src/amrecover.h (local_cd): Prototype.
3118 * oldrecover-src/set_commands.c: Works with quoted arguments.
3119 * oldrecover-src/uparse.y (LCD): Call local_cd.
3120 * recover-src/amrecover.h (local_cd): Prototype.
3121 * recover-src/set_commands.c: Works with quoted arguments.
3122 * recover-src/uparse.y (LCD): Call local_cd.
3124 2007-02-14 Jean-Louis Martineau <martineau@zmanda.com>
3125 * common-src/security-util.c: Add "on the client" message.
3127 2007-02-13 Jean-Louis Martineau <martineau@zmanda.com>
3128 * server-src/amstatus.pl.in: fix for chunk and displayunit.
3130 2007-02-13 Jean-Louis Martineau <martineau@zmanda.com>
3131 * server-src/dumper.c: Fix if krb4 is compiled but another auth is
3134 2007-02-13 Jean-Louis Martineau <martineau@zmanda.com>
3135 * common-src/alloc.c (safe_env): Remove LANG and LC_* only if we are
3136 priviledged process.
3138 2007-02-13 Jean-Louis Martineau <martineau@zmanda.com>
3139 * dumper-src/amgtar.pl.in: Replace -t options by -T.
3140 * dumper-src/Makefile.am: Remove perl -t options.
3142 2007-02-12 Jean-Louis Martineau <martineau@zmanda.com>
3143 * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add sl.
3144 * common-src/statfs.c: Fix scale function.
3146 2007-02-12 Jean-Louis Martineau <martineau@zmanda.com>
3147 * client-src/sendsize.c: Fix PARAM_HONOR_NODUMP.
3149 2007-02-09 Jean-Louis Martineau <martineau@zmanda.com>
3150 * server-src/reporter.c: Fix postscript crash.
3152 2007-02-09 Jean-Louis Martineau <martineau@zmanda.com>
3153 * changer-src/chg-manual.sh.in: Add tty, email, tty_email request mode.
3155 2007-02-07 Jean-Louis Martineau <martineau@zmanda.com>
3156 * server-src/amindexd.c: Use dbfd.
3158 2007-02-06 Jean-Louis Martineau <martineau@zmanda.com>
3159 * common-src/alloc.c (vstrallocf): New function.
3160 * common-src/amanda.h (vstrallocf): Prototype.
3161 * client-src/sendsize.c: Send error if fe_rep_sendsize_quoted_error.
3162 * common-src/amfeatures.c (am_init_feature_set): Set
3163 fe_rep_sendsize_quoted_error.
3164 * common-src/amfeatures.h (fe_rep_sendsize_quoted_error): new features.
3165 * server-src/planner.c: Receive error message from sendsize.
3167 2007-02-06 Jean-Louis Martineau <martineau@zmanda.com>
3168 * amandad-src/amandad.c, changer-src/scsi-linux.c,
3169 common-src/conffile.c, configure.in,
3170 man/Makefile.am, man/xml-source/amcheck.8.xml,
3171 server-src/amlabel.c, server-src/taper.c: Merge from zmanda.
3173 2007-02-06 Jean-Louis Martineau <martineau@zmanda.com>
3174 * common-src/clock.c (timesub): The result must always be positive.
3176 2007-02-05 Jean-Louis Martineau <martineau@zmanda.com>
3177 * changer-src/chg-zd-mtx.sh.in: Fix for sed and IMPORT/EXPORT.
3179 2007-02-05 Jean-Louis Martineau <martineau@zmanda.com>
3180 * server-src/amcheck.c: Add parentheses.
3182 2007-02-02 Jean-Louis Martineau <martineau@zmanda.com>
3183 * contrib/gnulib-update-current: New file.
3184 * Makefile.am (EXTRA_DIST): Add contrib/gnulib-update-current.
3186 2007-02-02 Jean-Louis Martineau <martineau@zmanda.com>
3187 * man/Makefile.am: Use http://docbook.sourceforge.net
3188 * man/xml-source/amadmin.8.xml, man/xml-source/amaespipe.8.xml,
3189 man/xml-source/amanda.8.xml, man/xml-source/amanda-client.conf.5.xml,
3190 man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
3191 man/xml-source/amcrypt.8.xml, man/xml-source/amdump.8.xml,
3192 man/xml-source/amfetchdump.8.xml, man/xml-source/amflush.8.xml,
3193 man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
3194 man/xml-source/ammt.8.xml, man/xml-source/amrecover.8.xml,
3195 man/xml-source/amreport.8.xml,
3196 man/xml-source/amtape.8.xml: Fix for xmllint.
3197 * man/xslt/man.xsl: Remove bogus code.
3199 2007-02-01 Jean-Louis Martineau <martineau@zmanda.com>
3200 * changer-src/chg-zd-mtx.sh.in: Support IMPORT/EXPORT slot.
3202 2007-02-01 Jean-Louis Martineau <martineau@zmanda.com>
3203 * server-src/amdump.sh.in: Output a starttime line.
3204 * server-src/amflush.c: Output a starttime line.
3205 * server-src/amstatus.pl.in: parse the starttime line.
3207 2007-01-26 Jean-Louis Martineau <martineau@zmanda.com>
3208 * configure.in: Fix --with-ipv6 option.
3210 2007-01-26 Jean-Louis Martineau <martineau@zmanda.com>
3211 * server-src/amdump.sh.in: Exit with a status.
3213 2007-01-26 Jean-Louis Martineau <martineau@zmanda.com>
3214 * server-src/diskfile.c: Use hostnext pointer.
3216 2007-01-26 Jean-Louis Martineau <martineau@zmanda.com>
3217 * server-src/reporter.c: Exit with a status.
3219 2007-01-26 Jean-Louis Martineau <martineau@zmanda.com>
3220 * server-src/amstatus.pl.in: Exit with a status.
3222 2007-01-26 Jean-Louis Martineau <martineau@zmanda.com>
3223 * server-src/amstatus.pl.in: Detect failed dump to tape.
3225 2007-01-25 Jean-Louis Martineau <martineau@zmanda.com>
3226 * configure.in: Add --with-ipv6 option.
3228 2007-01-25 Jean-Louis Martineau <martineau@zmanda.com>
3229 * server-src/changer.c (changer_command): Send stderr to dbfd().
3231 2007-01-25 Jean-Louis Martineau <martineau@zmanda.com>
3232 * server-src/diskfile.c: Check hostname have same case.
3234 2007-01-25 Jean-Louis Martineau <martineau@zmanda.com>
3235 * changer-src/chg-zd-mtx.sh.in: Check if MT and MTX exists.
3237 2007-01-25 Jean-Louis Martineau <martineau@zmanda.com>
3238 * changer-src/chg-zd-mtx.sh.in: Set CHANGER environment variable.
3240 2007-01-24 Jean-Louis Martineau <martineau@zmanda.com>
3241 * common-src/conffile.c: Cleanup conf_print function.
3243 2007-01-24 Jean-Louis Martineau <martineau@zmanda.com>
3244 * common-src/conffile.c: Check for duplicate -o options.
3245 * recover-src/amrecover.c: Change precedence of option.
3247 2007-01-24 Jean-Louis Martineau <martineau@zmanda.com>
3248 * server-src/diskfile.c: Fix compiler warning.
3250 2007-01-23 Jean-Louis Martineau <martineau@zmanda.com>
3251 * common-src/security-util.c (tcpm_recv_token): Check size < 0.
3254 2007-01-23 Jean-Louis Martineau <martineau@zmanda.com>
3255 * server-src/diskfile.c: Check duplicate DLE with match_host and
3258 2007-01-18 Jean-Louis Martineau <martineau@zmanda.com>
3259 * client-src/selfcheck.c: Improve check if /etc/dumpdates in not there.
3261 2007-01-18 Jean-Louis Martineau <martineau@zmanda.com>
3262 * restore-src/amfetchdump.c: Set arg_state to ARG_GET_HOST.
3264 2007-01-18 Jean-Louis Martineau <martineau@zmanda.com>
3265 * server-src/amcheck.c: Check tape_access.
3266 * server-src/taper.c: Improve message.
3268 2007-01-16 Jean-Louis Martineau <martineau@zmanda.com>
3269 * configure.in: Define GCC_COMPILER.
3270 * gnulib/Makefile.am: Add -Wno-error to AM_CFLAGS if GCC_COMPILER.
3272 2007-01-16 Jean-Louis Martineau <martineau@zmanda.com>
3273 * server-src/getconf.c: Fix segfault in parameter parsing.
3275 2007-01-15 Jean-Louis Martineau <martineau@zmanda.com>
3276 * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3277 common-src/bsdudp-security.c,
3278 common-src/stream.c: Don't call check_addrinfo_give_name.
3279 * common-src/security-util.c (check_addrinfo_give_name): Always log
3282 2007-01-11 Jean-Louis Martineau <martineau@zmanda.com>
3283 * common-src/conffile.c Set default length/filemark correctly.
3284 * man/xml-source/amanda.conf.5.xml: Document they are in kbytes.
3286 2007-01-10 Jean-Louis Martineau <martineau@zmanda.com>
3287 * config/gnulib/gnulib-common.m4: New file.
3288 * config/gnulib.m4i: Load config/gnulib/gnulib-common.m4.
3290 2007-01-10 Jean-Louis Martineau <martineau@zmanda.com>
3291 * amandad-src/amandad.c (do_sendpkt): Send packet if handle != NULL.
3293 2007-01-10 Jean-Louis Martineau <martineau@zmanda.com>
3294 * common-src/conffile.c, common-src/conffile.h,
3295 server-src/diskfile.c: Keep different list for exclude file and list.
3297 2007-01-10 Jean-Louis Martineau <martineau@zmanda.com>
3298 * server-src/taper.c (read_file): Don't count first header twice.
3300 2007-01-05 Jean-Louis Martineau <martineau@zmanda.com>
3301 * server-src/amstatus.pl.in: Fix split-dump accounting.
3303 2007-01-04 Jean-Louis Martineau <martineau@zmanda.com>
3304 * restore-src/restore.c: Use prompt_in.
3306 2007-01-04 Jean-Louis Martineau <martineau@zmanda.com>
3307 * amandad-src/amandad.c, common-src/bsd-security.c,
3308 common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
3309 common-src/dgram.c, common-src/security-util.c,
3310 common-src/stream.c,
3311 common-src/util.c: Replace HAVE_IPV6 by WORKING_IPV6.
3312 * configure.in: Define HAVE_IPV6 if IPv6 is working.
3314 2007-01-04 Jean-Louis Martineau <martineau@zmanda.com>
3315 * changer-src/chg-chio.pl.in, changer-src/chg-iomega.pl.in,
3316 changer-src/chg-rth.pl.in, dumper-src/amgtar.pl.in,
3317 server-src/amoverview.pl.in, server-src/amstatus.pl.in,
3318 server-src/amtoc.pl.in: Clean ENV and set PATH.
3320 2006-12-27 Jean-Louis Martineau <martineau@zmanda.com>
3321 * server-src/driver.c: Don't repport error for many run in a day if
3324 2006-12-27 Jean-Louis Martineau <martineau@zmanda.com>
3325 * common-src/util.c (quote_string): Escape '\' character.
3327 2006-12-22 Jean-Louis Martineau <martineau@zmanda.com>
3328 * recover-src/display_commands.c: Send quoted text to amindexd.
3329 * recover-src/extract_list.c: Send quoted text to amindexd.
3330 * recover-src/set_commands.c: Send quoted text to amindexd.
3332 2006-12-22 Jean-Louis Martineau <martineau@zmanda.com>
3333 * changer-src/chg-disk.sh.in: LASTSLOT in a changerfile for chg-disk.
3335 2006-12-22 Jean-Louis Martineau <martineau@zmanda.com>
3336 * client-src/sendsize.c: Compilation fix.
3338 2006-12-18 Jean-Louis Martineau <martineau@zmanda.com>
3339 * common-src/packet.c (pkt_init_empty): New function.
3340 * common-src/packet.h (pkt_init_empty): New prototype.
3341 * amandad-src/amandad.c, common-src/protocol.c,
3342 common-src/security-util.c: Use pkt_init_empty.
3344 2006-12-18 Jean-Louis Martineau <martineau@zmanda.com>
3345 * common-src/conffile.c: Print nothing if the list is emtpy.
3347 2006-12-14 Jean-Louis Martineau <martineau@zmanda.com>
3348 * restore-src/restore.c: Fix filename for output file.
3350 2006-12-12 Jean-Louis Martineau <martineau@zmanda.com>
3351 * common-src/amanda.h: Define __attribute__ for gcc >= 3.
3352 * common-src/packet.c (pkt_init): Accept NULL for fmt.
3353 * amandad-src/amandad.c, common-src/protocol.c,
3354 common-src/security-util.c: Pass NULL to pkt_init.
3355 * amandad-src/amandad.c, changer-src/chg-scsi.c,
3356 changer-src/scsi-linux.c, client-src/sendbackup.c,
3357 common-src/amanda.h, common-src/conffile.c,
3358 common-src/event.c, common-src/packet.c,
3359 common-src/security-util.c, common-src/stream.c,
3360 common-src/util.c, oldrecover-src/amrecover.c,
3361 restore-src/restore.c, server-src/amcheck.c,
3362 server-src/driver.c, server-src/driverio.c,
3363 server-src/taper.c: Fix printf format error.
3365 2006-12-12 Jean-Louis Martineau <martineau@zmanda.com>
3366 * server-src/amindexd.c: Use fgets to read index file because they
3369 2006-12-12 Jean-Louis Martineau <martineau@zmanda.com>
3370 * configure.in: Find patch for sort program.
3371 * server-src/amindexd.c: Clean the indexd file between the uncompress
3374 2006-12-08 Jean-Louis Martineau <martineau@zmanda.com>
3375 * configure.in: Add ICE_CHECK_DECL(snprintf,stdio.h)
3376 * configure.in: Add ICE_CHECK_DECL(vsnprintf,stdio.h)
3377 * client-src/sendbackup.c: Fix ignoring return value of write.
3379 2006-12-08 Jean-Louis Martineau <martineau@zmanda.com>
3380 * man/xml-source/amadmin.8.xml, man/xml-source/amanda.8.xml,
3381 man/xml-source/amanda.conf.5.xml, man/xml-source/amcheck.8.xml,
3382 man/xml-source/amfetchdump.8.xml, man/xml-source/ammt.8.xml,
3383 man/xml-source/amrecover.8.xml: Move </note> tag to beginning of line
3385 2006-12-08 Jean-Louis Martineau <martineau@zmanda.com>
3386 * changer-src/chg-rait.sh.in: Fix typo for -reset.
3388 2006-12-07 Jean-Louis Martineau <martineau@zmanda.com>
3389 * server-src/amindexd.c: Fix host case problem.
3390 * server-src/diskfile.c (add_disk, parse_diskline): Update hostname
3392 * server-src/diskfile.h (disk_s): New hostname field.
3393 * server-src/disk_history.c (add_dump): New hostname parameter.
3394 * server-src/disk_history.h (DUMP_ITEM): New hostname field.
3395 * server-src/disk_history.h (add_dump): Protoype change.
3397 2006-12-07 Jean-Louis Martineau <martineau@zmanda.com>
3398 * amandad-src/amandad.c: Add missing HAVE_IPV6.
3399 * common-src/security-util.c: Add missing HAVE_IPV6.
3400 * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3401 common-src/bsdudp-security.c, common-src/dgram.c,
3402 common-src/dgram.h, common-src/stream.c,
3403 common-src/util.c: Fix for broken getaddrinfo:not returning V4MAPPED
3405 2006-12-07 Jean-Louis Martineau <martineau@zmanda.com>
3406 * common-src/conffile.c (lookup_keyword): Use strcasecmp.
3407 * common-src/conffile.c (get_conftoken): Don;t convert to uppercase.
3408 * server-src/getconf.c: Don;t print extra '\n' for --list.
3410 2006-12-04 Jean-Louis Martineau <martineau@zmanda.com>
3411 * common-src/util.c (str_sockaddr): Use host byte order for port.
3413 2006-12-04 Jean-Louis Martineau <martineau@zmanda.com>
3414 * server-src/amtape.h: Remove file.
3416 2006-12-04 Jean-Louis Martineau <martineau@zmanda.com>
3417 Application API phase 1.
3418 * client-src/client_util.c, client-src/client_util.h,
3419 client-src/selfcheck.c, client-src/sendbackup.c,
3420 client-src/sendsize.c, common-src/amfeatures.c,
3421 common-src/amfeatures.h, common-src/fileheader.c,
3422 common-src/fileheader.h, recover-src/extract_list.c,
3423 server-src/amcheck.c, server-src/amstatus.pl.in,
3424 server-src/dumper.c, server-src/Makefile.am,
3425 server-src/planner.c: Fix for Application API.
3426 * configure.in: Fix for moved files.
3427 * dumper-src/generic-dumper.pl.in: Fix for Application API.
3428 * dumper-src/Makefile.am: Fix for renamed files.
3429 * dumper-src/gnutar.pl.in: Renamed to dumper-src/amgtar.pl.in.
3430 * dumper-src/amgtar.pl.in: Fix for Application API.
3431 * dumper-src/star.pl.in: Renamed to dumper-src/amstar.pl.in.
3432 * dumper-src/amstar.pl.in: Fix for Application API.
3434 2006-11-29 Jean-Louis Martineau <martineau@zmanda.com>
3435 * client-src/sendbackup.c: Kill dump process on error.
3437 2006-11-29 Jean-Louis Martineau <martineau@zmanda.com>
3438 * changer-src/chg-chio.pl.in: Check tapedev is set.
3439 * changer-src/chg-disk.sh.in: Check tapedev is set.
3440 * changer-src/chg-iomega.pl.in: Check tapedev is set.
3441 * changer-src/chg-manual.sh.in: Check tapedev is set.
3442 * changer-src/chg-mtx.sh.in: Check tapedev is set.
3443 * changer-src/chg-rth.pl.in: Check tapedev is set.
3444 * server-src/amcheck.c: Tapedev is needed only if tpchanger is not set.
3445 * server-src/amflush.c: Tapedev is needed only if tpchanger is not set.
3446 * server-src/amindexd.c: Tapedev is needed only if tpchanger is not set
3447 * server-src/taper.c: Tapedev is needed only if tpchanger is not set.
3449 2006-11-29 Jean-Louis Martineau <martineau@zmanda.com>
3450 * client-src/sendbackup.c: Ignore tar exit with status 1.
3452 2006-11-29 Jean-Louis Martineau <martineau@zmanda.com>
3453 * server-src/amindexd.c (clean_backslash): New function use to unescape
3454 '\' characters in index files.
3456 2006-11-29 Jean-Louis Martineau <martineau@zmanda.com>
3457 * restore-src/restore.c (search_tapes): Fix prompt_out setting.
3459 2006-11-28 Jean-Louis Martineau <martineau@zmanda.com>
3460 * common-src/amanda.h: Don't include gnulib header if CONFIGURE_TEST
3462 * common-src/amflock.c (main): Remove unused fd variable.
3464 2006-11-28 Jean-Louis Martineau <martineau@zmanda.com>
3465 * config/Makefile.am (EXTRA_DIST): Add gnulib.m4i.
3467 2006-11-27 Jean-Louis Martineau <martineau@zmanda.com>
3468 * common-src/util.c (copy_file): Fix compilation error.
3470 2006-11-27 Jean-Louis Martineau <martineau@zmanda.com>
3471 * common-src/stream.c: Fix compilation error.
3473 2006-11-27 Jean-Louis Martineau <martineau@zmanda.com>
3474 * common-src/amanda.h (NI_MAXHOST): Define if not defined.
3475 * common-src/bsd-security.c, common-src/bsdtcp-security.c,
3476 common-src/bsdudp-security.c, common-src/dgram.c,
3477 common-src/security-util.c, common-src/stream.c,
3478 common-src/util.c: HAVE_IPV6 conditional code
3480 2006-11-26 Jean-Louis Martineau <martineau@zmanda.com>
3481 * config/gnulib/*: m4 files for gnulib.
3482 * config/gnulib.m4i: File to load all m4 files for gnulib.
3483 * gnulib/*: gnulib source.
3484 * */Makefile.am (INCLUDES): Add $(top_srcdir)/gnulib.
3485 * */Makefile.am (LDADD): Add ../gnulib/libgnu.$(LIB_EXTENSION).
3486 * Makefile.am (ACINCLUDE_M4_DEPS): Add $(srcdir)/config/gnulib.m4i.
3487 * Makefile.am (SUBDIRS): Add gnulib.
3488 * configure.in: AC_PREREQ(2.59), gl_EARLY, gl_INIT.
3489 * configure.in (AC_CONFIG_FILES): Add gnulib/Makefile.
3490 * autogen: Add config/gnulib.m4i to acinclude.m4.
3492 2006-11-24 Jean-Louis Martineau <martineau@zmanda.com>
3493 * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c,
3494 client-src/sendsize.c,
3495 server-src/amindexd.c: Patch for gcc-3.2.3 to compile the new
3498 2006-11-24 Jean-Louis Martineau <martineau@zmanda.com>
3499 * common-src/file.c (old_sanitise_filename): New function.
3500 * common-src/amanda.h (old_sanitise_filename): Prototype.
3501 * common-src/util.c (copy_file): New function.
3502 * common-src/util.h (copy_file): Prototype.
3503 * server-src/diskfile.c: Check that two DLE doesn't get the same
3505 * server-src/amindex.c (getoldindexfname): New function.
3506 * server-src/amindex.h (getoldindexfname): prototype.
3507 * server-src/amindexd.c: Use the old sanitized filename if the new
3509 * server-src/amcheck.c: Call check_infofile.
3510 * server-src/planner.c: Call check_infofile.
3511 * server-src/server_util.c (check_infofile): New function, will copy
3512 the old sanitizes info file if the new doesn't exist.
3513 * server-src/server_util.h (check_infofile): Prototype.
3515 2006-11-23 Jean-Louis Martineau <martineau@zmanda.com>
3516 * common-src/security-util.c (tcpm_recv_token): amanda protocol
3517 packet can be larger than NETWORK_BLOCK_BYTES
3519 2006-11-21 Jean-Louis Martineau <martineau@zmanda.com>
3520 * common-src/stream.c: Fix compiler error.
3522 2006-11-21 Jean-Louis Martineau <martineau@zmanda.com>
3523 * amandad-src/amandad.c, common-src/amanda.h,
3524 common-src/bsd-security.c, common-src/bsdtcp-security.c,
3525 common-src/bsdudp-security.c, common-src/dgram.c,
3526 common-src/dgram.h, common-src/krb4-security.c,
3527 common-src/krb5-security.c, common-src/security-util.c,
3528 common-src/security-util.h, common-src/stream.c,
3529 common-src/util.c, common-src/util.h,
3530 restore-src/amidxtaped.c, server-src/amindexd.c: IPV6.
3532 2006-11-20 Jean-Louis Martineau <martineau@zmanda.com>
3533 * client-src/sendsize.c, oldrecover-src/display_commands.c,
3534 oldrecover-src/extract_list.c, recover-src/display_commands.c,
3535 recover-src/extract_list.c,
3536 server-src/driver.c: Fix compiler error.
3538 2006-11-20 Jean-Louis Martineau <martineau@zmanda.com>
3539 * client-src/sendsize.c: Open the amandates file after the
3540 <config>/amanda-client.conf file is loaded.
3542 2006-11-20 Jean-Louis Martineau <martineau@zmanda.com>
3543 * client-src/sendsize.c: Fix compiler error on boris.
3544 * server-src/driver.c: Fix compiler error on rocky.
3546 2006-11-20 Jean-Louis Martineau <martineau@zmanda.com>
3547 * common-src/security-util.c, server-src/amcheck.c,
3548 * server-src/driver.c, server-src/dumper.c,
3549 * server-src/planner.c, tape-src/output-file.c: Lint cleanup.
3551 2006-11-20 Ian Turner <ian@zmanda.com>
3552 * tape-src/output-file.c: Fix a compilation error related to
3553 improper type casts. Thanks to Satya Ganga for noticing this
3556 2006-11-20 Jean-Louis Martineau <martineau@zmanda.com>
3557 * server-src/driver.c: Use temporary variable to scanf an OFF_T_FMT.
3558 * server-src/planner.c: Use temporary variable to scanf an OFF_T_FMT.
3560 2006-11-13 Jean-Louis Martineau <martineau@zmanda.com>
3561 * client-src/selfcheck.c: Work for estimate calcsize and
3564 2006-11-13 Jean-Louis Martineau <martineau@zmanda.com>
3565 * server-src/amcheck.c: Don't ouput an warning if holdingdisk 'use'
3568 2006-11-09 Jean-Louis Martineau <martineau@zmanda.com>
3569 * man/xml-source/amgetconf.8.xml: Document --list.
3571 2006-11-09 Jean-Louis Martineau <martineau@zmanda.com>
3572 * changer-src/chg-scsi.c: Don't remove '_' from "generic_changer".
3574 2006-11-08 Jean-Louis Martineau <martineau@zmanda.com>
3575 * common-src/amanda.h, common-src/conffile.c,
3576 common-src/conffile.h, common-src/security-util.c,
3577 configure.in, oldrecover-src/amrecover.c,
3578 oldrecover-src/extract_list.c, recover-src/amrecover.c,
3579 recover-src/extract_list.c, restore-src/amrestore.c,
3580 server-src/dumper.c: Fix compiler error on Tru64.
3582 2006-11-08 Jean-Louis Martineau <martineau@zmanda.com>
3583 * common-src/conffile.c (getconf_byname):
3584 Parse "DEFINE:identifer:parameter" format.
3585 * common-src/conffile.c (getconf_list): New function to list a DEFINE.
3586 * common-src/conffile.c (lookup_holdingdisk): New function.
3587 * common-src/conffile.h (getconf_list,
3588 lookup_holdingdisk): New prototype.
3589 * server-src/getconf.c: accept --list argument and
3590 "DEFINE:identifer:parameter" format.
3591 * man/xml-source/amgetconf.8.xml: Document.
3593 2006-11-08 Jean-Louis Martineau <martineau@zmanda.com>
3594 * server-src/driver.c: set off_t variable to 0 before sscanf.
3595 * server-src/planner.c: set off_t variable to 0 before sscanf.
3597 2006-11-07 Jean-Louis Martineau <martineau@zmanda.com>
3598 * server-src/amstatus.pl.in: Improve error message.
3600 2006-11-07 Jean-Louis Martineau <martineau@zmanda.com>
3601 * common-src/security-util.c: Fix coverity bug 170.
3602 * server-src/diskfile.c: Fix coverity bug 147.
3604 2006-11-07 Jean-Louis Martineau <martineau@zmanda.com>
3605 * common-src/conffile.c (validate_chunksize): Check chunksize is >=
3608 2006-11-06 Jean-Louis Martineau <martineau@zmanda.com>
3609 * common-src/amanda.h: Define OFF_T_STRTOL.
3610 * configure.in: Check for strtol and strtoll.
3612 2006-11-02 Ian Turner <ian@zmanda.com>
3613 * common-src/amanda.h: Use atol if atoll is missing.
3615 2006-11-02 Jean-Louis Martineau <martineau@zmanda.com>
3616 * common-src/security-util.c: Better message on invalid size.
3618 2006-11-02 Jean-Louis Martineau <martineau@zmanda.com>
3619 * configure.in: List bsdudp as a udp transport.
3621 2006-11-01 Jean-Louis Martineau <martineau@zmanda.com>
3622 * server-src/diskfile.c: Don't use 0 for NULL.
3624 2006-11-01 Jean-Louis Martineau <martineau@zmanda.com>
3625 Revert Ian patch of 2006-10-29.
3626 * common-src/conffile.c: Defile AMANDATES_FILE
3627 * client-src/amandates.h: Don't define AMANDATES_FILE
3629 2006-11-01 Jean-Louis Martineau <martineau@zmanda.com>
3630 * common-src/conffile.c: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
3631 * common-src/conffile.h: Rename DUMPTYPE_START_T to DUMPTYPE_STARTTIME.
3632 * server-src/amadmin.c (disklist_one): Print correct starttime.
3633 * server-src/diskfile.c: Set start_t to starttime.
3634 * server-src/diskfile.h (disk_t): Add starttime.
3636 2006-11-01 Jean-Louis Martineau <martineau@zmanda.com>
3637 * changer-src/scsi-changer-driver.c: Add Tandberg SLR100,
3639 * changer-src/sense.c: Add Tandberg SLR100 Tape Drive "SLR100".
3641 2006-11-01 Jean-Louis Martineau <martineau@zmanda.com>
3642 * common-src/amanda.h: Define dbrename if !DEBUG_CODE.
3643 * restore-src/amidxtaped.c: Declare i if !DEBUG_CODE.
3645 2006-10-30 Jean-Louis Martineau <martineau@zmanda.com>
3646 * server-src/amadmin.c (disklist_one): Print ignore field.
3647 * server-src/amoverview.pl.in: Ignore 'ignore yes' and 'strategy skip'.
3648 * server-src/diskfile.c: Correct hostname allocation.
3649 Keep 'ignore yes' and 'strategy skip' DLE in
3650 memory, set there todo to 0.
3651 * server-src/diskfile.h: (struct disk_s): New ignore field.
3653 2006-10-29 Ian Turner <ian@zmanda.com>
3654 This was reported as debian bug 394796. Thanks to Damyan Ivanov
3655 <dam@modsoftsys.com> for reporting and to Bdale Garbee
3656 <bdale@gag.com> for a preliminary patch.
3657 * common-src/conffile.c: Use AMANDATES_FILE as default for
3658 location of amandates.
3659 * common-src/amandates.h: Move from client-src/
3660 * client-src/amandates.h: Move to common-src/
3661 * common-src/Makefile.am: Update to reflect new location of
3663 * client-src/Makefile.am: ditto.
3665 2006-10-25 Jean-Louis Martineau <martineau@zmanda.com>
3666 Patch by Jay Fenlason
3667 * common-src/rsh-security.c: Fix.
3669 2006-10-24 Jean-Louis Martineau <martineau@zmanda.com>
3670 * common-src/conffile.c (get_config_options): Build and argv of the
3672 * common-src/conffile.h (get_config_options): Prototype.
3673 * server-src/driverio.c: exec dumper/chunker/driver with the argv from
3675 * server-src/amtape.c: Accept -o argument.
3676 * man/xml-source/amtape.8.xml: Document it.
3678 2006-10-24 Jean-Louis Martineau <martineau@zmanda.com>
3679 * server-src/taper.c: Fix allocation problem on tapedev.
3681 2006-10-20 Jean-Louis Martineau <martineau@zmanda.com>
3682 * common-src/conffile.c (conf_print): Add a parameter if we want
3683 CONFTYPE_STRING enclosed in ".
3684 * server-src/planner.c: Use getconf_int to get etimeout value.
3686 2006-10-20 Jean-Louis Martineau <martineau@zmanda.com>
3687 * server-src/taper.c (free_split_buffer): Correct free.
3689 2006-10-20 Jean-Louis Martineau <martineau@zmanda.com>
3690 * client-src/sendbackup.c: Parse quote amdevice.
3691 * server-src/amcheck.c: Send quoted amdevice.
3692 * server-src/planner.c: Send quoted amdevice.
3694 2006-10-20 Jean-Louis Martineau <martineau@zmanda.com>
3695 * common-src/conffile.c (CNF_CTIMEOUT, CNF_DTIMEOUT, CNF_ETIMEOUT):
3696 They are of type CONFTYPE_INT
3697 (CONFTYPE_TIME are for value parsed as "hhmm"")
3698 * common-src/conffile.c (getconf_byname): Use conf_print().
3699 * common-src/conffile.h: Add comment.
3700 * server-src/amcheck.c, server-src/dumper.c, server-src/planner.c:
3701 Use getconf_int to get timeout value.
3703 2006-10-19 Jean-Louis Martineau <martineau@zmanda.com>
3704 * man/xml-source/amanda.conf.5.xml: Fix formating.
3706 2006-10-19 Jean-Louis Martineau <martineau@zmanda.com>
3707 * client-src/calcsize.c, client-src/sendsize.c: Remove bogus fseek.
3709 2006-10-19 Jean-Louis Martineau <martineau@zmanda.com>
3710 * client-src/calcsize.c: Quote amname.
3712 2006-10-19 Jean-Louis Martineau <martineau@zmanda.com>
3713 * server-src/driver.c: Print an L_STATS with the hostname
3714 * server-src/reporter.c: Print hostname, org, config and date at the
3715 beginning of the report
3717 2006-10-16 Jean-Louis Martineau <martineau@zmanda.com>
3718 * common-src/dgram.c (dgram_cat),
3719 common-src/packet.c (pkt_init, pkt_cat): Works correctly with
3720 vsnprintf returning -1.
3722 2006-10-11 Jean-Louis Martineau <martineau@zmanda.com>
3723 * common-src/Makefile.am (libamanda_la_LIBADD) Remove @LTLIBOBJS@.
3725 2006-10-11 Jean-Louis Martineau <martineau@zmanda.com>
3726 * server-src/taper.c: stralloc(tapedev).
3727 * configure.in (EXAMPLE_TAPEDEV): Set to /dev/null if no tape-device.
3728 * example/amanda-client.conf.in, example/amanda.conf.in
3729 example/chg-mcutil.conf.in: Use EXAMPLE_TAPEDEV.
3731 2006-10-11 Jean-Louis Martineau <martineau@zmanda.com>
3732 * common-src/alloca.c, common-src/getcwd.c, common-src/mktime.c,
3733 common-src/memmove.c, common-src/snprintf.c,
3734 common-src/strcasecmp.c, common-src/strerror.c,
3735 common-src/strftime.c, common-src/strncasecmp.c,
3736 common-src/strstr.c, common-src/waitpid.c,
3737 COPYRIGHT-APACHE: Removed files.
3738 * configure.in: Remove many AC_REPLACE_FUNCS.
3739 * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-APACHE.
3741 2006-10-11 Jean-Louis Martineau <martineau@zmanda.com>
3742 * common-src/Makefile.am: Remove all reference to our regex
3743 * common-src/match.c: #include <regex.h>, the system regex
3744 * common-src/memmove.c: No more memmove in regex-src
3745 * Makefile.am (pkgdata_DATA): Remove COPYRIGHT-REGEX
3746 * Makefile.am (EXTRA_DIST): Remove regex-src/*
3747 * regex-src: Remove directory.
3748 * common-src/regcomp.c, common-src/regerror.c,
3749 common-src/regexec.c, common-src/regfree.c,
3750 common-src/amregex.h: Remove files.
3752 2006-10-11 Jean-Louis Martineau <martineau@zmanda.com>
3753 * server-src/planner.c: Improve message for dump larger than available
3754 tape space if runtapes > 1 and splitsize == 0.
3756 2006-10-10 Jean-Louis Martineau <martineau@zmanda.com>
3757 * server-src/driver.c (wait_children): Don't crash if dumper->chunker
3760 2006-10-04 Jean-Louis Martineau <martineau@zmanda.com>
3761 * amandad-src/amandad.c: Call security_recvpkt() on A_SENDNACK
3763 * common-src/security-util.c: Improve message.
3765 2006-10-03 Jean-Louis Martineau <martineau@zmanda.com>
3766 * server-src/amcleanupdisk.c: Accept -o arguments.
3767 * server-src/amcleanup.sh.in: Add missing 'shift' for non-linux system.
3768 Accept -o arguments.
3770 2006-10-03 Jean-Louis Martineau <martineau@zmanda.com>
3771 * server-src/amoverview.pl.in: Fix parsing of time field from amadmin.
3773 2006-10-03 Jean-Louis Martineau <martineau@zmanda.com>
3774 * restore-src/amidxtaped.c, restore-src/restore.c,
3775 server-src/amcheck.c, server-src/amflush.c,
3776 server-src/amlabel.c, server-src/taper.c,
3777 server-src/taperscan.c: Check for CNF_TAPEDEV == NULL.
3779 2006-10-03 Jean-Louis Martineau <martineau@zmanda.com>
3780 * common-src/conffile.c: Don't set CNF_TAPEDEV to DEFAULT_TAPE_DEVICE.
3781 * configure.in: Don't set DEFAULT_TAPE_DEVICE.
3783 2006-09-29 Jean-Louis Martineau <martineau@zmanda.com>
3784 * common-src/bsdtcp-security.c: Add logging on error.
3786 2006-09-29 Jean-Louis Martineau <martineau@zmanda.com>
3787 * server-src/amoverview.pl.in: Use shellwords instead of quotewords,
3788 don't add date for disk not in the disklist.
3790 2006-09-28 Jean-Louis Martineau <martineau@zmanda.com>
3791 * common-src/bsd-security.c: Fix %hd printf argument format.
3792 * common-src/security-util.c: Fix %hd printf argument format.
3794 2006-09-28 Jean-Louis Martineau <martineau@zmanda.com>
3795 * common-src/conffile.c (client_keytab): Add DEBUG_*.
3796 * oldrecover-src/amrecover.c: Call read_clientconf.
3798 2006-09-27 Jean-Louis Martineau <martineau@zmanda.com>
3799 * restore-src/restore.c: Improve debugging.
3800 * server-src/changer.c: Make sure to dup the fd out of the 0..2 range.
3802 2006-09-27 Jean-Louis Martineau <martineau@zmanda.com>
3803 * restore-src/amfetchdump.c: Pass new prompt_in parameter to
3805 * restore-src/restore.c (search_tapes, load_manual_tape): New prompt_in
3807 * restore-src/restore.h (search_tapes): New prompt_in parameter.
3808 * restore-src/amidxtaped.c: Set new 'FILE *' instead of reusing stdin
3810 * server-src/amindexd.c: Set new 'FILE *' instead of reusing stdin
3813 2006-09-27 Jean-Louis Martineau <martineau@zmanda.com>
3814 Patch by Orion Poplawski <orion@cora.nwra.com>
3815 * server-src/planner.c: Add a skip_quoted_line() on error.
3817 2006-09-23 Jean-Louis Martineau <martineau@zmanda.com>
3818 * server-src/amstatus.pl.in: Fix parsing of 'taper: wrote label' line.
3819 * server-src/amtoc.pl.in: Fix parsing of 'START taper' line.
3821 2006-09-22 Jean-Louis Martineau <martineau@zmanda.com>
3822 * common-src/conffile.h: New CONFTYPE_INTRANGE conftype_t.
3823 * common-src/conffile.c: New CNF_RESERVED_UDP_PORT,
3824 CNF_RESERVED_TCP_PORT,
3825 CNF_UNRESERVED_TCP_PORT config options.
3826 * common-src/dgram.c: Use the new CNF_RESERVED_UDP_PORT option.
3827 * common-src/stream.c: Use the new CNF_*RESERVED_PORT options.
3828 * man/xml-source/amanda-client.conf.5.xml: Document it.
3829 * man/xml-source/amanda.conf.5.xml: Document it.
3831 2006-09-22 Jean-Louis Martineau <martineau@zmanda.com>
3832 Patch by William Jojo
3833 * client-src/sendsize.c: Fix #endif for AIX.
3835 2006-09-22 Jean-Louis Martineau <martineau@zmanda.com>
3836 * common-src/packet.c: Fix use of arglist_start/arglist_end.
3837 * server-src/amindexd.c: Fix use of vsnprintf (for IRIX).
3838 * server-src/logfile.c: Fix use of arglist_start/arglist_end.
3840 2006-09-21 Jean-Louis Martineau <martineau@zmanda.com>
3841 * server-src/amcheck.c: Don't assert if holding use is set to 0.
3843 2006-09-19 Jean-Louis Martineau <martineau@zmanda.com>
3844 * server-src/find.c (search_logfile): Count 'PARTIAL taper line'.
3846 2006-09-19 Jean-Louis Martineau <martineau@zmanda.com>
3847 Patch by Paul Bijens
3848 * server-src/amcheck.c: Print "tapelist" instead of "tapefile".
3850 2006-09-19 Jean-Louis Martineau <martineau@zmanda.com>
3851 * common-src/dgram.c (dgram_bind): Remove unused variables.
3853 2006-09-19 Jean-Louis Martineau <martineau@zmanda.com>
3854 * common-src/conffile.c, common-src/conffile.h: Add debug_amandad,
3855 debug_amidxtaped, debug_amindexd, debug_amrecover, debug_auth,
3856 debug_event, debug_holding, debug_protocol, debug_planner,
3857 debug_driver, debug_dumper, debug_chunker, debug_taper,
3858 debug_selfcheck, debug_sendsize, debug_sendbackup
3859 configurations options.
3860 * common-sc/debug.c: Use it's own clock function.
3861 * amandad-src/amandad.c, amandad-src/amandad_util.c,
3862 client-src/calcsize.c, client-src/client_util.c,
3863 client-src/killpgrp.c, client-src/rundump.c,
3864 client-src/runtar.c, client-src/selfcheck.c,
3865 client-src/sendbackup.c, client-src/sendsize.c,
3866 common-src/bsd-security.c, common-src/bsdtcp-security.c,
3867 common-src/bsdudp-security.c, common-src/debug.c,
3868 common-src/dgram.c, common-src/event.c,
3869 common-src/krb5-security.c, common-src/pipespawn.c,
3870 common-src/protocol.c, common-src/rsh-security.c,
3871 common-src/security.c, common-src/security-util.c,
3872 common-src/security-util.h, common-src/ssh-security.c,
3873 common-src/stream.c, common-src/util.c,
3874 recover-src/amrecover.c, restore-src/amidxtaped.c,
3875 server-src/amindexd.c, server-src/chunker.c,
3876 server-src/driver.c, server-src/dumper.c,
3877 server-src/planner.c,
3878 server-src/taper.c: Use the debug_* configuration options.
3879 Use debug_prefix_time to print the time on
3880 all debugging message.
3882 2006-09-19 Jean-Louis Martineau <martineau@zmanda.com>
3883 * amandad-src/amandad.c: Use CNF_REP_TRIES.
3884 * common-src/conffile.c: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
3885 configuration options.
3886 * common-src/conffile.h: New CONNECT_TRIES, REQ_TRIES, REP_TRIES
3887 configuration options.
3888 * common-src/protocol.c: Use CNF_CONNECT_TRIES and CNF_REQ_TRIES.
3889 * common-src/protocol.c: Rename reqtries to resettries.
3890 Rename acktries to reqtries.
3891 * man/xml-source/amanda-client.conf.5.xml: Document new options.
3892 * man/xml-source/amanda.conf.5.xml: Document new options.
3894 2006-09-19 Jean-Louis Martineau <martineau@zmanda.com>
3895 * amandad-src/amandad.c: Read client configuratrion file.
3896 * client-src/client_util.c, client-src/selfcheck.c,
3897 client-src/sendbackup.c, client-src/sendbackup-dump.c,
3898 client-src/sendbackup-gnutar.c, client-src/sendsize.c,
3899 recover-src/amrecover.c, recover-src/extract_list.c,
3900 restore-src/amfetchdump.c, server-src/amadmin.c,
3901 server-src/amcheck.c, server-src/amflush.c,
3902 server-src/amflush.c, server-src/amlabel.c,
3903 server-src/amlogroll.c, server-src/amtrmidx.c,
3904 server-src/amtrmlog.c, server-src/chunker.c,
3905 server-src/diskfile.c, server-src/driver.c,
3906 server-src/dumper.c, server-src/getconf.c,
3907 server-src/planner.c, server-src/reporter.c,
3908 server-src/taper.c: Use generic macro/functions instead of
3909 client/server functions.
3910 * client-src/client_util.h: Remove unuse macro.
3911 * client-src/Makefile.am: Remove clientconf.? files.
3912 * common-src/amanda.h: Define MAX_DUMPERS.
3913 * common-src/conffile.c: New file, merge of client-src/clientconf.c
3914 and server-src/conffile.c
3915 * common-src/conffile.h: New file, merge of client-src/clientconf.c
3916 and server-src/conffile.c
3917 * common-src/Makefile.am (libamanda_la_SOURCES): Add conffile.c
3918 * common-src/Makefile.am (noinst_HEADERS): Add conffile.h
3919 * common-src/util.c: Move many thing to common-src/conffile.c.
3920 * common-src/util.h: Move many thing to common-src/conffile.h.
3921 * server-src/driverio.h: Remove MAX_DUMPERS define.
3922 * server-src/Makefile.am: Remove conffile.[hc].
3924 2006-09-19 Jean-Louis Martineau <martineau@zmanda.com>
3925 * common-src/dgram.c (dgram_bind): Don't set SO_REUSEADDR on socket.
3927 2006-09-19 Jean-Louis Martineau <martineau@zmanda.com>
3928 * common-src/util.c (connect_port): Make EHOSTUNREACH and ENETUNREACH
3931 2006-09-18 Jean-Louis Martineau <martineau@zmanda.com>
3932 * common-src/util.c(dump_sockaddr): Convert from network to machine
3933 bytes order before printing.
3934 * common-src/dgram.c (dgram_recv): Print the fromaddr.
3936 2006-09-15 Jean-Louis Martineau <martineau@zmanda.com>
3937 * amandad-src/amandad.c: Correct order of close/dup.
3939 2006-09-12 Jean-Louis Martineau <martineau@zmanda.com>
3940 * common-src/bsdtcp-security.c: Use AMANDA_SERVICE_NAME.
3942 2006-09-12 Jean-Louis Martineau <martineau@zmanda.com>
3943 * server-src/amstatus.pl.in: Check that $dumpers_active is defined.
3945 2006-09-12 Jean-Louis Martineau <martineau@zmanda.com>
3946 * common-src/util.c (conftoken_getc): Return an int.
3948 2006-09-11 Jean-Louis Martineau <martineau@zmanda.com>
3949 * client-src/sendbackup-dump.c: Works if rundump is not used.
3951 2006-09-05 Jean-Louis Martineau <martineau@zmanda.com>
3952 * Amanda 2.5.1 released.
3953 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1).
3954 * NEWS: Change in amanda-2.5.1
3956 2006-08-30 Jean-Louis Martineau <martineau@zmanda.com>
3957 * server-src/dumper.c: Typo in error message.
3959 2006-08-29 Jean-Louis Martineau <martineau@zmanda.com>
3960 * client-src/selfcheck.c: Print error message to stdout before
3963 2006-08-28 Jean-Louis Martineau <martineau@zmanda.com>
3964 * server-src/dumper.c (log_msgout): Seek to begining of file.
3966 2006-08-28 Jean-Louis Martineau <martineau@zmanda.com>
3967 * server-src/reporter.c: Report if a dump was successfully retried.
3969 2006-08-28 Jean-Louis Martineau <martineau@zmanda.com>
3970 * server-src/amstatus.pl.in: Correct size for retried dump.
3972 2006-08-25 Jean-Louis Martineau <martineau@zmanda.com>
3973 * client-src/runtar.c: Check that strcmp(argv[3], "--create") == 0.
3975 2006-08-24 Jean-Louis Martineau <martineau@zmanda.com>
3976 * common-src/statfs.c (scale): Macro replaced by a function.
3978 2006-08-24 Jean-Louis Martineau <martineau@zmanda.com>
3979 * server-src/chunker.c: Use STREAM_BUFSIZE for stream_accept.
3980 * server-src/taper.c: Use STREAM_BUFSIZE for stream_accept.
3982 2006-08-24 Maitreyee Karmarkar <maitreyee.zmanda.com>
3983 * man/xml-source/amcheck.8.xml: amcheck xml man page change
3985 2006-08-23 Kevin Till <ktill@zmanda.com>
3986 * server-src/driver.c: fix typo
3988 2006-08-23 Jean-Louis Martineau <martineau@zmanda.com>
3989 * server-src/driver.c (dumper_result): Decrement pendings_aborts.
3990 * server-src/driver.c (handle_dumper_result): Don't send duper result
3991 to chunker if we aborted it.
3992 * server-src/driverio.c (dumper_cmd, chunker_cmd): Don't close the fd
3994 * server-src/dumper.c: Accept ABORT command.
3996 2006-08-23 Jean-Louis Martineau <martineau@zmanda.com>
3997 * restore-src/restore.c (restore): Set bytes_read to the return value
3998 of read_file_header.
4000 2006-08-22 Jean-Louis Martineau <martineau@zmanda.com>
4001 * tape-src/output-tape.c: Works if EOVERFLOW is not defined.
4003 2006-08-21 Jean-Louis Martineau <martineau@zmanda.com>
4004 * amandad-src/amandad.c, common-src/rsh-security.c,
4005 common-src/ssh-security.c, restore-src/restore.c,
4006 server-src/changer.c, server-src/dumper.c: Fix sentinel warning.
4008 2006-08-21 Jean-Louis Martineau <martineau@zmanda.com>
4009 * example/amanda.conf.in: Typo.
4011 2006-08-21 Jean-Louis Martineau <martineau@zmanda.com>
4012 * server-src/driverio.c: Fix bogus "(unsigned long)-1".
4014 2006-08-21 Jean-Louis Martineau <martineau@zmanda.com>
4015 * server-src/driver.c (start_some_dumps): Remove bogus free_assignedhd.
4017 2006-08-21 Maitreyee Karmarkar <maitreyee.zmanda.com>
4018 * server-src/amcheck.c: Check specific clients
4019 * man/amcheck.8: add the multiple client check format
4021 2006-08-18 Ian Turner <ian@zmanda.com>
4022 * tape-src/amtapetype.c: Don't crash on exit
4024 2006-08-17 Paddy Sreenivasan <paddy@zmanda.com>
4025 * server-src/driverio.c:
4026 * server-src/changer.c:
4027 * restore-src/amfetchdump.c:
4028 * recover-src/extract_list.c:
4029 * oldrecover-src/extract_list.c:
4030 * common-src/util.c:
4031 * common-src/stream.c:
4032 * common-src/file.c:
4033 * common-src/dgram.c: Fix warnings
4035 2006-08-17 Kevin Till <ktill@zmanda.com>
4036 * common-src/stream.c: Loop 5 times (ntries > 5) on select error
4038 2006-08-14 Paddy Sreenivasan <paddy@zmanda.com>
4039 * client-src/sendsize.c: Fix warning
4040 * server-src/reporter.c: Fix warnings
4042 2006-07-28 Jean-Louis Martineau <martineau@zmanda.com>
4043 * Amanda 2.5.1b2 released.
4044 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b2).
4046 2006-07-28 Jean-Louis Martineau <martineau@zmanda.com>
4047 * server-src/driver.c (find_diskspace): Make sure size > 0.
4049 2006-07-28 Jean-Louis Martineau <martineau@zmanda.com>
4050 * server-src/planner.c: Don't check new disk.
4052 2006-07-28 Jean-Louis Martineau <martineau@zmanda.com>
4053 * server-src/planner.c: Always log if full size estimate is larger
4054 than the available tape space.
4056 2006-07-28 Jean-Louis Martineau <martineau@zmanda.com>
4057 * server-src/planner.c: Always log if the latest full dump will be
4060 2006-07-27 Jean-Louis Martineau <martineau@zmanda.com>
4061 * common-src/clock.c (timesub): Don't make a negative time.
4063 2006-07-27 Jean-Louis Martineau <martineau@zmanda.com>
4064 * man/xml-source/amanda.conf.5.xml: Tell which file are loaded.
4065 * man/xml-source/amanda-client.conf.5.xml: Ditto.
4067 2006-07-26 Jean-Louis Martineau <martineau@zmanda.com>
4068 * NEWS: for 2.5.1b2.
4070 2006-07-26 Jean-Louis Martineau <martineau@zmanda.com>
4071 * common-src/util.h (CONFTYPE_HOLDING): New conftype.
4072 * common-src/util.c (conf_init_holding, conf_set_holding,
4073 get_conftype_hold): New fonction.
4074 * example/amanda.conf.in: Example of new holdingdisk value.
4075 * man/xml-source/amanda.8.xml: Example.
4076 * man/xml-source/amanda.conf.5.xml: Document it.
4077 * server-src/amadmin.c (disklist_one): Print holdingdisk value.
4078 * server-src/conffile.c: Parse new CONF_HOLDING type.
4079 * server-src/conffile.h (dumptype_get_to_holdingdisk): Change macro.
4080 * server-src/diskfile.c (parse_diskline): dumptype_get_to_holdingdisk.
4081 * server-src/driver.c: Use new CONFTYPE_HOLDING value.
4083 2006-07-26 Jean-Louis Martineau <martineau@zmanda.com>
4084 * client-src/selfcheck.c: Fix bug found by coverity.
4085 * common-src/debug.c: Fix bug found by coverity.
4087 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4088 * server-src/amflush.c: Typo.
4090 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4091 * server-src/amflush.c: Correct test for driver_stream.
4093 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4094 * client-src/clientconf.c: Default CLN_AMANDATES to /etc/amandates.
4095 * common-src/util.c (conf_init_size): Type is CONFTYPE_SIZE.
4096 * server-src/conffile.c (getconf_taperalgo): New function.
4097 * server-src/conffile.h (getconf_taperalgo): Prototype.
4098 * server-src/driver.c: Use getconf_taperalgo.
4100 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4101 * client-src/clientconf.c (client_getconf_boolean): New function.
4102 * client-src/clientconf.h (client_getconf_boolean): Prototype.
4103 * server-src/conffile.c (getconf_boolean): New function.
4104 * server-src/conffile.h (getconf_boolean): Prototype.
4105 * restore-src/amidxtaped.c: Use getconf_boolean.
4106 * server-src/amflush.c: Use getconf_boolean.
4107 * server-src/planner.c: Use getconf_boolean.
4109 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4110 * server-src/getconf.c: Don't print BUGGY.
4111 * changer-src/chg-chio.pl.in: Don't parse BUGGY.
4112 * changer-src/chg-iomega.pl.in: Don't parse BUGGY.
4113 * changer-src/chg-zd-mtx.sh.in: Don't parse BUGGY.
4114 * man/xml-source/amgetconf.8.xml: Don't parse BUGGY.
4115 * server-src/amverifyrun.sh.in: Don't parse BUGGY.
4116 * server-src/amverify.sh.in: Don't parse BUGGY.
4118 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4119 * restore-src/restore.c: Cleanup.
4120 * restore-src/amrestore.c: Don't fsf if the last read return 0.
4122 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4123 * client-src/selfcheck.c: Fix bug found by klocwork.
4124 * common-src/rsh-security.c: Fix bug found by klocwork.
4125 * common-src/ssh-security.c: Fix bug found by klocwork.
4126 * server-src/planner.c: Fix bug found by klocwork.
4128 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4129 * tape-src/output-tape.c (tape_tape_open): mt is declared inside #ifdef.
4131 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4132 * server-src/amcheck.c: Fix quoting.
4134 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4135 * client-src/clientconf.c: client_getconf* validate the type.
4136 * common-src/util.c (get_conftype_*): New function.
4137 * common-src/util.h (get_conftype_*): Prototype.
4138 * server-src/conffile.c: getconf* validate the type.
4139 * server-src/conffile.h: Use get_conftype_* function.
4141 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4142 * client-src/clientconf.c: New AMANDATES client config option.
4143 * client-src/clientconf.h: New AMANDATES client config option.
4144 * client-src/amandates.c: Use AMANDATES.
4145 * client-src/amandates.h: Use AMANDATES.
4146 * client-src/selfcheck.c: Use AMANDATES.
4147 * client-src/sendbackup-gnutar.c: Use AMANDATES.
4148 * client-src/sendsize.c:: Use AMANDATES.
4149 * common-src/util.h : New CONF_AMANDATES.
4150 * man/xml-source/amanda-client.conf.5.xml: Document it.
4152 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4153 * client-src/clientconf.c: New GNUTAR_LIST_DIR client config option.
4154 * client-src/clientconf.h: New GNUTAR_LIST_DIR client config option.
4155 * client-src/selfcheck.c: Use GNUTAR_LIST_DIR.
4156 * client-src/sendbackup-gnutar.c: Use GNUTAR_LIST_DIR.
4157 * client-src/sendsize.c: Use GNUTAR_LIST_DIR.
4158 * common-src/util.h: New CONF_GNUTAR_LIST_DIR.
4159 * man/xml-source/amanda-client.conf.5.xml: Document it.
4161 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4162 * client-src/calcsize.c, client-src/killpgrp.c,
4163 client-src/rundump.c, client-src/runtar.c,
4164 client-src/selfcheck.c, client-src/sendbackup.c,
4165 client-src/sendsize.c, common-src/amanda.h,
4166 common-src/debug.c, oldrecover-src/amrecover.c,
4167 recover-src/amrecover.c, restore-src/amfetchdump.c,
4168 restore-src/amidxtaped.c, server-src/amadmin.c,
4169 server-src/amcheck.c, server-src/amcleanupdisk.c,
4170 server-src/amflush.c, server-src/amindexd.c,
4171 server-src/amlabel.c, server-src/amlogroll.c,
4172 server-src/amtape.c, server-src/amtrmidx.c,
4173 server-src/amtrmlog.c, server-src/chunker.c,
4174 server-src/driver.c, server-src/dumper.c,
4175 server-src/getconf.c, server-src/planner.c,
4176 server-src/reporter.c, server-src/taper.c: dbrename ot the config dir.
4178 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4179 * common-src/amanda.h: Define DBG_SUBDIR_SERVER, DBG_SUBDIR_CLIENT
4180 and DBG_SUBDIR_CLIENT.
4181 * amandad-src/amandad.c, changer-src/chg-scsi.c,
4182 changer-src/chg-scsi-chio.c, client-src/calcsize.c,
4183 client-src/killpgrp.c, client-src/rundump.c, client-src/runtar.c,
4184 client-src/selfcheck.c, client-src/sendbackup.c,
4185 client-src/sendsize.c,
4186 oldrecover-src/amrecover.c, recover-src/amrecover.c,
4187 restore-src/amfetchdump.c, restore-src/amidxtaped.c,
4188 restore-src/amrestore.c, server-src/amadmin.c,
4189 server-src/amcheck.c, server-src/amcleanupdisk.c,
4190 server-src/amflush.c, server-src/amindexd.c,
4191 server-src/amlabel.c, server-src/amlogroll.c,
4192 server-src/amtape.c, server-src/amtrmidx.c,
4193 server-src/amtrmlog.c, server-src/chunker.c,
4194 server-src/diskfile.c, server-src/driver.c,
4195 server-src/dumper.c, server-src/getconf.c,
4196 server-src/infofile.c, server-src/planner.c,
4197 server-src/reporter.c (dbopen): Use DBG_SUBDIR_SERVER,
4198 DBG_SUBDIR_CLIENT or DBG_SUBDIR_CLIENT.
4200 2006-07-25 Jean-Louis Martineau <martineau@zmanda.com>
4201 * client-src/calcsize.c: Get config on argument.
4202 * client-src/killpgrp.c: Get config on argument.
4203 * client-src/rundump.c: Get config on argument.
4204 * client-src/runtar.c: Get config on argument.
4205 * client-src/sendbackup.c: Call program with config as argument.
4206 * client-src/sendbackup-dump.c: Call program with config as argument.
4207 * client-src/sendbackup-gnutar.c: Call program with config as argument.
4208 * client-src/sendbackup.h: Add global g_options.
4209 * client-src/sendsize.c: Call program with config as argument.
4211 2006-07-23 Jean-Louis Martineau <martineau@zmanda.com>
4212 * client-src/sendbackup-gnutar.c: Fix bug found by splint.
4213 * client-src/sendsize.c: Fix bug found by splint.
4215 2006-07-22 Jean-Louis Martineau <martineau@zmanda.com>
4216 * server-src/taper.c: Fix amfree(mem_splitbuf).
4218 2006-07-22 Jean-Louis Martineau <martineau@zmanda.com>
4219 * server-src/diskfile.c, server-src/taper.c: Fix memory leak found
4222 2006-07-22 Jean-Louis Martineau <martineau@zmanda.com>
4223 * server-src/taper.c: Fix split_buffer allocation problem.
4225 2006-07-22 Jean-Louis Martineau <martineau@zmanda.com>
4226 * client-src/selfcheck.c, common-src/security-util.c,
4227 restore-src/restore.c, server-src/diskfile.c: Fix memory leak found
4230 2006-07-20 Jean-Louis Martineau <martineau@zmanda.com>
4231 * changer-src/chg-scsi.c, changer-src/scsi-changer-driver.c,
4232 client-src/amandates.c, client-src/calcsize.c,
4233 client-src/selfcheck.c, client-src/sendbackup.c,
4234 client-src/sendsize.c, common-src/security-util.c,
4235 recover-src/extract_list.c, restore-src/restore.c,
4236 server-src/amindexd.c, server-src/diskfile.c,
4237 server-src/driver.c, server-src/reporter.c,
4238 server-src/tapefile.c, server-src/taper.c: Fix memory leak found
4241 2006-07-19 Jean-Louis Martineau <martineau@zmanda.com>
4242 * client-src/selfcheck.c : Read client config file.
4243 * client-src/sendbackup.c: Read client config file.
4244 * client-src/sendsize.c : Read client config file.
4246 2006-07-19 Jean-Louis Martineau <martineau@zmanda.com>
4247 * amandad-src/amandad.h (g_option_t): Add 'char *config';
4248 * amandad-src/amandad_util.c (parse_g_options): Parse 'config='.
4249 * common-src/amfeatures.h (fe_req_options_config): New amfeature.
4250 * common-src/amfeatures.c (am_init_feature_set):
4251 set fe_req_options_config.
4252 * server-src/amcheck.c: Send 'config=' in global options.
4253 * server-src/dumper.c: Send 'config=' in global options.
4254 * server-src/planner.c: Send 'config=' in global options.
4256 2006-07-19 Jean-Louis Martineau <martineau@zmanda.com>
4257 * amandad-src/amandad.c: Call dbopen("amandad").
4258 * changer-src/chg-scsi.c: Call dbopen("server").
4259 * changer-src/chg-scsi-chio.c: Call dbopen("server").
4260 * client-src/calcsize.c: Call dbopen("client").
4261 * client-src/getfsent.c: Call dbopen(NULL).
4262 * client-src/killpgrp.c: Call dbopen("client").
4263 * client-src/rundump.c: Call dbopen("client").
4264 * client-src/runstar.c: Call dbopen("client").
4265 * client-src/runtar.c: Call dbopen("client").
4266 * client-src/selfcheck.c: Call dbopen("client").
4267 * client-src/sendbackup.c: Call dbopen("client").
4268 * client-src/sendsize.c: Call dbopen("client").
4269 * common-src/amanda.h (dbopen, debug_open): Take a 'char * subdir'
4271 * common-src/bsd-security.c: Call dbopen(NULL).
4272 * common-src/debug.c (debug_open): Call debug_setup_1(subdir)
4273 * common-src/debug.c (debug_setup_1): Take a subdir argument,
4275 * common-src/file.c: Call dbopen(NULL).
4276 * common-src/statfs.c: Call dbopen(NULL).
4277 * common-src/token.c: Call dbopen(NULL).
4278 * oldrecover-src/amrecover.c: Call dbopen("client").
4279 * recover-src/amrecover.c: Call dbopen("client").
4280 * restore-src/amfetchdump.c: Call dbopen("server").
4281 * restore-src/amidxtaped.c: Call dbopen("server").
4282 * restore-src/amrestore.c: Call dbopen("server").
4283 * server-src/amadmin.c: Call dbopen("server").
4284 * server-src/amcheck.c: Call dbopen("server").
4285 * server-src/amcleanupdisk.c: Call dbopen("server").
4286 * server-src/amflush.c: Call dbopen("server").
4287 * server-src/amindexd.c: Call dbopen("server").
4288 * server-src/amlabel.c: Call dbopen("server").
4289 * server-src/amlogroll.c: Call dbopen("server").
4290 * server-src/amtape.c: Call dbopen("server").
4291 * server-src/amtrmidx.c: Call dbopen("server").
4292 * server-src/amtrmlog.c: Call dbopen("server").
4293 * server-src/chunker.c: Call dbopen("server").
4294 * server-src/diskfile.c: Call dbopen("server").
4295 * server-src/driver.c: Call dbopen("server").
4296 * server-src/dumper.c: Call dbopen("server").
4297 * server-src/getconf.c: Call dbopen("server").
4298 * server-src/infofile.c: Call dbopen("server").
4299 * server-src/planner.c: Call dbopen("server").
4300 * server-src/reporter.c: Call dbopen("server").
4301 * server-src/taper.c: Call dbopen("server").
4303 2006-07-17 Jean-Louis Martineau <martineau@zmanda.com>
4304 * server-src/chunker.c: Fix rt computation.
4305 * server-src/dumper.c: Fix dumptime computation.
4306 * server-src/taper.c: Fix rt computation.
4308 2006-07-17 Jean-Louis Martineau <martineau@zmanda.com>
4309 * NEWS: Klocwork defects fixed.
4310 * NEWS: Coverity defect fixed.
4312 2006-07-14 Jean-Louis Martineau <martineau@zmanda.com>
4313 * Makefile.am (pkgdata_DATA): add ReleaseNotes.
4315 2006-07-14 Jean-Louis Martineau <martineau@zmanda.com>
4316 * Amanda 2.5.1b1 released.
4317 * configure.in: Remove -Werror.
4319 2006-07-14 Jean-Louis Martineau <martineau@zmanda.com>
4320 * client-src/sendsize.c: Use read/write to copy tar snapshot file.
4321 * client-src/sendbackup-gnutar.c: Ditto.
4323 2006-07-13 Jean-Louis Martineau <martineau@zmanda.com>
4324 * common-src/stream.c (stream_accept): Loop 5 times on select error.
4326 2006-07-13 Jean-Louis Martineau <martineau@zmanda.com>
4327 * server-src/dumper.c: The datafd is not scheduled at start,
4329 * common-src/stream.c (tcpm_recv_token): Set error_msg.
4331 2006-07-12 Jean-Louis Martineau <martineau@zmanda.com>
4332 * common-src/util.c (free_new_argv): Move out of
4333 #ifndef HAVE_LIBREADLINE.
4335 2006-07-12 Jean-Louis Martineau <martineau@zmanda.com>
4336 * server-src/amadmin.c (tape): Report the number of new tapes instead
4337 of "a new tape" for each tapes.
4338 * server-src/reporter.c (output_tapeinfo): Ditto.
4340 2006-07-12 Jean-Louis Martineau <martineau@zmanda.com>
4341 * server-src/taperscan.c (changer_taper_scan): Report error from
4344 2006-07-11 John Franks jrfranks@zmanda.com
4345 * configure.in: Fix multiple definition of readline during cygwin
4348 2006-07-11 Paddy Sreenivasan <paddy@zmanda.com>
4349 * common-src/pipespawn.c : Fixed compiler warning
4351 2006-07-11 Jean-Louis Martineau <martineau@zmanda.com>
4352 * man/xml-source/amtapetype.8.xml: No default value for -e.
4354 2006-07-11 Jean-Louis Martineau <martineau@zmanda.com>
4355 * common-src/util.c: Don't conftoken_ungetc(ch) if ch == EOF.
4356 * server-src/reporter.c: Check tp == NULL.
4358 2006-07-11 Jean-Louis Martineau <martineau@zmanda.com>
4359 * tape-src/tapetype.c: Make -e an needed argument.
4360 * man/xml-source/amtapetype.8.xml: Update man page.
4362 2006-07-11 Jean-Louis Martineau <martineau@zmanda.com>
4363 * changer-src/chg-zd-mtx.sh.in: Remove .conf from changerfile.
4365 2006-07-11 Jean-Louis Martineau <martineau@zmanda.com>
4366 * recover-src/extract_list.c (check_file_overwrite): Renamed from
4367 check_file_overwite.
4368 * recover-src/extract_list.c (check_file_overwrite): Do the path check
4369 in the correct order (from left ro right).
4371 2006-07-11 Jean-Louis Martineau <martineau@zmanda.com>
4372 * common-src/file.c (debug_agets): Remove call to dbprintf.
4374 2006-07-10 Jean-Louis Martineau <martineau@zmanda.com>
4375 * recover-src/extract_list.c (add_to_unlink_list, do_unlink_list,
4376 free_unlink_list): New function to manage unlink_list.
4377 * recover-src/extract_list.c (check_file_overwite): Check all
4378 component of an EXTRACT_LIST_ITEM, if a component is not a
4379 directory, add it to the unlink_list.
4380 * recover-src/extract_list.c (extract_files): Call do_unlink_list and
4381 free_unlink_list, rename buf to cwd.
4383 2006-07-10 Jean-Louis Martineau <martineau@zmanda.com>
4384 * common-src/pipespawn.c (pipespawnv_passwd): Add prototype.
4385 * common-src/pipespawn.c (pipespawn, pipespawn): Remove 2 NULL
4386 parameters to the pipespawnv_passwd call.
4387 * common-src/pipespawn.c (pipespawnv_passwd): Remove passwdvar and
4388 passwdfd parameters, add passwdvar and local variable.
4389 Don't use memcpy to set passwdfd.
4390 * common-src/pipespawn.h (pipespawnv_passwd): Remove prototype.
4392 2006-07-07 Jean-Louis Martineau <martineau@zmanda.com>
4393 * common-src/security-util.c (stream_read_sync_callback): Remove bogus
4396 2006-07-07 Kevin Till <ktill@zmanda.com>
4397 * common-src/bsd-security.c: use STREAM_BUFSIZE instead of -1
4398 * common-src/bsdtcp-security.c: ditto
4399 * common-src/krb4-security.c: ditto
4400 * common-src/security-util.c: ditto
4401 * restore-src/amidxtaped.c: ditto
4403 2006-07-07 Jean-Louis Martineau <martineau@zmanda.com>
4404 * common-src/util.c (get_conftoken): Remove duplicate conftoken_ungetc.
4406 2006-07-07 Jean-Louis Martineau <martineau@zmanda.com>
4407 * common-src/security-util.c: Validate and report big packet size.
4409 2006-07-07 Jean-Louis Martineau <martineau@zmanda.com>
4410 * oldrecover-src/Makefile.am: Typo.
4412 2006-07-07 Jean-Louis Martineau <martineau@zmanda.com>
4413 * client-src/sendsize.c: Typo.
4415 2006-07-06 John Franks <jrfranks@zmanda.com>
4416 * common-src/genversion.c:
4417 Remove reference to error(). This causes a compile
4420 2006-07-06 Jean-Louis Martineau <martineau@zmanda.com>
4421 Klocwork bug 128, 170, 182, 470, 517
4422 * changer-src/chg-scsi.c: Validate drivenum, check count_file.
4423 * client-src/sendsize.c: Validate level.
4424 * oldrecover-src/amrecover.c: Use tm.
4425 * recover-src/amrecover.c: Use tm.
4426 * server-src/infofile.c (delete_txinfofile): Use local variable.
4428 2006-07-06 Jean-Louis Martineau <martineau@zmanda.com>
4429 * server-src/taper.c: Check for cur_filename.
4430 * tape-src/output-file.c: Use vstrextend.
4431 * tape-src/tapeio.c: Check for r.
4433 2006-07-06 Jean-Louis Martineau <martineau@zmanda.com>
4435 * oldrecover-src/extract_list.c (clean_tape_list): Cleanup for splint.
4436 * recover-src/extract_list.c (clean_tape_list): Cleanup for splint.
4437 * server-src/amindexd.c: Add a /*@i@*/.
4438 * server-src/conffile.c: Cast to off_t for conf_init_am64.
4439 * server-src/driver.c: Cast to unsigned to print pid_t.
4440 * server-src/find.c (strip_failed_chunks): Cleanup for splint.
4442 2006-07-06 Jean-Louis Martineau <martineau@zmanda.com>
4444 * server-src/amindexd.c: Free their_feature_string.
4446 * restore-src/amrestore.c: Test maximum value for rst_flags->blocksize.
4448 * common-src/genversion.c: Check NULL result of malloc.
4450 * client-src/selfcheck.c: Check NULL result of fdopen.
4451 Klocwork bug 539, 542
4452 * oldrecover-src/extract_list.c: Fix pfn2->next = fn2.
4453 * recover-src/extract_list.c : Ditto
4454 Klocwork bug 268, 272, 543, 544
4455 * oldrecover-src/extract_list.c: Check for cmd != NULL.
4456 * recover-src/extract_list.c : Ditto
4458 * restore-src/amidxtaped.c: Check for argv != NULL.
4460 * changer-src/scsi-linux.c: Make buffer one larger.
4462 * changer-src/scsi-changer-driver.c (OpenDevice): Validate parameters.
4464 * changer-src/chg-scsi.c (clean_tape): Check usagetime != NULL.
4466 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4468 * regex-src/regcomp.c (allocset): Check for p->g->sets
4471 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4472 Klocwork bug 169, 170, 181
4473 * changer-src/chg-scsi.c: Validate input.
4475 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4477 * common-src/file.c (rmpdir): Check for p == NULL.
4479 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4481 * common-src/dgram.c (dgram_send_addr): Set addr_save earlier.
4483 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4485 * server-src/taper.c (file_reader_side): Maximum value for
4488 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4490 * recover-src/display_commands.c: Check for cmd != NULL.
4491 * oldrecover-src/display_commands.c: Ditto
4493 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4495 * restore-src/restore.c (restore): Check for tmp_filename.
4497 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4499 * server-src/driver.c: Check for h and activehd >= 0.
4501 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4502 Klocwork bug 338 and 390
4503 * server-src/reporter.c (handle_partial, handle_strange): Check result
4506 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4508 * client-src/selfcheck.c (check_options, check_disk): Check for
4511 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4513 * client-src/clientconf.c (add_client_conf): Check result of realloc.
4515 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4516 Klocwork bug 447 and 449
4517 * restore-src/restore.c: Check for valid sendbackup request.
4519 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4521 * restore-src/restore.c (restore): Set statinfo.st_size.
4523 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4525 * common-src/file.c (sanitise_filename): Never return NULL.
4527 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4528 * amandad-src/Makefile.am: Remove tape-src and libamtape.
4529 * client-src/Makefile.am: Remove tape-src and libamtape.
4530 * man/Makefile.am: Cleanup.
4531 * oldrecover-src/Makefile.am: Remove tape-src and libamtape.
4532 * recover-src/Makefile.am: Remove tape-src and libamtape.
4534 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4536 * server-src/driver.c (handle_dumper_result): Check for
4537 dumper->ev_read != NULL.
4539 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4541 * restore-src/restore.c (search_a_tape): Check for desired_tape == NULL.
4543 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4544 Klocwork bug 556 and 557
4545 * common-src/security-util.c (bsd_recv_security_ok): Check result of
4546 strtok, check service == NULL.
4548 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4550 * client-src/calcsize.c (calc_load_file): Return NULL if fopen fail.
4551 * client-src/calcsize.c (main): check NULL result from calc_load_file.
4553 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4555 * server-src/amflush.c (main): Check return of lookup_disk.
4557 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4558 Klocwork bug 62, 85, 459, 463, 466, 469, 555, 559
4559 * common-src/security-util.c: Check result of fdopen.
4560 * client-src/sendsize.c : Ditto.
4561 * server-src/amcheck.c : Ditto.
4562 * server-src/amflush.c : Ditto.
4564 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4565 Klocwork bug 159, 375, 377, 379, 508, 509, 513, 519
4566 * common-src/bsd-security.c: Replace malloc by alloc.
4567 * common-src/bsdudp-security.c: Ditto
4568 * common-src/genversion.c: Ditto
4569 * recover-src/amrecover.c: Ditto
4570 * restore-src/amidxtaped.c: Ditto
4571 * server-src/reporter.c: Ditto
4573 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4574 Klocwork bug 562 and 475
4575 * recover-src/set_commands.c (cd_dir): Check result of rindex.
4576 * oldrecover-src/set_commands.c (cd_dir): ditto.
4578 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4580 * restore-src/restore.c (load_manual_tape): Alloc space for cur_tapedev.
4582 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4584 * restore-src/restore.c (restore): Check for final_filename.
4586 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4588 * server-src/list_dir.c (add_dir_list_item): Check for cur_list->next.
4590 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4592 * server-src/amadmin.c (disklist_one): Check localtime return NULL.
4593 * server-src/amadmin.c (info_one) : Ditto.
4595 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4596 Klocwork bug 2, 83, 128, 384, 478, 504, 505, 506, 517, 566, 567
4597 * server-src/amadmin.c (seqdatestr): Check localtime return NULL.
4598 * common-src/util.c (construct_datestamp, construct_timestamp,
4600 * oldrecover-src/amrecover.c (main): Ditto.
4601 * oldrecover-src/uscan.l (ll_parse_date): Ditto.
4602 * recover-src/amrecover.c (main): Ditto.
4603 * recover-src/uscan.l (ll_parse_date): Ditto.
4604 * server-src/amflush.c (main): Ditto.
4605 * server-src/reporter.c (handle_success): Ditto.
4607 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4609 * client-src/sendsize.c (add_diskest): Check for level value.
4611 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4613 * server-src/reporter.c (nicedate): Check month value.
4615 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4617 * server-src/amadmin.c (tape): Limit nb_days to 10000.
4619 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4621 * server-src/amadmin.c (balance): Test 'later' after it is set.
4623 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4624 * common-src/alloc.c (internal_vstralloc): Don't return NULL.
4626 2006-07-05 Jean-Louis Martineau <martineau@zmanda.com>
4627 * server-src/infofile.c (open_txinfofile): Use local variable.
4629 2006-06-29 Jean-Louis Martineau <martineau@zmanda.com>
4630 * restore-src/restore.c (label_of_current_slot): Close the tapefd if
4633 2006-06-29 Jean-Louis Martineau <martineau@zmanda.com>
4634 * server-src/find.c (strip_failed_chunks):
4635 - Get a **output_find as parameter.
4636 - Check the label before remove a valid chunk.
4637 - Memory management fix.
4639 2006-06-28 Jean-Louis Martineau <martineau@zmanda.com>
4640 * common-src/security-util.c: Improve message for .amandahosts.
4642 2006-06-27 Ian Turner <ian@zmanda.com>
4643 * common-src/fileheader.c: Fix a bug where spanned dumps would
4646 2006-06-27 Jean-Louis Martineau <martineau@zmanda.com>
4647 * server-src/amcheck.c: Fix test for holdingdisk negative size.
4649 2006-06-27 Jean-Louis Martineau <martineau@zmanda.com>
4650 * configure.in: Don't set DEFAULT_TAPE_DEVICE if it is not set.
4651 * client-src/clientconf.c: Work DEFAULT_TAPE_DEVICE not set.
4652 * common-src/genversion.c: Work DEFAULT_TAPE_DEVICE not set.
4653 * recover-src/amrecover.c: Work DEFAULT_TAPE_DEVICE not set.
4654 * server-src/getconf.c: Work DEFAULT_TAPE_DEVICE not set.
4656 2006-06-27 Jean-Louis Martineau <martineau@zmanda.com>
4657 Patch by Paul Bijnens
4658 * server-src/amcheck.c: Check for access(hdp->diskdir, X_OK).
4660 2006-06-27 Jean-Louis Martineau <martineau@zmanda.com>
4661 * server-src/conffile.c (getconf_byname): Check for kt->keyword != NULL.
4662 * client-src/clientconf.c (client_getconf_byname): Ditto
4664 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4665 * recover-src/extract_list.c: check_file_overwite.
4667 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4668 * recover-src/extract_list.c: Do the cleanup of the extract list
4669 at the extraction time
4670 * oldrecover-src/extract_list.c: Ditto.
4672 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4673 * NEWS: Add new features.
4674 * ReleasesNotes: New files.
4676 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4677 * docs/Makefile.am (pkgdata_DATA): Add amaespipe.8.txt amcrypt.8.txt
4678 amcrypt-asym-ossl.8.txt amcrypt-ossl.8.txt amfetchdump.8.txt
4679 * docs/amaespipe.8.txt: New file.
4680 * docs/amcrypt.8.txt: New file.
4681 * docs/amcrypt-asym-ossl.8.txt: New file.
4682 * docs/amcrypt-ossl.8.txt: New file.
4683 * docs/amfetchdump.8.txt: New file.
4685 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4686 * docs/Makefile.am (pkgdata_DATA): Add howto-auth.txt.
4687 * docs/howto-auth: Documentation on auth.
4688 * docs/*.txt: Update from xml-docs
4690 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4691 * man/xml-source/amanda.conf.5.xml: Add notes about bsdudp and bsdtcp.
4692 * man/xml-source/amanda-client.conf.5.xml: Ditto.
4694 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4695 * recover-src/extract_list.c (is_empty_dir): New function.
4696 * recover-src/extract_list.c: Print a warning if cwd is not empty.
4698 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4699 * server-src/amadmin.c: Allow 'p' and 'P' in --sort argument.
4701 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4702 * server-src/amadmin.c: Print errstr returned by match_disklist.
4703 * server-src/amcheck.c: Print errstr returned by match_disklist.
4704 * server-src/amflush.c: Print errstr returned by match_disklist.
4705 * server-src/diskfile.c (match_disklist): Return an error str.
4706 * server-src/diskfile.h (match_disklist): New prototype.
4707 * server-src/planner.c: Print errstr returned by match_disklist.
4708 * server-src/reporter.c: Accept host/disk as arguments.
4710 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4711 * server-src/amindexd.c (uncompress_file): Set LC_ALL=C before
4714 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4715 * server-src/driver.c (wait_children, kill_children): New function.
4716 * server-src/driver.c (wait_for_children): Use wait_children and
4718 * server-src/driver.c (main): Use wait_children.
4719 * server-src/driverio.c (taper_cmd, chunker_cmd): Close socket on QUIT
4722 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4723 * common-src/amfeatures.c (am_init_feature_set): Set
4724 fe_amrecover_feedme_tape.
4725 * common-src/amfeatures.h (fe_amrecover_feedme_tape): New amfeatures.
4726 * common-src/fileheader.c (print_header): Fix.
4727 * recover-src/extract_list.c: Use fe_amrecover_feedme_tape.
4728 * restore-src/amfetchdump.c: Print error if get_lock == 0.
4729 * restore-src/amidxtaped.c: Call send_message if get_lock == 0.
4730 * restore-src/restore.c: Split search_tapes in 5 functions.
4731 * restore-src/restore.h (send_message): prototype.
4733 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4734 * man/xml-source/amfetchdump.8.xml: Document -O and new -o.
4735 * restore-src/amfetchdump.c: Replace -o by -O
4737 2006-06-22 Jean-Louis Martineau <martineau@zmanda.com>
4738 * client-src/clientconf.c (parse_client_conf): Fix segmentation fault.
4739 * server-src/conffile.c (parse_server_conf): Fix segmentation fault.
4741 2006-06-21 Kevin Till <ktill@zmanda.com>
4742 * changer-src/chg-juke.sh.in
4743 * changer-src/chg-manual.sh.in
4744 * changer-src/chg-mcutil.sh.in
4745 * changer-src/chg-multi.sh.in
4746 * changer-src/chg-mtx.sh.in
4747 * changer-src/chg-rait.sh.in
4748 * changer-src/chg-disk.sh.in
4749 * changer-src/chg-zd-mtx.sh.in
4750 * changer-src/chg-null.sh.in
4751 * changer-src/chg-chs.sh.in
4752 * client-src/patch-system.sh.in
4753 * amplot/amplot.sh.in
4754 * server-src/amcrypt-ossl.sh.in
4755 * server-src/amrmtape.sh.in
4756 * server-src/amcleanup.sh.in
4757 * server-src/amverifyrun.sh.in
4758 * server-src/amaespipe.sh.in
4759 * server-src/amdump.sh.in
4760 * server-src/amcrypt.sh.in
4761 * server-src/amcrypt-ossl-asym.sh.in
4762 * server-src/amcheckdb.sh.in
4763 * server-src/amfreetapes.sh.in
4764 * server-src/amverify.sh.in
4765 change /bin/sh to @SHELL@ for configure to pick up the correct
4766 shell. Sourceforge bug 1466655
4767 * man/xml-source/amcrypt-ossl-asym.8.xml: it's backup-privkey.pem
4769 2006-06-20 Kevin Till <ktill@zmanda.com>
4770 * common-src/security-util.c: ignore EINTR in net_writev
4771 patch by Jean-Louis Martineau.
4773 2006-06-20 John Franks <jrfranks@zmanda.com>
4774 * server-src/conffile.c:
4775 Remove Duplicate keyword table entries and alphabetize
4776 to make future duplicates easier to spot...
4778 * server-src/taper.c:
4779 Fix compiler warnings when no mmap function is present.
4781 2006-06-20 John Franks <jrfranks@zmanda.com>
4782 * server-src/diskfile.c:
4783 Default boolean values without parameters to yes if
4784 no value is present in configuration file. This
4785 maintains backward compatibility and is logical since
4786 a value such as "index" reads as an assertion of fact.
4788 2006-06-19 Jean-Louis Martineau <martineau@zmanda.com>
4789 * docs/wishlist.txt: Remove features done in 2.5.0/2.5.1
4791 2006-06-19 Jean-Louis Martineau <martineau@zmanda.com>
4792 * man/xml-source/amanda.conf.5.xml: amrecover_check_label and
4793 amrecover_do_fsf default to yes.
4794 * server-src/conffile (init_dumptype_defaults): DUMPTYPE_INDEX set to 1.
4795 * server-src/diskfile.c (parse_diskline): index set from
4798 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4799 * server-src/amstatus.pl.in: Match quotes in DONE line.
4801 2006-06-16 Kevin Till <ktill@zmanda.com>
4802 * example/amanda-client.conf.in:
4803 correct DEFAULT_TAPE_SERVER/DEFAULT_SERVER
4804 * server-src/amcrypt-ossl-asym.sh.in:
4805 set RANDFILE for openssl to place entropy file.
4806 * server-src/amcrypt-ossl.sh.in: ditto
4808 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4809 * amandad-src/amandad.c : Use strcasecmp to compare auth.
4810 * client-src/selfcheck.c : Ditto
4811 * client-src/sendbackup.c : Ditto
4812 * restore-src/amidxtaped.c: Ditto
4813 * server-src/amindexd.c : Ditto
4815 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4816 * server-src/amindexd.c (reply, lreply, fast_lreply): Correct use
4817 of arglist_start and arglist_end..
4818 * server-src/amindexd.c (lreply_backend): Remove function.
4820 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4821 * common-src/bsd-security.c (stream_read_callback): Send error to the
4824 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4825 * recover-src/extract_list.c: Typo.
4826 * restore-src/restore.c: Typo.
4828 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4829 * client-src/clientconf.c: Allow include.
4830 * client-src/clientconf.c (read_confline): Don't crash.
4831 * server-src/conffile.c (read_confline): Don't crash.
4832 * recover-src/amrecover.c: Exit if error in conf file.
4834 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4835 * common-src/arglist.h: Typo.
4836 * recover-src/extract_list.c: handle MESSAGE from amidxtaped.
4838 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4839 * common-src/amfeatures.c (am_init_feature_set): Set
4840 fe_amrecover_message.
4841 * common-src/amfeatures.h (am_feature_e): Add fe_amrecover_message.
4842 * common-src/arglist.h (printf_arglist_function3): Prototype.
4844 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4845 * restore-src/restore.c (send_message): New function that send message
4846 to stderr and/or amrecover.
4847 * restore-src/restore.c: Call send_message on some error path.
4849 2006-06-16 Jean-Louis Martineau <martineau@zmanda.com>
4850 * common-src/event.c (event_loop_wait, event_wait): Take an
4851 event_handle_t * as parameter.
4852 * common-src/event.h: New prototype.
4853 * common-src/bsd-security.c: Call event_wait(bs->ev_read).
4854 * common-src/krb4-security.c: Call event_wait(ks->ev_read).
4855 * common-src/krb5-security.c: Call event_wait(ks->ev_read).
4856 * common-src/security-util.c: Call event_wait(ss->ev_read).
4858 2006-06-15 Kevin Till <ktill@zmanda.com>
4859 * man/xml-source/amcrypt-ossl-asym.8.xml: it's .am_passphrase
4860 * server-src/amcrypt-ossl-asym.sh.in: export PATH
4861 * server-src/amcrypt-ossl.sh.in: export PATH
4864 2006-06-15 Jean-Louis Martineau <martineau@zmanda.com>
4865 * server-src/amcheck.c: -w doesn't change the test selection.
4866 * man/xml-source/amcheck.8.xml
4868 2006-06-15 Jean-Louis Martineau <martineau@zmanda.com>
4869 * server-src/planner.c: Log empty disklist and no DLE selected.
4871 2006-06-14 Jean-Louis Martineau <martineau@zmanda.com>
4872 * common-src/bsd-security.c: Use %u to print in_port_t data.
4873 * common-src/bsdudp-security.c: Ditto.
4875 2006-06-14 Jean-Louis Martineau <martineau@zmanda.com>
4876 * changer-src/chg-disk.sh.in: Return the number of slot in output of
4878 * changer-src/chg-zd-mtx.sh.in: Ditto.
4880 2006-06-14 Jean-Louis Martineau <martineau@zmanda.com>
4881 * changer-src/chg-zd-mtx.sh.in: Accept changerfile that already
4882 have the .conf suffix.
4884 2006-06-13 Jean-Louis Martineau <martineau@zmanda.com>
4885 * amandad-src/amandad.c (s_ackwait): Resend the REP on receive of a
4888 2006-06-13 Jean-Louis Martineau <martineau@zmanda.com>
4889 * common-src/security-util.c (bsd_recv_security_ok): Set error only
4892 2006-06-12 Jean-Louis Martineau <martineau@zmanda.com>
4893 * server-src/driver.c: usetimestamps is a warning.
4895 2006-06-12 Kevin Till <ktill@zmanda.com>
4896 * common-src/security-util.c: if host is 127.0.0.1 and either
4897 localhost or localhost.domain is in .amandahost, hostmatch passes.
4898 * common-src/security-util.h: update check_user_amandahosts prototype
4900 2006-06-12 Jean-Louis Martineau <martineau@zmanda.com>
4901 * amandad-src/amandad.c (process_writenetfd): Close the pipe if the
4902 security_stream is closed.
4903 * recover-src/extract_list.c: Improve message if we don't get thei
4904 FEATURE line from amidxtaped.
4906 2006-06-12 Jean-Louis Martineau <martineau@zmanda.com>
4907 * recover-src/amrecover.c: Read amanda-client.conf and
4908 <conf>/amanda-client.conf.
4910 2006-06-12 Jean-Louis Martineau <martineau@zmanda.com>
4911 * common-src/security-util.c, common-src/tapelist.c,
4912 restore-src/restore.c, server-src/amcheck.c, server-src/amindexd.c,
4913 server-src/amtape.c, server-src/changer.c, server-src/driver.c,
4914 server-src/planner.c, server-src/taper.c,
4915 server-src/taperscan.c: Fix memory leak.
4917 2006-06-12 Jean-Louis Martineau <martineau@zmanda.com>
4918 * restore-src/restore.c: Fix Adding at end of list.
4920 2006-06-12 Jean-Louis Martineau <martineau@zmanda.com>
4921 * server-src/taper.c (syncpipe_putstr): Don't crash if str is NULL.
4923 2006-06-09 Jean-Louis Martineau <martineau@zmanda.com>
4924 * server-src/holding.c (pick_datestamp): Fix reading user input.
4926 2006-06-09 Jean-Louis Martineau <martineau@zmanda.com>
4927 * recover-src/amrecover.c (sigint_handler): Call send_command only if
4930 2006-06-09 Jean-Louis Martineau <martineau@zmanda.com>
4931 * common-src/util.c (connect_port): ETIMEDOUT is a fatal error.
4933 2006-06-09 Jean-Louis Martineau <martineau@zmanda.com>
4934 * common-src/stream.c (stream_client_internal): Get errno set
4936 * server-src/driver.c (handle_chunker_result): Don't assert(0) on
4937 receive of a TRYAGAIN from a chunker, but set
4939 * server-src/dumper.c: Try gethostbyname("localhost") before calling
4940 stream_client and log appropriate message.
4942 2006-06-09 Jean-Louis Martineau <martineau@zmanda.com>
4943 * server-src/amcheck.c: Report ERROR if gethostbyname("localhost")
4946 2006-06-08 Jean-Louis Martineau <martineau@zmanda.com>
4947 * client-src/clientconf.c (add_client_conf): New function to map
4948 normal option to their
4950 * client-src/clientconf.h (add_client_conf): Prototype.
4951 * man/xml-source/amrecover.8.xml: Document -o.
4952 * recover-src/amrecover.c: Also read <config>/amanda-client.conf
4954 2006-06-08 Jean-Louis Martineau <martineau@zmanda.com>
4955 * server-src/diskfile.c (parse_diskline): Only return 0 or -1.
4957 2006-06-08 Jean-Louis Martineau <martineau@zmanda.com>
4958 * amandad-src/amandad.h (g_option_t): Add auth.
4959 * amandad-src/amandad_util.c (init_g_options): Set auth to NULL.
4960 * amandad-src/amandad_util.c (parse_g_options): Parse auth.
4961 * amandad-src/amandad_util.c (free_g_options): Free auth.
4962 * client-src/sendbackup.c: Get amandad_auth from command line and
4963 compare with REQ packet.
4964 * common-src/amfeatures.h (fe_amindexd_options_hostname,
4965 fe_amindexd_options_features,
4966 fe_amindexd_options_auth,
4967 fe_amidxtaped_options_hostname,
4968 fe_amidxtaped_options_features,
4969 fe_amidxtaped_options_auth): New amfeatures.
4970 * common-src/amfeatures.c (am_init_feature_set): Set new amfeatures.
4971 * recover-src/amrecover.c: Send auth in OPTIONS of req packet.
4972 * recover-src/extract_list.c: Send auth in OPTIONS of req packet.
4973 * restore-src/amidxtaped.c: Parse amandad_auth from command line.
4974 Get auth from OPTIONS line.
4976 * server-src/amindexd.c: Parse amandad_auth from command line.
4977 Get auth from OPTIONS line.
4980 2006-06-08 Jean-Louis Martineau <martineau@zmanda.com>
4981 * common-src/util.c(connect_port): Return -2 on ECONNREFUSED error
4984 2006-06-07 Jean-Louis Martineau <martineau@zmanda.com>
4985 * amandad-src/amandad.c: exec the service with the auth as parameter.
4986 * amandad-src/amandad.c(writebuf): Do no close fd.
4987 * client-src/selfcheck.c: Read the auth for the command line and
4988 compare with the option string.
4989 * client-src/selfcheck.c(main): Do no close 0,1,2 fd.
4991 2006-06-07 Jean-Louis Martineau <martineau@zmanda.com>
4992 * man/xml-source/amanda.8.xml(CONFIGURATION OVERWRITE): New section.
4993 * man/xml-source/amadmin.8.xml, man/xml-source/amcheck.8.xml,
4994 man/xml-source/amdump.8.xml, man/xml-source/amflush.8.xml,
4995 man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
4996 man/xml-source/amreport.8.xml,
4997 man/xml-source/amrestore.8.xml: Add -o option.
4999 2006-06-07 Jean-Louis Martineau <martineau@zmanda.com>
5000 * common-src/util.c(get_conftoken): Merge from zmanda.
5002 2006-06-07 Jean-Louis Martineau <martineau@zmanda.com>
5003 * common-src/util.c(get_conftoken): Remove a conftoken_ungetc.
5005 2006-06-07 Jean-Louis Martineau <martineau@zmanda.com>
5006 * common-src/bsd-security.c (stream_read_callback): Merge with zmanda.
5008 2006-06-07 Jean-Louis Martineau <martineau@zmanda.com>
5009 * amandad-src/amandad.c(process_writenetfd): Call security_stream_read
5012 2006-06-07 Jean-Louis Martineau <martineau@zmanda.com>
5013 * server-src/conffile.c (lookup_interface): Fix merge error.
5015 2006-06-07 John Franks <jrfranks@zmanda.com>
5016 * common-src/amanda.h:
5017 Fix isnormal() replacement macro to indirectly
5018 check if a floating point value is != 0.0.
5019 This prevents compiler warnings.
5021 2006-06-07 John Franks <jrfranks@zmanda.com>
5023 Put in "/* NOTREACHED */" comments after error() calls.
5024 * server-src/diskfile.c
5025 Change disktype index default to yes for backward compatibility.
5027 2006-06-06 John Franks <jrfranks@zmanda.com>
5028 * amandad-src/amandad.c common-src/bsd-security.c:
5029 Correct fix for infinite amandad loop.
5031 2006-06-06 John Franks <jrfranks@zmanda.com>
5032 * common-src/stream.c common-src/util.c:
5034 * server-src/conffile.c:
5035 Remove replicated line
5037 2006-06-06 Jean-Louis Martineau <martineau@zmanda.com>
5038 * common-src/util.c (conftoken_ungetc): Return the character.
5039 * common-src/util.c (get_conftoken): Merge to allow escape character.
5040 * common-src/util.c (read_block): Allow STRING as IDENT.
5041 * server-src/conffile.c (getconf_long, getconf_size): New function.
5042 * server-src/conffile.c: Cleanup after Merge.
5044 2006-06-06 Jean-Louis Martineau <martineau@zmanda.com>
5045 * server-src/amadmin.c, server-src/amcheck.c, server-src/amflush.c,
5046 server-src/amlabel.c, server-src/amlogroll.c, server-src/amtrmidx.c,
5047 server-src/amtrmlog.c, server-src/getconf.c,
5048 server-src/reporter.c: Usage -o
5049 * server-src/amflush.c, server-src/amlogroll.c, server-src/amtrmidx.c,
5050 server-src/amtrmlog.c, server-src/chunker.c, server-src/driver.c,
5051 server-src/dumper.c, server-src/getconf.c, server-src/planner.c,
5052 server-src/reporter.c,
5053 server-src/taper.c: Add call to report_bad_conf_arg.
5054 * server-src/conffile.c(get_comprate, get_compress): Parse CONF_END.
5056 2006-06-06 John Franks <jrfranks@zmanda.com>
5058 Increase checking level from 1 to 2 for SUN lint.
5059 * client-src/amandates.c client-src/clientconf.c
5060 common-src/security-util.c recover-src/amrecover.c
5061 recover-src/extract_list.c regex-src/regcomp.c server-src/amcheck.c
5062 server-src/amlabel.c server-src/chunker.c server-src/conffile.c
5063 server-src/conffile.h server-src/diskfile.c server-src/diskfile.h
5064 server-src/driver.c server-src/holding.c server-src/reporter.c
5065 server-src/tapefile.c server-src/taper.c tape-src/amdd.c:
5067 * common-src/util.h common-src/util.c:
5069 Add missing conftype size.
5070 * common-src/bsd-security.c
5071 Fix infinte loop which consumes all /tmp space and 1/2
5072 the CPU time when EOF is reached on socket.
5074 2006-06-05 Paddy Sreenivasan <paddy@zmanda.com>
5075 * common-src/util.c: Fix warning
5077 2006-06-05 Jean-Louis Martineau <martineau@zmanda.com>
5078 * restore-src/amfetchdump.c, server-src/amcheck.c,
5079 server-src/amcheckdb.sh.in, server-src/amcleanup.sh.in,
5080 server-src/amdump.sh.in, server-src/amflush.c,
5081 server-src/amlabel.c, server-src/amlogroll.c,
5082 server-src/amtrmidx.c, server-src/amtrmlog.c,
5083 server-src/chunker.c, server-src/conffile.c,
5084 server-src/diskfile.c, server-src/driver.c,
5085 server-src/driverio.c, server-src/dumper.c,
5086 server-src/getconf.c, server-src/planner.c,
5087 server-src/reporter.c, server-src/taper.c,
5088 server-src/taperscan.c: Allow -o options and some memory fix.
5089 * server-src/conffile.c(lookup_dumptype, lookup_tapetype,
5090 lookup_interface): Use strcasecmp.
5092 2006-06-02 Jean-Louis Martineau <martineau@zmanda.com>
5093 * common-src/stream.c (stream_client_internal): Use connect_portrange.
5094 * common-src/util.c (connect_portrange): First, try to connect with a
5096 * common-src/util.c (connect_port): Try to connect with a specific port.
5097 * common-src/util.h: Cleanup.
5099 2006-06-02 Jean-Louis Martineau <martineau@zmanda.com>
5100 * server-src/reporter.c: Remove empty if.
5102 2006-06-02 Jean-Louis Martineau <martineau@zmanda.com>
5103 * common-src/util.c (read_block): Don't read CONF_NL aftre the '{'.
5104 * server-src/conffile.c(get_holdingdisk, get_tapetype, get_interface):
5105 Read a CONF_NL after the call to read_block.
5106 * server-src/conffile.c(read_dumptype): Read a CONF_NL if we are not
5107 called from diskfile.
5108 * server-src/diskfile.c: Don't loop on empty line after read_dumptype.
5110 2006-06-01 Kevin Till <ktill@zmanda.com>
5111 * server-src/amcrypt-ossl.sh.in: symmetric encrypt script using openSSL.
5112 Thanks to Ben Slusky.
5113 * server-src/amcrypt-ossl-asym.sh.in: public-ley encrypt script using openSSL.
5114 * man/xml-source/amcrypt-ossl.8.xml: man page
5115 * man/xml-source/amcrypt-ossl-asym.8.xml: man page
5116 * configure.in: ditto
5117 * man/Makefile.am: ditto
5118 * man/entities/global.entities: ditto
5119 * server-src/Makefile.am: ditto
5121 2006-06-01 John Franks <jfranks@zmanda.com>
5122 Eliminate Cygwin compile warnings.
5123 * client-src/getfsent.c: Quiet unused parameter warnings.
5124 * client-src/selfcheck.c: Quiet unused parameter warnings.
5125 * common-src/security-util.h: Make hostname const char *.
5127 2006-06-01 Jean-Louis Martineau <martineau@zmanda.com>
5128 * server-src/amcheck.c: holdingdisk_get_disksize() return an off_t.
5129 * server-src/find.c: result should be ssize_t.
5131 2006-06-01 Jean-Louis Martineau <martineau@zmanda.com>
5132 * common-src/amanda.h: Remove am64_t.
5133 * client-src/clientconf.c, client-src/clientconf.h, common-src/util.c,
5134 common-src/util.h, server-src/conffile.c, server-src/conffile.h:
5135 Second pass of config cleanup, add function to parse -o argument.
5136 * recover-src/amrecover.c: -o command argument.
5137 * restore-src/restore.c: Use off_t instead of am64_t.
5138 * server-src/amadmin.c: New config subcommand. -o command argument.
5139 * server-src/amlabel.c: Fix memory leak.
5140 * server-src/diskfile.c: Fix memory leak.
5141 * server-src/diskfile.h: Rename no_hold to to_holdingdisk.
5142 * server-src/driver.c: Many.
5143 * server-src/planner.c: am64_t to off_t.
5145 2006-06-01 Jean-Louis Martineau <martineau@zmanda.com>
5146 This is the first pass of a general rewrite of configuration file
5147 parsing, It will now use array to store all options.
5149 * client-src/clientconf.c:
5150 * client-src/clientconf.h:
5151 * server-src/conffile.c:
5152 * server-src/conffile.h:
5153 * common-src/util.c: Many new functions.
5154 * common-src/util.h:
5156 * restore-src/amidxtaped.c, server-src/amcheck.c,
5157 server-src/amcleanupdisk.c, server-src/amlabel.c,
5158 server-src/diskfile.c, server-src/driver.c, server-src/driverio.c,
5159 server-src/find.c, server-src/holding.c, server-src/planner.c,
5160 server-src/reporter.c,
5161 server-src/taper.c: Use new macro to get configuration option.
5163 2006-06-01 Jean-Louis Martineau <martineau@zmanda.com>
5164 * amandad-src/amandad.c, client-src/amandates.c, client-src/noop.c,
5165 client-src/selfcheck.c, client-src/sendsize.c,
5166 common-src/bsd-security.c, common-src/bsdtcp-security.c,
5167 common-src/bsdudp-security.c, common-src/fileheader.c,
5168 common-src/rsh-security.c, common-src/security-util.c,
5169 common-src/security-util.h, common-src/ssh-security.c,
5170 recover-src/extract_list.c, server-src/amcheck.c,
5171 server-src/amindexd.c, server-src/amlogroll.c,
5172 server-src/diskfile.c, server-src/driver.c, server-src/dumper.c,
5173 server-src/find.c, server-src/logfile.c, server-src/planner.c,
5174 server-src/reporter.c,
5175 server-src/tapefile.c: Fix memory and fd leak.
5177 2006-06-01 Jean-Louis Martineau <martineau@zmanda.com>
5178 * server-src/find.c (search_holding_disk): Take the datestamp from the
5179 file, not the directory name, otherwise usetimestamps=no doesn't
5182 2006-06-01 Jean-Louis Martineau <martineau@zmanda.com>
5183 * common-src/stream.c (stream_server): New priv parameter if we want
5184 a reserved port. Don't try to
5185 get a reserved port if priv==0.
5186 * common-src/stream.h (stream_server): New prototype.
5187 * common-src/bsd-security.c: Call stream_server with priv==0.
5188 * common-src/krb4-security.c: Call stream_server with priv==1.
5189 * common-src/security-util.c: Call stream_server with priv==0.
5190 * restore-src/amidxtaped.c: Call stream_server with priv==0.
5191 * server-src/chunker.c: Call stream_server with priv==0.
5192 * server-src/taper.c: Call stream_server with priv==0.
5194 2006-06-01 Jean-Louis Martineau <martineau@zmanda.com>
5195 * server-src/diskfile.c: Return -1 if open of diskfile failed.
5196 * server-src/driver.c: Change message if didn't get a DATE line.
5197 * server-src/reporter.c: Ignore faillure in reading amanda.conf
5198 disklist and tapelist.
5200 2006-05-29 Jean-Louis Martineau <martineau@zmanda.com>
5201 * man/xml-source/amanda.8.xml: Documents service in .amandahosts.
5203 2006-05-29 Jean-Louis Martineau <martineau@zmanda.com>
5204 Previous patch doesn't work because 'make -j2' will use fd 3.
5205 * amandad-src/Makefile.am: Use a temporary file for output of
5207 * changer-src/Makefile.am: Ditto.
5208 * client-src/Makefile.am: Ditto.
5209 * common-src/Makefile.am: Ditto.
5210 * oldrecover-src/Makefile.am: Ditto.
5211 * recover-src/Makefile.am: Ditto.
5212 * restore-src/Makefile.am: Ditto.
5213 * server-src/Makefile.am: Ditto.
5214 * tape-src/Makefile.am: Ditto.
5216 2006-05-29 Jean-Louis Martineau <martineau@zmanda.com>
5217 * amandad-src/Makefile.am: 'make listlibsrc' send it's ouput to fd 3.
5218 * changer-src/Makefile.am: Ditto.
5219 * client-src/Makefile.am: Ditto.
5220 * common-src/Makefile.am: Ditto.
5221 * oldrecover-src/Makefile.am: Ditto.
5222 * recover-src/Makefile.am: Ditto.
5223 * restore-src/Makefile.am: Ditto.
5224 * server-src/Makefile.am: Ditto.
5225 * tape-src/Makefile.am: Ditto.
5227 2006-05-28 Paddy Sreenivasan <paddy@zmanda.com>
5228 * tape-src/tapeio.c : Fixed warnings
5229 * tape-src/output-rait.c : Fixed warnings
5230 * tape-src/output-null.c : Fixed warnings
5231 * tape-src/output-file.c : Fiexed warnings
5232 * recover-src/amrecover.c: Fixed warnings
5233 * recover-src/extract_list.c : Fixed warnings
5234 * server-src/amadmin.c : Fixed warnings
5235 * server-src/driver.c : Fixed warnings
5236 * server-src/infofile.c : Fixed warnings
5238 2006-05-26 Jean-Louis Martineau <martineau@zmanda.com>
5239 * server-src/conffile.c (read_dumptype): Parse SSH_KEYS.
5241 2006-05-26 Jean-Louis Martineau <martineau@zmanda.com>
5242 * common-src/security-util.c (udp_inithandle): Remove bad merge.
5243 * server-src/amindexd.c: Improve error message.
5244 * server-src/planner.c: Add a space in output.
5246 2006-05-26 Jean-Louis Martineau <martineau@zmanda.com>
5247 * server-src/conffile.c: Set dpcur.no_hold correctly,
5248 Fix for conffile program.
5250 2006-05-26 Jean-Louis Martineau <martineau@zmanda.com>
5251 Allow many services to share the same tcp connection for
5253 Add a security_close_connection to the security-api.
5254 * amandad-src/amandad.c (wait_30s, exit_on_qlength): New variable to
5255 control auth specific behaviour.
5256 * common-src/bsd-security.c: Add sec_close_connection_none.
5257 * common-src/bsdudp-security.c: Add sec_close_connection_none.
5258 * common-src/krb4-security.c: Add sec_close_connection_none.
5259 * common-src/krb5-security.c: Add sec_close_connection_none.
5260 * common-src/security.h (security_close_connection): Prototype.
5261 * common-src/security-util.h (sec_close_connection_none,
5262 tcpm_close_connection): Prototype.
5263 * common-src/security-util.h (struct tcp_conn): Add toclose.
5264 * common-src/security-util.h (struct sec_stream): Add closed_by_me and
5266 * common-src/security-util.c (sec_close_connection_none,
5267 tcpm_close_connection): New function.
5268 * common-src/security-util.c: Handle many services on one connection.
5269 * common-src/bsdtcp-security.c: Handle many services on one connection.
5270 * common-src/rsh-security.c: Handle many services on one connection.
5271 * common-src/ssh-security.c: Handle many services on one connection.
5272 * recover-src/amrecover.c: Add call security_close_connection.
5273 * recover-src/extract_list.c: Add call security_close_connection.
5274 * server-src/amcheck.c: Add call security_close_connection.
5275 * server-src/dumper.c: Add call security_close_connection.
5277 2006-05-26 Jean-Louis Martineau <martineau@zmanda.com>
5278 * common-src/security-util.c (bsd_prefix_packet): We need the username
5279 of the getuid() user.
5281 2006-05-26 Jean-Louis Martineau <martineau@zmanda.com>
5282 * common-src/fileheader.c: Parse datestamp on F_TAPEEND.
5283 * restore-src/amrestore.c: Set read_result to the result of
5285 * restore-src/restore.c (read_file_header): Return a ssize_t.
5286 Rename bytes_read by read_result.
5287 Set read_result to the result of read_file_header.
5288 * restore-src/restore.h (read_file_header): New prototype.
5290 2006-05-25 Jean-Louis Martineau <martineau@zmanda.com>
5291 * server-src/taperscan.c: Replace bogus newvstralloc by vstrextend.
5293 2006-05-25 Jean-Louis Martineau <martineau@zmanda.com>
5294 * client-src/getfsent.c (print_entry): Add prototype.
5295 * common-src/token.c (main): Shut up compiler warning.
5296 * server-src/infofile.c (dump_rec, dump_db): Add prototype.
5298 2006-05-25 Jean-Louis Martineau <martineau@zmanda.com>
5299 * amandad-src/amandad.c, common-src/bsd-security.c,
5300 common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
5301 common-src/event.c, common-src/krb5-security.c,
5302 common-src/protocol.c, common-src/rsh-security.c,
5303 common-src/security-util.c, common-src/ssh-security.c,
5304 common-src/util.c, server-src/driver.c: comment debugging.
5306 2006-05-25 Jean-Louis Martineau <martineau@zmanda.com>
5307 * common-src/security-util.c: typo.
5308 * server-src/amcheck.c: Make sure all check are done.
5310 2006-05-25 Jean-Louis Martineau <martineau@zmanda.com>
5311 Fix for program not compiled by default.
5312 make bsdsecurity still not compile.
5313 * common-src/bsd-security.c(bind_portrange): prototype change.
5314 * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add match.o.
5315 * server-src/conffile.c: Many typo.
5316 * tape-src/tapeio.c: Use OFF_T_FMT and SSIZE_T_FMT when needed, typo.
5318 2006-05-25 Jean-Louis Martineau <martineau@zmanda.com>
5319 * common-src/fileheader.c (validate_datestamp): Works for 8 characters
5321 * common-src/security-util.c (tcpm_send_token): netlength must be
5323 * common-src/security-util.c (bsd_prefix_packet): Fix typo.
5324 * common-src/util.c (get_time): Don't do computation for starttime.
5325 * server-src/conffile.c (read_dumptype): Do computation for starttime.
5327 2006-05-25 Jean-Louis Martineau <martineau@zmanda.com>
5328 * common-src/krb5-security.c (krb5_sendpkt, krb5_stream_read_sync,
5329 recv_token): Return ssize_t.
5330 * common-src/krb5-security.c (krb5_accept, krb5_stream_accept,i
5331 krb5_stream_auth): Shut up compiler.
5332 * tape-src/output-file.c: Use SSIZE_MAX instead of SSIZE_T_MAX.
5334 2006-05-25 Jean-Louis Martineau <martineau@zmanda.com>
5335 * configure.in(AM_INIT_AUTOMAKE): Fix.
5337 2006-05-25 John Franks <jrfranks@zmanda.com>
5338 Pass user CFLAGS correctly to machine generated code and do not
5339 enforce code quality checks on them.
5341 Put compiler code check flags into existing, but previously
5342 unused, AM_CFLAGS for Makefiles to pick up. CFLAGS should
5343 now only contain mandatory flags.
5345 * recover-src/Makefile.am oldrecover-src/Makefile.am:
5346 Use CFLAGS for compiling C code generated from uparse.y and uscan.l
5348 2006-05-24 John Franks <jrfranks@zmanda.com>
5349 Add support for binary path names on disk and in configuration files.
5350 (Allow spaces in filenames.)
5352 Allow quoted strings for disklist entries.
5354 Lint clean code using sun lint, splint and strict GCC warnings.
5355 Type / size clean, dead code removal, portibility checks, etc.
5356 Many checks are still turned off. See configure.in for lint flags used.
5358 Increase debug output in /tmp/amanda/*debug files.
5360 Set SO_REUSEADDR on sockets help avoid running out of ports.
5363 Added lint program discovery with specific targets for SUN lint and splint.
5364 Check each compiler option to see if GCC supports it.
5365 Enable more code quality warnings.
5366 Change missing xsltproc to warning rather than error.
5367 Define _GNU_SOURCES to build flags.
5368 Make size_t and time_t printf format macros.
5369 Check for isnormal() availability.
5370 Don't install man pages if they are not built.
5371 Fix man pages to not attempt build or install if
5372 --without-built-manpages is set.
5374 * Makefile.am amandad-src/Makefile.am changer-src/Makefile.am
5375 client-src/Makefile.am common-src/Makefile.am
5376 oldrecover-src/Makefile.am recover-src/Makefile.am
5377 restore-src/Makefile.am server-src/Makefile.am tape-src/Makefile.am:
5380 * common-src/amanda.h common-src/dgram.c common-src/stream.c
5382 Keep checking for ports on all bind errors.
5383 Delay and retry a few times if all ports are busy.
5384 Retry bind failures after all methods fail.
5385 increase bind checking timeout to 30 minutes.
5387 * client-src/amandad.c
5388 Issue wait when any child exits. (Get rid of defunct processes)
5389 Stat() index file before using system command.
5390 (shell is not reporting failure if index is not present)
5392 * recover-src/extract_list.c:
5393 Fix problem of 'add *' not adding directories.
5394 Fix problem of freeing pointer not obtained through malloc.
5395 Touch up file addition to actually use the file names
5396 retrieved when adding a directory and not the directory itself.
5398 * server-src/taper.c
5399 Strenghten error recovery for broken syncpipes and writer errors.
5401 * changer-src/chg-scsi-chio.c client-src/amandates.c
5402 client-src/client_util.c client-src/findpass.c client-src/getfsent.c
5403 client-src/selfcheck.c client-src/sendbackup-gnutar.c
5404 client-src/sendbackup-star.c client-src/sendbackup.c
5405 client-src/sendsize.c common-src/bsd-security.c common-src/file.c
5406 common-src/krb5-security.c server-src/amcheck.c server-src/amindexd.c
5407 server-src/diskfile.c server-src/driver.c server-src/dumper.c
5408 server-src/holding.c server-src/infofile.c server-src/logfile.c
5409 server-src/tapefile.c:
5410 allow empty lines in input streams.
5412 * recover-src/uparse.y
5413 print message when input is garbage.
5415 * server-src/getconf.c:
5416 Define HOSTNAME_INSTANCE if it was not already defined
5419 * configure.in: Make readline warning less specific. Readline is
5420 used by all input from terminal now.
5422 2006-05-24 Kevin Till <ktill@@zmanda.com>
5423 * client-src/sendbackup.c: ignore SIGINT
5424 * common-src/ssh-security.c: add to total only when n > 0
5425 * common-src/ssh-security.c: add ssh to error,
5426 retry writev when EINTR, EAGAIN is seen
5427 to STDOUT. exit when options is chosen in template mode.
5428 * server-src/driver.c: make sure timestamp is not null
5429 * amanda/configure.in: remove template.d/amanda.conf which is a dup
5430 of amanda-harddisk.conf
5431 * example/Makefile.am: add template.d/README
5432 * amanda-harddisk.conf.in: set tapedev
5433 * recover-src/amrecover.c: aclose socket before exit.
5434 * recover-src/extract_list.c: ditto
5435 * amanda_enterprise.spec: remove template.d/amanda.conf, add template.d/README
5436 in the failure cases. <> user input field.
5437 * server-src/amcheck.c: no quoted text is a warning
5438 * server-src/driver.c: no need to amfree qname
5439 argument. Search mtx in PATH too.
5440 * example/template.d/advanced.conf.in: fix comment for autoflush
5441 * example/template.d/advanced.conf.in: add usetimestamps
5442 * server-src/diskfile.c: to catch unsupported compress-encryption
5443 combination and abort amdump gracefully.
5444 * man/xml-source/amanda.conf.5.xml: fix syntax, add
5445 dumptype references.
5446 * man/xml-source/amanda.8.xml: fix syntax
5447 * configure.in: ditto
5448 * man/Makefile.am: ditto
5449 * example/amanda.conf.in: tidy up
5450 * man/xml-source/amaespipe.8.xml: add uuencode as requirement
5451 * man/xml-source/amcrypt.8.xml: add uuencode as requirement
5452 * server-src/amcheck.c: catch dumptype misconfiguration
5453 * server-src/diskfile.c: ditto
5454 * server-src/driverio.c: ditto
5455 * server-src/planner.c: ditto
5456 * server-src/conffile.c: check includefile before calling
5457 read_conffile_recursively
5458 * example/amanda.conf.in: add public-key encryption dumptype example
5459 * man/xml-source/amanda.8.xml: fix some formatting
5460 * server-src/planner.c: adjust setuid() calling sequences so that ssh can work
5461 * server-src/dumper.c: ditto
5462 * configure.in: add LOW_TCPPORTRANGE for amrecover
5463 * common-src/stream.c: use LOW_TCPPORTRANGE
5464 * server-src/amdump.sh.in: check if config is supplied
5465 * man/xml-source/amrestore.8.xml: add notes on "-f" option
5467 2006-05-24 Ian Turner <ian@zmanda.com>
5468 * configure.in: Properly document --without-xsltproc as itself,
5469 and not the (nonexistant) option --without-built-manpages.
5471 2006-05-16 John Franks <jrfranks@zmanda.com>
5472 * amandad-src/amandad.c client-src/clientconf.c common-src/bsd-security.c
5473 common-src/bsdudp-security.c common-src/dgram.c common-src/krb4-security.c
5474 common-src/krb5-security.c common-src/match.c common-src/packet.c
5475 common-src/security-util.c common-src/security-util.h
5476 common-src/security.h common-src/util.c oldrecover-src/Makefile.am
5477 oldrecover-src/set_commands.c recover-src/amrecover.c
5478 recover-src/extract_list.c server-src/conffile.c server-src/driver.c
5479 server-src/dumper.c server-src/planner.c server-src/reporter.c:
5480 Minimal changes to get tree to compile along with some more
5483 2006-05-15 Jean-Louis Martineau <martineau@zmanda.com>
5484 * server-src/amadmin.c (disklist_one): print spindle.
5486 2006-05-12 Jean-Louis Martineau <martineau@zmanda.com>
5487 * commmon-src/bsd-security.c: Typo.
5489 2006-05-12 Jean-Louis Martineau <martineau@zmanda.com>
5490 * common-src/Makefile.am (noinst_HEADERS): Add security-util.h.
5492 2006-05-12 Jean-Louis Martineau <martineau@zmanda.com>
5493 Build a big tok_t enum for server and client config.
5494 * client-src/clientconf.c: Move many things to util.c.
5495 * client-src/clientconf.h: Remove extern variable.
5496 * common-src/util.c: Add common part of clientconf.c and conffile.c
5497 * common-src/util.h: Prototype.
5498 * server-src/conffile.c: Move many things to util.c.
5499 * server-src/diskfile.c(disk_parserror): Rename from parserror.
5500 * server-src/taper.c: Make many variable static.
5502 2006-05-12 Jean-Louis Martineau <martineau@zmanda.com>
5503 * restore-src/restore.c: Fix use of possibly NULL input.
5505 2006-05-12 Jean-Louis Martineau <martineau@zmanda.com>
5506 * common-src/ssh-security.c (ssh_connect): Retrieve ssh_keys from
5508 * server-src/amadmin.c(disklist_one): Print ssh_keys.
5509 * server-src/conffile.c(SSH_KEYS): Parse new dumptype option.
5510 * server-src/conffile.h(dumptype_t): Add ssh_keys.
5511 * server-src/diskfile.c(parse_diskline): Copy new field.
5512 * server-src/diskfile.h(disk_t) Add ssh_keys.
5513 * server-src/driverio.c(dumper_cmd): Send dp->ssh_keys in a PORT_DUMP
5514 command to the dumper.
5515 * server-src/dumper.c: Parse ssh_keys in a PORT_DUMP command.
5516 * server-src/dumper.c(dumper_get_security_conf): Return the ssh_keys.
5517 * server-src/server_util.c(amhost_get_security_conf): Return the
5520 2006-05-12 Jean-Louis Martineau <martineau@zmanda.com>
5521 * amandad-src/amandad.c: Set allow_many_services to 0 if auth=bsdtcp.
5522 * common-src/bsd-security.c: Use security-util.c.
5523 * common-src/bsdtcp-security.c: New security-api.
5524 * common-src/bsdudp-security.c: New secutity-api.
5525 * common-src/krb4-security.c: Use security-util.c.
5526 * common-src/krb5-security.c: Use security-util.c.
5527 * common-src/Makefile.am (libamanda_la_SOURCES): Add bsdtcp-security.c,
5529 and security-util.c.
5530 * common-src/protocol.c: Debuging cleanup.
5531 * common-src/rsh-security.c Use security-util.c.
5532 * common-src/security.c: Use bsdtcp_security_driver
5533 and bsdudp_security_driver.
5534 * common-src/security.h(accept): New prototype.
5535 * common-src/security-util.c: Many common function for security-api.
5536 * common-src/security-util.h: many prototype for security-api.
5537 * common-src/ssh-security.c Use security-util.c.
5538 * common-src/stream.c (stream_client_internal): Call connect_portrange.
5539 * common-src/util.c (make_socket): Make a socket.
5540 * common-src/util.c (connect_portrange): Make a socket, bind it and
5542 * common-src/util.h (connect_portrange): Prototype.
5543 * configure.in: new --with-bsdtcp-security and --with-bsdudp-security.
5545 2006-05-10 Jean-Louis Martineau <martineau@zmanda.com>
5546 Patch by <amanda@inventivetechnology.at>
5547 * man/xml-source/amrecover.8.xml: Document listhost command.
5549 2006-05-08 Jean-Louis Martineau <martineau@zmanda.com>
5550 Patch by <amanda@inventivetechnology.at>
5551 * server-src/amindexd.c: new LISTHOST command.
5552 * recover-src/set_commands.c (list_host): New function.
5553 * recover-src/amrecover.h (list_host): Prototype.
5554 * recover-src/help.c (list_host): Print help.
5555 * recover-src/uscan.l: Parse listhost command.
5556 * recover-src/uparse.y: LISTHOST command.
5557 * oldrecover-src/set_commands.c (list_host): New function.
5558 * oldrecover-src/amrecover.h (list_host): Prototype.
5559 * oldrecover-src/help.c (list_host): Print help.
5560 * oldrecover-src/uscan.l: Parse listhost command.
5561 * oldrecover-src/uparse.y: LISTHOST command.
5563 2006-05-08 Ian Turner <ian@zmanda.com>
5564 * server-src/amcheck.c: Make it an error when the expected new
5565 tape cannot be found. Thanks to Paul Bijnens
5566 <paul.bijnens@xplanation.com> for the patch and to Jason L
5567 Tibbitts III <tibbs@math.uh.edu> for noticing this problem.
5569 2006-05-08 Jean-Louis Martineau <martineau@zmanda.com>
5570 * driverio.h (shed_s): Add est_nsize, est_csize, degr_nsize, degr_csize
5571 for nativa and compressed estimate size.
5572 * planner.c: Send the native and compressed estimate size to the driver.
5573 * driver.c: log with L_STATS the estimate of a successful dump.
5574 * reporter.c: Parse the L_STATS.
5575 * reporter.c(generate_bad_estimate): New function that will put in the
5576 NOTES section all bad estimate.
5578 2006-05-08 Jean-Louis Martineau <martineau@zmanda.com>
5579 * configure.in (AC_CONFIG_FILES): Add oldrecover-src/Makefile.
5580 * Makefile.am (RECOVER_SUBDIRS): Add oldrecover-src.
5581 * oldrecover-src/amrecover.c: Copy of old recover-src/amrecover.c
5582 * oldrecover-src/amrecover.h: Copy of old recover-src/amrecover.h
5583 * oldrecover-src/display_commands.c: Copy of old
5584 recover-src/display_commands.c
5585 * oldrecover-src/extract_list.c: Copy of old recover-src/extract_list.c
5586 * oldrecover-src/help.c: Copy of old recover-src/help.c
5587 * oldrecover-src/Makefile.am: Copy of old recover-src/Makefile.am
5588 * oldrecover-src/set_commands.c: Copy of old recover-src/set_commands.c
5589 * oldrecover-src/uparse.y: Copy of old recover-src/uparse.y
5590 * oldrecover-src/uscan.l: Copy of old recover-src/uscan.l
5591 * recover-src/amrecover.c: Works with security-api.
5592 * recover-src/amrecover.h: Works with security-api.
5593 * recover-src/extract_list.c: Works with security-api.
5595 2006-05-08 Jean-Louis Martineau <martineau@zmanda.com>
5596 * amandad-src/amandad.c: Fixup.
5598 2006-05-08 Jean-Louis Martineau <martineau@zmanda.com>
5599 * common-src/packet.h: pkt_t.body is now a char*.
5600 * common-src/packet.c (pkt_init): Return an alloced pkt.body.
5601 * common-src/packet.c (pkt_cat): Increade pkt.body size if needed.
5602 * common-src/protocol.c: Free allocated pkt.body.
5603 * common-src/dgram.c (dgram_cat): Return int.
5604 * common-src/dgram.h (dgram_cat): New prototype.
5605 * common-src/krb5-security.c: Work with dynamicaly allocated packet
5607 * common-src/rsh-security.c: Work with dynamicaly allocated packet
5609 * common-src/ssh-security.c: Work with dynamicaly allocated packet
5611 * amandad-src/amandad.c: Work with dynamicaly allocated packet body.
5612 * server-src/amcheck.c: Don't limit packet size.
5613 * server-src/planner.c: Don't limit packet size.
5615 2006-05-08 Jean-Louis Martineau <martineau@zmanda.com>
5616 * amandad-src/amandad.c (service_new): Apply the correct patch.
5618 2006-05-08 Jean-Louis Martineau <martineau@zmanda.com>
5619 * server-src/taper.c: Fix compiler warning.
5620 * common-src/match.c: Many function get const parameters.
5621 * common-src/amanda.h: Prototype change.
5623 2006-05-07 Jean-Louis Martineau <martineau@zmanda.com>
5624 * amandad-src/amandad.c (service_new): Make sur that the 3 data_read[]
5625 and the 3 data_write[] fd are not in the range DATA_FD_OFFSET to
5626 DATA_FD_OFFSET+DATA_FD_COUNT-1.
5628 2006-05-05 Jean-Louis Martineau <martineau@zmanda.com>
5629 * common-src/tapelist.c (append_to_tapelist): Remove bad amfree.
5631 2006-05-05 Nikhil Bandiwadekar <nikhil@zmanda.com>
5632 * server-src/conffile.c: fix to correctly handle am64 datatype
5634 2006-05-04 Jean-Louis Martineau <martineau@zmanda.com>
5635 * server-src/taper.c: Write the slot number in the
5636 'taper: wrote label' line.
5637 * server-src/amverifyrun.sh.in: Parse that line.
5639 2006-05-02 Jean-Louis Martineau <martineau@zmanda.com>
5640 * amstatus.pl.in: Limit characters for hostname in setup_estimate line.
5642 2006-04-27 Jean-Louis Martineau <martineau@zmanda.com>
5643 * common-src/rsh-security.c: Pass "amdump amindexd amidxtaped" option
5645 * common-src/ssh-security.c: Ditto.
5647 2006-04-27 Jean-Louis Martineau <martineau@zmanda.com>
5648 * amandad-src/amandad.c: Accept a list of services on the command line.
5650 2006-04-27 Jean-Louis Martineau <martineau@zmanda.com>
5651 * common-src/tapelist.c (append_to_tapelist): Fix memory leak.
5653 2006-04-27 Jean-Louis Martineau <martineau@zmanda.com>
5654 * amandad-src/amandad.c: Fix memory leak.
5655 * amandad-src/amandad.h (free_g_options): Prototype.
5656 * amandad-src/amandad_util.c (free_g_options): New function to free a
5658 * server-src/amcleanupdisk.c: Fix memory leak.
5659 * server-src/reporter.c: Fix memory leak.
5660 * server-src/tapefile.c: Fix memory leak.
5661 * server-src/taperscan.c: Put message in error_message.
5663 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5664 * server-src/amcheck.c (start_server_check): Memory leak.
5666 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5667 * amandad-src/Makefile.am (noinst_HEADERS): Add amandad.h.
5668 * client-src/Makefile.am (noinst_HEADERS): Add clientconf.h.
5670 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5671 * man/xml-source/amanda-client.conf.5.xml: New file.
5673 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5674 * common-src/amanda.h (check_user_ruserok, check_user_amandahosts):
5676 * common-src/bsd-security.c: Pass the service name across check_user*
5677 function and validate it from the .amandahosts file.
5679 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5680 * restore-src/amidxtaped.c: Can be launched by amandad.
5681 * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
5682 * server-src/Makefile.am (amidxtaped__LDADD): Link with libamandad.
5683 * restore-src/restore.c: Fix indentation.
5685 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5686 * server-src/amindexd.c: Can be launched by amandad
5687 * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
5688 * server-src/Makefile.am (amindexd_LDADD): Link with libamandad.
5690 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5691 * amandad-src/amandad.c: New file.
5692 * amandad-src/amandad.h: New file.
5693 * amandad-src/amandad_util.c: New file, add function init_g_options
5695 * amandad-src/Makefile.am: New file.
5696 * client-src/amandad.c: Removed file.
5697 * client-src/amandad.h: Removed file.
5698 * client-src/client_util.c (init_g_options, parse_g_options): Remove.
5699 * client-src/client_util.h (init_g_options, parse_g_options): Remove.
5700 * client-src/Makefile.am (INCLUDES): -I$(top_srcdir)/amandad-src
5701 * client-src/Makefile.am (libexec_PROGRAMS): Remove amandad.
5702 * client-src/Makefile.am (LDADD): Add
5703 ../amandad-src/libamandad.$(LIB_EXTENSION).
5704 * client-src/selfcheck.c: #include "amandad.h".
5705 * client-src/sendsize.c: #include "amandad.h".
5706 * configure.in (AC_CONFIG_FILES): amandad-src/Makefile.
5707 * Makefile.am (SUBDIRS): amandad-src.
5709 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5710 * docs/security-api.txt: Document security_read_sync.
5711 * common-src/security.h: Typo.
5713 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5714 * client-src/amandad.c (service_new): Pass the "amandad" argument to
5717 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5718 * common-src/bsd-security.c: Allow to run many services on the same
5720 * common-src/rsh-security.c: Ditto.
5721 * common-src/ssh-security.c: Ditto.
5723 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5724 * common-src/security.h (security_stream_read_sync): Prototype.
5725 * common-src/bsd-security.c (bsd_stream_read_sync): New function.
5726 * common-src/krb4-security.c (krb4_stream_read_sync): New function.
5727 * common-src/krb5-security.c (krb5_stream_read_sync): New function.
5728 * common-src/rsh-security.c (rsh_stream_read_sync): New function.
5729 * common-src/ssh-security.c (ssh_stream_read_sync): New function.
5731 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5732 * client-src/amandad.c: Open pipe in both direction to the services.
5733 * client-src/sendbackup.c: Deal with the newer pipe.
5735 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5736 * client-src/clientconf.c: New file to read the client configuration
5738 * client-src/clientconf.h: Header.
5739 * client-src/Makefile.am: Link clientconf into libamclient.
5740 * configure.in (AC_CONFIG_FILES): example/amanda-client.conf.
5741 * docs/amanda-client.conf.5.txt: New documentation.
5742 * docs/Makefile.am (pkgdata_DATA): amanda-client.conf.5.txt.
5743 * example/amanda-client.conf.in: exemple.
5744 * example/Makefile.am (noinst_DATA): amanda-client.conf.
5745 * man/entities/global.entities: amclientconf.
5746 * man/Makefile.am (COMMON_MAN5_PAGES): amanda-client.conf.5.
5747 * man/xml-source/amanda.8.xml (SEE ALSO): amanda-client.conf(5).
5748 * man/xml-source/amanda.conf.5.xml (SEE ALSO): amanda-client.conf(5).
5749 * man/xml-source/amrecover.8.xml (SEE ALSO): amanda-client.conf(5).
5751 2006-04-26 K. K. George<kkg@zmanda.com>
5752 * server-src/reporter.c: Fix to untaint the mailto parameter.
5753 * server-src/amcheck.c: Fix to untaint the mailto parameter
5754 * changer-src/chg-scsi.c: Fix to untaint the mailto parameter.
5755 * changer-src/chg-scsi-chio.c: Fix to untaint the mailto parameter.
5756 * common-src/util.h: Added function to check if the mailto
5757 parameter is untainted
5758 * common-src/util.c: Added function to check if the mailto
5759 parameter is untainted
5761 2006-04-26 Jean-Louis Martineau <martineau@zmanda.com>
5762 * common-src/event.c(event_wait): New function.
5763 * common-src/event.h(event_wait): prototype.
5764 * docs/eventapi.txt: Document event_wait.
5766 2006-04-24 Jean-Louis Martineau <martineau@zmanda.com>
5767 * server-src/planner.c: Fix divide by zero if runtapes==0.
5769 2006-04-24 K. K. George<kkg@zmanda.com>
5770 * server-src/reporter.c: Fix to make the mailto parameter in
5771 amanda.conf optional. Added two more commandline options
5773 * server-src/amcheck.c: Fix to make the mailto parameter in
5774 amanda.conf optional.
5775 * man/xml-source/amreport.8.xml: Modified to document the
5776 -i & -Maddress commandline parameters
5777 * docs/amreport.8.txt: Modified to document the
5778 -i & -Maddress commandline parameters
5779 * changer-src/chg-scsi.c: Fix to make the mailto parameter in
5780 amanda.conf optional.
5781 * changer-src/chg-scsi-chio.c: Fix to make the mailto parameter in
5782 amanda.conf optional.
5784 2006-04-23 Jean-Louis Martineau <martineau@zmanda.com>
5785 * server-src/driver.c (handle_chunker_result): make sure that
5786 est_size > act-size.
5788 2006-04-21 Jean-Louis Martineau <martineau@zmanda.com>
5789 * server-src/changer.c (changer_command): Make sure fd[0] != 1.
5791 2006-04-19 Jean-Louis Martineau <martineau@zmanda.com>
5792 * restore-src/amidxtaped.c: Cleanup.
5794 2006-04-19 Ian Turner <ian@zmanda.com>
5795 * tape-src/output-tape.c: Do a more thourough check to ensure
5796 that we actually got a tape device, before proceeding to use
5799 2006-04-18 Ian Turner <ian@zmanda.com>
5800 * changer-src/chg-disk.sh.in: Check that the virtual device is a
5801 directory with proper permissions.
5802 * server-src/changer.c: Do the right thing (failure) if there is
5803 a problem with the changer.
5805 2006-04-18 Ian Turner <ian@zmanda.com>
5806 * recover-src/uscan.l: Accept setdate of the form
5807 yyyy-MM-dd-hh-mm in addition to yyyy-MM-dd-hh-mm-ss.
5808 * man/xml-source/amrecover.8.xml: Document this change.
5810 2006-04-14 Jean-Louis Martineau <martineau@zmanda.com>
5811 * recover-src/help.c: Document setdate YYYY-MM-DD-HH-MM-SS format.
5812 * man/xml-source/amrecover.8.xml: Ditto.
5814 2006-04-14 Jean-Louis Martineau <martineau@zmanda.com>
5815 * client-src/amandad.c: Use %p to printf pointer.
5817 2006-04-14 Jean-Louis Martineau <martineau@zmanda.com>
5818 * server-src/amtape.c: Add update command.
5820 2006-04-11 Jean-Louis Martineau <martineau@zmanda.com>
5821 * server-src/taper.c: log_add(L_WARNING) the output of taper_scan if
5822 no valid tape are found.
5824 2006-04-11 Jean-Louis Martineau <martineau@zmanda.com>
5825 * server-src/amcheck.c: Call taper_scan with
5826 (..., FILE_taperscan_output_callback,outf) arguments.
5827 * server-src/amtape.c: Call taper_scan with
5828 (..., FILE_taperscan_output_callback,stderr) arguments.
5829 * server-src/taper.c: Call taper_scan with
5830 (..., CHAR_taperscan_output_callback, &error_msg) arguments.
5831 * server-src/taperscan.h(FILE_taperscan_output_callback,
5832 CHAR_taperscan_output_callback): Protoype.
5833 * server-src/taperscan.h(taper_scan): New protoype, remove
5834 error_message arg, add taperscan_output_callback and data arg.
5835 * server-src/taperscan.c(FILE_taperscan_output_callback): Callback
5836 that print the msg to it's arg, which is FILE*.
5837 * server-src/taperscan.c(CHAR_taperscan_output_callback): Callback
5838 that append the msg to it's arg, which is char*.
5839 * server-src/taperscan.c(taper_scan): Fix for new arguments.
5840 * server-src/taperscan.c(changer_taper_scan): Fix for new arguments.
5842 2006-04-11 Jean-Louis Martineau <martineau@zmanda.com>
5843 * man/xml-source/amanda.conf.5.xml: Document amandad_path and
5844 client_username dumptype option.
5846 2006-04-11 Jean-Louis Martineau <martineau@zmanda.com>
5847 * common-src/krb4-security.c: Increase timeout to 60 seconds.
5848 * common-src/rsh-security.c: Increase timeout to 60 seconds.
5849 * common-src/ssh-security.c: Increase timeout to 60 seconds.
5851 2006-04-07 Jean-Louis Martineau <martineau@zmanda.com>
5852 * server-src/conffile.c: New configuration option usetimestamps.
5853 * server-src/conffile.h: New configuration option usetimestamps.
5854 * example/amanda.conf.in: Document new usetimestamps options.
5855 * man/xml-source/amanda.conf.5.xml: Document new usetimestamps options.
5856 * server-src/amflush.c: Use datestamp or timestamp depending of
5858 * server-src/planner.c: Use datestamp or timestamp depending of
5860 * server-src/driver.c: Log an ERROR if many run a day and
5861 usetimestamps us set to no.
5863 2006-04-07 Ian Turner <ian@zmanda.com>
5864 * server-src/changer.c: Don't crash if we go to taperscan "Plan
5867 2006-04-07 Ian Turner <ian@zmanda.com>
5868 * server-src/changer.c: Only print changer debug messages if
5869 there was a problem.
5871 2006-04-07 Ian Turner <ian@zmanda.com>
5872 * recover-src/amrecover.c: Print a more helpful command if mount
5873 point autodetection fails.
5874 * recover-src/display_commands.c: Print a more helpful message
5875 if the user tries to ls without having setdisk earlier.
5877 2006-04-07 Jean-Louis Martineau <martineau@zmanda.com>
5878 * server-src/amadmin.c: Fix use of datestamp as int.
5879 * server-src/find.c: Ditto.
5880 * server-src/reporter.c: Ditto.
5881 * server-src/tapefile.c: Ditto.
5883 2006-04-07 Jean-Louis Martineau <martineau@zmanda.com>
5884 * common-src/Makefile.am: Fix dependency between genversion and
5887 2006-04-07 Jean-Louis Martineau <martineau@zmanda.com>
5888 * recover-src/amrecover.c: Change initialization of server_name and
5891 2006-04-07 Jean-Louis Martineau <martineau@zmanda.com>
5892 * restore-src/amrestore.c: reset count_error to 0 on a restore.
5894 2006-04-06 Kevin Till <ktill@zmanda.com>
5895 * server-src/Makefile.am: always install planner/dumper setuid-root
5896 * server-src/amcheck.c: check planner/dumper for setuid-root
5897 * server-src/dumper.c: drop privilege asap. Switch between bsd
5898 and ssh auth is now possible with the same installation.
5899 * server-src/planner.c: ditto
5901 2006-04-06 Jean-Louis Martineau <martineau@zmanda.com>
5902 * server-src/taperscan.c (changer_taper_scan): Pass a pointer to the
5903 changer_loadslot call.
5905 2006-04-06 Jean-Louis Martineau <martineau@zmanda.com>
5906 * server-src/tapefile.c (lookup_last_reusable_tape): Fix a datestamp
5909 2006-04-06 Ian Turner <vectro@vectro.org>
5910 * recover-src/amrecover.c (main): Check AMANDA_SERVER and
5911 AMANDA_TAPE_SERVER environment variables before falling back
5912 to compiled-in defaults. Document this new behavior. Thanks to
5913 Malcolm Locke <malc@hoodee.co.uk> for the idea and patch.
5915 2006-04-06 Jean-Louis Martineau <martineau@zmanda.com>
5916 * server-src/reporter.c (handle_chunk): CHUNK line always have the
5919 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
5920 * server-src/krb5-security.c: Fix for krb5_connect call in
5923 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
5924 * server-src/driver.c (start_some_dumps): Recover correctly if the
5925 chunker reply with something that is not a PORT command.
5926 * server-src/driver.c (dump_to_tape): remove duplicate free_serial.
5927 * server-src/driverio.c: Improve debugging.
5929 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
5930 * common-src/tapelist.c(unmarshal_tapelist_str): Fix
5931 "value computed is not used" compiler warning.
5933 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
5934 * common-src/bsd-security.c (bsd_connect): New datap argument.
5935 * common-src/krb4-security.c (krb4_connect): New datap argument.
5936 * common-src/krb5-security.c (krb5_connect): New datap argument.
5937 * common-src/rsh-security.c (rsh_connect): New datap argument,
5938 retrieve amanda_path and client_username from configuration.
5939 * common-src/ssh-security.c (ssh_connect): New datap argument,
5940 retrieve amanda_path and client_username from configuration.
5941 * common-src/protocol.c: Pass new datap argument to security_connect.
5942 * common-src/security.h(connect): New prototype.
5943 * common-src/security.h(security_connect): Add datap to macro.
5944 * server-src/amadmin.c(disklist_one): Print amandad_path and
5946 * server-src/conffile.c(AMANDAD_PATH, CLIENT_USERNAME): Parse new
5948 * server-src/conffile.h(dumptype_t): Add amandad_path and
5950 * server-src/diskfile.c(parse_diskline): Copy new field.
5951 * server-src/diskfile.h(disk_t) Add amandad_path and client_username.
5952 * server-src/driverio.c(dumper_cmd): Send dp->amandad_path and
5953 dp->client_username in a PORT_DUMP command to the dumper.
5954 * server-src/dumper.c: Parse amandad_path and client_username in a
5956 * server-src/dumper.c(dumper_get_security_conf): New function to return
5957 configuration option to the security-api.
5958 * server-src/dumper.c: Use dumper_get_security_conf for the callback
5959 to protocol_sendreq.
5960 * server-src/planner.c Use amhost_get_security_conf for the callback
5961 to protocol_sendreq.
5962 * server-src/amcheck.c: Use amhost_get_security_conf for the callback
5963 to protocol_sendreq.
5964 * server-src/server_util.c(amhost_get_security_conf): New function to
5965 return configuration option to the security-api,
5966 it expect an am_host_t arg.
5967 * server-src/server_util.h(amhost_get_security_conf): Prototype.
5969 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
5970 * server-src/amstatus.pl.in: Remove duplicate instruction.
5972 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
5973 * server-src/amindexd.c: Remove all code that set str_buffer_size,
5974 rename str_buffer_size to reply_buffer_size,
5975 rename buf to reply_buffer,
5976 * server-src/amindexd.c(reply, lreply_backend): Increase reply_buffer
5979 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
5980 * common-src/amfeatures.h: Add fe_amrecover_timestamp amfeature.
5981 * common-src/amfeatures.c (am_init_feature_set):
5982 Add fe_amrecover_timestamp.
5983 * server-src/amindexd.c(opaque_ls_one): New function.
5984 * server-src/amindexd.c(disk_history_list,opaque_ls_one): Send only a
5985 datestamp if client doesn't have fe_amrecover_timestamp.
5987 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
5988 * recover-src/uscan.l: Parse "setdate YYYY-MM-DD-HH-MM-SS".
5989 * server-src/amindexd.c (cmp_date): New function to cmp datestamp with
5990 timestamp, use it where needed.
5991 * server-src/amindexd.c (amindexd_nicedate): Fix for timestamp.
5992 * server-src/amtrmidx.c: Fix for timestamp.
5993 * server-src/disk_history.h (DUMP_ITEM): Increase size of date.
5995 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
5996 * server-src/amflush.c: Send DATE line to driver, use timestamp.
5997 * server-src/amindex.c (getindexfname): Increase datebuf size.
5998 * server-src/amtrmlog.c: Fix bug with date_keep computation if
6000 * server-src/amtrmlog.c: rotate timestamped log file.
6001 * server-src/chunker.c: Receive START cmd, use timestamp.
6002 * server-src/driver.c: Receive DATE line, send START cmd to chunker,
6004 * server-src/driverio.c (startup_dump_processes): Send START cmd to
6006 * server-src/driverio.c (dumper_cmd, chunker_cmd): Send START command.
6007 * server-src/driverio.h (startup_dump_processes): Prototype change,
6009 * server-src/dumper.c: Receive START cmd, use timestamp.
6010 * server-src/find.c (find_nicedate): Fix for timestamp.
6011 * server-src/planner.c: Send DATE line to driver, use timestamp.
6012 * server-src/server_util.c (cmdstr): Add START.
6013 * server-src/server_util.h (cmd_t): Add START.
6014 * server-src/taper.c: Get timestamp from TAPER_START command.
6016 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
6017 * server-src/amindexd.c (amindexd_nicedate): New function.
6018 * server-src/find.h (struct find_result_s): Remove datestamp and
6019 datestamp_aux field, only timestamp will be used.
6020 * restore-src/amfetchdump.c: Convert datestamp to 'char *'.
6021 * restore-src/restore.c: Convert datestamp to 'char *'.
6022 * server-src/amindexd.c: Convert datestamp to 'char *'.
6023 * server-src/amlabel.c: Convert datestamp to 'char *'.
6024 * server-src/amtrmidx.c: Convert datestamp to 'char *'.
6025 * server-src/find.c: Convert datestamp to 'char *'.
6026 * server-src/reporter.c: Convert datestamp to 'char *'.
6027 * server-src/tapefile.c: Convert datestamp to 'char *'.
6028 * server-src/tapefile.h: Convert datestamp to 'char *'.
6029 * server-src/taper.c: Convert datestamp to 'char *'.
6031 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
6032 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b1).
6034 2006-04-05 Jean-Louis Martineau <martineau@zmanda.com>
6035 * server-src/driver.c: Change expression to remove overflow.
6037 2006-03-29 Jean-Louis Martineau <martineau@zmanda.com>
6038 * client-src/calcsize.c: Don't use declaration after instruction,
6039 older compiler don't accept it.
6041 2006-03-23 Jean-Louis Martineau <martineau@zmanda.com>
6042 * Amanda 2.5.0 released.
6043 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
6044 * NEWS: Update for 2.5.0
6046 2006-03-22 Jean-Louis Martineau <martineau@zmanda.com>
6047 * server-src/dumper.c: wait for compress/index/encryp subprocess.
6049 2006-03-22 Jean-Louis Martineau <martineau@zmanda.com>
6050 * server-src/amstatus.pl.in: Parse PARTIAL reply.
6052 2006-03-22 Jean-Louis Martineau <martineau@zmanda.com>
6053 * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
6055 2006-03-21 Jean-Louis Martineau <martineau@zmanda.com>
6056 * server-src/chunker.c: Don't loop on startup_chunker.
6057 * server-src/dumper.c: Don't wait for all children, some process (ssh)
6058 might not terminate.
6060 2006-03-17 Ian Turner <ian@zmanda.com>
6061 * server-src/taper.c (read_file): When finished flushing a
6062 chunked dump, print information about the whole dump, not just
6063 the last chunk. Also, fix some memory leaks.
6065 2006-03-16 Kevin Till <ktill@zmanda.com>
6066 * server-src/amverify.sh.in: check for EOI. amrestore only
6067 reports EOI for some tapetypes.
6069 2006-03-15 Jean-Louis Martineau <martineau@zmanda.com>
6070 * server-src/conffile.c: Fix heritage of auth.
6072 2006-03-14 Kevin Till <ktill@@zmanda.com>
6073 * example/amanda.conf.in: add dumptype custom-compress.
6074 add ssh,krb5 as valid input for auth.
6075 * man/xml-source/amanda.conf.5.xml: give reference to
6076 custom-compress, encrypt-fast dumptypes.
6078 2006-03-14 Jean-Louis Martineau <martineau@zmanda.com>
6079 * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
6081 * common-src/amfeatures.c (am_init_feature_set): Set
6082 fe_amrecover_FEEDME.
6083 * restore-src/restore.h (search_tapes): Add their_features parameter.
6084 * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
6085 * restore-src/amidxtaped.c: Add their_features to search_tapes call.
6086 * restore-src/restore.c (search_tapes): Send FEEDME only if client
6089 2006-03-11 Jean-Louis Martineau <martineau@zmanda.com>
6090 * server-src/driverio.c : Fix errors found using Coverity tools.
6092 2006-03-10 Jean-Louis Martineau <martineau@zmanda.com>
6093 * server-src/taperscan.c: Fix Coverity fix.
6095 2006-03-10 Jean-Louis Martineau <martineau@zmanda.com>
6096 * changer-src/scsi-changer-driver.c:
6097 Fix errors found using Coverity tools.
6098 * server-src/diskfile.c: Fix errors found using Coverity tools.
6099 * server-src/planner.c: Fix errors found using Coverity tools.
6100 * server-src/taperscan.c: Fix errors found using Coverity tools.
6102 2006-03-10 Jean-Louis Martineau <martineau@zmanda.com>
6103 * server-src/driverio.c: Undo my bad fix.
6104 * server-src/infofile.c: Fix errors found using Coverity tools.
6105 * tape-src/tapetype.c: Fix errors found using Coverity tools.
6107 2006-03-09 Jean-Louis Martineau <martineau@zmanda.com>
6108 * restore-src/restore.c: Fix errors found using Coverity tools.
6110 2006-03-09 Jean-Louis Martineau <martineau@zmanda.com>
6111 * server-src/holding.c: Fix errors found using Coverity tools.
6113 2006-03-09 Jean-Louis Martineau <martineau@zmanda.com>
6114 * server-src/driverio.c: Fix errors found using Coverity tools.
6115 * server-src/planner.c: Fix errors found using Coverity tools.
6117 2006-03-09 John Franks <jrfranks@zmanda.com>
6118 * changer-src/chg-scsi.c: Fix errors found using Coverity tools.
6119 * changer-src/scsi-changer-driver.c:
6120 Fix errors found using Coverity tools.
6121 * changer-src/sense.c: Fix errors found using Coverity tools.
6122 * client-src/sendbackup-dump.c: Fix errors found using Coverity tools.
6123 * client-src/sendbackup.c: Fix errors found using Coverity tools.
6124 * recover-src/display_commands.c:Fix errors found using Coverity tools.
6125 * regex-src/regcomp.c: Fix errors found using Coverity tools.
6126 * restore-src/restore.c: Fix errors found using Coverity tools.
6127 * server-src/amindexd.c: Fix errors found using Coverity tools.
6128 * server-src/diskfile.c: Fix errors found using Coverity tools.
6129 * server-src/driver.c: Fix errors found using Coverity tools.
6130 * server-src/driverio.c: Fix errors found using Coverity tools.
6131 * server-src/infofile.c: Fix errors found using Coverity tools.
6132 * server-src/planner.c: Fix errors found using Coverity tools.
6133 * server-src/taper.c: Fix errors found using Coverity tools.
6134 * server-src/taperscan.c: Fix errors found using Coverity tools.
6135 * server-src/conffile.c: Change report default to use at least
6136 one space between every column.
6138 2006-03-08 Jean-Louis Martineau <martineau@zmanda.com>
6139 * client-src/amandad.c: Fix coverity bug.
6140 * client-src/calcsize.c: Fix coverity bug.
6141 * client-src/client_util.c: Fix coverity bug.
6142 * client-src/sendbackup.c: Fix coverity bug.
6143 * client-src/sendsize.c: Fix coverity bug.
6144 * common-src/bsd-security.c: Fix coverity bug.
6145 * common-src/file.c: Fix coverity bug.
6146 * common-src/fileheader.c: Fix coverity bug.
6147 * common-src/pipespawn.c: Fix coverity bug.
6148 * recover-src/extract_list.c: Fix coverity bug.
6149 * restore-src/restore.c: Fix coverity bug.
6150 * server-src/amindexd.c: Fix coverity bug.
6151 * server-src/conffile.c: Fix coverity bug.
6152 * server-src/diskfile.c: Fix coverity bug.
6153 * server-src/driverio.c: Fix coverity bug.
6154 * server-src/dumper.c: Fix coverity bug.
6155 * server-src/planner.c: Fix coverity bug.
6156 * server-src/reporter.c: Fix coverity bug.
6158 2006-03-07 Paddy Sreenivasan <paddy@zmanda.com>
6159 * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
6161 2006-03-07 Jean-Louis Martineau <martineau@zmanda.com>
6162 * server-src/taper.c: Don't log a multi-line message in no-tape case.
6164 2006-03-06 John Franks <jrfranks@zmanda.com>
6165 * recover-src/extract_list.c:
6166 1) Don't add '.' directory twice to tar extract list.
6167 2) Don't prepend extra '/' to extract patterns starting with '/'.
6168 3) Convert "/" extract pattern to "*" equivalent.
6170 2006-03-06 Jean-Louis Martineau <martineau@zmanda.com>
6171 * server-src/taperscan.c (scan_slot): append slotstr to
6173 * server-src/taperscan.c: Add a '\n' after each slot error message.
6175 2006-03-06 Jean-Louis Martineau <martineau@zmanda.com>
6176 * server-src/reporter.c (handle_error): Handle error from taper.
6178 2006-03-06 Jean-Louis Martineau <martineau@zmanda.com>
6179 * server-src/taper.c (label_tape): Set errstr and return 0 if no
6180 valid tape are available.
6182 2006-03-03 Ian Turner <ian@zmanda.com>
6183 * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and
6185 * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
6186 * recover-src/extract_list.c: Accept port number with CONNECT;
6187 implement fe_amidxtaped_FEEDME.
6188 * restore-src/amidxtaped.c: Introduce port number with CONNECT.
6189 (closes SF bug 1431623)
6190 * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
6191 (closes SF bug 1421433)
6192 * restore-src/restore.h: Properly name rst_flags.
6194 2006-02-28 Jean-Louis Martineau <martineau@zmanda.com>
6195 * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
6196 Set bh->proto_handle to NULL after allocating bh.
6197 * common-src/bsd-security.c (bsd_close): Donothing if
6198 bh->proto_handle == NULL.
6200 2006-02-28 Jean-Louis Martineau <martineau@zmanda.com>
6201 * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
6204 2006-02-28 Jean-Louis Martineau <martineau@zmanda.com>
6205 * server-src/driver.c: Print dumper TRY_AGAIN message.
6207 2006-02-28 Jean-Louis Martineau <martineau@zmanda.com>
6208 * server-src/planner.c: Don't print estimate size if estimate failed.
6210 2006-02-25 Ian Turner <ian@zmanda.com>
6211 * man/Makefile.am: Don't use static patterns (as they are not
6212 portable), use implicit rules instead.
6214 2006-02-20 Kevin Till <ktill@zmanda.com>
6215 * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
6217 * common-src/krb5-security.c: ditto.
6219 2006-02-16 Kevin Till <ktill@zmanda.com>
6220 * example/amanda.conf.in: dumptype option is "encrypt"
6221 * man/xml-source/amanda.conf.5.xml: ditto
6222 * server-src/holding.c: util.h is include'd twice
6223 * common-src/ssh-security.c: set correct debug print
6225 2006-02-10 Kevin Till <ktill@zmanda.com>
6226 * man/xml-source/amanda.8.xml: replace informaltable with literallayout
6228 2006-02-13 John Franks <jrfranks@zmanda.com>
6229 * server-src/driver.c: Pring a more precise message when taper
6230 returns an error. Include error message from taper in log.
6231 Print out "protocol error" if taper returns a bogus command.
6233 2006-02-10 Kevin Till <ktill@zmanda.com>
6234 * man/xml-source/amanda.conf.5.xml: add note about first character of a
6235 tapetype string must be alphabet
6237 2006-02-10 John Franks <jrfranks@zmanda.com>
6238 * server-src/taper.c: Call error() if an invalid string is read
6239 by syncpipe_getstr().
6241 2006-02-09 John Franks <jrfranks@zmanda.com>
6242 * Makefile.am, */Makefile.am: Corrections generated by David Braun
6243 dustybird@users.sourceforge.net to properly set source directories
6244 for remote (VPATH) builds.
6245 * man/Makefile.am: Fixed man page builds to use proper source and
6247 * autogen: Force rebuilding everything and print only syntax errors.
6248 (Errors are seen occasionally in system autogen files...)
6249 * configure.in: Eliminate possibility of empty string in shell tests.
6250 fix quoting of '[' and ']' characters in help messages.
6251 Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
6253 2006-02-08 Ian Turner <ian@zmanda.com>
6254 * server-src/driver.c (handle_taper_result): Properly handle
6255 SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
6258 2006-02-06 Kevin Till <ktill@zmanda.com>
6259 * restore-src/restore.c: fix comment formatting on version 1.2.1
6261 2006-02-06 Kevin Till <ktill@zmanda.com>
6262 * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
6263 * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
6264 * server-src/amcheck.c: ditto
6265 * server-src/dumper.c: ditto
6266 * restore-src/restore.c: add missing "}"
6268 2006-02-06 Ian Turner <ian@zmanda.com>
6269 * restore-src/amidxtaped.c: Properly handle changers,
6270 tape-label checking, and tape prompting in amrecover,
6271 amindexd, and amidextaped. Thanks to Paul Bijnens
6272 <pbijnens@users.sourceforge.net> for the patch.
6273 * restore-src/restore.c: ditto.
6274 * server-src/amindexd.c: ditto.
6276 2006-02-04 Paddy Sreenivasan <paddy@zmanda.com>
6277 * man/xml-source/amfetchdump.8.xml
6278 * man/xml-source/amcrypt.8.xml
6279 * man/xml-source/amanda.conf.5.xml
6280 * man/xml-source/amanda.8.xml
6281 * man/xml-source/amaespipe.8.xml
6282 * man/entities/global.entities: Merged changes from xml-docs tree
6284 2006-02-03 John Franks <jrfranks@zmanda.com>
6285 * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
6287 2006-02-03 Ian Turner <ian@zmanda.com>
6288 * server-src/amadmin.c (main): Don't free conf_tapelist too
6289 early. Thanks to Cédric Lucantis
6290 <cedric-lucantis@users.sourceforge.net> for the patch.
6292 2006-02-02 Kevin Till <ktill@zmanda.com>
6293 * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem
6295 * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
6297 2006-02-02 Ian Turner <ian@zmanda.com>
6298 * recover-src/extract_list.c (extract_files_child): Run tar with
6299 --numeric-owner if we are extracting a non-sambafied tar file.
6300 Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for
6301 the patch. Thanks also to Mark Schaefer for suggesting this
6304 2006-02-01 Jean-Louis Martineau <martineau@zmanda.com>
6305 * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
6306 cast size_t to am64_t and use AM64_FMT to printf them.
6308 2006-01-31 Jean-Louis Martineau <martineau@zmanda.com>
6309 * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
6310 before adding it to tapeq.
6312 2006-01-27 Ian Turner <ian@zmanda.com>
6313 * configure.in: Add new option --without-xsltproc (and
6314 --with-xsltproc), which turns off (or forces) the use of xsltproc to
6315 build manpages. Thanks to Paul Bijnens
6316 <pbijnens@users.sourceforge.net> for suggesting this feature.
6318 2006-01-27 Ian Turner <ian@zmanda.com>
6319 * restore-src/amfetchdump.c: Properly clean up logfiles. Also,
6320 run as user amanda even if we are started as some other user.
6321 Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the
6324 2006-01-25 Paddy Sreenivasan <paddy@zmanda.com>
6325 * common-src/amanda.h: Removed unnecessary header include files.
6327 2006-01-25 Kevin Till<ktill@zmanda.com>
6328 * server-src/amadmin.c: fix for sourceforge bug 1412698
6329 add missing parameters to "amadmin x disklist"
6330 * server-src/amstatus.pl.in: untaint user input, enforce known path.
6331 * server-src/amoverview.pl.in: untaint user input (bug 1353481)
6333 2006-01-25 Kevin Till<ktill@zmanda.com>
6334 * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible
6335 with some tag) add supported auth types.
6337 2006-01-25 Kevin Till<ktill@zmanda.com>
6338 * common-src/bsd-security.c: move check_security to bsd_security.c,
6340 Thanks to Paul Bijnens
6341 * restore-src/amidxtaped.c: ditto
6342 * server-src/amindexd.c: ditto and no need to tell client
6343 about reason for denial
6344 * common-src/amanda.h: add proto of check_security
6345 * server-src/conffile.c: don't list CRYPT in the summary report
6347 * restore-src/restore.c: set outfd correctly for amfetchdump cases
6348 Thanks to Paul Bijnens
6350 2006-01-24 Ian Turner <ian@zmanda.com>
6351 * man/xml-source/amanda.conf.5.xml: Put documentation of
6352 split-dump options in the right place. Thanks to Paul Bijnens
6353 <pbijnens@users.sourceforge.net> for the fix.
6354 * man/xml-source/amanda.8.xml: ditto.
6356 2006-01-23 Ian Turner <ian@zmanda.com>
6357 * server-src/taperscan.c (find_brand_new_tape_label): Start
6358 brand new tape labels at 1 instead of 0. Thanks to Paul
6359 Bijnens <pbijnens@users.sourceforge.net> for the fix.
6361 2006-01-18 Jean-Louis Martineau <martineau@zmanda.com>
6362 * Amanda 2.5.0b2 released.
6363 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
6364 * NEWS: Update for 2.5.0b2
6366 2006-01-15 Jean-Louis Martineau <martineau@zmanda.com>
6367 * server-src/disk_history.c: Fix memory leak.
6369 2006-01-15 Jean-Louis Martineau <martineau@zmanda.com>
6370 * common-src/bsd-security.c: Fix memory leak.
6371 * common-src/tapelist.c: Fix memory leak.
6372 * restore-src/amidxtaped.c: Fix memory leak.
6373 * restore-src/restore.c: Fix memory leak.
6374 * server-src/amindexd.c: Fix memory leak.
6375 * server-src/conffile.c: Fix memory leak.
6376 * server-src/disk_history.c: Fix memory leak.
6377 * server-src/find.c: Fix memory leak.
6379 2006-01-13 John Franks <jrfranks@zmanda.com>
6380 * client-src/amandad.c: Remove SO_LINGER and TCP_NDELAY.
6381 Loop on I/O if EINTR or EAGAIN.
6382 * client-src/noop.c: Loop on I/O if EINTR or EAGAIN.
6383 * client-src/sendbackup.c: Remove SIGPIPE handler.
6384 Loop on I/O if EINTR or EAGAIN.
6385 Check for EPIPE on writes.
6386 * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
6387 * common-src/stream.c: Remove SO_LINGER and TCP_NDELAY.
6388 * common-src/util.c: Loop on I/O if EINTR or EAGAIN.
6389 * recover-src/amrecover.c: Write commanda atomically in sigint handler
6390 * recover-src/extract_list.c:Remove SIGPIPE handler.
6391 Loop on I/O if EINTR or EAGAIN.
6392 Check for EPIPE on writes.
6393 Remove shutdown functions.
6394 * restore-src/amfetchdump.c: Remove SIGPIPE handler.
6395 * restore-src/amidxtaped.c: Remove SO_LINGER and TCP_NDELAY.
6396 Remove SIGPIPE handler.
6397 read_file_header does not return if it
6398 Fix infinite loop on EOF or error and
6399 fail if memory reallocation failure in
6401 * restore-src/restore.c: Remove SIGPIPE handler.
6402 Loop on I/O if EINTR or EAGAIN.
6403 Remove shutdown functions.
6405 * restore-src/restore.h: Change read_file_header to return void
6406 * server-src/amcheck.c: Use fullread() to handel EINTR etc.
6407 Remove unused variable.
6408 * server-src/changer.c: Remove SO_LINGER and TCP_NDELAY.
6409 Use fullwrite on socket.
6410 * server-src/driverio.c: Remove SO_LINGER and TCP_NDELAY.
6411 * server-src/taper.c: Use fullwrite() to write data.
6412 Use fullread() to read data.
6413 * tape-src/output-file.c; Use fullwrite() to write data.
6415 2006-01-13 Jean-Louis Martineau <martineau@zmanda.com>
6416 * server-src/amcheck.c (start_server_check): Remove unused variable
6418 * restore-src/restore.c (restore): Remove unused variable s, l and
6421 2006-01-12 Jean-Louis Martineau <martineau@zmanda.com>
6422 * recover-src/extract_list.c (send_to_tape_server): Do only on write.
6423 * restore-src/amidxtaped.c (get_client_line_fd): New function to read
6424 one complete line from an fd.
6426 2006-01-09 John Franks <jrfranks@zmanda.com>
6427 * common-src/amanda.h: Include tcp.h
6428 * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
6429 * common-src/dgram.c: No linger on datagrams
6430 * common-src/stream.c: Set TCP_NODELAY and SO_LINGER on sockets.
6431 * common-src/util.c: Fix fullwrite to return # of bytes written
6433 * example/amanda.conf.in: Cleanup exclude list template.
6434 Use configure directlries instead of /usr/local
6435 * recover-src/extract_list.c: Cleanup read loops.
6436 Use real fullwrite instead of inline versions.
6437 Remove extra setting of LINGER on socket.
6438 * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
6439 * restore-src/restore.c:Use real fullwrite instead of inline versions.
6440 * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
6441 * server-src/chunker.c: Use real fullwrite instead of inline versions.
6442 * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
6443 * server-src/dumper.c: Use real fullwrite instead of inline versions.
6445 2006-01-09 Ian Turner <ian@zmanda.com>
6446 * changer-src/scsi-changer-driver.c: If there is a problem opening
6447 the device during GenericRewind, don't retry for 201 minutes; give
6448 up after only 200 seconds.
6450 2006-01-09 Ian Turner <ian@zmanda.com>
6451 * server-src/taperscan.c: When doing taper-scan algorithm, properly
6454 2006-01-09 Ian Turner <ian@zmanda.com>
6455 * tape-src/tapeio.c: Generate a more reasonable message when
6456 reading an empty tape label on brand-new tapes.
6458 2006-01-09 Ian Turner <ian@zmanda.com>
6459 * server-src/amcheck.c: Actually do what the documentation for
6460 amcheck -w says; that is, overwrite labels on tapes.
6462 2006-01-06 Kevin Till<ktill@zmanda.com>
6463 * server-src/amcheck.c: check if encrypt or compress program is
6464 executable. Check encrypt/compress configuration.
6465 * server-src/dumper.c: kill encrypt child when dump is stopped
6466 * server-src/amcrypt.sh.in: check for aespipe
6467 * server-src/amaespipe.sh.in: adjust PATH
6468 * man/xml-source/amtapetype.8.xml: fix format problem.
6470 2006-01-06 Jean-Louis Martineau <martineau@zmanda.com>
6471 * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
6473 2006-01-06 Jean-Louis Martineau <martineau@zmanda.com>
6474 * restore-src/restore.c (flush_open_outputs): Another shutdown is
6477 2006-01-05 John Franks <jrfranks@zmanda.com>
6478 * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
6479 Use shutdown() on sockets.
6480 Retry reads in case of EINTR or EAGAIN.
6481 * common-src/stream.c: set linger on correct socket.
6482 Extend linger timeouts to 60 seconds.
6483 * restore-src/restore.c: Fix compiler warnings.
6484 * Call shutdown in more cases.
6486 2006-01-05 John Franks <jrfranks@zmanda.com>
6487 * client-src/amandad.c: Set SO_LINGER on sockets.
6488 * common-src/dgram.c: Set SO_LINGER on sockets.
6489 * common-src/stream.c: Set SO_LINGER on sockets.
6490 * common-src/util.c: Return any bytes already read on error or EOF.
6491 * recover-src/extract_list.c: Set SO_LINGER on data socket.
6492 Fix printf of unterminated string data.
6493 Check return codes on socket header reads.
6494 * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
6495 Check return codes on socket header reads.
6496 * restore-src/restore.c:
6497 Flush newline after operator prompt.
6498 * common-src/debug.c:
6499 Fix memory leak when debug file name already exists.
6500 Print error text upon hard open() error.
6501 Allow group members read only access to log files.
6503 2006-01-05 Kevin Till<ktill@zmanda.com>
6504 * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
6505 early when it sees trailing garbage after EOF.
6507 2006-01-02 Jean-Louis Martineau <martineau@zmanda.com>
6508 * common-src/amanda.h: Add a FD_COPY macro.
6509 * recover-src/extract_list.c (writer_intermediary): Don't use
6510 writer_intermediary, do the select locally.
6512 2006-01-02 Jean-Louis Martineau <martineau@zmanda.com>
6513 * restore-src/restore.c (flush_open_outputs): Call shutdown before
6516 2005-12-30 John Franks <jrfranks@zmanda.com>
6517 * recover-src/extract_list.c:
6518 Fix double clearing of buffer during normal read path.
6519 * restore-src/amidxtaped.c
6520 Actually initialize changer if it is needed. (Set use_changer
6521 before checking it...)
6522 * Fix control messages being sent down the data pipe when
6523 restoring to client that does not support split dumps.
6524 * Print error and exit if a split dump is needed during restore
6525 and client can not handle it.
6527 2005-12-30 Ian Turner <ian@zmanda.com>
6528 * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header
6529 syntax, in favor of xx/-1.
6531 2005-12-29 John Franks <jrfranks@zmanda.com>
6532 * recover-src/display_commands.c
6533 Fix list deletion which did not update list root with NULL pointer.
6534 Make free_dir_item() a non-recursive function to prevent stack bloat.
6535 Fix list insertion code which inserts item in list initializes entry.
6536 * recover-src/extract_list.c
6537 Fix to initialize lditem before using it...
6538 Prevent multiple frees of cmd string.
6539 Do not free err which is only initialized with static string pointers.
6540 Fix typo which caused newstralloc() to free the wrong memory.
6541 * server-src/amindexd.c
6542 Fix Compiler warning of unused variable.
6543 * server-src/taperscan.c
6544 Fix Compiler warning of bogus format specifier.
6546 2005-12-29 Kevin Till<ktill@zmanda.com>
6547 * man/xml-source/amcrypt.8.xml: add new amcrypt man page
6548 * man/xml-source/amaespipe.8.xml: add new amaespipe man page
6550 2005-12-29 Ian Turner <ian@zmanda.com>
6551 * man/xml-source/amanda.conf.5.xml: Document label_new_tapes
6554 2005-12-28 Ian Turner <ian@zmanda.com>
6555 * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
6556 * recover-src/display_commands.c: ditto
6557 * recover-src/extract_list.c: ditto. Also use dynamic strings in
6558 struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
6560 2005-12-28 Ian Turner <ian@zmanda.com>
6561 * common-src/amfeatures.h: Add three new amfeatures:
6562 fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
6563 fe_amindexd_marshall_in_DHST.
6564 * common-src/amfeatures.c: ditto.
6565 * server-src/amindexd.c: Talk well to older clients.
6567 2005-12-23 Ian Turner <ian@zmanda.com>
6568 * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
6569 returns NULL. Also, don't return NULL from
6570 find_brand_new_tape_label without a good excuse.
6572 2005-12-23 Kevin Till <ktill@zmanda.com>
6573 * client-src/client_util.c: change server_decrypt_option to
6574 server-decrypt-option
6575 * client-src/sendbackup.c: change client_decrypt_option to
6576 client-decrypt-option
6577 * server-src/dumper.c: ditto
6578 * common-src/amfeatures.c: add crypt related amfeaturs
6579 * common-src/amfeatures.h: ditto
6580 * server-src/diskfile.c: amfeatures checking and warns on
6583 2005-12-23 Paddy Sreenivasan <paddy@zmanda.com>
6584 * restore-src/restore.c:
6585 * server-src/amtape.c:
6586 * server-src/taperscan.c : Make scan_init static function
6588 2005-12-23 John Franks <jrfranks@zmanda.com>
6589 * server-src/taper.c: Reduce I/O's system call overhead by 30%
6590 in main read / write loop.
6592 2005-12-23 John Franks <jrfranks@zmanda.com>
6593 * recover-src/restore.c Remove inapproriate aclose which caused
6594 broken restore pipe.
6595 * recover-src/extract_list.c Fix and cleanup read_buffer()
6596 mainly to fix hole that drops parital buffer of data if end
6597 of file is reached or an error occured.. Touched up calling
6598 functions to make sure EOF/timeouts are handled correctly.
6599 Increased normal path read timeout value from on second to
6600 whatever READ_TIMEOUT is set to.
6602 2005-12-22 Jean-Louis Martineau <martineau@zmanda.com>
6604 * restore-src/restore.c (restore): Remova an aclose.
6606 2005-12-22 Jean-Louis Martineau <martineau@zmanda.com>
6608 * restore-src/amidxtaped.c (cleanup): Function registered with atexit
6609 to remove the log file.
6611 2005-12-20 Jean-Louis Martineau <martineau@zmanda.com>
6613 * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
6615 2005-12-20 John Franks <jrfranks@zmanda.com>
6617 * restore-src/restore.c: Remove unused variables.
6618 Fix uninitialize reference to bytes_read.
6619 * server-src/amcheck.c: Remove unused variables.
6620 Include taperscan.h for missing prototype.
6621 * server-src/amtape.c: Remove unused variables.
6622 Include taperscan.h for missing prototype.
6623 * server-src/taper.c: Remove unused variables.
6624 Minor indenting changes.
6625 * server-src/taperscan.c:Remove unused variables.
6626 Fix typo which assigns NULL rather than
6628 Commented out reference to auto_pos which
6629 is assigned but never used...
6631 2005-12-20 Jean-Louis Martineau <martineau@zmanda.com>
6633 * common-src/fileheader.c (parse_file_header): Parse '/' in part.
6634 * common-src/fileheader.c (build_header): Add space ' ' before "part".
6636 2005-12-20 Jean-Louis Martineau <martineau@zmanda.com>
6638 * server-src/reporter.c: Fix report of output size.
6640 2005-12-19 Ian Turner <ian@zmanda.com>
6641 * server-src/taperscan.c: Check that automatic tape labels satisfy
6644 2005-12-19 Ian Turner <ian@zmanda.com>
6645 * server-src/fileheader.c: Fix broken split-dump file headers.
6647 2005-12-18 Jean-Louis Martineau <martineau@zmanda.com>
6648 Patch by Paul Bijnens
6650 * server-src/amcheck.c: Tapelist file is regular file.
6652 2005-12-17 Jean-Louis Martineau <martineau@zmanda.com>
6654 * restore-src/restore.c (get_block): Return a ssize_t.
6655 * restore-src/restore.c: convert ssize_t to long for printing.
6656 * restore-src/restore.c (restore>): Remove unused variable, outpipe,
6659 2005-12-17 John R. Franks <jrfranks@zmanda.com>
6661 * restore-src/restore.h (read_file_header, restore): Return a ssize_t
6662 instead of using a global variable bytes_read.
6663 * restore-src/restore.c: Use local variable instead of global
6664 bytes_read. Many memory management fixe. Fixe pipe handling,
6665 * restore-src/amrestore.c: Use new read_file_header and restore.
6666 * restore-src/amfetchdump.c: Use new read_file_header and restore.
6668 2005-12-17 Jean-Louis Martineau <martineau@zmanda.com>
6669 With Kevin Till <ktill@zmanda.com>
6671 * common-src/fileheader.c (parse_file_header): Fix parsing of first
6673 * common-src/fileheader.c (build_header): Print crypt after programi
6674 and only if it is needed.
6676 2005-12-14 Ian Turner <ian@zmanda.com>
6678 * common-src/alloc.c: Add new function vstrextend, which extends an
6680 * common-src/amanda.h: Define vstrextend.
6681 * example/amanda.conf.in: Document new option
6682 label_new_tapes. Change default labelstr.
6683 * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
6685 * restore-src/restore.c: Use the new changer_find interface.
6686 * server-src/Makefile.am: Add new file taperscan.c
6687 * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
6688 instead of the previous separate amcheck implementation.
6689 * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
6690 instead of the previous separate amtape implementation. Also, use
6691 the new changer_find interface for other kinds of tape finding.
6692 * server-src/changer.c: Eliminate changer_scan. Change the API to
6693 changer_find, so that callers can pass a user-data object, instead
6695 * server-src/changer.h: Declare and document new changer_find
6697 * server-src/conffile.c: Add new config option label_new_tapes.
6698 * server-src/conffile.h: ditto.
6699 * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
6700 instead of the previous separate taper implementation. Also,
6701 combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
6702 difference only matters on writing).
6703 * server-src/taperscan.c: Refactor the taper-scan algorithm from
6704 taper, amtape, and amcheck. Implement label_new_tapes feature.
6705 * server-src/taperscan.h: Declare and document new taperscan
6707 * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
6708 and some other tape-reading problem.
6709 * tape-src/tapeio.h: New declarations.
6711 2005-12-13 Jean-Louis Martineau <martineau@zmanda.com>
6713 * server-src/reporter.c (handle_success): On a taper line, the outsize
6714 should only count dump to tape, not flush.
6716 2005-12-13 Jean-Louis Martineau <martineau@zmanda.com>
6718 * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
6720 2005-12-09 John Franks <jrfranks@zmanda.com>
6722 * client-src/Makefile.am: Do not include tape library if
6723 configuring with --without-server option.
6724 * recover-src/Makefile.am: Do not include tape library if
6725 configuring with --without-server option.
6727 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
6729 * configure.in: Move the size detection after detection of large
6730 file support. That change the size of off_t.
6732 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
6734 * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
6735 * server-src/taper.c: Use OFF_T_FMT.
6737 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
6739 * configure.in: Set LL_FMT correctly.
6740 * server-src/conffile.c: Use LL_FMT.
6742 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
6744 * server-src/conffile.c: Maxdumpsize is a AM64.
6745 * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
6746 tape_mark are am64_t.
6748 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
6750 * configure.in: Check for sizeof of many type. Check printf format of
6752 * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
6753 set AM64_FMT to the printf format of a am64_t variable.
6754 * server-src/conffile.c: New AM64 type.
6755 * server-src/conffile.h(getconf_am64): Prototype.
6757 2005-12-08 Jean-Louis Martineau <martineau@zmanda.com>
6759 * client-src/Makefile.am: Remove amqde.
6760 * client-src/sendsize.c: Remove code to call amqde.
6761 * client-src/amqde.c: Remove file.
6762 * configure.in: Remove '--with-qde' option.
6764 2005-12-05 Jean-Louis Martineau <martineau@zmanda.com>
6766 * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
6767 str_buffer_sizebuf instead of sizeof(bug).
6769 2005-12-05 Jean-Louis Martineau <martineau@zmanda.com>
6771 * server-src/planner.c: Print the time in the FINISH line.
6772 * server-src/reporter.c: The estimate time is based on the planner
6775 2005-12-05 Jean-Louis Martineau <martineau@zmanda.com>
6777 * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
6779 2005-12-05 Jean-Louis Martineau <martineau@zmanda.com>
6781 * server-src/holding.c (scan_holdingdisk): Static function.
6782 * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
6783 * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
6785 2005-12-04 Jean-Louis Martineau <martineau@zmanda.com>
6787 * server-src/logfile.c (logtype_str): Add important ','.
6789 2005-12-03 Jean-Louis Martineau <martineau@zmanda.com>
6791 * server-src/planner.c (setup_estimate): Fix wrong order for argument.
6793 2005-12-03 Jean-Louis Martineau <martineau@zmanda.com>
6795 * server-src/driver.c (start_some_dumps): Don't test for
6796 cur_idle == NOT_IDLE.
6798 2005-12-03 Jean-Louis Martineau <martineau@zmanda.com>
6800 * server-src/driverio.c (check_unfree_serial): New fonction to check
6801 unfreed serial number.
6802 * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
6803 * server-src/driverio.h (check_unfree_serial): Prototype.
6804 * server-src/driver.c (main): Call check_unfree_serial.
6806 2005-12-02 Jean-Louis Martineau <martineau@zmanda.com>
6807 Patch by Franz Fischer
6809 * config/acinclude.m4i: Fix for __alpha.
6811 2005-12-02 Jean-Louis Martineau <martineau@zmanda.com>
6813 * common-src/util.c: Debug must end with '\n'.
6815 2005-12-01 Jean-Louis Martineau <martineau@zmanda.com>
6817 * configure.in: Amanda support x86_64-unknown-linux-gnu.
6819 2005-11-30 Jean-Louis Martineau <martineau@zmanda.com>
6821 * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
6822 * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
6823 * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
6825 2005-11-30 Jean-Louis Martineau <martineau@zmanda.com>
6827 * client-src/rundump.c: undef USE_RUNDUMP before define.
6829 2005-11-30 Jean-Louis Martineau <martineau@zmanda.com>
6830 Patch by Franz Fischer
6832 * client-src/amqde.c: Fix compiler warning.
6834 2005-11-30 Jean-Louis Martineau <martineau@zmanda.com>
6835 Patch by Franz Fischer
6837 * common-src/event.h: Fix compiler warning.
6838 * server-src/conffile.h: Fix compiler warning.
6840 2005-11-30 Kevin Till <ktill@zmanda.com>
6842 * client-src/client_util.c add server-side, client-side encryption
6843 as well as custom compression. Custom compression patch is
6844 orginally created by Matthieu Lochegnies.
6845 * client-src/client_util.h Ditto
6846 * client-src/selfcheck.c Ditto
6847 * client-src/sendbackup-dump.c Ditto
6848 * client-src/sendbackup-gnutar.c Ditto
6849 * client-src/sendbackup.c Ditto
6850 * client-src/sendbackup.h Ditto
6851 * common-src/fileheader.c Ditto
6852 * common-src/fileheader.h Ditto
6853 * common-src/util.h Ditto
6854 * example/amanda.conf.in Ditto
6855 * man/xml-source/amanda.conf.5.xml Ditto
6856 * restore-src/amrestore.c Ditto
6857 * restore-src/restore.c Ditto
6858 * server-src/conffile.c Ditto
6859 * server-src/conffile.h Ditto
6860 * server-src/diskfile.c Ditto
6861 * server-src/diskfile.h Ditto
6862 * server-src/dumper.c Ditto
6864 2005-11-29 Jean-Louis Martineau <martineau@zmanda.com>
6866 * config/libtool.m4i: libtool 1.5.20
6867 * config/ltmain.sh: libtool 1.5.20
6869 2005-11-29 Jean-Louis Martineau <martineau@zmanda.com>
6870 Patch by Franz Fischer
6872 * common-src/fileheader.c (build_header): Declation before instruction.
6873 * restore-src/amfetchdump.c: Don't use C++ style comment.
6874 * restore-src/restore.c: Don't use C++ style comment.
6875 * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
6876 dynamicaly allocated.
6877 * server-src/logfile.h: Don't use C++ style comment.
6878 * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
6880 2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
6881 * common-src/rsh-security.c: Fix x86_64 compile warnings.
6882 * common-src/ssh-security.c: Fix x86_64 compile warnings.
6883 * man/Makefile.am: Added EXTRA_XML files.
6884 * man/xml-source/amanda.8.xml: Added spanning patch variables.
6885 * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
6886 * xslt/global.entities: Removed file.
6888 2005-11-20 Jean-Louis Martineau <martineau@zmanda.com>
6889 Patch by Jon H. LaBadie
6891 * changer-src/chg-disk.sh.in: Check permission on file access.
6893 2005-11-17 Paddy Sreenivasan <paddy@zmanda.com>
6894 * man/entities/global.entities: New file. Added man page entities.
6895 * man/entities/xinclude.dtd: New file.
6896 * man/xslt/man.xsl: Correct include path for settings.xsl.
6898 2005-11-15 John R. Franks <jrfranks@zmanda.com>
6899 * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
6900 * common-src/rsh-security.c: Fix IA-64 compile warnings.
6901 * common-src/ssh-security.c: Fix IA-64 compile warnings.
6902 * regex-src/engine.c: Fix IA-64 compile warnings.
6903 * regex-src/regexec.c: Fix IA-64 compile warnings.
6905 2005-11-15 Paddy Sreenivasan <paddy@zmanda.com>
6907 * configure.in: Changed defaults for tape_dev and nr_tape_dev.
6908 * example/amanda.conf.in: Leave only changerfile definition
6910 * man/xml-source/amanda.conf.5.xml: Updated defaults for
6911 tapedev and rawtapedev
6913 2005-11-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
6915 * server-src/planner.c: Fix incronly.
6917 2005-11-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
6919 * man/Makefile.am: Set man_MANS,
6921 2005-11-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
6923 * man/Makefile.am: Set man5_MANS and man8_MANS,
6924 install-data-hook use them.
6926 2005-11-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
6927 Patch by Olivier Cherrier
6929 * man/Makefile.am (install-data-hook): Set protection correclty
6932 2005-10-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
6934 * common-src/util.c (bind_portrange): Increase port in all case.
6936 2005-10-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
6938 * server-src/conffile.c: Allow runtapes==0.
6939 * server-src/driver.c: Use a global conf_runtapes. Don't start a
6940 taper if runtapes==0.
6941 * server-src/reporter.c: Don't print The next tapes if runtapes==0.
6944 2005-10-24 Jean-Louis Martineau <martineau@iro.umontreal.ca>
6946 * Amanda 2.5.0b1 released.
6947 * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
6948 * NEWS: Update for 2.5.0b1.
6950 2005-10-25 Ian Turner <ian@zmanda.com>
6952 * man/Makefile.am: include amfetchdump.8.
6953 * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
6954 * man/xml-source/amanda.8.xml: ditto
6955 * man/xml-source/amrecover.8.xml: ditto
6956 * man/xml-source/amfetchdump.8.xml: ditto (new file)
6957 * man/xslt/global.entities: Add myself, Zmanda Inc.
6959 2005-10-24 Jean-Louis Martineau <martineau@zmanda.com>
6961 * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
6962 the argvchild array.
6964 2005-10-20 Jean-Louis Martineau <martineau@zmanda.com>
6966 * server-src/server_util.c (getcmd): Print DEBUG to stderr.
6968 2005-10-20 Ian Turner <ian@zmanda.com>
6970 * configure.in: Check for xsltproc.
6971 * man/Makefile.am: Properly build, clean, and distribute generated
6972 manpages from XML source.
6973 * man/amadmin.8: Remove from CVS
6974 * man/amanda.8: Remove from CVS
6975 * man/amanda.conf.5: Remove from CVS
6976 * man/amcheck.8: Remove from CVS
6977 * man/amcheckdb.8: Remove from CVS
6978 * man/amcleanup.8: Remove from CVS
6979 * man/amdd.8: Remove from CVS
6980 * man/amdump.8: Remove from CVS
6981 * man/amflush.8: Remove from CVS
6982 * man/amgetconf.8: Remove from CVS
6983 * man/amlabel.8: Remove from CVS
6984 * man/ammt.8: Remove from CVS
6985 * man/amoverview.8: Remove from CVS
6986 * man/amplot.8: Remove from CVS
6987 * man/amrecover.8: Remove from CVS
6988 * man/amreport.8: Remove from CVS
6989 * man/amrestore.8: Remove from CVS
6990 * man/amrmtape.8: Remove from CVS
6991 * man/amstatus.8: Remove from CVS
6992 * man/amtape.8: Remove from CVS
6993 * man/amtapetype.8: Remove from CVS
6994 * man/amtoc.8: Remove from CVS
6995 * man/amverify.8: Remove from CVS
6996 * man/amverifyrun.8: Remove from CVS
6997 * man/xml-source/amadmin.8.xml: Add from xml-docs
6998 * man/xml-source/amanda.8.xml: Add from xml-docs
6999 * man/xml-source/amanda.conf.5.xml: Add from xml-docs
7000 * man/xml-source/amcheck.8.xml: Add from xml-docs
7001 * man/xml-source/amcheckdb.8.xml: Add from xml-docs
7002 * man/xml-source/amcleanup.8.xml: Add from xml-docs
7003 * man/xml-source/amdd.8.xml: Add from xml-docs
7004 * man/xml-source/amdump.8.xml: Add from xml-docs
7005 * man/xml-source/amflush.8.xml: Add from xml-docs
7006 * man/xml-source/amgetconf.8.xml: Add from xml-docs
7007 * man/xml-source/amlabel.8.xml: Add from xml-docs
7008 * man/xml-source/ammt.8.xml: Add from xml-docs
7009 * man/xml-source/amoverview.8.xml: Add from xml-docs
7010 * man/xml-source/amplot.8.xml: Add from xml-docs
7011 * man/xml-source/amrecover.8.xml: Add from xml-docs
7012 * man/xml-source/amreport.8.xml: Add from xml-docs
7013 * man/xml-source/amrestore.8.xml: Add from xml-docs
7014 * man/xml-source/amrmtape.8.xml: Add from xml-docs
7015 * man/xml-source/amstatus.8.xml: Add from xml-docs
7016 * man/xml-source/amtape.8.xml: Add from xml-docs
7017 * man/xml-source/amtapetype.8.xml: Add from xml-docs
7018 * man/xml-source/amtoc.8.xml: Add from xml-docs
7019 * man/xml-source/amverify.8.xml: Add from xml-docs
7020 * man/xml-source/amverifyrun.8.xml: Add from xml-docs
7021 * man/xslt/expand-sambadoc.xsl: Add from xml-docs
7022 * man/xslt/global.entities: Add from xml-docs
7023 * man/xslt/man.xsl: Add from xml-docs
7024 * man/xslt/settings.xsl: Add from xml-docs
7026 2005-10-20 Jean-Louis Martineau <martineau@zmanda.com>
7028 * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
7030 * server-src/driver.c: Start autoflush while waiting for estimate.
7031 * server-src/planner.c: Write FLUSH line before estimate.
7033 2005-10-17 Jean-Louis Martineau <martineau@zmanda.com>
7034 Patch by John R. Franks <jrfranks@zmanda.com>
7036 * server-src/taper.c (create_split_buffer): Should not use sizeof().
7038 2005-10-17 Jean-Louis Martineau <martineau@zmanda.com>
7040 * server-src/taper.c (read_file): Move the putresult(DONE) to the
7041 right place, some cleanup.
7043 2005-10-17 Jean-Louis Martineau <martineau@zmanda.com>
7045 * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
7047 2005-10-17 Ian Turner <ian@zmanda.com>
7049 * Changelog: Fix line breaks.
7050 * restore-src/restore.c: Give more useful FSF error messages.
7051 * recover-src/extract_list.c: Do better error checking on passed port
7053 * common-src/tapelist.c: Do proper memory management of strings.
7054 Otherwise really bad stuff happens.
7056 2005-10-17 Jean-Louis Martineau <martineau@zmanda.com>
7058 * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
7059 handle it correctly.
7061 2005-10-16 Jean-Louis Martineau <martineau@zmanda.com>
7063 * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
7066 2005-10-16 Jean-Louis Martineau <martineau@zmanda.com>
7068 * server-src/driverio.c (serial2disk): Print str if error.
7070 2005-10-15 Paddy Sreenivasan <paddy@zmanda.com>
7072 * server-src/taper.c: Shared memory need not be removed in normal paths.
7073 Done as part of atexit.
7075 2005-10-15 Jean-Louis Martineau <martineau@zmanda.com>
7076 Patch by John R. Franks <jrfranks@zmanda.com>
7078 * changer-src/scsi-aix.c: calls to open/openx guages success by
7079 checking for a file descriptor greater than 0. 0 is also a valid
7080 descriptor so the check should be >= 0.
7081 Calls to SCSI_OpenDevice does not check for error return.
7082 Calls to SCSI_OpenDevice does not check for error return.
7083 Calls to SCSI_OpenDevice does not check for error return.
7084 Call to opendir() does not check for error.
7085 * changer-src/scsi-hpux_new.c: Ditto.
7086 * changer-src/scsi-irix.c: Ditto.
7087 * changer-src/scsi-linux.c: Ditto.
7088 * changer-src/scsi-solaris.c: Ditto.
7089 * client-src/selfcheck.c: Call to open() does not check for error.
7090 * client-src/sendbackup.c: Call to freopen() does not check for error.
7091 * client-src/sendsize.c: Call to open() does not check for error.
7092 * common-src/bsd-security.c: Call to open() does not check for error.
7093 * common-src/file.c: Call to open() does not check for error.
7094 * restore-src/amrestore.c: Calls to tape_open() do not always check
7095 return code. open() is called with open flags set to 0
7096 (Call always fails with an EINVAL)
7097 * restore-src/restore.c: fopen() return error check is "fopen() < 0".
7098 fopen returns a pointer and the proper check should be
7100 Call to open() does not check for error.
7101 * tape-src/tapeio.c: tape_open() is called here and other places with a
7102 variable number of arguments, and yet is not defined as a varargs
7104 * tape-src/tapeio.h: Prototype for tape_open.
7106 2005-10-15 Jean-Louis Martineau <martineau@zmanda.com>
7107 Patch by Paddy Sreenivasan <paddy@zmanda.com>
7109 * client-src/sendsize.c: Log message changes.
7110 * server-src/taper.c: And an atexit function to detach shared memory.
7111 Trap some signal and detach shared memory.
7113 2005-10-14 Jean-Louis Martineau <martineau@zmanda.com>
7115 * regex-src/regcomp.c (findmust): Initialized start to NULL.
7117 2005-10-14 Jean-Louis Martineau <martineau@zmanda.com>
7118 Patch by John R. Franks <jrfranks@zmanda.com>
7120 * regex-src/cclass.h: Fixed to add missing braces and reformat long
7121 strings to fix in 80 columns.
7122 * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
7123 * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
7124 ifdef out unused mcsub, mcin and mcfind functions.
7125 (findmust) Initialized newstart to NULL.
7126 * regex-src/regerror.c: Adds missing braces.
7127 * regex-src/regexec.c (nope): Use only in assert, so it is not only
7128 defined if NDEBUG is not defined.
7130 2005-10-14 Jean-Louis Martineau <martineau@zmanda.com>
7131 Patch by John R. Franks <jrfranks@zmanda.com>
7133 * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
7134 it is not static int.
7135 * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
7136 it is not static int.
7138 2005-10-13 Jean-Louis Martineau <martineau@zmanda.com>
7140 * common-src/util.c (bind_portrange): New argument proto.
7141 Check for reserved port.
7142 * common-src/util.h (bind_portrange): New prototype.
7143 * common-src/bsd-security.c (bind_portrange): New prototype.
7144 * common-src/dgram.c: Add "udp" as argument to bind_portrange.
7145 * common-src/stream.c: Add "tcp" as argument to bind_portrange.
7147 2005-10-12 Jean-Louis Martineau <martineau@zmanda.com>
7149 * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
7150 * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
7151 isafile, stat_tape, tapename, s, fp, ch and errstr variable.
7153 2005-10-11 Ian Turner <ian@zmanda.com>
7154 Patch by Jean-Louis Martineau <martineau@zmanda.com>
7156 * restore-src/amfetchdump.c: Remove unused variable debug.
7157 * restore-src/amidxtaped.c: Remove lock_logfile(), which is also
7159 * restore-src/Makefile.am: Include libamanda twice, to fix build
7162 2005-10-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7164 * restore-src/Makefile (noinst_HEADERS): Add restore.h.
7165 * restore-src/restore.c (search_tapes): Add the fourth argument to
7168 2005-10-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7170 * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
7172 * server-src/reporter.c (handle_partial): Set repdata to the result
7174 * server-src/taper.c: Set the first-file.
7176 2005-10-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7178 * client-src/client_util.c, server-src/amcheck.c,
7179 server-src/reporter.c: Add missing type for arguments.
7181 2005-10-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7183 * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
7185 2005-10-10 Ian Turner <ian@zmanda.com>
7187 * server-src/amtape.h: Apply tape-spanning patch by John Stange
7188 <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
7189 contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
7190 * configure.in: Ditto
7191 * amplot/Makefile.am: Ditto
7192 * changer-src/Makefile.am: Ditto
7193 * client-src/Makefile.am: Ditto
7194 * common-src/Makefile.am: Ditto
7195 * common-src/amanda.h: Ditto
7196 * common-src/amfeatures.c: Ditto
7197 * common-src/amfeatures.h: Ditto
7198 * common-src/fileheader.c: Ditto
7199 * common-src/fileheader.h: Ditto
7200 * common-src/match.c: Ditto
7201 * common-src/tapelist.c: Ditto
7202 * common-src/tapelist.h: Ditto
7203 * example/amanda.conf.in: Ditto
7204 * man/Makefile.am: Ditto
7205 * recover-src/amrecover.c: Ditto
7206 * recover-src/amrecover.h: Ditto
7207 * recover-src/display_commands.c: Ditto
7208 * recover-src/extract_list.c: Ditto
7209 * restore-src/Makefile.am: Ditto
7210 * restore-src/amfetchdump.c: Ditto
7211 * restore-src/amfetchdump.h: Ditto
7212 * restore-src/amidxtaped.c: Ditto
7213 * restore-src/amrestore.c: Ditto
7214 * restore-src/restore.c: Ditto
7215 * restore-src/restore.h: Ditto
7216 * server-src/Makefile.am: Ditto
7217 * server-src/amadmin.c: Ditto
7218 * server-src/amindexd.c: Ditto
7219 * server-src/amoverview.pl.in: Ditto
7220 * server-src/amtoc.pl.in: Ditto
7221 * server-src/amverify.sh.in: Ditto
7222 * server-src/changer.c: Ditto
7223 * server-src/conffile.c: Ditto
7224 * server-src/conffile.h: Ditto
7225 * server-src/disk_history.c: Ditto
7226 * server-src/disk_history.h: Ditto
7227 * server-src/diskfile.c: Ditto
7228 * server-src/diskfile.h: Ditto
7229 * server-src/driver.c: Ditto
7230 * server-src/driverio.c: Ditto
7231 * server-src/find.c: Ditto
7232 * server-src/find.h: Ditto
7233 * server-src/holding.c: Ditto
7234 * server-src/holding.h: Ditto
7235 * server-src/logfile.c: Ditto
7236 * server-src/logfile.h: Ditto
7237 * server-src/planner.c: Ditto
7238 * server-src/reporter.c: Ditto
7239 * server-src/server_util.c: Ditto
7240 * server-src/server_util.h: Ditto
7241 * server-src/taper.c: Ditto
7243 2005-10-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7245 * server-src/taper.c: Change message: on new tape due to
7247 2005-10-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7248 Patch by John R. Franks
7250 * common-src/amflock.c (main): Don't call safe_fd, it's not needed
7252 * configure.in: '#include <sys/types.h>' in the check
7253 'for Linux like scsi support (sg)'
7255 2005-10-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7257 * client-src/amandad.c (writebuf): Call waitpid in the parent.
7259 2005-10-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7261 * client-src/amandad.c (service_delete): Remove call to sleep.
7262 * common-src/bsd-security.c: Add bsdprintf. Add more debug.
7263 The handle is used as a string, instead of 2 int.
7265 2005-10-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7267 * common-src/rsh-security.c: rshprintf should call dbprint.
7268 * common-src/ssh-security.c: rshprintf should call dbprint, add many
7270 * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
7273 2005-10-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7275 * common-src/stream.c: len is a socklen_t.
7276 * server-src/amindexd.c: Add socklen as a socklen_t.
7277 * restore-src/amidxtaped.c: Add socklen as a socklen_t.
7278 * tape-src/tapetype.c: Change printf format.
7279 * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
7280 * server-src/dumper.c: Init outfd to -1.
7281 * common-src/file.c (areads_getbuf): First argument is const.
7283 2005-10-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7285 * server-src/reporter.c: Don't trunk hostname/diskname in
7286 'FAILURE AND STRANGE DUMP SUMMARY' section.
7288 2005-10-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7290 * server-src/chunker.c (main): Remove outfd.
7292 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7294 * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
7295 client-src/getfsent.c, common-src/statfs.c, common-src/token.c
7296 (main): Remove fd declaration.
7298 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7300 * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
7302 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7304 * common-src/sl.c (insert_sort_sl). Typo.
7306 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7308 * config/config.guess: Update from automake 1.9.5.
7309 * config/config.sub: Update from automake 1.9.5.
7310 * config/depcomp: Update from automake 1.9.5.
7311 * config/install-sh: Update from automake 1.9.5.
7312 * config/missing: Update from automake 1.9.5.
7313 * config/mkinstalldirs: Update from automake 1.9.5.
7314 * config/ltmain.sh: Update from libtool-1.5.16.
7315 * config/libtool.m4i: Update from libtool-1.5.16.
7317 2005-09-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7319 * common-src/bsd-security.c: Fix small bug.
7321 2005-09-22 John R. Jackson <jrj@purdue.edu>
7323 * configure.in: If --without-server is specified, either on the
7324 command line or via config.site, make sure --without-restore
7325 is also in effect. Avoids compilation errors if mismatched.
7326 * example/config.site: Document above.
7328 2005-09-21 John R. Jackson <jrj@purdue.edu>
7330 * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
7331 "amgetconf build.CLIENT_LOGIN".
7333 2005-09-21 John R. Jackson <jrj@purdue.edu>
7335 * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
7338 2005-09-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7340 * server-src/amlabel.c: 'int fd' is needed.
7342 2005-09-20 John R. Jackson <jrj@purdue.edu>
7344 * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
7345 <Scott.Burns@Netcontech.Com>.
7347 2005-09-20 John R. Jackson <jrj@purdue.edu>
7349 * common-src/file.c: Create safe_fd() to do common file descriptor
7350 safety operations at the start of every program. In addition
7351 to closing everything from three on up that used to be done
7352 with explicit code, make sure stdin, stdout and stderr are
7353 open per a potential (but unlikely) security report from Ben
7354 Schwarz <bschwarz@EECS.berkeley.EDU>.
7355 * common-src/amanda.h: Ditto.
7356 * client-src/amandad.c: Ditto.
7357 * client-src/calcsize.c: Ditto.
7358 * client-src/getfsent.c: Ditto.
7359 * client-src/killpgrp.c: Ditto.
7360 * client-src/rundump.c: Ditto.
7361 * client-src/runtar.c: Ditto.
7362 * client-src/selfcheck.c: Ditto.
7363 * client-src/sendbackup.c: Ditto.
7364 * client-src/sendsize.c: Ditto.
7365 * client-src/versionsuffix.c: Ditto.
7366 * common-src/amflock.c: Ditto.
7367 * common-src/rsh-security.c: Ditto.
7368 * common-src/ssh-security.c: Ditto.
7369 * common-src/statfs.c: Ditto.
7370 * common-src/token.c: Ditto.
7371 * recover-src/amrecover.c: Ditto.
7372 * restore-src/amidxtaped.c: Ditto.
7373 * restore-src/amrestore.c: Ditto.
7374 * server-src/amadmin.c: Ditto.
7375 * server-src/amcheck.c: Ditto.
7376 * server-src/amcleanupdisk.c: Ditto.
7377 * server-src/amflush.c: Ditto.
7378 * server-src/amindexd.c: Ditto.
7379 * server-src/amlabel.c: Ditto.
7380 * server-src/amlogroll.c: Ditto.
7381 * server-src/amtape.c: Ditto.
7382 * server-src/amtrmidx.c: Ditto.
7383 * server-src/amtrmlog.c: Ditto.
7384 * server-src/chunker.c: Ditto.
7385 * server-src/conffile.c: Ditto.
7386 * server-src/diskfile.c: Ditto.
7387 * server-src/driver.c: Ditto.
7388 * server-src/getconf.c: Ditto.
7389 * server-src/infofile.c: Ditto.
7390 * server-src/planner.c: Ditto.
7391 * server-src/reporter.c: Ditto.
7392 * server-src/taper.c: Ditto.
7393 * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
7394 coded "/tmp/amanda".
7396 2005-09-20 John R. Jackson <jrj@purdue.edu>
7398 * client-src/calcsize.c: Fix format string.
7399 * server-src/diskfile.c: Fix compiler warnings.
7400 * server-src/planner.c: Fix compiler warnings.
7402 2005-09-20 John R. Jackson <jrj@purdue.edu>
7404 * common-src/amanda.h: Add dbreopen() so debug file can be closed
7405 and then reopened if needed.
7406 * common-src/debug.c: Ditto.
7407 * client-src/runtar.c: Close the debug file (fd 10) around the
7408 exec of GNU tar. Newer versions complain about stray file
7410 * server-src/getconf.c: Use dbreopen() to create the debug file.
7411 Do not try to open config file unless needed (allows clients to
7412 use build.XXX/dbopen.XXX/dbclose.XXX).
7414 2005-09-20 John R. Jackson <jrj@purdue.edu>
7416 * client-src/sendbackup-dump.c: Ignore a new message from Solaris
7419 2005-09-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7421 * common-src/bsd-security.c: Generate a unique event_id, thei
7422 proto_handle is not always unique.
7424 2005-09-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7426 * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
7428 2005-09-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7430 * server-src/driverio.c: Don't save history with size < 0.
7432 2005-09-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7433 Patch by Geert Uytterhoeven <geert@linux-m68k.org>
7435 * server-src/planner.c: Don't use history with size < 0.
7437 2005-09-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7438 Patch Paul Bijnens <paul.bijnens@xplanation.com>
7440 * server-src/planner.c(delay_dumps): Delay incremental dump also
7443 2005-09-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7444 Patch by Orion Poplawski <orion@cora.nwra.com>
7446 * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
7447 * man/amoverview.8: Document -last, -num0 and -togo0.
7449 2005-09-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7450 Patch by Orion Poplawski <orion@cora.nwra.com>
7452 * server-src/driver.c: Make tape_length and tape_left unsigned long.
7454 2005-07-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7455 Patch by Stefan G. Weichinger <monitor@oops.co.at>
7457 * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
7459 2005-07-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7461 Bug found by John E Hein <jhein@timing.com>.
7462 * server-src/amadmin.c: Fix of by one with NB_HISTORY.
7463 * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
7465 2005-06-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7466 Patch by Jay Fenlason <fenlason@redhat.com>
7468 * client-src/sendsize.c: Fix dbprintf call.
7470 2005-06-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7471 Stefan G. Weichinger <monitor@oops.co.at>
7473 * example/amanda.conf.in: edited the default-value for the
7474 holdingdisk-usage to "use -100 Mb".
7475 The old value "use 290 Mb" didn't make much
7478 2005-06-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7480 * server-src/amverifyrun.sh.in: Remove buggy space.
7482 2005-05-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7484 * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
7486 2005-05-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7488 * example/amanda.conf.in: Update from 2.4.5.
7490 2005-05-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7492 * docs/*: New documentation from xml-docs.
7493 * docs/Makefile.am (pkgdata_DATA): Update for new files.
7495 2005-05-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7497 * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
7499 2005-05-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7501 * man/*: Use man pages form xml-docs.
7502 * configure.in (AC_CONFIG_FILES): Remove all man pages.
7503 * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5
7504 amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
7505 amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
7506 amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
7508 2005-05-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7510 * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
7512 * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
7514 * common-src/rsh-security.c (conn_put): Don't kill the process, only do
7515 a wait with WNOHANG.
7516 * common-src/ssh-security.c (conn_put): Don't kill the process, only do
7517 a wait with WNOHANG.
7519 2005-04-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7521 * changer-src/chg-zd-mtx.sh.in: Improve handling of
7522 "Unknown Storage Element Loaded".
7524 2005-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7525 - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
7527 * server-src/amverifyrun.sh.in: Filter changer log file.
7529 2005-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7531 * server-src/amcheck.c: Improve messages.
7533 2005-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7535 * client-src/sendsize.c (generic_calc_estimates): Use amname instead
7536 of dirname in message.
7538 2005-03-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7540 * server-src/conffile.h: Rename getcont_unit_divisor to
7541 getconf_unit_divisor.
7542 * server-src/amadmin.c: Use getconf_unit_divisor.
7543 * server-src/amcheck.c: Use getconf_unit_divisor.
7544 * server-src/conffile.c: Use getconf_unit_divisor.
7545 * server-src/conffile.c (unit_divisor): Init to 1.
7546 * server-src/reporter.c: Use getconf_unit_divisor. The mb macro always
7547 divide by 1024. Add the du macro. Use mb or du where appropriate.
7549 2005-03-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7551 * server-src/infofile.h (history_t): Add secs field.
7552 * server-src/infofile.c (read_txinfofile): Parse info file with secs
7554 * server-src/infofile.c (write_txinfofile): Write secs in history.
7555 * server-src/driverio.c (update_info_dumper): Update secs in history.
7557 2005-03-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7559 * server-src/planner.c: Improve server estimate.
7560 * server-src/planner.c: Write server estimate like others estimate.
7562 2005-02-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7564 * server-src/amstatus.pl.in: last_level is negative, on new disk.
7566 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7568 * server-src/amstatus.pl.in: Use '-?' to match negative values
7571 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7572 Patch by Orion Poplawski <orion@cora.nwra.com>
7574 * server-src/amoverview.pl.in: Print the total number of level 0
7575 dumps for each disk and the number of runs until the last level 0
7576 dump will be overwritten.
7578 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7579 Patch by Phil Homewood <pdh@snapgear.com>
7581 * server-src/amoverview.pl.in: Add -skipmissed option.
7583 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7585 * server-src/driver.c: Print the chunksize to the log.
7587 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7589 * client-src/calcsize.c: Print estimate to STDERR.
7590 * client-src/sendsize.c (generic_calc_estimates): Read calcsize result,
7591 and send it to amandad. Write debuging message.
7593 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7594 Patch by Franz G. Fischer
7596 * server-src/conffile.c: Adds a value type LONG and a val_t.l long
7597 union member and changes get_number() to return long and
7598 get_simple() to fill val_t.l if called for a long value. The
7599 get_simple() calls have been changed to LONG for typetype_t.blocksize
7600 typetype_t.length, typetype_t.filemark, holdingdisk_t.disksize and
7601 holdingdisk_t.chunksize.
7603 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7605 * server-src/amdump.sh.in: Redirect in append mode.
7606 * server-src/driver.c: Set stdout and stderr to not buffered.
7607 * server-src/planner.c: Set stderr to not buffered.
7608 Print 'setup_estimate:' on one line.
7609 * server-src/amstatus.pl.in: Parse new 'setup_estimate:' line.
7611 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7613 * client-src/calcsize.c: Improve estimate for sparse file and count
7614 space for filenames.
7616 2005-02-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7618 * server-src/planner.c: Improve message if no incremental estimate.
7620 2004-12-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7621 Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
7623 * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
7624 before calling error().
7626 2004-11-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7628 * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
7630 2004-11-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7632 * server-src/driver.c: Typo.
7634 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7636 * restore-src/amrestore.c: Should now work correctly with empty file.
7637 * server-src/amverify.sh.in: Parse "End-of-Information detected."
7638 message from amrestore.
7640 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7642 * server-src/driver.c: tape_left should not become negative.
7644 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7645 Patch by Orion Poplawski <orion@cora.nwra.com>
7647 * server-src/diskfile.c: Parse negative spindle (-1).
7649 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7651 * server-src/amadmin.c: Balance subcommand use displayunit.
7652 * server-src/amcheck.c: Small cleanup.
7654 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7656 * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
7659 2004-11-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7661 * server-src/amstatus.pl.in: Remove trace.
7663 2004-11-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7665 * server-src/diskfile.c: Compilation fix.
7667 2004-11-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7669 * server-src/conffile.c: Parse displayunit,
7670 new fonction getcont_unit_divisor().
7671 * server-src/conffile.h: Prototype of getcont_unit_divisor().
7672 * server-src/amcheck.c: Use displayunit to display holding disk size.
7673 * server-src/amstatus.pl.in: Use displayunit to display dump size.
7674 * server-src/reporter.c: use displayunit to display dump size.
7675 * Document displayunit.
7677 2004-11-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7679 * server-src/reporter.c: Change 'Daily' for 'Incr.'.
7681 2004-11-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7683 * server-src/amstatus.pl.in Fix for level -1.
7685 2004-11-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7686 Patch by Daniel Widyono <widyono@seas.upenn.edu>
7688 * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
7690 2004-11-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7692 * restore-src/amrestore.c: Read empty file.
7694 2004-11-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7696 * tape-src/tapetype.c: Use new tape.
7698 2004-11-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7700 * server-src/amstatus.pl.in: Display partial estimate.
7702 2004-11-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7704 * server-src/diskfile.c (read_diskline): A spindle must be numerical.
7706 2004-10-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7708 * server-src/holding.c (rename_tmp_holding): Always rename files.
7710 2004-10-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7712 * server-src/driver.c: Print message when too many retry.
7713 * server-src/amstatus.pl.in: Detect a failed dump after too many retry.
7714 * amplot/amplot.awk: Parse these message.
7716 2004-10-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7718 * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
7719 if dumper returns DONE and taper returns TRYAGAIN.
7721 2004-10-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7723 * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
7724 if dumper returns TRYAGAIN and taper returns DONE.
7726 2004-10-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7728 * server-src/amflush.c: Don't start a driver if nothing to flush.
7730 2004-10-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7731 Patch by Eric Siegerman <erics@telepres.com>
7733 * example/3hole.ps: Fix for multiple tape.
7735 2004-10-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7737 * server-src/amverify.sh.in: Terminate if no tape online.
7739 2004-09-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7741 * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
7743 2004-09-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7745 * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
7747 2004-09-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7749 * server-src/planner.c (promote_hills): Use dumpcycle instead of
7751 * example/amanda.conf.in: Remove warning for tapecyle set to inf.
7753 2004-09-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7755 * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
7758 2004-09-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7760 * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
7762 * man/amtapetype.8.in: Document new -o option.
7764 2004-09-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7766 * server-src/amstatus.pl.in: Works with failed dump to tape.
7768 2004-08-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7770 * client-src/sendbackup-gnutar.c (end_backup): Write warning message
7772 * server-src/dumper.c (process_dumpline): Parse warning message.
7773 * server-src/reporter.c (handle_strange): Print warning message in
7774 the STRANGE summary.
7776 2004-08-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7778 * server-src/driverio.c (free_serial): Set stable[s].dp to NULL.
7779 * server-src/driverio.c (disk2serial): Check that stable[s].dp == NULL.
7781 2004-08-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7782 Patch by Joe Rhett <jrhett@isite.net>
7784 * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
7786 2004-08-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7787 Patch by Orion Poplawski <orion@cora.nwra.com>
7789 * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
7791 2004-08-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7793 * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
7795 2004-08-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7797 * common-src/amfeatures.h (fe_selfcheck_calcsize): New feature.
7798 * common-src/amfeatures.c (am_init_feature_set): Set
7799 fe_selfcheck_calcsize.
7800 * client-src/selfcheck.c: Check if calcsize binary is available if
7802 * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
7803 if it support fe_selfcheck_calcsize.
7805 2004-08-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7807 * man/amanda.8.in: Document 'estimate' dumptype option.
7809 2004-08-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7811 * server-src/amrmtape.sh.in: Understand history info.
7813 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7815 * server-src/driver.c: Typo.
7817 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7819 * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
7820 print if a dump is waiting for holding disk space (roomq).
7822 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7824 * server-src/driver.c (handle_dumper_result, handle_chunker_result):
7825 Don't call free_serial().
7826 * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
7827 * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
7828 * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
7830 * server-src/driverio.c (disk2serial): Try to find a 'dp' before
7831 allocating a new serial.
7832 * server-src/driverio.c (free_serial_dp): New function to remove the
7834 * server-src/driverio.h (free_serial_dp): Prototype.
7835 * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
7838 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7840 * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
7843 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7845 * client-src/calcsize.c: Support exclude and include like gnutar,
7846 change in program argument.
7847 * client-src/sendsize.c: Execute calcsize as requested.
7848 * common-src/amfeatures.h (fe_calcsize_estimate): New feature.
7849 * common-src/amfeatures.c (am_init_feature_set): set
7850 fe_calcsize_estimate.
7851 * server-src/amcheck.c (start_host): Check if client support CALCSIZE
7854 2004-08-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7856 * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
7858 * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
7859 * server-src/conffile.c (get_estimate): New function to parse estimate
7861 * server-src/diskfile.c (read_diskline): Copy 'estimate'.
7862 * server-src/diskfile.h (disk_t): Add 'estimate'.
7863 * server-src/amadmin.c (disklist_one): Print estimate type.
7865 2004-08-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7867 * common-src/match.c (match_tar, tar_to_regex): New fonction similar
7868 to the exclude option of tar.
7869 * common-src/amanda.h (match_tar, tar_to_regex): Prototype.
7871 2004-08-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7873 * server-src/infofile.h (history_t): new struct.
7874 * server-src/infofile.h (info_t): Add a history_t.
7875 * server-src/infofile.c (read_txinfofile): Parse history data.
7876 * server-src/infofile.c (write_txinfofile): Print history data.
7877 * server-src/amadmin.c (export_one): export history data.
7878 * server-src/amadmin.c (import_one): import history data.
7879 * server-src/driverio.c (update_info_dumper): update history data.
7881 2004-05-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7882 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
7884 * server-src/planner.c: Log L_DISK for autoflush disk.
7886 2004-05-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7888 * server-src/planner.c (handle_result): Add dp to pestq at the
7891 2004-04-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7893 * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
7895 2004-04-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7897 * config/acinclude.m4i (AX_CREATE_STDINT_H) : New macro.
7898 * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
7899 * common-src/amanda.h: include "common-src/amanda-int.h".
7900 * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
7902 2004-04-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7904 * configure.in: Fix for automake 1.8.4.
7905 * config/acinclude.m4i: Fix for automake 1.8.4.
7907 2004-04-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7909 * configure.in: Result of autoupdate.
7911 2004-04-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7913 * config/config.guess: Update from automake 1.8.
7914 * config/config.sub: Update from automake 1.8.
7915 * config/depcomp: Update from automake 1.8.
7916 * config/install-sh: Update from automake 1.8.
7917 * config/missing: Update from automake 1.8.
7918 * config/mkinstalldirs: Update from automake 1.8.
7919 * config/ltmain.sh: Update from libtool-1.5.6.
7920 * config/libtool.m4i: Update from libtool-1.5.6.
7922 2004-04-26 Marc Mengel <mengel@fnal.gov>
7924 * tape-src/output-rait.c: Verify reads correctly.
7926 2004-04-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7928 * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
7929 fill up when in degraded mode.
7931 2004-04-23 Eric Siegerman <eric_97@pobox.com>
7933 Bug fix: amflush would run, and consume a tape, even if there
7934 were no Amanda directories waiting to be flushed:
7935 * common-src/sl.c (is_empty_sl): New function to test
7936 whether a list is empty.
7937 * common-src/sl.h (is_empty_sl): Prototype.
7938 * server-src/amflush.sh (main): Use is_empty_sl(),
7939 rather than ==NULL, to test emptiness of datestamp_list.
7941 2004-04-23 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7943 * server-src/planner.c (setup_estimate): Typo.
7945 2004-04-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7947 Allow bumpsize, bumppercent, bumpdays and bumpmult to be in a dumptype.
7948 * server-src/conffile.c: Parse.
7949 * server-src/conffile.h: Define.
7950 * server-src/amadmin.c (disklist_one): Use.
7951 * server-src/diskfile.c (read_diskline): Initialize.
7952 * server-src/diskfile.h: Define.
7953 * server-src/planner.c: Use.
7954 * man/amanda.8.in: Document.
7956 2004-04-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7957 Fix by Paul Bijnens <paul.bijnens@xplanation.com>
7959 * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
7960 if strategy is noinc.
7962 2004-04-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7963 Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
7965 * man/amoverview.8.in: Document results.
7967 2004-04-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7968 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
7970 * server-src/amoverview.pl.in: Print last two characters.
7972 2004-04-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7974 * changer-src/chg-disk.sh.in: Fix for sh compatibility.
7976 2004-04-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7977 Fix by John Koyle <jkoyle@rfpdepot.com>
7979 * common-src/dgram.c: Fix EAGAIN on Linux.
7981 2004-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7983 * server-src/amadmin.c (bumpsize): Typo.
7985 2004-04-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7987 New bumppercent global option.
7988 * example/amanda.conf.in: Document it.
7989 * man/amanda.8.in: Document it.
7990 * server-src/amadmin.c (bumpsize): Write it.
7991 * server-src/conffile.c: Parse it.
7992 * server-src/conffile.h: Define It.
7993 * server-src/planner.c (bump_thresh): New size_level_0 parameter,
7994 use the new bumppercent option.
7996 2004-04-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
7998 * server-src/amadmin.c: Rename host_t to amhost_t.
7999 * server-src/amcheck.c: Ditto.
8000 * server-src/amindexd.c: Ditto.
8001 * server-src/diskfile.c: Ditto.
8002 * server-src/diskfile.h: Ditto.
8003 * server-src/driver.c: Ditto.
8004 * server-src/planner.c: Ditto.
8006 2004-03-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8008 * amplot/amplot.awk: Parse "driver: tape size" line.
8010 2004-03-22 Stefan G. Weichinger <monitor@oops.co.at>
8012 * server-src/amcheck.c (start_host): Added warning for hostname
8014 * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
8016 2004-03-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8018 * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
8020 2004-03-18 Stefan G. Weichinger <monitor@oops.co.at>
8022 * docs/TOP-TEN-QUESTIONS: New file.
8024 2004-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8026 * server-src/reporter.c (handle_success): Set stats[i].coutsize
8028 * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
8030 2004-03-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8032 * common-src/ssh-security.c: New ssh security driver.
8033 * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
8034 * common-src/security.c: Add ssh security driver.
8035 * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
8037 2004-03-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8039 * server-src/amcheck.c: Do labelstr check in correct order.
8041 2004-03-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8043 Use only one time event for all dumpers, no wait event.
8044 start_some_dumps is called everytime a dumper or taper finish.
8045 * server-src/driver.c (dumpers_ev_time): New global event.
8046 * server-src/driver.c (start_some_dumps): Remove dumper argument,
8047 can start many dump.
8048 * server-src/driver.c (dumper_result): Call start_some_dumps instead
8050 * server-src/driver.c (handle_idle_wait): Remove function.
8051 * server-src/driver.c (handle_dumpers_time): new handle for
8052 dumpers_ev_time, it call start_some_dumps.
8053 * server-src/driverio.h (dumper_t): Remove ev_wait.
8054 * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
8056 2004-03-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8058 * common-src/fileheader.c (print_header): Fix fprintf use.
8059 * client-src/amqde.c (parse_exclude_path): Fix = by ==.
8060 * common-src/protocol.c (s_repwait): Fix compiler warning.
8061 * common-src/rsh-security.c (runrsh): Fix compiler warning.
8063 2004-03-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8065 * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
8067 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8068 Reported by Allen Liu <allen@bellglobal.com>
8070 * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
8072 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8074 * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
8075 * server-src/taper.c: Ditto
8077 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8079 * server-src/driver.c (dump_schedule): Print complete name.
8081 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8083 The estimate send a PREP (partial REP) packet after each estimate.
8084 * client-src/amandad.c: Send PREP packet if sendsize.
8085 * common-src/amfeatures.c (am_init_feature_set): Add
8086 fe_partial_estimate.
8087 * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
8088 * common-src/packet.c (pktypes[]): Add PREP.
8089 * common-src/packet.h (pktype_t): Add P_PREP.
8090 * common-src/protocol.c (action_t): Add A_CONTPEND.
8091 * common-src/protocol.c: Handle P_PREP packet.
8092 * server-src/amstatus.pl.in: Parse "got partial result" line.
8093 * server-src/planner.c: Handle P_PREP packet.
8095 2004-02-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8096 Reported by Jason Brooks <jason.brooks@windriver.com>
8098 * server-src/reporter.c: Remove duplicate setting of cd to
8101 2004-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8102 Patch by Philippe Charnier <charnier@xp11.frmug.org>
8104 * server-src/amtrmidx.c: Add '\n'.
8106 2004-02-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8108 * recover-src/set_commands.c (cd_glob): Fix memory leak.
8110 2004-02-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8112 * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
8113 * recover-src/uscan.l: Fix double amfree.
8115 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8117 * server-src/driver.c: Build holding disk name with timestamp.
8118 * server-src/holding.c (is_datestr): Check also for timestamp.
8119 * server-src/planner.c: Flush today's dump with autoflush.
8120 * server-src/find.c: Find holding disk with timestamp.
8121 * server-src/find.h (find_result_t): Add timestamp field.
8123 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8125 * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
8127 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8129 * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
8132 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8134 * server-src/amdump.sh.in: Do not redirect to /dev/null.
8136 2004-02-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8138 * config/acinclude.m4i: Define CF_WAIT_INT.
8139 * configure.in: Call CF_WAIT_INT.
8140 * common-src/amanda.h: Try to make waitpid doesn't warn.
8142 2004-01-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8144 * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
8146 2004-01-29 Christoph Pospiech <pospiech@de.ibm.com>
8148 * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
8149 * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
8150 * changer-src/chg-iomega.pl.in: New changer script.
8151 * docs/TAPE.CHANGERS: Document chg-iomega.
8152 * contrib/mkamandisk: Script to format iomega disk.
8154 2004-01-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8156 * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
8158 2004-01-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8160 * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
8161 * example/amanda.conf.in: Update record documentation.
8162 * man/amanda.8.in: Update record documentation.
8164 2004-01-14 Stefan G. Weichinger <monitor@oops.co.at>
8166 * docs/INSTALL: Add config for xinetd.
8168 2004-01-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8170 * server-src/planner.c (handle_result): Detect bad estimate (-1).
8171 * server-src/planner.c (analyze_estimate): Don't schedule level
8172 if the estimate is bad.
8174 2003-12-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8176 * docs/HOWTO-FILE-DRIVER: New file.
8177 * docs/TAPE.CHANGERS: Explain chg-disk.
8178 * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
8180 2003-12-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8182 * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
8184 2003-11-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8185 Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
8187 * changer-src/chg-disk.sh.in: New changer script.
8188 * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
8189 * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
8191 2003-11-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8193 * tape-src/tapetype.c: extern int optind.
8194 * tape-src/tapeio.c: extern int optind.
8196 2003-11-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8197 Patch by C.Scheeder <christoph.scheeder@scheeder.de>
8199 * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
8201 2003-11-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8203 * server-src/driver.c: Print the tape size.
8204 * server-src/amstatus.pl.in: print % of tape use.
8206 2003-11-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8208 * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
8210 2003-11-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8212 * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
8214 2003-11-25 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8216 * server-src/amcheck.c (taperscan_slot): Deal with label not in
8218 * server-src/amtape.c (taperscan_slot): Ditto.
8219 * server-src/taper.c (taperscan_slot): Ditto.
8221 2003-11-24 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8223 * server-src/driver.c (handle_taper_result): Always call
8224 continue_dumps() in TRYAGAIN case.
8226 2003-11-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8228 * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
8229 if no tape in drive.
8231 2003-11-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8233 * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
8235 2003-11-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8236 Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
8238 * client-src/selfcheck.c: Skip accessibility check for AFS entries.
8239 * docs/HOWTO-AFS: New file.
8241 2003-11-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8243 * server-src/amadmin.c (tape): Display the next new tapes.
8244 * server-src/reporter.c (output_tapeinfo): Ditto.
8246 2003-10-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8248 * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
8250 2003-10-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8252 * server-src/amcheck.c (taperscan_slot): Set found=3 if new tape.
8253 * server-src/amcheck.c (taper_scan): Handle found==3.
8254 * server-src/amtape.c (taperscan_slot): Set found=3 if new tape.
8255 * server-src/amtape.c (taper_scan): Handle found==3.
8256 * server-src/taper.c (taperscan_slot): Set found=3 if new tape.
8257 * server-src/taper.c (taper_scan): Handle found==3.
8259 2003-10-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8261 * server-src/amcheck.c: Use stralloc(optarg).
8262 * tape-src/ammt.c: Use stralloc(optarg).
8263 * tape-src/tapetype.c: Use stralloc(optarg).
8265 2003-10-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8266 Patch by Jay Fenlason <fenlason@redhat.com>
8268 * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
8270 2003-10-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8271 Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
8273 * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
8275 2003-10-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8277 * server-src/amadmin.c (find): Call find_dump to allow dynamic disklist.
8278 * server-src/amindexd.c: Call find_dump to allow dynamic disklist.
8279 * server-src/amtrmidx.c: Call find_dump to allow dynamic disklist.
8280 * server-src/diskfile.c (add_disk): Set device and todo.
8281 * server-src/find.c: Build disklist dynamicaly from log files.
8282 * server-src/find.h (find_dump): New prototype.
8284 2003-10-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8286 * server-src/amlogroll.c: set_pname("amlogroll").
8288 2003-10-24 Todd M. Kover <kovert@omniscient.com>
8290 * add amqde for "quick and dirty estimates" under gnutar (program
8291 that will traverse the filesystem rather than invoke gnutar).
8292 controlled via configure option --with-qde. This really wants to
8293 be configured in the server.
8295 2003-10-24 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8297 * server-src/amverify.sh.in: Fix usage message.
8298 * common-src/fileheader.c (print_header): fprintf to outf.
8299 * server-src/tapefile.c (lookup_last_reusable_tape): Check for
8301 * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
8303 2003-10-23 Todd Kover <kovert@omniscient.com>
8305 * make amrecover link against readline rather than libamanda so
8306 only amrecover would require the shared library (if it's found)
8308 2003-10-22 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8309 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8311 * client-src/amandates.c (finish_amandates): Call error() if the
8313 * common-src/amflock.c (create_lock): Return -1 if the close of f fail.
8314 * common-src/amflock.c (read_lock): Don't set f to NULL if the close
8316 * server-src/tapefile.c (write_tapelist): Return 1 if the close of
8319 2003-10-14 John R. Jackson (jrj@purdue.edu)
8321 * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
8322 size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
8324 2003-10-14 John R. Jackson (jrj@purdue.edu)
8326 * client-src/sendsize.c: Handle case where PID's get re-used.
8328 2003-10-14 John R. Jackson (jrj@purdue.edu)
8330 * configure.in: Need to check for sys/gscdds.h on AIX to enable
8333 2003-10-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8335 * common-src/genversion.c (prundefvar): New function to print an
8337 * common-src/genversion.c: Print undefined variable.
8338 * server-src/amcheck.c: Improve message for no LPRCMD defined.
8340 2003-07-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8342 * restore-src/amidxtaped.c: Don't clea re_label before checking
8345 2003-07-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8346 Patch by Scott Mcdermott <smcdermott@questra.com>
8348 * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
8349 variable to add a pause after a tape loading.
8351 2003-07-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8352 Fix by John E. Hein <jhein@timing.com>
8354 * changer-src/chg-manual.sh.in: Quote @EGREP@.
8355 * changer-src/chg-null.sh.in: Quote @EGREP@.
8357 2003-07-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8359 * amplot/amplot.sh.in: Remove files before runnig amplot.awk.
8360 * amplot/amplot.awk: Parse 'flush line', fix tape_wait line.
8361 * server-src/driver.c (read_flush): Write a 'flush size' to the
8364 2003-07-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8366 * changer-src/chg-chio.pl.in: Fix next/prev command.
8368 2003-07-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8369 patch by Paul Bijnens <paul.bijnens@xplanation.com>
8371 * client-src/client_util.c (add_include): Count include with 2 /,
8372 Fix descriptor leak.
8374 2003-06-25 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8376 * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
8378 2003-06-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8380 * server-src/holding.c: Fix compiler error.
8381 * server-src/planner.c: Use snprintf.
8383 2003-06-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8384 patch by Paul Bijnens <paul.bijnens@xplanation.com>
8386 * tape-src/tapetype.c: Avoid a numerical overflow for large tape
8389 2003-06-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8391 * server-src/amstatus.pl.in: Fix to failed tape.
8393 2003-06-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8395 * server-src/planner.c (delay_dumps): Delay not delay forced full
8398 2003-06-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8400 * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
8402 2003-06-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8404 * server-src/amverify.sh.in: Do not advance to next tape.
8406 2003-06-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8407 patch by Eric Siegerman <eric_97@pobox.com>
8409 * server-src/planner.c: Make promote_hills() honour maxpromotedays.
8411 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8413 * changer-src/scsi-bsd.c: Use pDev[DeviceFD].fd instead of DeviceFD.
8414 * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
8415 * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
8417 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8419 * client-src/noop.c: #include "util.h".
8421 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8423 * server-src/amflush.c: Implement new -b and -s options.
8424 * man/amflush.8.in: Document it.
8426 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8428 * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
8431 2003-06-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8433 * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
8435 2003-06-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8437 * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
8439 2003-06-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8440 Bug reported by Sven Rudolph <rudsve@drewag.de>
8442 * server-src/holding.c (mkholdingdir): New function to create a holding
8444 * server-src/holding.h (mkholdingdir): Prototype.
8445 * server-src/driver.c: Use mkholdingdir;
8446 * server-src/chunker.c: Call mkholdingdir before opening a file for
8449 2003-06-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8450 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8452 * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
8454 2003-06-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8455 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8457 * server-src/amstatus.pl.in: If nothing is active, it now gives the
8458 status of the last run (amdump or amflush).
8459 * man/amstatus.8.in: Document it.
8461 2003-05-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8463 * tape-src/output-file.c (check_online): Write error if opendir failed.
8465 2003-05-29 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8466 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8468 * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
8469 of parsing the disklist file.
8471 2003-05-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8473 * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
8476 2003-05-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8478 * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
8480 2003-05-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8482 * example/amanda.conf.in: Add more amrecover_changer doc.
8483 * man/amanda.8.in: Add more amrecover_changer doc.
8484 * man/amrecover.8.in: Add more amrecover_changer doc.
8486 2003-05-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8488 * server-src/tapefile.c (read_tapelist): Ignore blank line.
8489 * server-src/tapefile.c (parse_tapeline): Newer status parameter, set
8490 it to '1' when reading blank line.
8492 2003-04-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8494 * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
8495 linux/ftape-vendors.h et linux/ftape.h.
8497 2003-04-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8498 Patch by Darin Dugan <dddugan@iastate.edu>
8500 * server-src/amcheck.c: Change subject in email if no error.
8502 2003-04-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8504 * common-src/error.c (output_error_message): Always prepend program
8507 2003-04-15 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8509 * server-src/amstatus.pl.in: Fix for estimate disk.
8511 2003-04-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8513 * server-src/taper.c: Read holding file correctly if blocksize != 32k.
8515 2003-04-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8516 New file by Robert C Dege <RDege@northropgrumman.com>
8518 * configure.in: Find mcutil binary.
8519 * configure.in (AC_CONFIG_FILES): Add changer-src/chg-mcutil.sh and
8520 example/chg-mcutil.conf.
8521 * changer-src/Makefile (libexec_SCRIPTS): Add chg-mcutil.
8522 * changer-src/chg-mcutil.sh.in: New file.
8523 * example/Makefile (EXTRA_DIST): Add chg-mcutil.conf
8524 * example/chg-mcutil.conf.in: New file.
8526 2003-04-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8528 * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
8531 2003-04-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8533 * server-src/amverifyrun.sh.in: Run the amverify command.
8535 2003-04-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8536 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8538 * server-src/reporter.c: Get the filenumber correct.
8540 2003-04-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8541 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8543 * server-src/reporter.c: Print a postscript label for each tape used.
8545 2003-03-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8547 * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
8548 define DEV_PREFIX and RDEV_PREFIX.
8550 2003-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8552 * configure.in: Typo.
8554 2003-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8555 Patch by Gert Doering <gert@greenie.muc.de>
8557 * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
8559 2003-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8561 * configure.in: Compile on *-sco3.2v4*
8563 2003-03-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8565 * configure.in: Use '=' instead of '=='.
8567 2003-03-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8569 * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
8570 file: and tape: as driver, not host name.
8572 2003-03-14 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8574 * server-src/amrmtape.sh.in: Print better output.
8576 2003-03-13 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8578 * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
8580 2003-03-08 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8582 * client-src/client_util.c (add_include): If include contain 2 '/' then
8583 use at asis, don't try to match it.
8585 2003-03-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8587 * server-src/changer.h (changer_label): Return an int.
8588 * server-src/changer.h (changer_label): First parameter is char *.
8590 2003-03-07 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8592 * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
8593 * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
8594 * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
8595 * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
8596 tapefd_getinfo_level): Return info of master_fd.
8597 * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
8599 * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
8601 2003-03-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8603 * tape-src/output-file.c (file_tapefd_can_fork): New function that
8604 return 1 if the file: can be run under a forked process.
8605 * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
8606 * tape-src/output-null.c (null_tapefd_can_fork): New function that
8607 return 1 if the null: can be run under a forked process.
8608 * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
8609 * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
8610 * tapefd_can_fork() return 1.
8611 * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
8612 return 1 if the rait: can be run under a forked process.
8613 * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
8614 * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
8615 return 1 if the tape: can be run under a forked process.
8616 * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
8617 * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
8618 initialize vtable[];
8619 * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
8620 xxx_tapefd_can_fork function.
8621 * tape-src/tapeio.h (tapefd_can_fork): Prototype.
8623 2003-03-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8625 * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
8626 before opening the file for writing.
8628 2003-03-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8630 * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
8632 2003-03-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8634 * amplot/amplot.sh.in: New -b option for b/w postscript.
8635 * amplot/amplot.awk: Add 'color' to command if bw is set.
8636 * amplot/amplot.g: Change line 6 to line 8.
8637 * man/amplot.8: Document -b option.
8639 2003-03-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8641 * recover-src/extract_list.c: Fix the name of the
8642 amidxtaped.<timestamp>.debug file.
8644 2003-02-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8645 Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
8647 * restore-src/amidxtaped.c: Use the device sent by the changer.
8649 2003-02-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8651 * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
8654 2003-02-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8656 * server-src/changer.c: Sync with 2.4.4.
8658 2003-02-21 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8660 * client-src/client_util.c: Print error except ENOENT for
8661 exclude/include files.
8663 2003-02-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8665 * tape-src/tapetype.c: Use %ld to print some variable.
8667 2003-02-20 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8669 * server-src/conffile.c (init_defaults): conf_printer.s must be set
8672 2003-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8673 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8675 * tape-src/tapetype.c: Document -c option.
8677 2003-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8679 * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
8681 2003-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8683 * server-src/tapefile.c (read_tapelist): return 1 if can't open the
8686 2003-02-12 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8688 * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
8690 2003-02-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8692 * server-src/amcheck.c: New -a option.
8693 * man/amcheck.8.in: Document it.
8695 2003-02-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8697 * server-src/amindexd.c (build_disk_table): Compare the level.
8699 2003-02-10 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8700 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
8702 * tape-src/tapetype.c: New -c argument to do only the compression test.
8703 Better detection of compression.
8704 * man/amtapetype.8.in: Document -c argument.
8706 2003-02-09 John R. Jackson (jrj@purdue.edu)
8708 * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
8709 This helps performance on some OS's.
8711 2003-02-08 John R. Jackson (jrj@purdue.edu)
8713 * restore-src/amrestore.c: Clean up strtol() argument processing.
8715 2003-02-08 John R. Jackson (jrj@purdue.edu)
8717 * docs/INSTALL: Clean up supporting package versions and URL's.
8719 2003-02-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8721 * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
8723 2003-02-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8724 Patch by Christophe Kalt <kalt@taranis.org>
8726 * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
8727 * client-src/sendsize.c: New re_size for NetApp.
8729 2003-02-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8730 Fix by Colin Henein <cmh@>
8732 * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
8734 2003-02-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8735 Patch by Doug Kingston <dpk@randomnotes.org>
8737 * configure.in (NEED_SETUID_CLIENT): Set to false on *-pc-cygwin.
8738 * configure.in (WANT_SETUID_CLIENT): Set if NEED_SETUID_CLIENT != false.
8739 * client-src/Makefile.am: Don't chmod u+s if WANT_SETUID_CLIENT.
8741 2003-02-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8742 Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
8744 * man/amtapetype.8.in: Fix example.
8746 2003-01-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8748 * common-src/amanda.h: #define S_ISDIR if not already defined.
8750 2003-01-31 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8751 File from Doug Kingston <dpk@randomnotes.org>
8753 * docs/HOWTO-CYGWIN.html: New file.
8755 2003-01-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8757 * configure.in: Define WANT_RUNTIME_PSEUDO_RELOC on cygwin
8758 * client-src/Makefile.am: AM_LDFLAGS="-Wl,-enable-runtime-pseudo-reloc"
8759 if WANT_RUNTIME_PSEUDO_RELOC.
8760 * recover-src/Makefile.am: Ditto.
8762 2003-01-28 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8764 * tape-src/output-rait.h: #define stralloc strdup
8765 * tape-src/output-rait.c: Revert patch of 2003-01-26, we don't have
8766 vstralloc in standalone.
8768 2003-01-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8769 Reported by Doug Kingston <dpk@randomnotes.org>
8771 * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
8773 2003-01-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8775 * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
8777 2003-01-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8779 * changer-src/chg-scsi-chio.c: Change strdup to stralloc.
8780 * changer-src/chg-scsi.c: Ditto.
8781 * changer-src/scsi-aix.c: Ditto.
8782 * changer-src/scsi-bsd.c: Ditto.
8783 * changer-src/scsi-cam.c: Ditto.
8784 * changer-src/scsi-changer-driver.c: Ditto.
8785 * changer-src/scsi-hpux_new.c: Ditto.
8786 * changer-src/scsi-irix.c: Ditto.
8787 * changer-src/scsi-linux.c: Ditto.
8788 * changer-src/scsi-solaris.c: Ditto.
8789 * changer-src/sense.c: Ditto.
8790 * tape-src/output-rait.c: Ditto.
8792 2003-01-26 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8794 * server-src/taper.c (read_file): Don't count header in filesize.
8796 2003-01-25 John R. Jackson (jrj@purdue.edu)
8798 * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
8799 by indeterminate compiler order of evaluation.
8801 2003-01-25 John R. Jackson (jrj@purdue.edu)
8803 * restore-src/amidxtaped.c: Log errno when tape_stat fails.
8804 * restore-src/amrestore.c: Ditto.
8805 * tape-src/output-rait.c: Ditto.
8807 2003-01-24 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8809 * server-src/amstatus.pl.in: print an usage by tape.
8811 2003-01-23 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8813 * recover-src/extract_list.c (add_extract_item, delete_extract_item):
8814 Check also for level when comparing label.
8816 2003-01-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8818 Do not build chg-scsi-chio, it is buggy.
8819 * changer-src/Makefile.am (libexec_PROGRAMS): remove $(CHIO_SCSI).
8820 * changer-src/Makefile.am (EXTRA_PROGRAMS): add $(CHIO_SCSI).
8822 2003-01-16 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8824 * configure.in: disable amrestore if --without-server is set.
8826 2003-01-04 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8828 * client-src/amandad.c: Use the dbfd macro instead of the external
8830 * client-src/selfcheck.c: Ditto.
8831 * client-src/sendbackup.c: Ditto.
8832 * client-src/sendsize.c: Ditto.
8833 * client-src/sendbackup-gnutar.c: Use save_errno instead of errno.
8834 * common-src/debug.c: Move most declaration inside #ifdef DEBUG_CODE.
8835 * server-src/amindexd.c: dup db_fd() to stderr.
8836 * server-src/conffile.c: Don't call error() if the config file does not
8837 exist, just write to stderr and set got_parserror.
8839 2003-01-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8841 * recover-src/amrecover.c: Fix memory leak.
8843 2003-01-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8845 Add new maxpromoteday option in a dumptype.
8846 * example/amanda.conf.in: Give an example
8847 * man/amanda.8.in: Document it.
8848 * server-src/amadmin.c: Print it in the disklist subcommand.
8849 * server-src/conffile.c: read it.
8850 * server-src/conffile.h (dumptype_t): Add maxpromoteday and
8852 * server-src/diskfile.c (read_diskline): Copy maxpromoteday from
8853 dumptype_t to disk_t.
8854 * server-src/diskfile.h (disk_t): Add maxpromoteday.
8855 * server-src/planner.c (promote_highest_priority_incr): Don't promote
8856 a disk if est(dp)->next_level0 > dp->maxpromoteday.
8858 2003-01-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8859 Reported by Josh More <jmore@remote-print.com>
8861 * client-src/client_util.c (add_exclude, add_include): Remove the
8862 need for MAXPATHLEN.
8864 2003-01-02 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8865 Fix by Josh More <jmore@remote-print.com>
8867 * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
8869 2003-01-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8870 Undo patch of 2002-11-27. That doesn't work well for the planner.
8872 * common-src/amanda.h (days_diff): Revert to old macro.
8873 * server-src/amadmin.c: Undo Fix for newer days_diff.
8874 * server-src/planner.c: Undo Fix for newer days_diff.
8876 2003-01-01 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8878 * client-src/client_util.c: Fix memory leak reported by valgrind.
8879 * client-src/selfcheck.c: Ditto.
8880 * client-src/sendbackup.c: Ditto.
8881 * client-src/sendsize.c: Ditto.
8882 * common-src/amfeatures.c: Ditto.
8883 * common-src/debug.c: Ditto.
8884 * recover-src/amrecover.c: Ditto.
8885 * recover-src/extract_list.c: Ditto.
8886 * recover-src/set_commands.c: Ditto.
8887 * recover-src/uparse.y: Ditto.
8888 * recover-src/uscan.l: Ditto.
8889 * server-src/amindexd.c: Ditto.
8890 * server-src/amlabel.c: Ditto.
8891 * server-src/amtape.c: Ditto.
8892 * server-src/amtrmidx.c: Ditto.
8893 * server-src/amtrmlog.c: Ditto.
8894 * server-src/changer.c: Ditto.
8895 * server-src/conffile.c: Ditto.
8896 * server-src/driver.c: Ditto.
8897 * server-src/driverio.c: Ditto.
8898 * server-src/dumper.c: Ditto.
8899 * server-src/find.c: Ditto.
8900 * server-src/holding.c: Ditto.
8901 * server-src/logfile.c: Ditto.
8902 * server-src/planner.c: Ditto.
8903 * server-src/reporter.c: Ditto.
8904 * server-src/tapefile.c: Ditto.
8905 * server-src/taper.c: Ditto.
8907 2002-12-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8909 * amplot/amplot.awk: Many fix.
8911 2002-12-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8913 * server-src/planner.c (promote_highest_priority_incremental): Promote
8914 a disk > balanced size if no full today. Do not promote a disk it's
8915 the only disk due that day and no full today.
8917 2002-12-30 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8918 Patch by Brad Roberts <braddr@puremagic.com>
8920 * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
8921 * server-src/holding.c (get_flush): Ditto.
8923 2002-12-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8925 * server-src/conffile.c: New taperalgo configuration keyword.
8926 * server-src/conffile.h: Ditto.
8927 * man/amanda.8.in: Document it.
8928 * server-src/driver.c (startaflush): New function to start a flush to
8931 2002-12-27 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8933 * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
8935 2002-12-23 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8937 * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
8939 2002-12-19 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8941 Don't use the G flag for samba backup restore by tar.
8942 * recover-src/extract_list.c (enum dumptypes): Add IS_SAMBA_TAR.
8943 * recover-src/extract_list.c (extract_files_child): Set dumptype to
8944 IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
8945 if it's IS_SAMBA_TAR.
8947 2002-12-18 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8949 * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
8951 2002-12-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8953 * server-src/planner.c (promote_highest_priority_incremental): Newer
8954 algorithm that reduce the number of level 0 by hosts on a single day.
8956 2002-12-17 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8958 * amplot/amplot.awk: Parse newer log lines.
8960 2002-12-11 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8961 * server-src/reporter.c (output_stats): Typo.
8963 2002-12-09 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8965 * server-src/reporter.c: Print an usage by tape.
8967 2002-12-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8969 * tape-src/tapeio.c (do_read): Init count to 0.
8971 2002-12-05 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8973 * tape-src/Makefile.am: Install tapetype program as amtapetype.
8974 * docs/TAPETYPES: Change for amtapetype.
8975 * man/amtapetype.8.in: New man page
8976 * man/Makefile.am: Install it.
8977 * configure.in (AC_CONFIG_FILES): Add man/amtapetype.8.
8979 2002-12-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8981 * tape-src/ammt.c (optind): Add prototype.
8982 * tape-src/amdd.c (optind): Add prototype.
8984 2002-12-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8986 * common-src/arglist.h (printf_arglist_function,
8987 printf_arglist_function1, printf_arglist_function2): Define if
8988 STDC_HEADERS is not defined.
8990 2002-12-03 Jean-Louis Martineau <martineau@iro.umontreal.ca>
8992 * server-src/amstatus.pl.in: New --date option to display datestamp.
8993 * server-src/amstatus.pl.in: Increase some field size.
8994 * server-src/amstatus.pl.in: The host field adjust it's length to the
8997 2002-11-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8999 * common-src/amanda.h (days_diff): Don't add a half day.
9000 * server-src/amadmin.c: Fix for newer days_diff.
9001 * server-src/planner.c: Fix for newer days_diff.
9003 2002-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9005 * client-src/amandad.c: Fix compiler warning.
9006 * common-src/Makefile.am (bsdsecurity): Link with file.o.
9007 * common-src/bsd-security.c: Fix compiler warning.
9008 * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
9009 Add function if TEST.
9010 * server-src/chunker.c: Fix compiler warning.
9011 * server-src/dumper.c: Fix compiler warning.
9013 2002-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9015 * tape-src/tapetype.c: Cast time_t to long for printing.
9017 2002-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9019 * server-src/amflush.c: Write a "amflush: start at ???" line.
9020 * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
9022 2002-11-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9024 * server-src/planner.c (delay_dumps): Use snprintf.
9026 2002-11-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9028 * common-src/debug.c: Most of the code must in #ifdef DEBUG_CODE.
9029 * client-src/client_util.c: Use AMANDA_TMPDIR instead of AMANDA_DBGDIR.
9031 2002-11-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9033 * docs/TAPE.CHANGERS: Sync with 2.4.3.
9035 2002-11-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9037 * server-src/amadmin.c: Cleanup.
9039 2002-11-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9041 * man/amadmin.8.in: Document new --days option of balance subcommand.
9043 2002-11-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9045 * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
9046 * server-src/amadmin.c (balance): Improve output.
9048 2002-11-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9050 * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
9052 2002-11-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9054 * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
9056 2002-11-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9058 * server-src/reporter.c: Fix for LPRCMD not defined.
9060 2002-11-14 Marc Mengel <mengel@fnal.gov>
9062 New changer scripts for use with rait: code, run several other
9063 changers in tandem and return a rait: tape device. Makes fake
9064 amanda.conf files under AMANDA_DEBUGDIR for each changer used,
9067 * changer-src/chg-rait.sh.in: New file. Multi-changer script.
9068 * changer-src/chg-null.sh.in: New File. Null-device changer script.
9069 * docs/TAPE.CHANGERS: Descriptions of above.
9070 * configure.in: added above files.
9071 * changer-src/Makefile.am: Likewise.
9073 2002-11-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9074 Patch by Orion Poplawski <orion@colorado-research.com>
9076 * server-src/planner.c (delay_dumps): Add the estimate size to all call
9079 2002-11-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9081 * server-src/reporter.c: Increase width of some field.
9083 2002-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9085 * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
9087 2002-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9089 * recover-src/extract_list.c (delete_file): j is int.
9090 * changer-src/scsi-defs.h (B, B1): Check if already defined.
9091 * server-src/taper.c: Some cast to int.
9092 * tape-src/amdd.c (read_func, write_func): Complete prototype.
9093 * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
9094 third argument is size_t.
9095 * tape-src/tapeio.c: Ditto.
9096 * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
9097 ssize_t, third argument is size_t.
9098 * tape-src/output-file.c: Ditto.
9099 * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
9100 ssize_t, third argument is size_t.
9101 * tape-src/output-null.c: Ditto.
9102 * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
9103 third argument is size_t.
9104 * tape-src/output-rait.c: Ditto.
9105 * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
9106 ssize_t, third argument is size_t.
9107 * tape-src/output-tape.c: Ditto.
9109 2002-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9111 * configure.in: socklen_t default to int.
9112 * common-src/dgram.c (dgram_recv): addrlen is socklen_t.
9113 * common-src/stream.c (stream_server): len is socklen_t.
9114 * recover-src/extract_list.c (add_file): j is int.
9116 2002-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9118 * client-src/client_util.c (test_name_len) Remove variable.
9119 * common-src/match.c (len_prefix): Change type to int.
9120 * server-src/taper.c: Use %p to print pointer.
9121 * tape-src/amdd.c (read_func, write_func):Change return type to ssize_t.
9122 * tape-src/amdd.c (debug): Renamed to debug_amdd.
9123 * tape-src/ammt.c (debug): Renamed to debug_ammt.
9125 2002-11-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9127 * restore-src/amidxtaped.c: Fix restore from file.
9129 2002-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9131 * restore-src/amidxtaped.c: Fix newline in string literal.
9133 2002-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9135 * server-src/conffile.c (maxdumpsize): New option.
9136 * server-src/conffile.h: Ditto.
9137 * server-src/planner.c: Use maxdumpsize if set.
9138 * example/amanda.conf.in: Document it.
9139 * man/amanda.8.in: Document it.
9141 2002-11-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9143 * common-src/amfeatures.h (fe_amidxtaped_fsf, fe_amidxtaped_label,
9144 fe_amidxtaped_device, fe_amidxtaped_host, fe_amidxtaped_disk,
9145 fe_amidxtaped_datestamp, fe_amidxtaped_header, fe_amidxtaped_nargs,
9146 fe_amidxtaped_config): New features.
9147 * common-src/amfeatures.c (am_init_feature_set): Set new features.
9148 * recover-src/extract_list.c: Send new protocol data to amidxtaped.
9149 * restore-src/Makefile.am: amidxtaped.c need libamserver.
9150 * restore-src/amidxtaped.c: Read new protocol data from amrecover.
9151 * restore-src/amidxtaped.c: Use new configuration options.
9152 * server-src/conffile.c (conf_amrecover_do_fsf,
9153 conf_amrecover_check_label, conf_amrecover_changer): New config.
9154 * server-src/conffile.h: New config options.
9155 * example/amanda.conf.in: Document them.
9156 * man/amanda.8.in: Document them.
9158 2002-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9160 * autogen: touch config/config.h.in
9161 * configure.in: Patch from autoupdate-2.53 and LIBOBJS.
9162 * common-src/Makefile.am: Build versuff.o before version.o
9163 * recover-src/Makefile.am: Remove work around for automake-1.2
9165 2002-11-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9167 * configure.in: Remove --disable-libtool.
9168 * */Makefile.am: Remove WANT_LIBTOOL.
9170 2002-11-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9172 * changer-src/chg-scsi.c (config_name, config_dir): Remove declaration.
9173 * server-src/amadmin.c: Ditto.
9174 * server-src/amcheck.c: Ditto.
9175 * server-src/amcleanupdisk.c: Ditto.
9176 * server-src/amflush.c: Ditto.
9177 * server-src/amindexd.c: Ditto.
9178 * server-src/amlabel.c: Ditto.
9179 * server-src/amlogroll.c: Ditto.
9180 * server-src/amtape.c: Ditto.
9181 * server-src/amtrmidx.c: Ditto.
9182 * server-src/amtrmlog.c: Ditto.
9183 * server-src/chunker.c: Ditto.
9184 * server-src/diskfile.c: Ditto.
9185 * server-src/driver.c: Ditto.
9186 * server-src/dumper.c: Ditto.
9187 * server-src/getconf.c: Ditto.
9188 * server-src/planner.c: Ditto.
9189 * server-src/reporter.c: Ditto.
9190 * server-src/taper.c: Ditto.
9191 * server-src/conffile.c (config_name, config_dir): Add declaration.
9193 2002-11-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9195 * man/amrestore.8: Amrestore doesn't use a changer.
9197 2002-11-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9199 * configure.in (SHELL): Don't set it, libtool do it.
9201 2002-10-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9203 * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
9205 2002-10-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9207 * restore-src/amrestore.c: New '-l <label>' flag, Do a rewind and
9208 check the label before restoring.
9209 * man/amrestore.8: Document -l flag.
9211 2002-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9213 * configure.in (AM_HAVE_MT_FLAGS, AM_HAVE_MT_FILENO, AM_HAVE_MT_BLKNO,
9214 AM_HAVE_MT_DSREG,AM_HAVE_MT_ERREG): Rename to HAVE_MT_FLAGS,
9215 HAVE_MT_FILENO, HAVE_MT_BLKNO, HAVE_MT_DSREG and HAVE_MT_ERREG.
9216 * tape-src/output-tape.c: Ditto.
9218 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9219 Undo patch of 2002-10-24. They are needed by amrecover.
9221 * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
9222 is_local_fstype): Add Prototype.
9223 * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
9224 is_local_fstype): remove Prototype.
9226 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9227 Patch by Paul Bijnens <paul.bijnens@xplanation.com>
9229 * tape-src/tapetype.c: Detects and warns the user if the tape drive
9230 has hardware compression enabled.
9232 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9234 * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
9235 'fsf <fileno>' if -f is set.
9236 * man/amrestore.8: Document -f flag.
9238 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9240 * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD,
9241 fe_amindexd_fileno_in_ORLD): New amfeatures.
9242 * common-src/amfeatures.c (am_init_feature_set): Set
9243 fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
9244 * recover-src/amrecover.h (struct DIR_ITEM): Add fileno.
9245 * recover-src/display_commands.c (add_dir_list_item): Set fileno
9247 * recover-src/display_commands.c (suck_dir_list_from_server): Read
9248 fileno if fe_amindexd_fileno_in_OLSD is set.
9249 * recover-src/extract_list.c (struct EXTRACT_LIST): Add fileno.
9250 * recover-src/extract_list.c (add_file): Read fileno if
9251 fe_amindexd_fileno_in_ORLD is set.
9252 * recover-src/extract_list.c (delete_file): Read fileno if
9253 fe_amindexd_fileno_in_ORLD is set.
9254 * server-src/amindexd.c (opaque_ls): Write fileno if
9255 fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
9257 2002-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9258 patch by Doug Kingston <dpk@pobox.com>
9260 * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
9261 DONT_SUID_ROOT): Defined if on *-pc-cygwin.
9262 * client-src/Makefile.am: Fix for cygwin.
9263 * client-src/getfsent.c: Don't use fstab if IGNORE_FSTAB.
9264 * client-src/killpgrp.c: Don't suid(0) if DONT_SUID_ROOT.
9265 * client-src/rundump.c: Don't suid(0) if DONT_SUID_ROOT.
9266 * client-src/runtar.c: Don't suid(0) if DONT_SUID_ROOT.
9267 * client-src/selfcheck.c (check_suid): Don't check uid if
9269 * common-src/alloc.c (safe_env): Add PATH to ENV if NEED_PATH_ENV.
9270 * recover-src/amrecover.c: Don't check uid if IGNORE_UID_CHECK.
9272 2002-10-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9274 * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
9275 is_local_fstype): Remove Prototype.
9276 * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
9277 is_local_fstype): Add Prototype.
9279 2002-10-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9281 * server-src/amindexd.c: New FEATURES command that read the features
9282 set from the client and reply the features set of the server.
9283 * recover-src/amrecover.h: include "amfeatures.h"
9284 * recover-src/amrecover.c: Send the FEATURES command to the server
9285 and read it's features set.
9287 2002-10-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9289 * client-src/Makefile.am: Work around for CYGWIN.
9290 * server-src/Makefile.am: Ditto.
9292 2002-10-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9294 * configure.in: Remove empty command from $program_transform_name.
9296 2002-10-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9298 * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
9300 2002-09-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9302 * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
9304 2002-09-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9306 * server-src/amverifyrun.sh.in: New program.
9307 * man/amverifyrun.8.in: Man page for amverifyrun.
9308 * configure.in (AC_OUTPUT): add man/amverifyrun.8 and
9309 server-src/amverifyrun.sh.
9310 * man/Makefile.am (SERVER_MAN_PAGES): Add amverifyrun.8.
9311 * man/amanda.8.in: Add amdd, ammt and amverifyrun in SEE ALSO.
9312 * man/amverify.8.in: Add amverifyrun(8) in SEE ALSO.
9313 * server-src/Makefile.am (sbin_SCRIPTS): Add amverifyrun.
9315 2002-09-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9317 * server-src/amverify.sh.in: Accept runtapes as a third argument.
9318 * man/amverify.8.in: Document it.
9320 2002-09-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9322 * config/missing: Updated from automake-1.5.
9324 2002-09-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9326 * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
9327 * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
9329 2002-09-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9331 * client-src/sendsize.c (getsize_dump): Print the fstype.
9332 * client-src/sendbackup-dump.c (start_backup): Print the fstype.
9334 2002-09-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9335 Patch by Florian Hars <hars@bik-gmbh.de>
9337 * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
9339 2002-09-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9341 * recover-src/extract_list.c (extract_files): print tape drive
9342 and host before asking to load tape.
9344 2002-09-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9346 * server-src/taper.c (read_file): Initialize file,
9347 stat(file.cont_filename) before opening it.
9349 2002-09-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9351 * server-src/amverify.sh.in: Don't check that the device is
9352 a character device, it could be a file: or rait:
9354 2002-09-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
9356 * common-src/amfeatures.c (am_set_default_feature_set):
9357 fe_rep_options_sendbackup_options is a default feature.
9359 2002-09-06 Jean-Louis Martineau <martineau@iro.umontreal.ca>
9361 * server-src/amstatus.pl.in: Sort a disk in datestamp order.
9363 2002-09-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9364 Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
9366 * docs/EXCLUDE: Improve documentation.
9368 2002-09-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9370 * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
9372 2002-08-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9373 Patch by Jason Brooks <jason0@mail.wrs.com>
9375 * docs/chg-scsi.notes: New document.
9376 * changer-src/chg-scsi.c: Adding printout of "emubarcode" values
9378 * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to
9380 * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
9382 2002-08-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9384 * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
9385 "/dev/null" instead of filename.
9387 2002-08-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9389 * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
9390 * changer-src/chg-scsi-chio.c: Ditto.
9391 * changer-src/chg-scsi.c: Ditto.
9392 * changer-src/scsi-aix.c: Ditto.
9393 * changer-src/scsi-bsd.c: Ditto.
9394 * changer-src/scsi-cam.c: Ditto.
9395 * changer-src/scsi-changer-driver.c: Ditto.
9396 * changer-src/scsi-defs.h: Ditto.
9397 * changer-src/scsi-hpux_new.c: Ditto.
9398 * changer-src/scsi-irix.c: Ditto.
9399 * changer-src/scsi-linux.c: Ditto.
9400 * changer-src/scsi-solaris.c: Ditto.
9401 * tape-src/tapeio.c: Ditto.
9403 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9405 * recover-src/uparse.y: Fix compiler warning.
9407 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9409 * server-src/amtrmidx.c: Continue if a directory doesn't exist.
9411 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9413 * man/amanda.8.in (tapecycle): Improve documentation.
9415 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9417 * server-src/amstatus.pl.in: Works with features.
9419 2002-08-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9421 * common-src/amfeatures.c (am_feature_to_string): Return the string
9422 "UNKNOWNFEATURE" if no features.
9423 * common-src/amfeatures.c (am_string_to_feature): Return NULL if the
9424 string is "UNKNOWNFEATURE".
9426 2002-08-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9428 * common-src/file.c (debug_agets): line_free was badly set when
9429 the buffer size in increased.
9431 2002-07-19 John R. Jackson (jrj@purdue.edu)
9433 * common-src/amanda.h: Fix bad #define.
9435 2002-07-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9437 David Munro <D.Munro@surrey.ac.uk>
9439 * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
9441 2002-06-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9443 Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
9445 * server-src/reporter.c: Fix psfname filename.
9447 2002-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9449 * client-src/sendbackup.c: Don't do compression if it is server side.
9450 * client-src/sendbackup-dump.c: Ditto.
9451 * client-src/sendbackup-gnutar.c: Ditto.
9453 2002-05-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9454 Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
9456 * server-src/taper.c (detach_buffers): Fix compilation with mmap.
9458 2002-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9460 * recover-src/extract_list.c (extract_files): Set dump_device_name
9461 after the call of okay_to_continue.
9463 2002-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9465 New features to describe the OPTIONS line of a REP packet.
9466 * common-src/amfeatures.h: Add fetures fe_rep_options_maxdumps,
9467 fe_rep_options_hostname, fe_rep_options_features and
9468 fe_rep_options_sendbackup_options.
9469 * common-src/amfeatures.c (am_init_feature_set): Add
9470 fe_rep_options_features.
9471 * client-src/selfcheck.c: Write REP packet according to server features. * client-src/sendbackup.c: Ditto.
9472 * client-src/sendsize.c: Ditto.
9474 2002-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9476 * common-src/amfeatures.h:
9477 Rename fe_g_options_maxdump to fe_req_options_maxdumps
9478 Rename fe_g_options_hostname to fe_req_options_hostname
9479 Rename fe_g_options_features to fe_req_options_features
9480 * common-src/amfeatures.c: Ditto
9481 * server-src/amcheck.c: Ditto
9482 * server-src/dumper.c: Ditto
9483 * server-src/planner.c: Ditto
9485 2002-04-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9487 * server-src/amcheck.c: Check if it can send features, hostname or
9488 maxdumps on the global options line. Don't send hostname and
9489 maxdumps for a noop service.
9490 * server-src/dumper.c: Ditto.
9491 * server-src/planner.c: Ditto.
9493 2002-04-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9495 * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
9496 srvcomp-fast options.
9498 2002-04-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9500 * server-src/amcheck.c (start_host): Check the todo bit before
9503 2002-04-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9505 * client-src/client_util.c (parse_options, parse_g_options): Check
9506 for duplication options.
9507 * client-src/client_util.h (COMPR_SERVER_FAST, COMPR_SERVER_BEST):
9509 * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
9511 2002-04-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9513 * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
9514 * client-src/sendbackup.c: Ditto.
9515 * client-src/sendsize.c: Ditto.
9517 2002-04-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9519 * client-src/client_util.c (parse_g_options) New function to parse
9520 the global options string.
9521 * client-src/client_util.h (parse_g_options): Prototype.
9522 * client-src/selfcheck.c: use parse_g_options.
9523 * client-src/sendbackup.c: use parse_g_options.
9524 * client-src/sendsize.c: use parse_g_options.
9526 2002-04-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9528 * server-src/diskfile.c: Improve message for missing features.
9530 2002-04-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9533 * common-src/amfeatures.c (am_set_default_feature_set): New function
9534 to set the default features set.
9535 * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
9536 * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to
9538 * client-src/client_util.c: Check features.
9539 * server-src/amcheck.c: Ditto.
9540 * server-src/diskfile.c: Ditto.
9541 * server-src/driverio.c: Ditto.
9542 * server-src/planner.c: Ditto.
9543 * server-src/diskfile.h (optionstr): Change prototype.
9544 * client-src/sendsize.c: Fix compiler warning.
9546 2002-04-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9548 * common-src/amfeatures.c: Include "amfeatures.h"
9549 * common-src/rsh-security.c: Don't assert on undefined variable.
9551 2002-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9553 * common-src/amfeatures.c: Renamed from features.c
9554 * common-src/amfeatures.h: Renamed from features.h
9555 * common-src/Makefile.am: Rename features to amfeatures.
9556 * client-src/amandad.c: Ditto.
9557 * client-src/client_util.h: Ditto.
9558 * client-src/selfcheck.c: Ditto.
9559 * client-src/sendbackup.c: Ditto.
9560 * client-src/sendsize.c: Ditto.
9561 * server-src/amcheck.c: Ditto.
9562 * server-src/chunker.h: Ditto.
9563 * server-src/diskfile.h: Ditto.
9564 * server-src/dumper.c: Ditto.
9565 * server-src/planner.c: Ditto.
9566 * server-src/taper.c: Ditto.
9568 2002-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9570 * server-src/conffile.c: Default dumporder set to "ttt".
9571 * server-src/driver.c: If dumporder is too short, use t and T.
9572 * man/amanda.8.in: Default dumporder set to "ttt".
9574 2002-04-13 John R. Jackson (jrj@purdue.edu)
9576 * common-src/features.c: Add amanda_feature_auth_keyword feature so
9577 authorization in the OPTIONS string is backward compatible.
9578 * common-src/features.h: Ditto.
9579 * client-src/client_util.c: Ditto.
9580 * client-src/client_util.h: Ditto.
9581 * client-src/selfcheck.c: Ditto.
9582 * client-src/sendbackup.c: Ditto.
9583 * client-src/sendsize.c: Ditto.
9584 * server-src/diskfile.c: Ditto.
9585 * server-src/planner.c: Fix compiler warning.
9587 2002-04-13 John R. Jackson (jrj@purdue.edu)
9589 * server-src/diskfile.c: Fix memory leak.
9591 2002-04-13 John R. Jackson (jrj@purdue.edu)
9593 * server-src/amcheck.c: Fix error parsing in packet.
9595 2002-04-13 John R. Jackson (jrj@purdue.edu)
9597 * common-src/features.c: New file. Add support for feature sets so
9598 different Amanda versions can work together.
9599 * common-src/features.h: Ditto.
9600 * common-src/Makefile.am: Ditto. Add "features" test program.
9601 * client-src/amandad.c: Add "noop" service to return the feature set.
9602 * client-src/selfcheck.c: Accept and return a feature set in OPTIONS.
9604 * client-src/sendbackup.c: Ditto.
9605 * client-src/sendsize.c: Ditto.
9606 * common-src/bsd-security.c: Minor message change.
9607 * common-src/error.c: Use strcasecmp.
9608 * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
9610 * restore-src/amidxtaped.c: Improve parsing.
9611 * server-src/amcheck.c: Ask for client features via "noop" before
9612 doing the real "selfcheck" service requests. Improve parsing.
9613 * server-src/amflush.c: Minor coding format cleanup.
9614 * restore-src/amindexd.c: Improve parsing.
9615 * server-src/chunker.c: Deal with features string in commands. Improve
9617 * server-src/diskfile.c: Initialize the features hosttype field.
9618 * server-src/diskfile.h: Add the features hosttype field.
9619 * server-src/driver.c: Save the features from the schedule. Clean
9620 up some error messages.
9621 * server-src/driverio.c: Add features string to several commands.
9622 * server-src/dumper.c: Deal with features string in commands. Improve
9624 * server-src/planner.c: Ask for client features via "noop" before
9625 doing the real "sendsize" service requests. Improve parsing.
9626 * server-src/server_util.c: Minor coding cleanup.
9627 * server-src/server_util.h: Increase the number of args allowed on
9629 * server-src/taper.c: Deal with features string in commands. Improve
9632 2002-04-12 John R. Jackson (jrj@purdue.edu)
9634 * server-src/driver.c: Fix crash when only processing a tape queue
9637 2002-04-11 John R. Jackson (jrj@purdue.edu)
9639 * server-src/driver.c: Protect against crash when taper has died.
9641 2002-04-11 John R. Jackson (jrj@purdue.edu)
9643 * common-src/stream.c: Clean up an error message.
9645 2002-04-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9647 * docs/DUMPER-API: Remove the section about USER and GROUP.
9649 2002-04-09 John R. Jackson (jrj@purdue.edu)
9651 * server-src/driver.c: Fix send of QUIT to taper when it is down.
9653 2002-04-07 John R. Jackson (jrj@purdue.edu)
9655 * server-src/dumper.c: Change sendbackup response parsing to handle
9656 2.4 changes. Improve packet parse error processing. Make packet
9657 logging conditional on an #ifdef instead of commented out.
9659 2002-04-07 John R. Jackson (jrj@purdue.edu)
9661 * client-src/amandad.c: Fix FORCE_USERID to run the service as the
9662 client user if amandad was started as root.
9664 2002-04-07 John R. Jackson (jrj@purdue.edu)
9666 * common-src/clock.c: Move definition of amanda_gettimeofday() macro
9667 to the header file so it could be used other places. Use new
9668 amanda_timezone macro to avoid some #ifdef's.
9669 * common-src/clock.h: Ditto.
9670 * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
9671 servers trying to talk to 2.5 clients. The HANDLE value was not
9672 being properly handled, and the sequence number was being ignored.
9674 2002-04-07 John R. Jackson (jrj@purdue.edu)
9676 * server-src/reporter.c: Move column routines to conffile.c so amcheck
9677 can use them in its tests. Do not abort on several failures, but
9678 generate messages in the FAILURE AND STRANGE DUMP SUMMARY section.
9679 * server-src/conffile.c: Move column routines to here.
9680 * server-src/conffile.h: Ditto.
9681 * server-src/amcheck.c: Add several config file tests.
9682 * server-src/logfile.c: Change "reporter" to "amreport".
9684 2002-04-07 John R. Jackson (jrj@purdue.edu)
9686 * configure.in: Add /usr/local/sbin to LOCPATH.
9688 2002-03-31 John R. Jackson (jrj@purdue.edu)
9690 * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
9692 2002-03-31 John R. Jackson (jrj@purdue.edu)
9694 * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
9695 * changer-src/scsi-solaris.c: Ditto.
9697 2002-03-31 John R. Jackson (jrj@purdue.edu)
9699 * client-src/amandad.c: Fix arguments to pkt_cat.
9700 * common-src/bsd-security.c: Ditto.
9702 2002-03-31 John R. Jackson (jrj@purdue.edu)
9704 * client-src/amandad.c: Add relative timestamps to a lot of debug
9705 file messages, and add more messages, to better track what is
9706 going on. Various general cleanup.
9707 * client-src/calcsize.c: Ditto.
9708 * client-src/client_util.c: Ditto.
9709 * client-src/selfcheck.c: Ditto.
9710 * client-src/sendbackup-dump.c: Ditto.
9711 * client-src/sendbackup-gnutar.c: Ditto.
9712 * client-src/sendbackup.c: Ditto.
9713 * client-src/sendbackup.h: Ditto.
9714 * client-src/sendsize.c: Ditto.
9715 * common-src/amanda.h: Ditto.
9716 * common-src/bsd-security.c: Ditto.
9717 * common-src/clock.c: Ditto.
9718 * common-src/clock.h: Ditto.
9719 * common-src/debug.c: Ditto.
9720 * common-src/dgram.c: Ditto.
9721 * common-src/error.c: Ditto.
9722 * common-src/file.c: Ditto.
9723 * common-src/pipespawn.c: Ditto.
9724 * common-src/stream.c: Ditto.
9725 * common-src/util.c: Ditto.
9726 * man/amanda.8.in: Ditto.
9727 * restore-src/amidxtaped.c: Ditto.
9728 * restore-src/amrestore.c: Ditto.
9729 * server-src/amindexd.c: Ditto.
9730 * server-src/getconf.c: Ditto.
9731 * server-src/planner.c: Ditto.
9733 2002-03-31 John R. Jackson (jrj@purdue.edu)
9735 * client-src/sendsize.c: Pay attention to the spindle number.
9737 2002-03-30 John R. Jackson (jrj@purdue.edu)
9739 * server-src/planner.c: General delay_dumps code cleanup.
9741 2002-03-30 John R. Jackson (jrj@purdue.edu)
9743 * server-src/planner.c: Make sure individual dumps larger than a tape
9744 are not added back into the schedule. Found by Uncle George
9745 <gatgul@voicenet.com>.
9747 2002-03-29 John R. Jackson (jrj@purdue.edu)
9749 * man/amanda.8.in: Move "comment" in tapetype after inclusion of
9750 previous definition. Found by Uncle George <gatgul@voicenet.com>.
9752 2002-03-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9754 * client-src/client_util.c (fixup_relative): New function to prepend
9755 the dirname if relative.
9756 * client-src/client_util.c (build_exclude, build_include): Use
9758 * client-src/client_util.c (parse_options): Do not prepend the dirname.
9759 * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
9762 2002-03-24 John R. Jackson (jrj@purdue.edu)
9764 * common-src/debug.c: Change dbopen() message slightly to match what
9765 amdump generates, making it easier to parse.
9767 2002-03-24 John R. Jackson (jrj@purdue.edu)
9769 * common-src/Makefile.am: Move clock routines to common-src so
9770 everyone may use them.
9771 * server-src/Makefile.am: Ditto.
9773 2002-03-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9775 * client-src/sendbackup-gnutar.c: Fix use of no_record.
9777 2002-03-24 John R. Jackson (jrj@purdue.edu)
9779 * client-src/amandad.c: Make sure argv[0] is valid before using it.
9780 * restore-src/amidxtaped.c: Ditto.
9781 * server-src/amindexd.c: Ditto.
9783 2002-03-24 John R. Jackson (jrj@purdue.edu)
9785 * client-src/client_util.c: Use the Amanda memory allocation code.
9786 * client-src/sendbackup-gnutar.c: Ditto.
9787 * client-src/sendsize.c: Ditto.
9788 * common-src/match.c: Ditto.
9789 * recover-src/amrecover.c: Ditto.
9790 * recover-src/display_commands.c: Ditto.
9791 * recover-src/extract_list.c: Ditto.
9792 * restore-src/amidxtaped.c: Ditto.
9793 * server-src/amflush.c: Ditto.
9794 * server-src/disk_history.c: Ditto.
9795 * server-src/driver.c: Ditto.
9796 * server-src/dumper.c: Ditto.
9797 * common-src/amanda.h: Always pass the source file and line number
9798 to the memory routines to make it easier to debug.
9799 * common-src/alloc.c: Ditto.
9800 * common-src/file.c: Ditto.
9802 2002-03-23 John R. Jackson (jrj@purdue.edu)
9804 * changer-src/chg-scsi-chio.c: Use agets instead of fgets.
9805 * changer-src/chg-scsi.c: Use agets instead of fgets.
9806 * client-src/client_util.c: Use agets instead of fgets.
9807 * recover-src/amrecover.c: Clean up output on EOF.
9808 * recover-src/extract_list.c: Use agets instead of direct stdio.
9809 Clean up output on EOF. Add '?' help.
9810 * recover-src/set_commands.c: Quote the new device in the verify
9811 output to make it stand out.
9812 * server-src/amflush.c: Clean up output on EOF. Clean up output
9813 when multiple holding disk areas selected. Clean up parsing.
9814 Loop until valid user response.
9815 * server-src/find.c: Do not complain if log file is missing for
9816 a new (datestamp == 0) tape.
9817 * server-src/holding.c: Use agets instead of fgets. Clean up
9818 interactive input and output.
9820 2002-03-23 John R. Jackson (jrj@purdue.edu)
9822 * client-src/selfcheck.c: Fix a compiler warning.
9823 * client-src/sendbackup.c: Ditto.
9824 * client-src/sendsize.c: Ditto.
9826 2002-03-23 John R. Jackson (jrj@purdue.edu)
9828 * client-src/getfsent.c (close_fstab()): Call endfsent() instead
9829 of fclose(), if available.
9831 2002-03-23 John R. Jackson (jrj@purdue.edu)
9833 * common-src/dbprintf (debug_printf): Make sure errno is preserved
9834 across dbprint() calls.
9836 2002-03-23 John R. Jackson (jrj@purdue.edu)
9838 * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
9839 --with-libraries to support shared libraries of support products.
9841 2002-03-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9843 * server-src/chunker.c: Get result from dumper.
9844 * server-src/driver.c: Send dumper result to chunker.
9845 * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
9846 * server-src/driverio.h (chunker_t): New down field.
9847 * server-src/dumper.c: Cleanup.
9848 * server-src/logfile.c (logtype_str): Add "PARTIAL".
9849 * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
9850 * server-src/reporter.c: Handle PARTIAL log.
9851 * server-src/server_util.c (cmdstr): Add "PARTIAL".
9852 * server-src/server_util.h (cmd_t): Add PARTIAL command.
9853 * server-src/taper.c (read_file): Result is PARTIAL if dumper
9856 2002-03-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9858 * server-src/tapefile.c (write_tapelist): Write to a temp file and
9860 * server-src/amlabel.c: Do not rename the tapelist file.
9861 * server-src/taper.c (label_tape): Do not rename the tapelist file.
9863 2002-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9865 * client-src/client_util.c (parse_options): Do not check if the
9866 exclude file exist, it's done later.
9868 2002-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9870 * client-src/client_util.c (parse_options): Parse exclude-optional and
9872 * client-src/client_util.h (option_t): New exclude_optional and
9873 include_optional field.
9874 * man/amanda.8.in: Document optional.
9875 * server-src/amadmin.c (disklist_one): Display optional.
9876 * server-src/conffile.c: Parse optional keyword.
9877 * server-src/conffile.h (dumptype_t): New exclude_optional and
9878 include_optional field.
9879 * server-src/diskfile.c (read_diskline): Copy optional bits.
9880 * server-src/diskfile.c (optionstr): Print optional bits.
9881 * server-src/diskfile.h (disk_t): New exclude_optional and
9882 include_optional field.
9883 * server-src/planner.c (getsize): Use new sendsize format if optional
9886 2002-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9888 * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
9891 2002-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9893 * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
9895 2002-03-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9896 Patch from Michael Frankowski <mfrankow@winternet.com>
9898 * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
9900 2002-03-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9902 * client-src/client_util.c (init_options): New function.
9903 * client-src/client_util.h (init_options): Prototype.
9904 * client-src/sendsize.c (main): Use init_options.
9906 2002-03-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9908 * client-src/client-util.c: Check for include and exclude files.
9910 2002-03-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9912 * server-src/amstatus.pl.in: Fix.
9913 * server-src/conffile.c(get-compress): Change message for bad
9916 2002-03-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9918 * server-src/amstatus.pl.in: Fix.
9919 * client-src/client_util.c (parse_options): Parse auth= option.
9920 * client-src/client_util.h (option_t): Add auth field.
9921 * client-src/sendbackup.c: Use auth instead of bsd-auth.
9922 * client-src/sendsize.c: Init auth.
9924 2002-03-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9926 * client-src/sendbackup-dump.c: use amdevice as argument to
9928 * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
9929 * server-src/dumper.c: clear device if it is set to NODEVICE.
9931 2002-03-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9933 * server-src/amindexd.c: Compilation fix.
9935 2002-03-07 John R. Jackson (jrj@purdue.edu)
9937 * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
9938 Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
9940 2002-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9942 * recover-src/amrecover.h (list_disk): Prototype.
9943 * recover-src/set_commands.c (list_disk): New function.
9944 * recover-src/uparse.y: parse LISTDISK.
9945 * recover-src/uscan.l: listdisk keyword.
9946 * recover-src/help.c: help for listdisk.
9947 * man/amrecover.8.in: Doc for listdisk.
9948 * server-src/amindexd.c: New LISTDISK command.
9949 * docs/INDEXING: Document LISTDISK command.
9951 2002-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9953 * server-src/amstatus.pl.in: Better output for autoflush.
9955 2002-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9957 * server-src/amstatus.pl.in: Fix.
9959 2002-03-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9961 * server-src/amadmin.c (disklist_one): Print dp->device.
9962 * server-src/amcheck.c (start_host): Send device if specified.
9963 * server-src/amstatus.pl.in: Parse line with device.
9964 * server-src/diskfile.c (parse_diskline): Parse device.
9965 * server-src/diskfile.c (match_disklist): Match on device.
9966 * server-src/diskfile.h (disk_t): New field device.
9967 * server-src/driverio.c: (dumper_cmd): Send device.
9968 * server-src/dumper.c (main): Parse device in request.
9969 * server-src/dumper.c (start_dump): New device argument, send
9971 * server-src/planner.c (getsize): Send device to client.
9972 * server-src/server_util.h (MAX_ARGS): Set it to 12.
9973 * client-src/client_util.c (add_include, build_exclude, build_include,
9974 parse_options): New device argument.
9975 * client-src/client_util.h (build_exclude,build_include,parse_options):
9977 * client-src/selfcheck.c: Use device.
9978 * client-src/sendbackup-dump.c: Use device.
9979 * client-src/sendbackup-gnutar.c: Use device.
9980 * client-src/sendbackup.c: Use device.
9981 * client-src/sendbackup.h (start_backup): New device argument.
9982 * client-src/sendsize.c: Use device.
9983 * man/amanda.8.in: Document new disklist syntax.
9984 * example/disklist: Give example.
9986 2002-03-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9988 * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
9991 2002-03-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9993 * server-src/amstatus.pl.in: Fix for failed tape.
9995 2002-02-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9997 * man/amanda.8.in: Document multiple exclude.
9998 * man/amanda.8.in: Document include.
10000 2002-02-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10002 * client-src/client-util.c (add_include): Include are glob expression.
10004 2002-02-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10006 * common-src/debug.c (debug_open); Don't try to renmae an already
10009 2002-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10011 * server-src/conffile.c (dump_configuration): Print multiple
10012 exclude and include.
10014 2002-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10016 * client-src/client_util.c (add_exclude, add_include): Typo.
10018 2002-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10020 * client-src/client_util.c (build_include, build_exclude): Fix for
10023 2002-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10025 * client-src/client_util.c (get_name): Create a file name.
10026 * client-src/client_util.c (build_name): Remove old files,
10027 build an unused file name.
10028 * client-src/client_util.c (add_exclude): Add an exclude pattern to
10030 * client-src/client_util.c (add_include): Add an include to the
10032 * client-src/client_util.c (build_exclude): Concat all excludes in
10034 * client-src/client_util.c (build_include): Concat all includes in
10036 * client-src/client_util.h (build_exclude, build_include): Prototype.
10037 * client-src/selfcheck.c.diff (check_options): Call build_exclude
10039 * client-src/sendsize.c.diff: Call gtar with one
10040 exclude file/include file.
10041 * client-src/sendbackup-gnutar.c.diff: Call gtar with one
10042 exclude file/include file.
10044 2002-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10046 * common-src/amanda.h (amfree): Change e local variable to e__errno.
10047 * common-src/amanda.h (strappend): Change t local variable to t_t_t.
10049 2002-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10051 * client-src/sendsize.c: Set include_file and include_list to NULL
10052 when using old protocol.
10053 * client-src/sendbackup-gnutar.c: Include "." when using old protocol.
10055 2002-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10057 * server-src/conffile.h (dumptype_t): Add include_file and include_list.
10058 * server-src/conffile.c: Read include.
10059 * server-src/diskfile.h (disk_t): Add include_file and include_list.
10060 * server-src/diskfile.c (optionstr): Add include to the optionstr.
10061 * server-src/amadmin.c (disklist_one): Print include.
10062 * server-src/planner.c: Use new protocol if include is used.
10063 * client-src/client_util.h (option_t): Add include_file and include_list
10064 * client-src/client_util.c (parse_options): Parse include.
10065 * client-src/selfcheck.c (check_options): Print ERROR if include are
10066 used for SAMBA or DUMP.
10067 * client-src/sendsize.c: Send include to gnutar.
10068 * client-src/sendbackup-gnutar.c: Send include to gnutar.
10070 2002-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10072 * client-src/client_util.c (parse_options): Check that files from
10073 'exclude list' exist'.
10074 * client-src/selfcheck.c (check_options): Give ERROR if multiple
10075 exclude are used with samba or if exclude are used with DUMP.
10077 2002-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10079 * client-src/sendbackup.h: Remove bad stuff introduced in previous
10081 * client-src/sendbackup-gnutar.c: Ditto.
10083 2002-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10085 * client_src/client_util.c (parse_options): Function to parse
10087 * client_src/client_util.h (parse_options): Prototype.
10088 * client_src/client_util.h (option_t): Struct for options.
10089 * client_src/Makefile.am: Compile client_util.
10090 * client_src/selfcheck.c: Use new option_t and multiple exclude.
10091 * client_src/sendbackup.h: Use new option_t and multiple exclude.
10092 * client_src/sendbackup.c: Use new option_t and multiple exclude.
10093 * client_src/sendbackup-dump.c: Use new option_t and multiple exclude.
10094 * client_src/sendbackup-gnutar.c: Use new option_t and multiple exclude.
10095 * client_src/sendsize.c: Use new option_t and multiple exclude.
10096 * server-src/conffile.h: Use sl_t for exclude_file and exclude_list.
10097 * server-src/conffile.c: Multiple exclude.
10098 * server-src/diskfile.h: Use sl_t for exclude_file and exclude_list.
10099 * server-src/diskfile.c: Multiple exclude.
10100 * server-src/planner.c: Multiple exclude.
10102 2002-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10104 * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
10106 2002-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10108 * common-src/pipespawn.c (pipespawnv): New funtion taking an
10110 * common-src/pipespawn.h (pipespawnv): Prototype.
10112 2002-02-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10114 * server-src/holding.h: Use sl_t instead of holding_t
10115 * server-src/holding.c: Ditto.
10116 * server-src/amcleanupdisk.c: Ditto.
10117 * server-src/amflush.c: Ditto.
10118 * server-src/find.c: Ditto.
10119 * server-src/planner.c: Ditto.
10121 2002-02-11 John R. Jackson (jrj@purdue.edu)
10123 * configure.in: AIX needs the "other" getconf argument to find out
10124 about large file support (XBS5_ILP32_OFFBIG instead of LFS).
10126 2002-02-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10128 * common-src/sl.h: New header file
10129 * common-src/sl.c: New file for list of string struct.
10130 * common-src/Makefile.am: Compile sl.c
10132 2002-02-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10134 * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
10136 2002-02-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10138 * common-src/fileheader.c (build_header): Typo.
10140 2002-02-10 John R. Jackson (jrj@purdue.edu)
10142 * configure.in: Add new file-pad tapetype option to take the place
10143 of a positive/negative blocksize. Blocksize may now only be
10144 positive. File-pad defaults to "true" which pads the last tape
10145 record like it always has.
10146 * man/amanda.8.in: Ditto.
10147 * server-src/amlabel.c: Ditto.
10148 * server-src/conffile.c: Ditto. Fix typo in conffile test program.
10149 * server-src/conffile.h: Ditto.
10150 * server-src/planner.c: Ditto.
10151 * server-src/taper.c: Ditto.
10153 2002-02-10 John R. Jackson (jrj@purdue.edu)
10155 * configure.in: Save the ./configure args and display them in the
10156 version string (e.g. amandad*debug and "amadmin xx version").
10157 * common-src/genversion.c: Ditto.
10159 2002-02-10 John R. Jackson (jrj@purdue.edu)
10161 * common-src/alloc.c: Fix type mismatch issues discovered by splint
10162 (www.splint.org). Compliments of jens persson <jens@persson.cx>.
10163 * common-src/bsd-security.c: Ditto.
10164 * common-src/debug.c: Ditto.
10165 * common-src/dgram.c: Ditto.
10166 * common-src/file.c: Ditto.
10167 * common-src/fileheader.c: Ditto.
10168 * common-src/fileheader.h: Ditto.
10169 * common-src/genversion.c: Ditto.
10170 * common-src/getcwd.c: Ditto.
10171 * common-src/match.c: Ditto.
10172 * common-src/stream.c: Ditto.
10173 * common-src/strstr.c: Ditto.
10174 * common-src/token.c: Ditto.
10175 * recover-src/amrecover.c: Ditto.
10176 * recover-src/display_commands.c: Ditto.
10177 * recover-src/extract_list.c: Ditto.
10178 * recover-src/set_commands.c: Ditto.
10179 * server-src/reporter.c: Ditto.
10181 2002-02-10 John R. Jackson (jrj@purdue.edu)
10183 * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
10184 * docs/TAPE.CHANGERS: Cleanup.
10186 2002-02-09 John R. Jackson (jrj@purdue.edu)
10188 * common-src/arglist.h: Clean up gcc detection of printf style variable
10189 argument list functions.
10190 * changer-src/scsi-changer-driver.c: Ditto.
10191 * common-src/debug.c: Ditto.
10192 * common-src/dgram.c: Ditto.
10193 * common-src/error.c: Ditto.
10194 * common-src/packet.c: Ditto.
10195 * common-src/packet.h: Ditto.
10196 * common-src/security.c: Ditto.
10197 * common-src/snprintf.c: Ditto.
10198 * common-src/token.c: Ditto.
10199 * common-src/token.h: Ditto.
10200 * server-src/amindexd.c: Ditto.
10201 * server-src/conffile.c: Ditto.
10202 * server-src/diskfile.c: Ditto.
10203 * server-src/logfile.c: Ditto.
10204 * server-src/logfile.h: Ditto.
10205 * server-src/server_util.c: Ditto.
10207 2002-02-09 John R. Jackson (jrj@purdue.edu)
10209 * configure.in: Must look in both strings.h and string.h when trying
10210 to find function declarations (strncasecmp was not found on AIX
10211 but is really there and our override caused a mismatch error).
10213 2002-02-09 John R. Jackson (jrj@purdue.edu)
10215 * configure.in: Add code to test for a type defined in other than the
10216 autoconf expected locations. Use it to look for socklen_t.
10218 2002-02-08 John R. Jackson (jrj@purdue.edu)
10220 * server-src/amadmin.c (check_dumpuser): Make it fatal to attempt to
10221 do an operation that would alter any files when run as someone other
10222 than the dump user from amanda.conf. This should prevent files from
10223 ending up with incorrect ownership.
10225 2002-02-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10227 * man/amrecover.8.in (settape): Document that the hostname is required
10228 if the protocol (tape:, file:, rait:, null:) is specified.
10229 * man/amrecover.8.in (settape): Document that it is posible to
10230 change the tape device when asked to load tape.
10232 2002-02-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10234 * server-src/holding.c (scan_holdingdir): Create the list in
10237 2002-02-02 John R. Jackson (jrj@purdue.edu)
10239 * configure.in: Add unistd.h to list of places to look for ruserok()
10240 declaration. Reported by John Koenig <jfkoenig@vipb.com> on ALPHA
10243 2002-02-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10244 Reported by Roland E. Lipovits <rel@lipo.at0.net>
10246 * server-src/amstatus.pl.in: Don't double-counts the failed
10247 estimate partitions.
10249 2002-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10251 * configure.in: New --with-maxtapeblocksize with a default of 32.
10252 * common-src/amanda.h: MAX_TAPE_BLOCK_KB is defined in amanda.h
10254 2002-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10256 * common-src/fileheader.c (build_header): Never write the
10258 * common-src/fileheader.c (parse_file_header): Do not parse the
10261 2002-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10263 * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
10264 after the dd if=... line.
10266 2002-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10268 * server-src/driver.c: Init code to 0.
10270 2002-01-29 John R. Jackson (jrj@purdue.edu)
10272 * tape-src/output-tape.c (tape_tapefd_fsf): Some systems cannot deal
10273 with large stack variables, so allocate tape I/O buffers dynamically.
10274 * tape-src/tapeio.c (tapefd_rdlabel): Ditto.
10276 2002-01-25 John R. Jackson (jrj@purdue.edu)
10278 * server-src/driver.c: Log non-zero exit codes and signals from all
10279 the dumpers and taper.
10281 2002-01-25 John R. Jackson (jrj@purdue.edu)
10283 * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
10284 functions. Make sure they always report what they were trying to
10285 look up, and don't bother reporting errno (it would be h_errno).
10287 2002-01-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10289 * common-src/fileheader.h (dumpfile_t): Add blocksize field.
10290 * common-src/fileheader.h (build_header): Change prototype.
10291 * common-src/fileheader.c (fh_init): blocksize default to
10293 * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
10294 * common-src/fileheader.c (build_header): Remove blocksize parameter,
10295 write the BLOCKSIZE= line.
10296 * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
10297 * restore-src/amrestore.c: Ditto.
10298 * server-src/dumper.c: Ditto.
10299 * server-src/taper.c: Ditto.
10300 * server-src/holding.c: Ditto.
10301 * server-src/chunker.c: Ditto.
10303 2002-01-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10305 * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
10308 2002-01-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10310 * server-src/planner.c: Check for dp->todo.
10312 2002-01-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10313 Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
10315 * changer-src/chg-scsi.c: Typo.
10317 2002-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10319 * changer-src/Makefile.am: Run `perl -c' on perl script.
10320 * client-src/Makefile.am: Ditto.
10321 * dumper-src/Makefile.am: Ditto.
10322 * server-src/Makefile.am: Ditto.
10324 2002-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10325 Reported by Geert Uytterhoeven <geert@linux-m68k.org>
10327 * README: Amanda compile on Linux/m68k.
10329 2002-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10331 * changer-src/chg-rth.pl.in: Typo. fi -> }.
10333 2002-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10334 Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
10336 * changer-src/chg-chio.pl.in: Typo. fi -> }.
10337 * changer-src/chg-chio.pl.in (prefix, exec_prefix): Set correctly.
10338 * changer-src/chg-chio.pl.in (max_picker): Init to -1.
10340 2002-01-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10342 * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
10345 2002-01-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10347 * server-src/amoverview.pl.in: Ignore some line from amadmin.
10349 2002-01-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10351 * common-src/event.c: Use ASSERTIONS not ASSERT.
10353 2002-01-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10355 * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
10357 * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
10358 * common-src/match.c (clean_regex): Cast to int.
10360 2002-01-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10361 Reported by <ian.willis@sge.net>
10363 * common-src/rsh-security.c: Fix for RSH_DEBUG.
10365 2001-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10367 * config/ltconfig: Remove
10368 * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
10369 * config/config.guess: Update from
10370 ftp://ftp.gnu.org/gnu/config/config.guess
10371 * config/config.sub: Update from
10372 ftp://ftp.gnu.org/gnu/config/config.sub
10373 * config/depcomp, config/install-sh, config/missing,
10374 config/mkinstalldirs: Update from automake 1.5
10375 * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
10377 2001-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10378 Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
10380 * configure.in: Add missing [.
10382 2001-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10383 Patch by Jason Thomas <jason@topic.com.au>
10384 and Eric Siegerman <erics@telepres.com>
10386 * common-src/bsd-security.c (check_user_amandahosts): improve message.
10388 2001-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10390 * server-src/driver.c: Do not go in degraded mode in nodump mode.
10391 * server-src/conffile.c:Check many options to be sure they are positive.
10393 2001-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10395 * changer-src/chg-scsi.c (get_relative_target): return -1;
10396 * changer-src/scsi-irix.c (SCSI_ExecuteCommand): Remove Zero variable.
10397 * common-src/amanda.h: include strings.h if HAVE_STRINGS_H is defined.
10398 * server-src/amadmin.c (info_one): Remove lev0date variable.
10399 * server-src/amadmin.c (import_db): Remove vers_comment variable.
10400 * server-src/amindexd.c (main): Remove arg_len variable.
10401 * server-src/amtrmidx.c (main): Remove level_position and
10402 datestamp_position variables.
10403 * server-src/changer.c (changer_current): Remove checked variable.
10404 * server-src/conffile.c (read_confline): Check value of RESERVE.
10405 * server-src/conffile.c (get_tapetype): Check value of LENGTH and
10407 * server-src/diskfile.h: bit field of 1 bit must be unsigned.
10408 * server-src/driver.c (main): Don't check the value of RESERVE.
10409 * server-src/driver.c (find_diskspace): Remove as_pref variable.
10410 * server-src/driverio.c (getresult): cast cmd_t.
10411 * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
10412 * server-src/find.c (search_logfile): Remove host_undo_ch and
10413 disk_undo_ch variables.
10414 * server-src/holding.c (pick_datestamp): Remove result variable.
10415 * server-src/server_util.c (getcmd): Loop on a cmd_t variable.
10416 * server-src/taper.c (tape_writer_side): Remove out_open variable.
10417 * tape-src/tapeio.c (tapefd_close): Cast to (void *).
10419 2001-12-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10421 * client-src/selfcheck.c: Fix compiler warning.
10422 * changer-src/chg-scsi.c: Ditto.
10423 * changer-src/scsi-changer-driver.c: Ditto.
10424 * changer-src/scsi-defs.h: Ditto.
10425 * server-src/server_util.c: Ditto.
10426 * common-src/fileheader.c: Ditto.
10428 2001-12-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10430 * configure.in: Set MAX_TAPE_BLOCK_KB on linux
10432 2001-12-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10433 Patch by Blaz Zupan <blaz@amis.net>
10435 * changer-src/chg-zd-mtx.sh.in: typo.
10437 2001-12-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10439 * client-src/selfcheck.c (check_access): New function (old check_file
10441 * client-src/selfcheck.c (check_file): Check that the filename is a
10443 * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
10445 2001-12-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10446 Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
10448 * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
10449 AMANDA_TMPDIR directory.
10451 2001-12-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10453 * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
10454 * server-src/amrmtape.sh.in: Ditto.
10456 2001-12-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10458 * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
10460 2001-12-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10462 * server-src/amstatus.pl.in: Work with amflush log.
10464 2001-12-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10466 * server-src/driver.c (nodump): new argument, Don't start the dumpers
10468 * server-src/holding.c (get_flush): chdir to original cwd.
10469 * server-src/reporter.c: accept driver and amflush line in log.
10470 * server-src/amflush.c: exec driver to do the flushing.
10472 2001-12-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10474 * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
10476 2001-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10478 * recover-src/extract_list.c: You can change the tape device
10481 2001-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10483 * restore-src/amrestore.c (restore): try to find the next chunk
10484 in the current directory.
10486 2001-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10488 * example/amanda.conf.in: typo.
10490 2001-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10492 Patch by Roland E. Lipovits <rel@lipo.at0.net>
10493 * example/amanda.conf.in: typo.
10495 2001-12-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10497 * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
10498 Replace TRY_AGAIN by TRYAGAIN.
10500 2001-11-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10501 Patch by Michael D. Beynon <beynon@ll.mit.edu>
10503 * server-src/driver.c (main): Take care of empty tapeq.
10505 2001-11-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10507 * server-src/diskfile.c (lookup_host): Match must be exact.
10509 2001-11-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10511 * server-src/planner.c: Add host, disk, datestamp and level on
10512 FLUSH line. Add datestamp on DUMP line.
10513 * server-src/driver.c (read_flush): Read new format of FLUSH line.
10514 * server-src/driver.c (read_schedule): Read new format of DUMP line.
10515 * server-src/amflush.c: Write a datestamp on stderr.
10516 * server-src/amdump.sh.in: Write a datestamp on stderr.
10517 * server-src/amstatus.pl.in: Works with autoflush.
10519 2001-11-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10520 * server-src/conffile.c (autoflush): New configuration options.
10521 * server-src/conffile.h (autoflush): New configuration options.
10522 * man/amanda.8.in: Document it.
10523 * example/amanda.conf.in: Document it.
10524 * server-src/holding.h (get_flush, pick_datestamp, pick_all_datestamp,
10525 cleanup_holdingdisk): New prototype.
10526 * server-src/holding.c (scan_holdingdir, cleanup_holdingdisk,
10527 get_flush): New function.
10528 * server-src/holding.c (pick_datestamp, pick_all_datestamp): New
10530 * server-src/amcleanupdisk.c: Change call to pick_all_datestamp.
10531 * server-src/amflush.c: Change call to pick_all_datestamp.
10532 * server-src/find.c: Change call to pick_all_datestamp.
10533 * server-src/planner.c: Write FLUSH line to driver, the schedule
10534 line contain the keyword DUMP.
10535 * server-src/planner.c: Add datestamp to SUCCESS and FAIL line.
10536 * server-src/amstatus.pl.in: New parsing of DUMP line.
10537 * server-src/driverio.h: New datestamp field in sched_t;
10538 * server-src/driver.c (build_diskspace): New function to build a
10539 assignedhd_t from an holding file.
10540 * server-src/driver.c (read_flush): New function to read the list
10542 * server-src/driver.c (read_schedule): Parse the keyword DUMP.
10543 * server-src/driver.c: Add datestamp to FAIL line.
10544 * server-src/dumper.c: Add datestamp to FAIL line.
10545 * server-src/reporter.c (timedata_t, repdata_t) : Major change of
10547 * server-src/taper.c: Add datestamp to FAIL line.
10549 2001-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10551 * server-src/conffile.c: New dumporder configuration.
10552 * server-src/conffile.h: Likewise.
10553 * server-src/driver.c (start_some_dumps): Use dumporder to
10554 select the next disk to dump.
10555 * example/amanda.conf.in: Give an example of dumporder.
10556 * man/amanda.8.in: Document it.
10558 2001-11-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10560 * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
10561 * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
10562 * recover-src/uparse.y: Add new token CDX, call cd_glob instead
10563 of set_directory for cd command, call cd_regex for cdx command.
10564 * recover-src/uscan.l: On cdx string return CDX token.
10565 * recover-src/help.c: Document it.
10566 * man/amrecover.8.in: Document it.
10568 2001-09-26 John R. Jackson (jrj@purdue.edu)
10570 * server-src/reporter.c: Fix problem when column sizes are negative.
10572 2001-09-21 John R. Jackson (jrj@purdue.edu)
10574 * server-src/Makefile.am: Add -I../common-src so genversion.h can be
10575 found (since it is built on the fly). Only fails when build is done
10576 in a different directory than the sources.
10578 2001-09-17 John R. Jackson (jrj@purdue.edu)
10580 * server-src/getconf.c: Add capabilities to amgetconf to return
10581 build environment values and also to open and close a debug file
10582 (e.g. for scripts).
10583 * man/amgetconf.8.in: Ditto.
10584 * changer-src/chg-scsi.c: Ditto.
10585 * common-src/amanda.h: Ditto.
10586 * common-src/debug.c: Ditto.
10587 * common-src/error.c: Ditto.
10588 * server-src/dumper.c: Ditto.
10590 2001-09-17 John R. Jackson (jrj@purdue.edu)
10592 * server-src/planner.c: Make sure we do not attempt to bump beyond
10595 2001-09-16 Thomas Hepper (th@ant.han.de)
10596 * changer-src/chg-scsi.c: Added new config option autoinv,
10597 if not set no auto inventory will be done if the label db is out of
10598 sync. Reworked MapBarCode, now the parameters are passed as a struct
10599 and the result is returned in this struct (MBC_T),
10600 also removed some duplicate/nonsens code from MapBarCode
10601 Changed the definitions for slot_file. It was used duplicate,
10602 1. as the config file set by amanda.conf, and second set by the
10603 config option in the chg-scsi config file. Now the file from
10604 amanda.conf is called chg_scsi_conf. and changer_file is renamed
10606 Added check if cleanfile is not set, if true clean_file is set to NULL
10607 Now return if tape_device is not in the range 0-9.
10608 Added some checks if we have all informations like slot_file,
10609 devices etc. Fixed and error in the search function,
10610 if the searched vol is already loaded return the correct info
10611 and not 'label not found'. Fixed error in the parameter passing
10612 to get_relative_slot. If the option was -slot last we where
10613 1 above the end parameter..
10615 * changer-src/scsi-bsd.c: Fix compile problems.
10616 * changer-src/scsi-changer-driver.c: Fixed the last problems :-)
10617 for the label/barcode handling...
10618 * changer-src/scsi-defs.h: Added new struct MBC_T
10619 * changer-src/sense.c: Added some more messages for Exabyte 210 lib
10621 2001-09-01 John R. Jackson (jrj@purdue.edu)
10623 * client-src/sendsize.c: Fix memory allocation problem.
10625 2001-08-31 John R. Jackson (jrj@purdue.edu)
10627 * server-src/amindex.c: Fix memory leak. Compliments of Robert Minsk
10628 <egbert@centropolisfx.com>.
10629 * server-src/logfile.c: Fix memory leak. Compliments of Robert Minsk
10630 <egbert@centropolisfx.com>.
10632 2001-08-30 John R. Jackson (jrj@purdue.edu)
10634 * server-src/planner.c: Fix problem with maintenance of total level
10635 0 size when disk being brought back into the schedule was not doing
10636 a level 0. Compliments of Robert Minsk <egbert@centropolisfx.com>.
10638 2001-08-24 John R. Jackson (jrj@purdue.edu)
10640 * server-src/amverify.sh.in: Fix missing backtick error.
10642 2001-08-24 John R. Jackson (jrj@purdue.edu)
10644 * server-src/taper.c: Allocate buffers on page boundaries.
10646 2001-08-22 John R. Jackson (jrj@purdue.edu)
10648 * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
10649 so they end up like all the other Amanda programs.
10651 2001-08-15 Thomas Hepper (th@ant.han.de)
10652 * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
10653 are given to MapBarCode and returned from there. No a struct is passed where all infos
10654 will be returned to the calling function.
10655 If eject is set we will not call LogSense in chg-scsi because it is also called in the
10657 * changer-src/scsi-defs.h: Added struct MBC_T used by MapBarCode.
10658 * changer-src/scsi-changer-driver.c: Changed all calls to MapBarCode to the new way
10660 2001-08-14 John R. Jackson (jrj@purdue.edu)
10662 * docs/EXCLUDE: New document from Andrew Hall <ahall@secureworks.net>
10663 describing how to set up and use GNU tar exclusions.
10664 * docs/Makefile.am: Added EXCLUDE and PORT.USAGE.
10666 2001-08-14 John R. Jackson (jrj@purdue.edu)
10668 * docs/PORT.USAGE: New document about how Amanda ports are used.
10670 2001-08-14 John R. Jackson (jrj@purdue.edu)
10672 * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
10674 2001-08-14 John R. Jackson (jrj@purdue.edu)
10676 * common-src/stream.c: Add stream_client_privileged() function to
10677 get a privileged port and fail if one is not available. The older
10678 stream_client() function gets a (non-privileged) port in the
10679 configured portrange, if set and possible, else anything available.
10680 * common-src/stream.h: Prototypes.
10681 * recover-src/amrecover.c: Use stream_client_privileged() instead of
10683 * recover-src/extract_list.c: Ditto.
10684 * configure.in: Added several more port range sanity checks. Added
10685 --with-tcpportrange as an alias for --with-portrange.
10687 2001-08-09 Thomas Hepper (th@ant.han.de)
10688 * changer-src/chg-scsi.c: Added check in MapBarCode if the labelfile
10689 parameter is empty, and if yes return.
10690 Added global variable do_inventory, and if set do an inventory before
10692 In MapBarCode changed the way the UPDATE_SLOT is done, now it uses
10693 the slot number passed to MapBarCode to find and update the record.
10694 * changer-src/scsi-changer-driver.c: Added def. for BreeceHill Q7
10695 Added global variables which are set by the tape_rdlabel function
10697 Reworked the way how the updates of the labelfile are done.
10699 2001-08-01 John R. Jackson (jrj@purdue.edu)
10701 * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
10703 * client-src/sendbackup-gnutar.c: Ditto.
10704 * client-src/sendsize.c: Ditto.
10706 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
10708 * client-src/findpass.c: Allow backup of subdirs of PC shares for
10709 amanda-2.4.1beta1 by Greg Shebert amanda-hackers list Tue Feb 1,
10710 2000. Ported to amanda-2.4.2p2 on debian potato by Marko Injac.
10711 * client-src/findpass.h: Ditto.
10712 * client-src/selfcheck.c: Ditto.
10713 * client-src/sendbackup-gnutar.c: Ditto.
10714 * client-src/sendsize.c: Ditto.
10715 * docs/SAMBA: Ditto.
10717 2001-08-01 John R. Jackson (jrj@purdue.edu)
10719 * client-src/sendsize.c: Prefix each debug line with sendsize process
10720 information to make picking out the output from a particular estimate
10721 run easier when maxdumps > 1.
10723 2001-08-01 John R. Jackson (jrj@purdue.edu)
10725 * server-src/amcheck.c: Unlink the temp files as soon as they are
10726 created so they always go away when amcheck terminates. Use
10727 pipespawn() instead of system() to call the MAILER program. Call
10728 dbopen()/dbclose() in main() to write to a debug file instead of
10731 2001-08-01 John R. Jackson (jrj@purdue.edu)
10733 * common-src/debug.c: Only rename files that end in ".debug".
10735 2001-08-01 John R. Jackson (jrj@purdue.edu)
10737 * common-src/pipespawn.c: Show empty pipespawn() args as "".
10739 2001-07-31 John R. Jackson (jrj@purdue.edu)
10741 * server-src/conffile.h: Add support for tapetype "blocksize" keyword.
10742 * server-src/conffile.c: Add tapetype "blocksize" keyword. Use
10743 DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE. Disallow
10744 negative tape length and tapemark size.
10745 * common-src/alloc.c: Add new amtable_free() function. Adjust args
10746 to amtable_alloc() to be consistent with amtable_free().
10747 * common-src/amanda.h: Add new am_round() and am_floor() macros.
10748 Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
10749 MAX_TAPE_BLOCK_BYTES constants. Remove TAPE_BLOCK_SIZE and
10751 * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
10752 Use -1 instead of DEFAULT_SIZE.
10753 * common-src/rsh-security.c: Ditto.
10754 * common-src/fileheader.c: Change write_header() to build_header().
10755 Add blocksize arg. Get rid of unused fill_buffer() function.
10756 * common-src/fileheader.h: Ditto.
10757 * common-src/stream.c: Use negative value to indicate default buffer
10759 * common-src/stream.h: Add NETWORK_BLOCK_BYTES and STREAM_BUFSIZE
10760 constants. Remove DATABUF_SIZE and DEFAULT_SIZE.
10761 * man/amanda.8.in: Document the new "blocksize" tapetype keyword.
10762 Document that "length" in tapetype has meaning to some output
10763 drivers. Fix "bumpdays" and "speed" defaults. Document new "file:"
10764 output driver record length data file.
10765 * man/amrestore.8: Add new "-b blocksize" arg. Add description of
10766 how to catalogue the images on a tape.
10767 * recover-src/amrecover.c: DEFAULT_SIZE -> -1.
10768 * recover-src/extract_list.c: DEFAULT_SIZE -> -1. Use DISK_BLOCK_BYTES
10769 instead of TAPE_BLOCK_BYTES for the header size.
10770 * restore-src/amrestore.c: Add new "-b blocksize" arg. Document how
10771 the header is handled. Deal with arbritrary tape record sizes.
10772 * server-src/amlabel.c: Use the tapetype blocksize.
10773 * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
10774 appropropriate instead of older constants. Rewrite disk I/O buffer
10775 management. Never pad output stream (e.g. to holding disk). Use
10776 -1 for default stream buffer size.
10777 * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
10779 * server-src/driverio.c: Set chunker argv[0] to name based on which
10780 dumper it is working with.
10781 * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
10782 appropropriate instead of older constants. Rewrite disk I/O buffer
10783 management. Never pad output stream (e.g. to holding disk). Use
10784 -1 for default stream buffer size.
10785 * server-src/holding.c: Change TAPE_BLOCK_BYTES to DISK_BLOCK_BYTES.
10786 Use fullread() instead of fill_buffer().
10787 * server-src/planner.c: Use tapetype blocksize instead of constant
10788 for tape length calculations.
10789 * server-src/taper.c: Support tapetype blocksize. Only pad writes if
10790 blocksize is negative. Reorganize shared memory buffers to put
10791 data on page boundaries. Try reducing tapebuf count if allocation
10793 * tape-src/output-file.c: Maintain record size information. Use mask
10794 and flags from caller.
10795 * tape-src/output-null.c: Use new amtable_alloc() arg order.
10796 * tape-src/output-rait.c: Use new amtable_alloc() arg order. Add
10797 private version of amtable_free() for standalone build. Fix off
10798 by one and other table allocation problems.
10799 * tape-src/output-rait.h: Maintain file descriptor count in the
10801 * tape-src/tapeio.c: Support tapetype blocksize. Use new
10802 amtable_alloc() arg order. Fix some error message text.
10803 * tape-src/tapeio.h: New prototypes with blocksize arg.
10804 * tape-src/tapetype.c: Add "-b blocksize" arg. Fix some end case
10807 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
10809 * recover-src/amrecover.c: Improve the "Unexpected server end of file"
10812 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
10814 * man/amanda.8.in: Document includefile.
10815 * man/amdump.8.in: Add note that local crontab documention should be
10816 checked for proper syntax.
10817 * man/amrecover.8.in: Document use of PAGER environment variable.
10818 * man/amrestore.8: Document that GNU tar must be used as some vendor
10819 tar programs cannot read GNU tar format.
10820 * docs/FAQ: Update location of online FAQ.
10822 2001-07-25 John R. Jackson <jrj@purdue.edu>
10824 * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
10825 document the new (but optional) searchable features.
10827 2001-07-19 John R. Jackson <jrj@purdue.edu>
10829 * common-src/error.c: Fix function prototype error.
10831 2001-07-19 John R. Jackson <jrj@purdue.edu>
10833 * common-src/error.c: Add new function errordump() that acts like
10834 error() but calls abort() to (try to) drop core.
10835 * common-src/amanda.h: Prototype.
10836 * common-src/alloc.c: Call errordump() instead of error() for some
10837 memory allocation failures to aid traceback.
10839 2001-07-19 John R. Jackson <jrj@purdue.edu>
10841 * server-src/amadmin.c: Improve the error message when read_conffile()
10843 * server-src/amcheck.c: Ditto.
10844 * server-src/amcleanupdisk.c: Ditto.
10845 * server-src/amflush.c: Ditto.
10846 * server-src/amlabel.c: Ditto.
10847 * server-src/amlogroll.c: Ditto.
10848 * server-src/amtape.c: Ditto.
10849 * server-src/amtrmidx.c: Ditto.
10850 * server-src/amtrmlog.c: Ditto.
10851 * server-src/driver.c: Ditto.
10852 * server-src/dumper.c: Ditto.
10853 * server-src/getconf.c: Ditto.
10854 * server-src/planner.c: Ditto.
10855 * server-src/reporter.c: Ditto.
10856 * server-src/taper.c: Ditto.
10858 2001-07-19 John R. Jackson <jrj@purdue.edu>
10860 * server-src/driverio.c: Make the name "ps" reports match the dumper
10861 name (e.g. "dumper3").
10863 2001-07-18 John R. Jackson <jrj@purdue.edu>
10865 * changer-src/chg-chio.pl.in: Try to unload the drive before moving
10866 a tape back to a slot. Fixes a problem on Ecrix AutoPAK devices.
10867 Patch compliments of Sam Leffler <sam@errno.com>.
10869 2001-07-18 John R. Jackson <jrj@purdue.edu>
10871 * server-src/amverify.sh.in: Change to the Amanda temp directory
10872 instead of the config directory. In addition to making amverify
10873 act like most other Amanda programs, this gets around an
10876 2001-07-18 John R. Jackson <jrj@purdue.edu>
10878 * man/amanda.8.in: Describe the .amandahosts format better. Clean up
10879 a couple of minor typos.
10881 2001-07-13 John R. Jackson <jrj@purdue.edu>
10883 * common-src/dgram.h: Improve UDP datagram size calculation.
10884 * server-src/amcheck.c: Break up large requests into pieces.
10885 * server-src/planner.c: Break up large requests into pieces.
10887 2001-07-12 John R. Jackson <jrj@purdue.edu>
10889 * tape-src/amdd.c: Use tapefd_close() in amdd if the file was
10890 opened with tape_open(). This does any necessary output driver
10891 cleanup (such as moving the current file position for "file:").
10893 2001-07-12 John R. Jackson <jrj@purdue.edu>
10895 * Makefile.am: Fix automake warning.
10897 2001-07-11 John R. Jackson <jrj@purdue.edu>
10899 * tape-src/tapetype.c: Use tapefd_write() instead of write().
10901 2001-07-11 John R. Jackson <jrj@purdue.edu>
10903 * common-src/file.c: Fix a memory leak. Grab exponentially larger
10904 chunks of memory up to a point, then level out.
10906 2001-07-11 John R. Jackson <jrj@purdue.edu>
10908 * tape-src/tapetype.c: Only report a pass summary when stderr is not
10909 a tty. Deal with some obscure end cases.
10911 2001-07-10 John R. Jackson <jrj@purdue.edu>
10913 * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
10914 * changer-src/scsi-solaris.c: Ditto.
10916 2001-07-10 John R. Jackson <jrj@purdue.edu>
10918 * server-src/amcheck.c: Move user name check before attempt to create
10919 temp files so more appropriate error message is generated.
10921 2001-07-09 John R. Jackson <jrj@purdue.edu>
10923 * common-src/dgram.c: Fix error end case unitialized variable.
10925 2001-07-05 John R. Jackson <jrj@purdue.edu>
10927 * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
10928 that -slot and -eject unload and put the current tape away.
10930 2001-07-02 John R. Jackson <jrj@purdue.edu>
10932 * changer-src/chg-manual.sh.in: Add yet another ONLINEREGEX, this one
10933 compliments of Nick (n_hibma@qubesoft.com) for some FreeBSD variant.
10935 2001-06-29 John R. Jackson <jrj@purdue.edu>
10937 * tape-src/tapeio.c: Move the device name parsing routines from the
10938 RAIT module to tapeio and make them generic. This allows one
10939 module to open another, e.g. rait:{null:,z1,z2,z3}. Maintain
10940 both the original open flags and mask and use them on the real open.
10941 * tape-src/amdd.c: Make sure this compiles "stand-alone". To do so,
10942 use: gcc -Wall -DNO_AMANDA amdd.c output-rait.c output-tape.c.
10943 Abort as soon as one of the open calls fails instead of waiting
10944 for read/write to report a bad file descriptor.
10945 Pass a mask to the open function in case the output is created.
10946 * tape-src/ammt.c: Make sure this compiles "stand-alone". To do so,
10947 use: gcc -Wall -DNO_AMANDA ammt.c output-rait.c output-tape.c.
10948 * tape-src/output-file.c: Maintain both the original open flags and
10949 mask and use them on the real open.
10950 * tape-src/output-null.c: Ditto.
10951 * tape-src/output-file.h: Change to non-prototype declaration of
10952 file_tape_open() to deal with the optional mask parameter.
10953 * tape-src/output-null.h: Ditto.
10954 * tape-src/output-tape.h: Ditto.
10955 * tape-src/tapeio.h: Ditto. Add device name parsing prototypes.
10956 * tape-src/output-rait.c: Make sure this compiles "stand-alone".
10957 Maintain both the original open flags and mask and use them on the
10959 * tape-src/output-rait.h: Make sure this compiles "stand-alone".
10960 * tape-src/output-tape.c: Make this part of the "stand-alone" compile
10961 of ammt and amdd since it knows all the proper ioctl operations.
10962 Maintain both the original open flags and mask and use them on the
10965 2001-06-27 John R. Jackson <jrj@purdue.edu>
10967 * changer-src/chg-manual.sh.in: Add "bs=32k" to the dd command so
10968 some kernels would not complain about the tape block being larger
10970 * changer-src/chg-mtx.sh.in: Ditto.
10972 2001-06-21 John R. Jackson <jrj@purdue.edu>
10974 * server-src/planner.c: If the compression rate is very small (such
10975 as zero after some types of errors) and FORCE_FULL is set, a path
10976 is taken that (among other bad things) generates a schedule that
10977 driver cannot read (syntax errors).
10978 * server-src/conffile.c: Do not allow negative comprate values.
10980 2001-06-19 John R. Jackson <jrj@purdue.edu>
10982 * server-src/holding.c: Use fullread() instead of read() to read the
10985 2001-06-19 John R. Jackson <jrj@purdue.edu>
10987 * server-src/amtape.c: Document "slot advance" in the help output.
10989 2001-06-19 John R. Jackson <jrj@purdue.edu>
10991 * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
10992 consistent with other Amanda usage.
10994 2001-06-19 John R. Jackson <jrj@purdue.edu>
10996 * server-src/amverify.sh.in: Better cross platform tar detection.
10998 2001-06-19 John R. Jackson <jrj@purdue.edu>
11000 * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
11002 2001-06-19 John R. Jackson <jrj@purdue.edu>
11004 * recover-src/amrecover.c: Add more debugging to guess_disk()
11005 function to better track how the disk is determined from the
11006 current working directory. Report current working directory in
11007 error message. Change "Trying" to "Trying disk" to distinguish
11008 this from host attempts.
11009 * recover-src/set_commands.c: Remove redundant amfree() call. Remove
11010 redundant "OISD /" exchange. Change "Trying" to "Trying host" to
11011 distinguish this from disk attempts.
11013 2001-06-19 Thomas Hepper <th@ant.han.de>
11014 * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
11015 the label db update stuff from the COM_SLOT part (moved to unload
11016 in scsi-changer-driver.c)
11017 * changer-src/scsi-changer-driver.c: Do an unload if the tape is
11018 loaded in the Inventory function. Added an marker to avoid recursion
11019 in Inventroy function. Added label db check in unload function and
11020 call Inventroy if it indicates an out of sync db
11022 2001-06-18 John R. Jackson <jrj@purdue.edu>
11024 * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
11025 flag to vrestore. Some versions do not like it.
11027 2001-06-18 John R. Jackson <jrj@purdue.edu>
11029 * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
11031 * common-src/stream.c: Ditto.
11033 2001-06-18 John R. Jackson <jrj@purdue.edu>
11035 * changer-src/chg-manual.sh.in: Add yet another online regex. Found
11036 by George Herson <gherson@snet.net>.
11038 2001-06-12 Thomas Hepper <th@ant.han.de>
11039 * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
11040 decide how to get the tape drive status.
11041 * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
11042 the tape drive status.
11043 * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
11045 2001-06-10 Thomas Hepper <th@ant.han.de>
11046 * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
11047 return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
11048 is created with an touch)
11049 * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
11050 Fixed an error in the unload function if the destination slot for the unload is not empty.
11051 (cut and paste error !!)
11053 2001-06-07 Thomas Hepper <th@ant.han.de>
11054 * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
11055 In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
11056 In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
11057 * changer-src/scsi-irix.c: Changed a lot, now it should work.
11058 * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part.
11059 * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
11060 is called buf.mt_dposn not buf.mt.dposn.
11062 2001-06-04 Thomas Hepper <th@ant.han.de>
11063 * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
11064 incl. change of passwd parameter.
11066 2001-06-04 Thomas Hepper <th@ant.han.de>
11067 * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
11068 * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic
11069 function to send different ioctls (Tape_Ioctl)
11070 * changer-src/scsi-bsd.c: see above
11071 * changer-src/scsi-hpux_new.c: see above
11072 * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
11073 set pDev[ip].avail to 1.
11074 * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
11075 Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.
11076 * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
11077 Eject the tape in the inventory function before the scan to get all
11078 barcode labels. Check in GenericEject if the device is able to receive
11079 SCSI commands, if not use the ioctl interface to eject the tape.
11080 Same for the GenericRewind function.
11081 Added the LogSense in the GenericEject function.
11082 * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
11084 2001-06-01 John R. Jackson <jrj@purdue.edu>
11086 * server-src/amindexd.c (build_disk_table): Make sure a holding disk
11087 image is used rather than a copy also on tape, if both exist.
11089 2001-06-01 Thomas Hepper <th@ant.han.de>
11090 * changer-src/scsi-changer-driver.c: Added an range check in the load
11091 function and abort if the requested slot is out of range.
11092 Fixed in incorrect pointer in the eject function if the ioctl
11095 2001-05-29 John R. Jackson <jrj@purdue.edu>
11097 * server-src/reporter.c: Fix PostScript output to only show what went
11098 on the tape, not what the total amount dumped. Compliments of
11099 Joshua Baker-LePain <jlb17@duke.edu>.
11101 2001-05-28 Thomas Hepper <th@ant.han.de>
11102 * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
11103 * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
11104 * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
11105 Added debug message if the open fails. Implemented the function Tape_Status (not tested)
11106 * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
11107 during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
11108 needs an offset of 12, not 0 as in GenericElementStatus.
11109 Added an unload/GenericResetStatus in the Inventory function if an bar code reader is
11110 available. This is to get the label from the loaded tape.
11111 The function TapeStatus sets now the status regardless of the status of the tape.
11112 If the device is capable for sending SCSI commands use the SCSI interface to get
11113 the status of the tape.
11114 * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
11115 description on how to use the sgen interface on solaris 2.8
11117 2001-05-18 John R. Jackson <jrj@purdue.edu>
11119 * client-src/patch-system.sh.in: Missed a reference to kamanda in the
11120 last patch. Compliments of Tom Schutter <t.schutter@att.net>.
11122 2001-05-16 John R. Jackson <jrj@purdue.edu>
11124 * client-src/patch-system.sh.in: Go ahead and update /etc/services
11125 on a client even if the services themselves are not turned on to
11126 inetd. Compliments of Tom Schutter <t.schutter@att.net>. Add
11127 the TCP port for amandad for future use.
11129 2001-05-14 John R. Jackson <jrj@purdue.edu>
11131 * client-src/amandad.c: Fix hang when the incoming packet size is
11132 larger than the pipe buffer. Also, report back when too much
11133 data for a packet is returned by the service (this is not properly
11134 diagnosed back to, e.g., amcheck, but that's for another day).
11135 * common-src/bsd-security.c: Fix minor comment error.
11137 2001-05-11 John R. Jackson <jrj@purdue.edu>
11139 * common-src/util.c (bind_portrange): Log a debug message stating
11140 explicitly that all ports in the requested range were busy, or
11141 that a specific port failed bind() for an unexpected reason.
11143 2001-05-07 John R. Jackson <jrj@purdue.edu>
11145 * client-src/sendbackup-dump.c: Do not use full path to sed. Found by
11146 Roland E. Lipovits (rel@lipo.at0.net).
11148 2001-05-07 Thomas Hepper <th@ant.han.de>
11149 * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
11150 * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
11151 GenericElementStatus if there is an error condition. Move from tape to tape to get the
11152 tape loaded if it is only ejected.
11153 * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
11154 * changer-src/scsi-linux.c : Added return type for tape not loaded
11155 * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
11156 databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
11157 The function Tape_Status will now return either tape loaded or not.
11158 * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
11160 * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
11161 how to confgure the sgen driver on solaris 2.8
11163 2001-05-04 John R. Jackson <jrj@purdue.edu>
11165 * config/depcomp: Fix problem with argument* processing and update to
11168 2001-05-01 Thomas Hepper <th@ant.han.de>
11169 * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
11170 * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
11171 known Exabyte libs handles the reader in the same way.
11173 2001-04-28 Thomas Hepper <th@ant.han.de>
11174 * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
11175 Changed the way an tape label is read, use tape_open to open the
11176 device, not own open.
11177 * changer-src/scsi-changer-driver.c : Changed the way an tape label
11178 is read, use tape_open to open the device, not own open.
11179 * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
11180 (/dev/nst0 for example)
11182 2001-04-26 Thomas Hepper <th@ant.han.de>
11184 * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
11186 * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
11187 reads the element Status, and GenericElementStatus which handles the errors.
11188 Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
11189 * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
11190 * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
11191 * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
11193 2001-04-25 John R. Jackson <jrj@purdue.edu>
11195 * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
11196 used to define sbindir. Sigh. Include X=X assignments to get rid
11197 of the Perl warnings.
11198 * server-src/amoverview.pl.in: Ditto.
11200 2001-04-24 John R. Jackson <jrj@purdue.edu>
11202 * changer-src/chg-chio.pl.in: Remove unused exec_prefix to get rid of
11203 warning message. Patch from Nick Hibma <n_hibma@qubesoft.com>.
11205 2001-04-23 John R. Jackson <jrj@purdue.edu>
11207 * client-src/selfcheck.c: Allow Samba shares with no password.
11208 * client-src/sendbackup-gnutar.c: Ditto.
11209 * client-src/sendsize.c: Ditto.
11211 2001-04-15 Thomas Hepper <th@ant.han.de>
11212 * Makefile.am: Added contrib/gsc files to EXTRA_DIST
11214 2001-04-15 Thomas Hepper <th@ant.han.de>
11215 * changer-src/scsi-aix.c: Rework of the SCSI interface, support
11216 to talk to an device handled by the gsc driver (not tested yet)
11217 * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
11218 device handling, Changed the return codes in case of an error
11219 * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in
11220 device handling, Changed the return codes in case of an error
11221 * changer-src/scsi-changer-driver.c: Changed the way
11222 SCSI_ExecuteCommand passes error conditions back, error handling
11223 should now be done by the calling function, SCSI_Run for example.
11224 * changer-src/scsi-changer-driver.c (CheckMove): If the
11225 DeviceCapabilitiesPage is not set do not return an error, print
11226 an warning to the debug file.
11227 * changer-src/scsi-defs.h: New define for AIX_USE_GSC
11228 New defines for the return codes of SCSI_ExecuteCommand
11229 * changer-src/scsi-hpux_new.c: Fix error in device handling.
11230 Changed the return codes in case of an error
11231 * changer-src/scsi-irix.c: Fix error in device handling.
11232 Changed the return codes in case of an error
11233 * changer-src/scsi-solaris.c: Fix error in device handling.
11234 Changed the return codes in case of an error
11236 2001-04-15 Thomas Hepper <th@ant.han.de>
11237 *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
11239 2001-04-13 John R. Jackson <jrj@purdue.edu>
11241 * example/amanda.conf.in: Fix multiple holding disks comment.
11243 2001-04-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11245 * client-src/getfsent.h (search_fstab): New prototype.
11246 * client-src/getfsent.c (search_fstab): New arg check_dev, skip
11247 entry if check_dev==1 and device stats failed.
11248 * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
11249 * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
11250 * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
11251 * client-src/getfsent.c (amname_to_devname, amname_to_dirname,
11252 amname_to_fstype): Call search_fstab sequentialy with 1 and 0
11255 2001-04-10 John R. Jackson <jrj@purdue.edu>
11257 * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
11258 <lhecking@nmrc.ie>.
11260 2001-04-09 Thomas Hepper <th@ant.han.de>
11261 * changer-src/scsi-changer-driver.c: More rework on the debug output.
11262 changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
11263 In function GenericRewind do an check before the rewind to see
11264 if the tape is loaded.
11265 * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
11266 * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
11268 2001-04-08 Alexandre Oliva <aoliva@redhat.com>
11270 * client-src/getfsent.c (search_fstab): Don't skip entry just
11271 because device stats failed.
11273 2001-04-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11275 * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
11276 * config/config.sub: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
11277 * config/mkinstalldirs: Upgrade from automake CVS.
11279 2001-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11281 * config/depcomp: new file for automake.
11283 2001-04-03 John R. Jackson <jrj@purdue.edu>
11285 * Makefile.am: Remove *.test.c from the distribution.
11287 2001-04-02 John R. Jackson <jrj@purdue.edu>
11289 * NEWS: Update some of the 2.4.2 items.
11291 2001-03-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11293 * client-src/getfsent.c (search_fstab): If the device doesn't
11294 exist, it will take the entry from /etc/mtab.
11296 2001-03-26 John R. Jackson <jrj@purdue.edu>
11298 * server-src/amtape.c: Do not rewind for slot "advance". Do not report
11299 device name (which is bogus) for slot "advance".
11301 2001-03-23 John R. Jackson <jrj@purdue.edu>
11303 * example/amanda.conf.in: Add warning that the sample amanda.conf
11304 will not work as is and must be edited to match the installation.
11306 2001-03-21 John R. Jackson <jrj@purdue.edu>
11308 * recover-src/extract_list.c (extract_files_child): Fix problem that
11309 caused xfsrestore arg list to not be NULL terminated.
11311 2001-03-19 John R. Jackson <jrj@purdue.edu>
11313 * configure.in: Add --with-debug-days (default is 4) and remove
11314 --with-pid-debug-files.
11315 * common-src/Makefile.am: Clean up test program dependencies.
11316 * common-src/debug.c: Create timestamped debug file names and remove
11317 files older (based on file name) than --with-debug-days. Rename old
11318 style names to new style (based on modification time) the first time
11320 * common-src/file.c: Use construct_datestamp() instead of private code.
11321 * common-src/genversion.c: Display AMANDA_DEBUG_DAYS and remove
11322 DEBUG_FILE_WITH_PID.
11323 * common-src/util.c: Move construct_datestamp to here and add new
11324 function construct_timestamp. Change time used to build string to
11325 be an optional parameter instead of always getting it in the routine.
11326 * common-src/util.h: Add prototypes.
11327 * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
11328 indication that it should get the current time.
11329 * server-src/amflush.c: Ditto.
11330 * server-src/chunker.c: Ditto.
11331 * server-src/driver.c: Ditto.
11332 * server-src/dumper.c: Ditto.
11333 * server-src/planner.c: Ditto.
11334 * server-src/server_util.c: Remove construct_datestamp (now in util.c).
11335 * server-src/server_util.h: Remove prototype.
11337 2001-03-15 John R. Jackson <jrj@purdue.edu>
11339 * server-src/planner.c (analyze_estimate): Do not do an incremental
11340 if FORCE_NO_BUMP is set and the last dump was a level 0.
11342 2001-03-14 John R. Jackson <jrj@purdue.edu>
11344 * server-src/amcheck.c: Change message from NOTE to WARNING when
11345 the hold file exists.
11346 * man/amcheck.8.in: Ditto.
11348 2001-03-14 John R. Jackson <jrj@purdue.edu>
11350 * client-src/selfcheck.c: Send smbclient via pipe instead of command
11351 line arg. Various minor cleanups. Use pipespawn instead of system()
11352 to clean up quoting problems and be consistent with sendsize and
11354 * client-src/sendbackup-dump.c: Send smbclient via pipe instead of
11355 line arg. Various minor cleanups.
11356 * client-src/sendbackup-gnutar.c: Send smbclient via pipe instead of
11357 line arg. Various minor cleanups. Clean up listed incremental file
11359 * client-src/sendbackup.c: Various minor cleanups.
11360 * client-src/sendsize.c: Send smbclient via pipe instead of command
11361 line arg. Various minor cleanups. Clean up listed incremental file
11363 * docs/SAMBA: Update and cleanup.
11364 * common-src/pipespawn.c: Import from 2.4.2 branch.
11365 * common-src/pipespawn.h: Import from 2.4.2 branch.
11366 * common-src/Makefile.am: Add pipespawn.[ch] references.
11368 2001-03-13 John R. Jackson <jrj@purdue.edu>
11370 * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
11371 argument list processing.
11373 2001-03-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11375 * server-src/dumper.c (read_datafd): set errstr and return on
11376 databuf_write error.
11378 2001-03-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11380 * server-src/dumper.c (read_indexfd): Ignore error while writing
11381 to the index file. Log an L_INFO message.
11383 2001-03-09 John R. Jackson <jrj@purdue.edu>
11385 * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
11386 more places. Run normal protocol after a tape startup error (e.g.
11387 "cannot overwrite") instead of just exiting to keep driver from
11388 reporting a broken pipe.
11390 2001-03-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11391 Reported by Eric Schnoebelen <eric@cirr.com>
11393 * server-src/changer.c (changer_command): Fix fd leak.
11395 2001-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11397 * server-src/server_util.c (cmdstr, getcmd, putresult): New.
11398 * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
11399 * server-src/server_util.h (cmd_t): New.
11400 * server-src/driverio.c (cmdstr): Remove.
11401 * server-src/driverio.c: Use new cmdstr and cmd_t.
11402 * server-src/driverio.h: (tok_t): Remove.
11403 * server-src/amflush.c: Use new cmd_t.
11404 * server-src/driver.c: Use new cmd_t.
11405 * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
11406 * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
11407 * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
11408 * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
11409 * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
11410 * server-src/taper.c: Use new cmd_t, getcmd and putresult.
11412 2001-03-05 John R. Jackson <jrj@purdue.edu>
11414 * common-src/util.c: The fullread() and fullwrite() functions should
11415 call read() and write(), not tapefd_read() and tapefd_write().
11417 2001-02-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11419 * server-src/planner.c (setup_estimate): Don't re-ask for level 0
11420 if last_level is 0 and FORCE_NO_BUMP is set.
11422 2001-02-27 John R. Jackson <jrj@purdue.edu>
11424 * common-src/stream.h: Move DATABUF_SIZE to stream.h.
11425 * client-src/sendbackup.c: Do not ask for a big receive buffer.
11426 * server-src/dumper.c: Ask for a bigger send buffer. Minor typos.
11427 * server-src/taper.c: Ask for a bigger receive buffer.
11428 * recover-src/amrecover.c: Use stream_client instead of specific
11429 (and incorrect) bind() code.
11430 * recover-src/extract_list.c: Ditto.
11432 2001-02-27 John R. Jackson <jrj@purdue.edu>
11434 * common-src/dgram.c: Add lots more error logging to help track down
11437 2001-02-27 John R. Jackson <jrj@purdue.edu>
11439 * common-src/stream.c: Add lots more error logging to help track down
11442 2001-02-27 John R. Jackson <jrj@purdue.edu>
11444 * server-src/amtape.c: Rewind after loading a slot either by slot
11447 2001-02-27 John R. Jackson <jrj@purdue.edu>
11449 * configure.in: Add some commentary about why pushdef/popdef are
11450 needed around AC_CHECK_TYPE.
11452 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11453 Patch by Alex Pilosov <alex@pilosoft.com>
11455 * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
11456 and permit use of both bus:target:lun(btl) and a full
11457 device name (/dev/ch0) as changerdev.
11459 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11460 Patch by Joe Rhett <jrhett@isite.net>
11461 and Jason Hollinden <jhollind@sammg.com>
11463 * changer-src/chg-zd-mtx.sh.in: Added barcode reader support,
11464 >9 tape slot support, variable for 'offline' or 'ONLINE'
11465 return value of tape device, and multi-config support. Moved
11466 all user settable variables to 'changerfile'.conf in the
11467 amanda config directory. Added commented out example of .conf
11470 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11472 * server-src/amindexd.c (uncompress_file): remove uncompressed
11473 index file if the command failed.
11475 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11477 * restore-src/amrestore.c (main): init r to 0.
11479 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11481 * changer-src/scsi-defs.h (PrintConf): Add prototype.
11482 * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
11483 * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
11485 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11487 * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
11489 2001-02-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11491 * server-src/planner.c (setup_estimate): ask for level 0 for
11492 a new disk if force-bump is set,
11493 log force-bump and force-nobump command.
11495 2001-02-17 Thomas Hepper <th@ant.han.de>
11497 * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
11498 based on the information found on the system, works for Linux and BSD with cam
11499 support. New config option debuglevel
11500 * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
11501 to control the amount of information by the config option debuglevel in the config
11502 file (docs follow), not complete yet.
11503 * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
11505 New function DebugPrint to print debug information based on the variable debuglevel.
11506 Replaced a lot of dbprintf with new Function DebugPrint
11507 * changer-src/scsi-aix.c: changed parameter for ScanBus
11508 * changer-src/scsi-irix.c: changed parameter for ScanBus
11509 * changer-src/scsi-solaris.c: changed parameter for ScanBus
11510 * changer-src/scsi-bsd.c: changed parameter for ScanBus
11511 * changer-src/scsi-cam.c: Implemented function ScanBus
11512 * changer-src/scsi-linux.c: Implemented function ScanBus
11514 2001-02-09 John R. Jackson <jrj@purdue.edu>
11516 * server-src/diskfile.c: Fix core dump in test program.
11518 2001-02-09 John R. Jackson <jrj@purdue.edu>
11520 * tape-src/output-file.c: Use a "data" subdirectory of the main
11521 file driver device directory to hold the tape "files". This
11522 allows the status file to be moved to the main directory.
11523 * man/amanda.8.in: Document these changes.
11525 2001-02-08 Thomas Hepper <th@ant.han.de>
11527 * changer-src/scsi-aix.c: Added dummy ScanBus function
11528 * changer-src/scsi-bsd.c: Added dummy ScanBus function
11529 * changer-src/scsi-cam.c: Added dummy ScanBus function
11530 * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
11531 * changer-src/scsi-irix.c: Added dummy ScanBus function
11532 * changer-src/scsi-defs.h: Added prototype for ScanBus function
11534 2001-02-04 John R. Jackson <jrj@purdue.edu>
11536 * man/amanda.8.in: Fix mailto to space separated, not comma.
11538 2001-02-03 John R. Jackson <jrj@purdue.edu>
11540 * .cvsignore: Add entries to keep CVS quiet.
11541 * */.cvsignore: Ditto.
11543 2001-02-03 John R. Jackson <jrj@purdue.edu>
11545 * client-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
11546 * common-src/Makefile.am: Add more sources as needed to the test
11547 programs so they would compile.
11548 * server-src/Makefile.am: Create TEST_PROGS make variable ala the
11549 other Makefile.am files.
11550 * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
11552 2001-02-03 John R. Jackson <jrj@purdue.edu>
11554 * server-src/diskfile.c: Fix test program compilation error and bug
11555 when just a config name was given on the command line.
11557 2001-02-02 John R. Jackson <jrj@purdue.edu>
11559 * server-src/reporter.c: Fix problem with enum being unsigned on
11562 2001-01-29 John R. Jackson <jrj@purdue.edu>
11564 * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
11567 2001-01-29 John R. Jackson <jrj@purdue.edu>
11569 * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
11570 to booleans (compliments of Marc W. Mengel <mengel@fnal.gov>).
11571 * tape-src/tapeio.c (tape_fsf): Use ap_snprintf instead of snprintf
11572 (also compliments of Marc).
11574 2001-01-26 John R. Jackson <jrj@purdue.edu>
11576 * changer-src/Makefile.am: Double up the references to libamanda to
11577 handle systems that put regex in strange places.
11578 * client-src/Makefile.am: Ditto.
11579 * recover-src/Makefile.am: Ditto.
11580 * restore-src/Makefile.am: Ditto.
11581 * server-src/Makefile.am: Ditto.
11582 * tape-src/Makefile.am: Ditto.
11584 2001-01-23 John R. Jackson <jrj@purdue.edu>
11586 * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
11587 enhance and add "null" and "file" output drivers. Change all
11588 tape changers (except chg-scsi) to use amdd and ammt. Change all
11589 tape changers (except chg-scsi) to log and use a consistent
11590 error reporting scheme. Fix various bugs along the way. Add new
11591 chg-multi config option, posteject, which is an optional script
11592 to call after each "tape" is ejected (e.g. to use to start a
11593 CDROM writer). Remove special code for tapedev of /dev/null
11594 (now handled by the "null" output driver). Changed the taper
11595 protocol to pass the host/disk/level so the write can send that
11596 along to the output driver. Fairly major rework of amrestore
11597 to clean up tape/non-tape and other oddities.
11598 * changer-src/chg-chio.pl.in: Ditto.
11599 * changer-src/chg-chs.sh.in: Ditto.
11600 * changer-src/chg-manual.sh.in: Ditto.
11601 * changer-src/chg-mtx.sh.in: Ditto.
11602 * changer-src/chg-multi.sh.in: Ditto.
11603 * changer-src/chg-rth.pl.in: Ditto.
11604 * changer-src/chg-zd-mtx.sh.in: Ditto.
11605 * client-src/sendbackup.c: Ditto.
11606 * common-src/alloc.c: Ditto.
11607 * common-src/amanda.h: Ditto.
11608 * docs/INTERNALS: Ditto.
11609 * man/Makefile.am: Ditto.
11610 * man/amanda.8.in: Ditto.
11611 * man/amdd.8: Ditto.
11612 * man/ammt.8: Ditto.
11613 * restore-src/amrestore.c: Ditto.
11614 * server-src/amcheck.c: Ditto.
11615 * server-src/amlabel.c: Ditto.
11616 * server-src/amtape.c: Ditto.
11617 * server-src/amverify.sh.in: Ditto.
11618 * server-src/conffile.c: Ditto.
11619 * server-src/conffile.h: Ditto.
11620 * server-src/taper.c: Ditto.
11621 * tape-src/Makefile.am: Ditto.
11622 * tape-src/amdd.c: Ditto.
11623 * tape-src/ammt.c: Ditto.
11624 * tape-src/output-file.c: Ditto.
11625 * tape-src/output-file.h: Ditto.
11626 * tape-src/output-null.c: Ditto.
11627 * tape-src/output-null.h: Ditto.
11628 * tape-src/output-rait.c: Ditto.
11629 * tape-src/output-rait.h: Ditto.
11630 * tape-src/output-tape.c: Ditto.
11631 * tape-src/output-tape.h: Ditto.
11632 * tape-src/tapeio.c: Ditto.
11633 * tape-src/tapeio.h: Ditto.
11634 * tape-src/tests/amtapeio.test.000: Ditto.
11635 * tape-src/tests/amtapeio.test.001: Ditto.
11636 * tape-src/tests/amtapeio.test.002: Ditto.
11637 * tape-src/tests/amtapeio.test.003: Ditto.
11638 * tape-src/tests/amtapeio.test.004: Ditto.
11639 * tape-src/tests/amtapeio.test.005: Ditto.
11640 * tape-src/tests/amtapeio.test.006: Ditto.
11641 * tape-src/tests/amtapeio.test.007: Ditto.
11642 * tape-src/tests/amtapeio.test.008: Ditto.
11643 * tape-src/tests/amtapeio.test.009: Ditto.
11644 * tape-src/tests/amtapeio.test.010: Ditto.
11645 * tape-src/tests/amtapeio.test.011: Ditto.
11646 * tape-src/tests/amtapeio.test.012: Ditto.
11647 * tape-src/tests/amtapeio.test.013: Ditto.
11648 * tape-src/tests/amtapeio.test.014: Ditto.
11649 * tape-src/tests/amtapeio.test.015: Ditto.
11650 * tape-src/tests/amtapeio.test.016: Ditto.
11651 * tape-src/tests/amtapeio.test.017: Ditto.
11652 * tape-src/tests/amtapeio.test.018: Ditto.
11653 * tape-src/tests/cleartape: Ditto.
11654 * tape-src/tests/newtest: Ditto.
11655 * tape-src/tests/rerun: Ditto.
11656 * tape-src/tests/runtest: Ditto.
11657 * tape-src/tests/testdist: Ditto.
11658 * tape-src/tests/torture: Ditto.
11660 2001-01-24 John R. Jackson <jrj@purdue.edu>
11662 * client-src/amandad.c: Improve packet logging.
11664 2001-01-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11666 * server-src/driver.c (start_some_dumps): typo.
11668 2001-01-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11670 * server-src/driverio.h (sched_t): new field no_space.
11671 * server-src/driver.c (start_some_dumps): don't start a disk if
11673 * server-src/driver.c (continue_dumps): set no_space if it's the
11674 only active dumpers, case c.
11675 * server-src/driver.c (read_schedule): set no_space to 0.
11677 2001-01-23 John R. Jackson <jrj@purdue.edu>
11679 * configure.in: Test for setmntent.
11680 * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
11681 changes that indirectly reference the device for a file system.
11683 2001-01-22 Marc W. Mengel <mengel@fnal.gov>
11685 * recover-src/extract_list.c: Added -U to tar recover options
11686 to reduce errors recovering shared libs and/or binaries on
11687 active filesystems.
11689 2001-01-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11691 * docs/INSTALL: Notes about tar-1.13.19
11693 2001-01-17 Thomas Hepper <th@ant.han.de>
11695 * changer-src/chg-scsi.c: Moved definitions for config_t and
11696 changer_t into scsi-defs.h
11697 * changer-src/chg-scsi.c: New config option havebarcode
11698 * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
11699 the option havebarcode. Replaced NoBarCode with GenericBarCode.
11700 Fixed compile warnings from -Wshadow
11701 * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
11703 * changer-src/scsi-solaris.c: Changed the return value to
11704 Command.uscsi_status in SCSI_ExecuteCommand if the return from the
11707 2001-01-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11709 * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and
11710 "DATESTAMP EXPRESSION".
11711 * man/amadmin.8.in: Document new usage.
11712 * man/amflush.8.in: Document new usage.
11713 * man/amcheck.8.in: Document new usage.
11714 * man/amdump.8.in: Document new usage.
11715 * man/amrestore.8: Document new usage.
11716 * server-src/amadmin.c: Fix usage.
11717 * server-src/amflush.c: Fix usage.
11718 * server-src/amcheck.c: Fix usage.
11720 2001-01-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11722 * server-src/diskfile.c (match_disklist): Return if no args.
11724 2001-01-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11726 * server-src/diskfile.c (match_disklist): Fix.
11728 2001-01-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11730 * server-src/diskfile.c (match_disklist): Updated for
11731 [host [disk]*]* syntax.
11733 2001-01-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11735 * common-src/match.c (match_datestamp): New function.
11736 * common-src/amanda.h (match_datestamp): Prototype.
11737 * server-src/amflush.c: Use match_datestamp.
11738 * restore-src/amrestore.c: Use match_datestamp.
11740 2001-01-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11742 * common-src/match.c (match_word): Support for leading ^ and
11745 2001-01-04 John R. Jackson <jrj@purdue.edu>
11747 * common-src/error.c (error): If the debug file pointer is set, log
11748 any fatal error message to it and close the file so it has a good
11749 trace of what happened and when.
11751 2001-01-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11753 * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
11754 * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
11755 * taper-src/output-rait.c: include "tapeio.h", new define for
11757 * taper-src/tapeio.c(many): Remove unused tfd variable.
11758 * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
11760 2001-01-04 John R. Jackson <jrj@purdue.edu>
11762 * client-src/killpgrp.c: Calls to error() do not need a newline.
11764 2001-01-04 John R. Jackson <jrj@purdue.edu>
11766 * man/amanda.8.in: Try to make it clearer that dumpcycle and maxdumps
11767 changes in the main part of the config file must appear before any
11768 dumptype definitions, and also that inherited dumptypes must appear
11769 before their reference.
11771 2001-01-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11773 * server-src/driver.c (continue_dumps): Don't reduce est_size if
11774 it is already larger than holding space allocated.
11775 * server-src/dumper.c: Remove all code for FILE_DUMP command.
11776 * server-src/chunker.c: Better handling of ENOSPC from
11777 write_tapeheader().
11779 2001-01-04 John R. Jackson <jrj@purdue.edu>
11781 * server-src/conffile.c (main): Fix conffile test program so it builds
11784 2001-01-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11786 * changer-src/scsi-defs.h (ChangerCMD_T): replace array function
11787 pointer by enumerated pointers.
11788 * changer-src/scsi-changer-driver.c: Use new calling convention.
11790 2001-01-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11792 * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
11793 ABORT-FINISHED result.
11795 2001-01-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11797 * server-src/amflush.c: Use getopt to parse argument.
11798 * server-src/amflush.c: New [-D date]* argument.
11799 * man/amflush.8.in: Document it.
11801 2001-01-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11802 Patch by Andreas F Mueller <afm@othello.ch>
11804 * server-src/amadmin.c (force_no_bump_one): Fix message.
11806 2001-01-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11808 * tape-src/am-dd.c: include "amanda.h"
11809 * tape-src/am-mt.c: include "amanda.h"
11810 * tape-src/am-mt.c (main): res is int.
11811 * tape-src/output-rait.c: include "amanda.h", do not define stderr.
11812 * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
11813 argument should be "char *"
11814 * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
11815 argument should be "const char *"
11817 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11819 * server-src/find.c (find_match): Use todo bit.
11820 * server-src/find.c (find_dump): No arguments.
11821 * server-src/find.h (find_dump): Change prototype.
11822 * server-src/amadmin.c (find): New [host disk]* pair arguments.
11823 * server-src/amindexd.c: Change call to find_dump().
11824 * server-src/amtrmidx.c: Change call to find_dump().
11826 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11828 * configure.in: Don't check krb5 include if krb5 is not selected.
11830 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11832 * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
11834 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11836 * server-src/amadmin.c (diskloop): typo.
11838 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11840 * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
11841 * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
11842 instead of argv[0].
11844 2000-12-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11846 * server-src/amflush.c (main):log DISK after checking if logfile exist.
11848 2000-12-30 John R. Jackson <jrj@purdue.edu>
11850 * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
11851 when things go wrong. Add support for "bsdsecurity" test program
11853 * common-src/Makefile.am: Ditto.
11854 * common-src/amanda.h: Ditto.
11855 * restore-src/amidxtaped.c: Ditto.
11856 * server-src/amindexd.c: Ditto.
11858 2000-12-30 John R. Jackson <jrj@purdue.edu>
11860 * ChangeLog: Bring Jean-Louis into the right month :-).
11861 * changer-src/scsi-changer-driver.c: Untested changes to at least
11862 get the code to compile on Solaris and to remove some warnings.
11863 * changer-src/scsi-defs.h: Ditto.
11864 * changer-src/scsi-solaris.c: Ditto.
11866 2000-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11868 * server-src/diskfile.c (add_disk): New function.
11869 * server-src/diskfile.h (add_disk): Prototype.
11870 * server-src/logfile.h (logtype_e): add L_DISK.
11871 * server-src/logfile.c (logtype_str): add "DISK".
11872 * server-src/amflush.c (main): log DISK.
11873 * server-src/planner.c (main): log DISK.
11874 * server-src/reporter.c: use DISK if available.
11876 2000-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11878 * server-src/amcheck.c: New [host disk]* pair arguments.
11879 * server-src/amflush.c: Ditto.
11880 * server-src/planner.c: Ditto.
11881 * server-src/amdump.sh.in: Ditto.
11882 * server-src/amrestore.c: Use new host/disk matcher.
11883 * man/amcheck.8.in: Document new [host disk]* pair arguments.
11884 * man/amflush.8.in: Ditto.
11885 * man/amdump.8.in: Ditto.
11887 2000-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11889 * server-src/diskfile.c (match_disklist): new function.
11890 * server-src/diskfile.h (struct disk_s): new field todo.
11891 * server-src/diskfile.h (match_disklist): prototype.
11893 2000-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11895 * common-src/match.c (match_word, match_host, match_disk):
11897 * common-src/amanda.h (match_host, match_disk): prototype.
11899 2000-12-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11901 * server-src/planner.c (analyze_estimate): pick incremental level
11902 if no estimate of level 0.
11904 2000-12-28 Marc W. Mengel <mengel@fnal.gov>
11905 * changer-src/chg-juke.sh.in: New File
11906 * changer-src/Makefile.am: Added support for chg-juke.
11907 * docs/TAPE.CHANGERS: Likewise.
11908 * configure.in: Likewise.
11910 2000-12-24 John R. Jackson <jrj@purdue.edu>
11912 * server-src/getconf.c: Fix free() of static text string (BUGGY) when
11913 the parameter being looked up is bad.
11915 2000-12-23 David Wolfskill <dhw@whistle.com>
11917 * server-src/amcheck.c (start_server_check): Change directory
11918 writable check to be for the tapelist directory instead of
11919 the config file directory. Remove config file directory test.
11920 * man/amcheck.8.in: Add mention of tapelist directory and do
11921 some other directory writable cleanup.
11923 2000-12-12 John R. Jackson <jrj@purdue.edu>
11925 * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
11928 2000-12-12 John R. Jackson <jrj@purdue.edu>
11930 * Makefile.am: Work around problem with automake 1.4 not including
11932 * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
11933 Work around problem with automake 1.4 not including pkgdata_DATA.
11934 * tape-src/rait.h: Renamed to rait.h.
11935 * tape-src/rait.c: Renamed to rait.c.
11936 * tape-src/output-rait.h: Renamed from rait.h.
11937 * tape-src/output-rait.c: Renamed from rait.c.
11938 * tape-src/Makefile.am: Reflect the new rait.[ch] names.
11939 * tape-src/tapeio.c: Use output-rait.h name. Minor typo changes.
11941 2000-12-08 Marc Mengel <mengel@fnal.gov>
11943 * docs/RAIT: New file.
11944 * docs/VTAPE-API: New file.
11945 * tape-src/rait.c: New File providing RAIT virtual tape type.
11946 * tape-src/tapeio.c: Major Surgery.
11947 (vtable): New static table of virtual tape types.
11948 (fdtable): New static table mapping file descriptors.
11949 (tapefd_fsf_ioctl): Renamed tapefd_fsf, with added ioctl argument.
11950 (tapefd_rewind_ioctl): Likewise.
11951 (tapefd_unload_ioctl): Likewise.
11952 (tapefd_weof_ioctl): Likewise.
11953 (tapefd_status_ioctl): Likewise.
11954 (tape_open): Now is a virtual tape table lookup and call.
11955 (tape_access): Now is a switch through virtual tape table.
11956 (tape_stat): Likewise.
11957 (tapefd_close): Likewise.
11958 (tapefd_fsf): Likewise.
11959 (tapefd_read): Likewise.
11960 (tapefd_rewind): Likewise.
11961 (tapefd_resetofs): Likewise.
11962 (tapefd_unload): Likewise.
11963 (tapefd_status): Likewise.
11964 (tapefd_weof): Likewise.
11965 (tapefd_write): Likewise.
11966 (plain_tape_access): Rename of tape_access.
11967 (plain_tape_open): Likewise.
11968 (plain_tapefd_read): Likewise.
11969 (plain_tape_stat): Likewise.
11970 (plain_tapefd_write): Likewise.
11971 (plain_tapefd_close): Likewise.
11972 (plain_tapefd_fsf): Now calls tapefd_fsf_ioctl with &ioctl().
11973 (plain_tapefd_rewind): Likewise.
11974 (plain_tapefd_resetofs): Likewise.
11975 (plain_tapefd_unload): Likewise.
11976 (plain_tapefd_status): Likewise.
11977 (plain_tapefd_weof): Likewise.
11979 2000-12-04 John R. Jackson <jrj@purdue.edu>
11981 * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
11984 2000-12-04 John R. Jackson <jrj@purdue.edu>
11986 * server-src/conffile.c (read_conffile_recursively): If the file name
11987 for the includefile directive is not absolute, make it relative to
11988 the configuration directory.
11990 2000-12-03 John R. Jackson <jrj@purdue.edu>
11992 * restore-src/amrestore.c: Fix header when compression is included.
11993 Use "fast" option for -c and add new -C option to get "best".
11994 * man/amrestore.8: Document the new option, the compression level,
11995 and clean up some nroff issues.
11997 2000-11-30 Marc Mengel <mengel@fnal.gov>
11999 * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
12000 * changer-src/chg-chs.sh.in: Likewise.
12001 * changer-src/chg-manual.sh.in: Likewise.
12002 * changer-src/chg-mtx.sh.in: Likewise.
12003 * changer-src/chg-multi.sh.in: Likewise.
12004 * changer-src/chg-rth.pl.in: Likewise.
12005 * changer-src/chg-zd-mtx.sh.in: Likewise.
12006 * tape-src/am-dd.c: New file. Replacement for dd.
12007 * tape-src/am-mt.c: New file. replacement for mt.
12008 * tape-src/Makefile.am: Add build for am-mt and am-dd.
12009 * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status,
12010 tapefd_status): New functions.
12011 (tape_rewind, tape_fsf, tape_rdlabel): Change error message
12012 for tape being offline so it matches online/offline regex
12013 in changer scripts.
12014 (tape_open): Ifdef-out mode flag clearing, so you can pass
12015 O_TRUNC, etc. in for am-dd.
12017 2000-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12019 * common-src/util.c: #include "../tape-src/tapeio.h"
12020 * tape-src/tapeio.c(tapefd_write): second arg is const.
12021 * tape-src/tapeio.h(tapefd_write): Likewise.
12022 * common-src/event.c(event_loop): declare entry if ASSERT is defined.
12023 * changer-src/chg-scsi.c: Fix compiler warning.
12024 * changer-src/scsi-aix.c: Likewise.
12025 * changer-src/scsi-bsd.c: Likewise.
12026 * changer-src/scsi-cam.c: Likewise.
12027 * changer-src/scsi-changer-driver.c: Likewise.
12028 * changer-src/scsi-defs.h: Likewise.
12029 * changer-src/scsi-hpux.c: Likewise.
12030 * changer-src/scsi-hpux_new.c: Likewise.
12031 * changer-src/scsi-irix.c: Likewise.
12032 * changer-src/scsi-linux.c: Likewise.
12033 * changer-src/scsi-solaris.c: Likewise.
12034 * changer-src/sense.c: Likewise.
12036 2000-11-22 John R. Jackson <jrj@purdue.edu>
12038 * contrib/dbbackup.ksh: Deal with adm being a symlink.
12039 * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
12041 2000-11-22 John R. Jackson <jrj@purdue.edu>
12043 * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
12044 of files to put in a distribution.
12046 2000-11-21 John R. Jackson <jrj@purdue.edu>
12048 * recover-src/extract_list.c (extract_files_child): Add support for
12051 2000-11-21 John R. Jackson <jrj@purdue.edu>
12053 * server-src/amcheck.c: Minor message wording changes.
12055 2000-11-21 John R. Jackson <jrj@purdue.edu>
12057 * configure.in: Forgot to check in this part of new amgetconf.8.in.
12059 2000-11-21 John R. Jackson <jrj@purdue.edu>
12061 * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
12062 * contrib/sst/sst.c: Attempt at letting gcc compile sst.
12064 2000-11-21 John R. Jackson <jrj@purdue.edu>
12066 * man/amgetconf.8.in: New man page.
12067 * man/Makefile.am: Add support for amgetconf.8.in.
12068 * man/amadmin.8.in: Update for 2.4.2 and do general cleanup.
12069 * man/amanda.8.in: Ditto.
12070 * man/amcheck.8.in: Ditto.
12071 * man/amcheckdb.8.in: Ditto.
12072 * man/amcleanup.8.in: Ditto.
12073 * man/amdump.8.in: Ditto.
12074 * man/amflush.8.in: Ditto.
12075 * man/amlabel.8.in: Ditto.
12076 * man/amrecover.8.in: Ditto.
12077 * man/amreport.8.in: Ditto.
12078 * man/amrestore.8: Ditto.
12079 * man/amrmtape.8.in: Ditto.
12080 * man/amstatus.8.in: Ditto.
12081 * man/amtape.8: Ditto.
12082 * man/amtoc.8.in: Ditto.
12083 * man/amverify.8.in: Ditto.
12085 2000-11-21 John R. Jackson <jrj@purdue.edu>
12087 * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
12089 2000-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12091 * server-src/amdump.sh.in: exit if amgetconf exit with status != 0.
12092 * server-src/amcleanup.sh.in: ditto
12093 * server-src/amstatus.pl.in: ditto
12095 2000-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12097 * server-src/driver.c (start_some_dumps): don't check free_kps if
12099 * server-src/driver.c (free_kps): remove the kludge.
12101 2000-11-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12103 * server-src/conffile.c: It's an error to have a negative chunksize.
12104 * man/amanda.8.in: remove documentation of negative chunksize.
12105 * example/amanda.conf.in: ditto
12106 * example/amanda.conf.chg-scsi.in:ditto
12107 * NEWS: negative chunksize is no longer supported.
12109 2000-11-03 John R. Jackson <jrj@purdue.edu>
12111 * server-src/driver.c (handle_taper_result): the holding disk entry
12112 should not be removed just because taper could not write it out in
12113 the "too many taper retries" case. It should be left for amflush.
12115 2000-11-01 John R. Jackson <jrj@purdue.edu>
12117 * server-src/amverify.sh.in: use common form for getting the first
12118 line of a file/pipe. Sed is more portable than head.
12120 2000-10-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12122 * client-src/selfcheck.c (check_disk): Write an appropriate
12123 message if the disk name start with '//' and the program is DUMP
12124 or SAMBA is not compiled in.
12126 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12128 * server-src/driver.c (handle_chunker_result): The dumpsize is
12129 the third argument, not the fourth.
12131 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12133 * server-src/driver.c (handle_chunker_result): don't check
12134 pending_aborts, call event_release() ob ABORT-FINISHED.
12136 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12138 * server-src/chunker.c (databuf_flush): workaround to prevent a
12139 hang on a ABORT command.
12141 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12143 * server-src/driver.c (continue_dumps): set estimate to more than
12144 what is already use instead of setting no_hold=1 when a disk
12145 don't fit on holding disk.
12147 2000-10-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12149 * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
12151 2000-10-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12153 * server-src/amstatus.pl.in: add '&' when calling &usage()
12156 2000-10-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12157 reported by The Hermit Hacker <scrappy@hub.org>
12159 * changer-src/chg-chio.pl.in: remove unused $libexecdir.
12161 2000-10-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12162 reported by The Hermit Hacker <scrappy@hub.org>
12164 * changer-src/chg-chio.pl.in: remove comma after LOG,
12165 typo: r should be 0.
12167 2000-10-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12169 * docs/INDEXING: doc updated.
12171 2000-10-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12173 * AUTHORS: add Thomas Hepper.
12175 2000-10-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12177 * server-src/driverio.c (chunker_cmd): send ABORT command.
12179 2000-10-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12181 * server-src/amverify.sh.in: grep only the first line of the header.
12183 2000-10-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12185 * server-src/amverify.sh.in: verify with tar even if the
12186 server and the client are not configured with the same path.
12188 2000-10-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12190 * NEWS: A new `ctimeout' keyword in amanda.conf to replace
12191 the CHECK_TIMEOUT constant in amcheck.c.
12193 2000-10-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12195 * server-src/amlabel.c: Don't set tape_ok to 0 if
12196 tape_wrlabel is successful.
12198 2000-10-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12200 * server-src/taper.c: amfree(strclosing).
12202 2000-10-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12204 * server-src/driver.c: typo.
12206 2000-10-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12208 * configure.in: --with-samba-user is deprecated.
12209 * docs/SAMBA: the username is now on the amandapass file.
12210 * NEWS: the username is now on the amandapass file.
12211 * client-src/findpass.c (findpass): accept "*" as diskname.
12212 * client-src/selfcheck.c (check_disk): call to samba changed.
12213 * client-src/sendsize.c (getsize_smbtar): ditto.
12214 * client-src/sendbackup-gnutar.c (start_backup): ditto.
12215 * recover-src/extract_list.c (extract_files_child): ditto.
12217 2000-10-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12219 * server-src/taper.c: give better message when failing
12222 2000-10-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12224 * server-src/diskfile.c (headqueue_disk): new function to
12225 insert at the head of the queue.
12226 * server-src/diskfile.h (headqueue_disk): prototype.
12227 * server-src/driver.c (taper_queuedisk): insert with
12228 headqueue_disk() if disk already attempted.
12230 2000-10-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12232 * AUTHORS: fix my email address.
12234 2000-09-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12236 * server-src/amcheck.c: Don't accept -m or -M option if MAILER
12238 * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
12240 2000-09-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12241 patch by <jeg@time.ucsc.edu>
12243 * server-src/reporter.c (output_summary): check for tape_labels.
12245 2000-09-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12247 * server-src/amindexd.c: use strcasecmp to compare hostname.
12249 2000-09-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12251 * server-src/amstatus.pl.in: fix plural misuse.
12253 2000-09-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12255 * man/amanda.8.in: add all pages in the SEE ALSO section.
12257 2000-09-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12259 * man/amreport.8.in: amreport does not rotate the log.
12260 * man/amrestore.8: note on holdingdisk.
12261 * restore-src/amrestore.c: update usage.
12262 * server-src/amrmtape.sh.in: update usage.
12263 * server-src/amverify.sh.in.usage: update usage.
12265 2000-09-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12267 * server-src/amoverview.pl.in: update usage information,
12268 -config is no longer needed for ccompatibility with other program.
12269 * man/amoverview.8.in: -config is no longer needed.
12271 2000-09-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12273 * example/amanda.conf.in: chunk should not be larger than
12274 MAX_FILE_SIZE - 1Mb.
12276 2000-09-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12278 * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
12280 * server-src/amlabel.c (main): init errstr to NULL,
12281 fix compiler warning.
12283 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12284 patch by jason Thomas <jet@users.sourceforge.net>
12286 * tape-src/tapetype.c: fix help message.
12288 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12289 patch by Rudolf Cejka <cejkar@users.sourceforge.net>
12291 * common-src/file.c (mkpdir): check p != NULL
12292 * man/amstatus.8.in: typo
12294 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12295 patch by Rudolf Cejka <cejkar@users.sourceforge.net>
12297 * client-src/calcsize.c:sets correct program name,
12298 prevent coredumps and some improrer command line error mesages
12300 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12302 * common-src/amanda.h: prototype clean_regex().
12303 * common-src/match.c: new function clean_regex() that escape
12304 all non-alphanumeric character.
12305 * recover-src/extract_list.c (add_file, delete_file): use clean_regex().
12307 2000-09-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12309 * server-src/amcheck.c: (start_server_check): check for the oldlog
12312 2000-09-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12314 * server-src/amtrmlog.c: better check of the oldlog directory.
12316 2000-09-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12318 * server-src/amcheck.c: (start_server_check): don't check the tape
12319 if tapedev is /dev/null.
12321 2000-09-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12323 * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
12325 2000-07-31 Thomas Hepper <th@ant.han.de>
12326 * changer-src/chg-scsi.c: Rework of the device handling.
12327 Every device is opend for an operation and than closed.
12328 This will hopefully fix the problems with openening the tape device
12329 and the SCSI control device for the tape
12330 new option emubarcode (see docs/TAPE.CHANGERS)
12331 * changer-src/scsi-cam.c: Changed to work with the new device handling.
12332 * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
12333 * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
12334 * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
12335 * changer-src/scsi-linux.c: Changed to work with the new device handling.
12336 * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
12337 * changer-src/scsi-defs.h: Changed to work with the new device handling
12338 2000-07-18 John R. Jackson <jrj@purdue.edu>
12340 * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
12341 function to return a string instead of writing to stdout.
12343 2000-07-18 John R. Jackson <jrj@purdue.edu>
12345 * server-src/taper.c (file_reader_side): detach and destroy shared
12346 memory areas on an error condition. Found by Patrik Andersin
12349 2000-07-17 Thomas Hepper <th@ant.han.de>
12350 * docs/TAPE.CHANGERS: Added some notes for the cam driver
12351 * changer-src/scsi-cam.c: New syntax for telling scsi ids
12353 SCSI_ExecuteCommand now returns the correct sense buffer.
12355 2000-07-17 Thomas Hepper <th@ant.han.de>
12356 * configure.in: Added check for BSD SCSI CAM Support
12357 * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
12358 ( at the moment for FreeBSD 4.0)
12359 * changer-src/Makefile.am: added scsi-cam.s to the list of sources
12360 * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
12361 allocated in chg-scsi and passed to OpenDevice.
12362 * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
12365 2000-07-10 Marc Mengel <mengel@fnal.gov>
12366 * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
12367 on tape device names
12368 * tape-src/tapeio.h -- add tape_{stat,access} prototypes
12369 * common-src/util.c -- call tape_{read,write}() in full{read,write}()
12370 * restore-src/amidxtaped.c -- use tape_stat() on tapename
12371 * restore-src/amrestore.c -- use tape_stat() on tapename
12372 * server-src/amcheck.c -- use tape_access() on tapename
12373 * client-src/Makefile.am -- now needs libamtape.a twice
12374 * server-src/Makefile.am -- now needs libamtape.a twice
12375 * recover-src/Makefile.am -- now needs libamtape.a twice
12376 * Makefile.am -- tape-src before client-src
12378 2000-07-05 Thomas Hepper <th@ant.han.de>
12379 * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
12380 * changer-src/scsi-changer-driver.c (OpenFile):
12381 if the ident ist set in the config set this in the internal device
12383 * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
12384 changed the type for the info text from char * to char ** which
12385 is passwd to Sense2Action
12386 * changer-src/scsi-changer-driver.c (ChangerStatus):
12387 fixed the bug which causes an core dump for chg-scsi -status robot
12388 if an bar code reader is detected. Fixed also the bug that the
12389 mapping Label -> Barcode was not displayed.
12390 * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
12391 * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
12392 * changer-src/sense.c (Sense2Action); Fixed the handling if no match
12393 was found (fall back to the generic description)
12395 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12397 * server-src/list_dir.c (add_dir_list_item): add at head of list.
12399 2000-06-24 Thomas Hepper <th@ant.han.de>
12400 * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2
12401 * changer-src/chg-scsi.c: Merged changes from 2.4.2
12402 * changer-src/sense.c: New file. Contains an table and function for the
12403 mapping of sense/ASC/ASCQ conditions from the SCSI sense.
12404 * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
12405 Changed handling for the sense keys. Now there is only one function
12406 to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
12407 * changer-src/Makefile.am: Added sense.c to the source list.
12408 * changer-src/scsi-solaris.c: Merged changes from 2.4.2
12409 * changer-src/scsi-linux.c: Merged changes from 2.4.2
12410 * changer-src/scsi-irix.c: Merged changes from 2.4.2
12411 * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2
12412 * changer-src/scsi-defs.h: Merged changes from 2.4.2
12414 2000-06-12 Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
12416 * server-src/amlabel.c (main): Do not amfree(config_name).
12418 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12420 * server-src/holding.c (pick_datestamp): convert ch to upper.
12422 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12424 * server-src/driver.c (handle_dumper_result, handle_chunker_result):
12425 delay call to dumper_result().
12427 2000-05-28 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12429 * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
12432 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12434 * chunker.c: allow chunk to be written on different holding disk.
12435 * server-src/driver.c: allow chunk to be written on different
12437 * server-src/conffile.c: make sure that disksize and chunksize
12438 are multiple of TAPE_BLOCK_SIZE.
12439 * server-src/conffile.h: disksize and chunksize are long.
12440 * server-src/diskfile.c (find_disk): new function to see if a
12441 given disk is contained in a list structure.
12442 * server-src/diskfile.h (find_disk): prototype.
12443 * server-src/driverio.h (RQ_MORE_DISK): Added message.
12444 * server-src/driverio.h (free_assignedhd): prototype.
12445 * server-src/driverio.h (assignedhd_t): new data structure.
12446 * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
12447 * server-src/driverio.c (free_assignedhd): new function to free an
12448 array of assignedhd_t.
12450 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12452 * server-src/driver.c (chunker_program): new variable.
12454 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12456 * server-src/amstatus.pl.in: handle chunker line.
12458 2000-04-20 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12460 * recover-src/Makefile.am (LDADD): Removed libamtape.
12461 Reported by Paul Yeatman <pyeatman@ucsd.edu>
12463 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12465 * server-src/chunker.c: new file for the chunker program.
12466 * server-src/Makefile.am: compile it.
12467 * server-src/driver.c: many modification.
12468 * server-src/driverio.c: many modification.
12469 * server-src/driverio.c (startup_chunk_process, chunker_cmd):
12471 * server-src/driverio.h: prototype them.
12472 * server-src/driverio.h (struct chunker_s): new structure.
12473 * server-src/logfile.c: handle chunker log.
12474 * server-src/logfile.h: ditto.
12475 * server-src/reporter.c: ditto.
12476 * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
12478 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12480 * server-src/taper.c: don't crash if the tapelist file
12483 2000-04-09 Frank Wojcik <fwojcik@lucent.com>
12485 * server-src/taper.c (detach_buffers): Fixed typo in error message.
12487 * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
12488 should have been `InfoFile'.
12490 2000-04-09 Davide Marchignoli <marchign@di.unipi.it>
12492 * server-src/conffile.h (confparm_t): Added CTIMEOUT.
12493 * server-src/conffile.c: Added ctimeout support. Default to 30.
12494 * example/amanda.conf.in: Likewise.
12495 * man/amanda.8.in: Documented it.
12496 * server-src/amcheck.c: Use ctimeout from configuration file instead
12499 2000-04-09 Stan Brown <stanb@awod.com>
12501 * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
12502 it is actually a prefix of fsname.
12504 2000-04-09 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12506 * server-src/amlabel.c (main): Check label *after* writing end mark.
12508 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12510 * server-src/amlabel.c: don't crash if the tapelist file
12513 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12515 * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
12517 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12519 * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
12520 and FORCE_BUMP are mutually exclusive.
12522 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12524 * server-src/driver.c (main): use the holding disk even if the
12525 datestamped directory already exist.
12527 2000-01-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12529 * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
12530 twice to avoid warnings of possible typo.
12532 * amplot/amplot.awk: Ignore dumper's RQ-MORE-DISK.
12533 Reported by David Wolfskill <dhw@whistle.com>
12534 * amplot/amplot.awk: Handle taper's TRY-AGAIN like TAPE-ERROR.
12536 * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
12538 Reported by David Wolfskill <dhw@whistle.com>
12540 * man/amtoc.8.in: Document -w.
12542 2000-01-21 David Wolfskill <dhw@whistle.com>
12544 * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
12546 2000-01-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12548 * man/amlabel.8.in: Tapes are no longer requested in reverse order
12550 Reported by Brad Guillory <round@baileylink.net>
12552 * server-src/amstatus.pl.in: New option --stats, to display
12553 statistics about dumpers and taper.
12554 * man/amstatus.8.in: Document it.
12556 2000-01-21 David Wolfskill <dhw@whistle.com>
12558 * server-src/amstatus.pl.in: Sort dumpers by number.
12560 2000-01-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12562 * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
12564 * configure.in (MAILER): Warn or print an error if not found,
12565 depending on whether server code is disabled or not.
12567 * server-src/reporter.c (output_tapeinfo): Report used tapes
12568 regardless of tape errors.
12570 * config/acinclude.m4i (CF_WAIT): Simplify the test. Declare wait()
12571 in the global scope.
12573 2000-01-21 Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
12575 * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
12576 where `union wait' works but is deprecated.
12578 2000-01-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12580 * recover-src/uscan.l (settape): Recognize it.
12581 * recover-src/uparse.y: Parse it.
12582 * recover-src/amrecover.h (set_tape): Declare it.
12583 * recover-src/set_commands.c (set_tape): Implement it.
12584 * recover-src/help.c (help_list): Document it.
12585 * man/amrecover.8.in: Likewise.
12586 * recover-src/extract_list.c (extract_files): Warn if tape device is
12588 * recover-src/amrecover.c (tape_device_name): Default to
12589 server-determined default.
12591 2000-01-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12593 * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
12595 * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
12596 Allow for `make tapetype' before libamanda is built.
12598 * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
12600 2000-01-06 David Wolfskill <dhw@whistle.com>
12602 * docs/TAPETYPES: Typo.
12604 2000-01-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12606 * docs/TAPETYPES: Removed all tapetype entries. Pointed to
12607 example/amanda.conf, to the mailing list archives and to the on-line
12608 tapetype list. Explained the meaning of length, filemark and speed,
12609 and how to build and use the tapetype utility.
12611 1999-12-12 John R. Jackson <jrj@purdue.edu>
12613 * configure.in: egrep was having trouble with quoting on some systems.
12614 Broke it apart into multiple unquoted statements. Also, changed the
12615 script to run the steps on all dump tests and added "Label" as another
12618 1999-12-12 John R. Jackson <jrj@purdue.edu>
12620 * tape-src/tapetype.c: tweak the algorithm to write files in both
12621 passes and compute the tape mark size as the difference. Never
12622 report a negative tape mark size. Various other minor cleanup.
12624 1999-11-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12626 * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
12627 Samba messages unless SAMBA_VERSION < 2.
12629 1999-11-29 John E.P.Hynes <john@hytronix.ne.mediaone.net>
12631 * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
12633 1999-11-25 John R. Jackson <jrj@purdue.edu>
12635 * server-src/amflush.c (main): conf_logdir should not be free'd
12636 (found by Espen H Wiborg <espenhw@infotek.no>).
12638 1999-11-10 John R. Jackson <jrj@purdue.edu>
12640 * recover-src/extract_list.c: report the tape server host in the
12641 message to check the amidxtaped.debug file. If extract_list_child
12642 fails (such as when amidxtaped fails to read the tape), ask if
12643 things should continue instead of aborting.
12645 1999-11-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12647 * server-src/driverio.c (update_info_dumper): Discard information on
12648 older same- or higher-level dumps.
12649 * server-src/driver.c (dump_to_tape): Add comment that _dumper must
12650 be called before _taper.
12652 * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
12654 1999-11-10 John R. Jackson <jrj@purdue.edu>
12656 * server-src/amindexd.c (build_disk_table): need to clear the old
12657 disk history list before building a new one.
12659 1999-11-10 John R. Jackson <jrj@purdue.edu>
12661 * server-src/taper.c (label_tape): issue a warning when tapedev is
12663 * server-src/amcheck.c (start_server_check): make warning message
12664 text the same for amcheck and taper when tapedev is /dev/null.
12666 1999-11-10 John R. Jackson <jrj@purdue.edu>
12668 * server-src/amcleanupdisk.c (main): try to remove empty holding disk
12670 * server-src/holding.c (scan_holdingdisk): do not automatically remove
12671 empty holding disk areas since this function is called by various
12672 utilities and a dump might be in progress.
12674 1999-11-10 James FitzGibbon <james@targetnet.com>
12676 * server-src/infofile.c (put_info): d.size should have been
12679 1999-11-09 John R. Jackson <jrj@purdue.edu>
12681 * server-src/amcheck.c (start_server_check): test tapedev for
12682 "/dev/null" and issue warning that dumps will be thrown away.
12684 1999-11-02 David M. Olsen <David.M.Olsen@boeing.com>
12686 * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
12687 should have been CNF_INFOFILE; fixed.
12689 1999-11-02 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12691 * common-src/amflock.c (struct flock): Do not assume the fields are
12692 declared in any particular order.
12693 Reported by Sean Kelly <kelly@plutotech.com>
12695 * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
12696 * docs/INSTALL: Likewise.
12698 1999-11-02 Ricardo Malta <rmalta@bigfoot.com>
12700 * contrib/set_prod_link.pl: Create the links for a configuration
12701 with --with-suffix.
12703 1999-11-02 David M. Olsen <David.M.Olsen@boeing.com>
12705 * common-src/rsh-security.c (net_writev): The result of a cast is
12706 not an lvalue; fixed.
12708 1999-10-26 Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
12710 * server-src/amtoc.pl.in: Correct a bug for total report.
12712 1999-11-01 John R. Jackson <jrj@purdue.edu>
12714 * server-src/amcleanupdisk.c (main): do not free the config name (it
12715 was never alloc-d).
12717 1999-10-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12719 * common-src/debug.c: Do not assume stderr is a compile-time
12720 constant. On glibc 2.2 (RedHat Linux 6.1), it is not.
12722 1999-10-11 Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
12724 * server-src/amtoc.pl.in: Add new options -i and -t. Print original
12725 size, instead of size on tape.
12727 1999-10-07 John R. Jackson <jrj@purdue.edu>
12729 * common-src/stream.c (stream_server): remove reference to portrange
12730 variable. Compliments of Randy Dees <rrd@amherst.com>.
12732 1999-10-03 John R. Jackson <jrj@purdue.edu>
12734 * server-src/driver.c (main): now that multiple results can come back
12735 from taper and dumper without a handshake (e.g. NO-ROOM), we need to
12736 process them all rather than just the first one. Call the new
12737 areads_dataready() function to peek and see if more data is ready.
12738 * common-src/amanda.h: declare areads_dataready().
12739 * common-src/file.c: define areads_dataready(). Fix some variable
12740 types. Fix a buffer expansion problem. Add code to the test
12741 program to force buffer expansion to be checked out.
12743 1999-10-03 John R. Jackson <jrj@purdue.edu>
12745 * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
12747 1999-10-03 John R. Jackson <jrj@purdue.edu>
12749 * common-src/amflock.c (main): do not use aclose() in the configure
12750 test case. During configure we do not have areads_relbuf()
12751 available and it makes configure think all the tests have failed.
12753 1999-10-03 John R. Jackson <jrj@purdue.edu>
12755 * common-src/amanda.h: protect the close macros and areads* from
12756 out of range file descriptors.
12757 * common-src/file.c: ditto.
12759 1999-10-02 John R. Jackson <jrj@purdue.edu>
12761 * server-src/amindexd.c (build_disk_table): only "OK" results from
12762 find_dump should be considered.
12764 1999-10-02 John R. Jackson <jrj@purdue.edu>
12766 * common-src/file.c (areads): when NO-ROOM became advisory and didn't
12767 participate in a full handshake, it exposed a problem in areads()
12768 where a static buffer was shared among all I/O. Changed it to use
12769 a separate buffer for each file descriptor. Enhanced the test
12770 program to check out the code.
12771 * common-src/amanda.h: ditto
12772 * restore-src/amidxtaped.c: minor areads/agets comment typo.
12773 * server-src/amindexd.c: ditto
12775 1999-10-02 John R. Jackson <jrj@purdue.edu>
12777 * server-src/amlogroll.c: fix minor memory leak.
12779 1999-09-29 John R. Jackson <jrj@purdue.edu>
12781 * server-src/dumper.c (do_dump): closed the dump messages file too
12784 1999-09-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12786 * recover-src/extract_list.c (samba_extract_method): Default to
12787 SAMBA_TAR, for similarity with other restore programs.
12788 (extract_files_child): If restore with SMBCLIENT is enabled, explain
12789 that Samba shares will be restored to the SMB share.
12791 1999-09-22 John R. Jackson <jrj@purdue.edu>
12793 * configure.in: wrong variable when processing LIBRARY_DIRS. Fix
12794 compliments of John M. Vogtle <jmvogtle@kodak.com>.
12796 1999-09-20 John R. Jackson <jrj@purdue.edu>
12798 * server-src/Makefile.am: use new amlogroll utility to rename the log
12799 file to the datestamped name.
12800 * server-src/amcheck.c: ditto.
12801 * server-src/amcleanup.sh.in: ditto and call all utilities with the
12802 config file name as an argument.
12803 * server-src/amdump.sh.in: ditto and call all utilities with the
12804 config file name as an argument.
12805 * server-src/amflush.c: ditto.
12806 * server-src/amlogroll.c: new utility.
12807 * server-src/driverio.c: ditto and call all utilities with the
12808 config file name as an argument.
12809 * server-src/reporter.c: ditto.
12811 1999-09-20 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12813 * amlogroll.c: It was missing; copied from the 2.4.2 branch.
12815 * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
12817 1999-09-19 John R. Jackson <jrj@purdue.edu>
12819 * server-src/amverify.sh.in: this script is important enough it should
12820 not depend on having perl installed. Clean up the AIX "mt status"
12821 code. Test for presense of other restore programs and check that
12822 they are executable during processing.
12824 1999-09-19 John R. Jackson <jrj@purdue.edu>
12826 * server-src/amverify.sh.in: put back an "mt status" wait loop I
12827 erroneously removed, but protect it from AIX.
12829 1999-09-19 John R. Jackson <jrj@purdue.edu>
12831 * common-src/util.c: fix math in bind_portrange so ports requested
12832 are between those the caller passed and make sure port 0 does not
12833 accidentally get requested, which returns a non-privileged port.
12834 * common-src/dgram.c: bind_portrange last port argument is inclusive.
12835 * common-src/stream.c: ditto.
12836 * recover-src/amrecover.c: ditto.
12837 * recover-src/extract_list.c: ditto.
12839 1999-09-19 John R. Jackson <jrj@purdue.edu>
12841 * server-src/driver.c: do not send a FILE_WRITE to the taper when the
12842 tape queue is empty during a TRYAGAIN (driver core dumped).
12844 1999-09-19 John R. Jackson <jrj@purdue.edu>
12846 * server-src/taper.c: fix protocol problems when out of tape. Add
12847 FAKE_TAPE_ERROR debugging code to simulate tape errors. Fix problem
12848 with command line argument processing.
12850 1999-09-18 John R. Jackson <jrj@purdue.edu>
12852 * configure.in: several compress/uncompress variables were not being
12855 1999-09-18 John R. Jackson <jrj@purdue.edu>
12857 * client-src/sendbackup.c: pclose returns a child exit status of the
12858 pipe, not an errno, so do not try to strerror it.
12859 Have the index child process exit with the pclose exit code.
12860 Treat index failures as strange rather than fatal so the dump gets
12861 fully processed. It's more important to have the dump image than
12862 to skip it just because indexing had a (possibly unrelated) problem.
12864 1999-09-15 John R. Jackson <jrj@purdue.edu>
12866 * server-src/amtoc.pl.in: handle an image failing on one tape and
12867 succeeding on the next.
12869 1999-09-15 John R. Jackson <jrj@purdue.edu>
12871 * server-src/amstatus.pl.in: generalize the "driver: state" parsing
12872 so it can handle current and future information.
12874 1999-09-15 John R. Jackson <jrj@purdue.edu>
12876 * common-src/bsd-security.c: if the user field is not present in the
12877 .amandahosts file, it should default to the local user, not the
12878 remote user. For our purposes, that is CLIENT_USER, not the user
12879 we are running as (although they should be the same).
12881 1999-09-14 John R. Jackson <jrj@purdue.edu>
12883 * configure.in: Add --with-tmpdir to ./configure and use it for
12884 all Amanda temporary files. Default --with-dbgdir to --with-tmpdir.
12885 Move libexec/getconf to sbin/amgetconf and add an optional
12886 config parameter. Add optional config parameter to several
12888 Add debugging to chg-chio.
12889 Call new safe_cd() function in most programs to cd to --with-tmpdir
12890 so if they drop core, it goes to a known spot. Rename existing
12891 core files so more than one failure may be tracked. Remove most
12892 chdir() and umask() calls (umask is set in safe_cd).
12893 * amplot/amplot.sh.in: ditto.
12894 * changer-src/chg-chio.pl.in: ditto.
12895 * changer-src/chg-chs.sh.in: ditto.
12896 * changer-src/chg-manual.sh.in: ditto.
12897 * changer-src/chg-mtx.sh.in: ditto.
12898 * changer-src/chg-multi.sh.in: ditto.
12899 * changer-src/chg-rth.pl.in: ditto.
12900 * changer-src/chg-scsi-chio.c: ditto.
12901 * changer-src/chg-scsi.c: ditto.
12902 * changer-src/chg-zd-mtx.sh.in: ditto.
12903 * client-src/amandad.c: ditto.
12904 * client-src/calcsize.c: ditto.
12905 * client-src/killpgrp.c: ditto.
12906 * client-src/rundump.c: ditto.
12907 * client-src/runtar.c: ditto.
12908 * client-src/selfcheck.c: ditto.
12909 * client-src/sendbackup-gnutar.c: ditto.
12910 * client-src/sendbackup.c: ditto.
12911 * client-src/sendsize.c: ditto.
12912 * common-src/alloc.c: ditto.
12913 * common-src/amanda.h: ditto.
12914 * common-src/amflock.c: ditto.
12915 * common-src/bsd-security.c: ditto.
12916 * common-src/debug.c: ditto.
12917 * common-src/file.c: ditto.
12918 * common-src/genversion.c: ditto.
12919 * restore-src/amidxtaped.c: ditto.
12920 * server-src/Makefile.am: ditto.
12921 * server-src/amadmin.c: ditto.
12922 * server-src/amcheck.c: ditto.
12923 * server-src/amcheckdb.sh.in: ditto.
12924 * server-src/amcleanup.sh.in: ditto.
12925 * server-src/amcleanupdisk.c: ditto.
12926 * server-src/amdump.sh.in: ditto.
12927 * server-src/amflush.c: ditto.
12928 * server-src/amfreetapes.sh.in: ditto.
12929 * server-src/amindex.c: ditto.
12930 * server-src/amindex.h: ditto.
12931 * server-src/amindexd.c: ditto.
12932 * server-src/amlabel.c: ditto.
12933 * server-src/amrmtape.sh.in: ditto.
12934 * server-src/amstatus.pl.in: ditto.
12935 * server-src/amtape.c: ditto.
12936 * server-src/amtrmidx.c: ditto.
12937 * server-src/amtrmlog.c: ditto.
12938 * server-src/amverify.sh.in: ditto.
12939 * server-src/changer.c: ditto.
12940 * server-src/changer.h: ditto.
12941 * server-src/conffile.c: ditto.
12942 * server-src/conffile.h: ditto.
12943 * server-src/diskfile.c: ditto.
12944 * server-src/driver.c: ditto.
12945 * server-src/driverio.c: ditto.
12946 * server-src/dumper.c: ditto.
12947 * server-src/find.c: ditto.
12948 * server-src/getconf.c: ditto.
12949 * server-src/holding.c: ditto.
12950 * server-src/infofile.c: ditto.
12951 * server-src/logfile.c: ditto.
12952 * server-src/planner.c: ditto.
12953 * server-src/reporter.c: ditto.
12954 * server-src/tapefile.c: ditto.
12955 * server-src/taper.c: ditto.
12957 1999-09-14 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12959 * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
12960 (bsd_stream_read): Likewise, declaration.
12961 * common-src/rsh-security.c (rsh_stream): Likewise.
12962 (rsh_stream_read): Likewise, declaration and definition.
12963 * common-src/krb4-security.c (dummy): Compile when disabled.
12964 * common-src/krb5-security.c (dummy): Likewise.
12966 * server-src/reporter.c (sDivZero): Change from float to double, to
12969 * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
12970 (VERSION): Add the date to it.
12971 (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
12972 * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
12973 (config.status): Depend on $(SNAPSHOT_STAMP).
12974 (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
12976 * config/Makefile.am: Remove all traces of acconfig.h.
12978 * server-src/changer.c (changer_command): Fix for amwait_t != int.
12980 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12982 * config/acinclude.m4i: Added comments for config/config.h.in to all
12984 * configure.in: Likewise.
12985 * config/acconfig.h: Deleted.
12986 * autogen: Updated.
12988 1999-09-05 John R. Jackson <jrj@purdue.edu>
12990 * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
12991 * recover-src/display_commands.c: fix some compiler warnings.
12992 * recover-src/extract_list.c: fix some compiler warnings.
12993 * restore-src/amrestore.c: fix some compiler warnings.
12994 * server-src/planner.c: fix some compiler warnings.
12996 1999-09-05 John R. Jackson <jrj@purdue.edu>
12998 * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
13000 1999-09-05 John R. Jackson <jrj@purdue.edu>
13002 * common-src/stream.c: make sure errno is returned properly from
13003 stream_client() and stream_server().
13004 * server-src/taper.c: report errors from stream_server() and
13006 * recover-src/extract_list.c: make sure errno is preserved.
13008 1999-09-05 John R. Jackson <jrj@purdue.edu>
13010 * configure.in: make sure the dump and restore programs are defined
13011 in pairs, do not allow just the dump program without restore.
13012 * client-src/sendbackup-dump.c: assume restore program is present
13013 if dump program is.
13014 * common-src/genversion.c: assume restore program is present if
13017 1999-09-05 John R. Jackson <jrj@purdue.edu>
13019 * common-src/genversion.c: CLIENT_LOGIN has to be defined so there
13020 is no point testing for it.
13021 * server-src/conffile.c: ditto.
13023 1999-09-05 John R. Jackson <jrj@purdue.edu>
13025 * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
13026 and XFSRESTORE support.
13028 1999-09-05 John R. Jackson <jrj@purdue.edu>
13030 * server-src/conffile.c: add several common abbreviations to config
13033 1999-09-01 John R. Jackson <jrj@purdue.edu>
13035 * server-src/amtoc.pl.in: allow multiple -s entries.
13037 1999-09-01 John R. Jackson <jrj@purdue.edu>
13039 * server-src/reporter.c: handle/report a common columnspec syntax
13040 error instead of dumping core.
13042 1999-09-01 John R. Jackson <jrj@purdue.edu>
13044 * man/amanda.8.in: typo in columnspec description.
13046 1999-09-01 John R. Jackson <jrj@purdue.edu>
13048 * common-src/dgram.h: expressions in #define should be protected by
13051 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
13053 * changer-src/chg-chs.sh.in (changerdev): Pass it as -f flag to CHS.
13054 * docs/TAPE.CHANGERS: Document it.
13055 Reported by Mike Horansky <moho@stanford.EDU>
13057 * server-src/conffile.c (read_dumptype): Renamed from get_dumptype.
13058 Extended to support reading a named dumptype from a specified FILE.
13059 (get_dumptype): Use read_dumptype.
13060 (main): Read disklist, so that custom dumptypes are shown.
13061 * server-src/conffile.h (read_dumptype): Declare.
13062 * server-src/diskfile.c (parse_diskline): Get line_num and line by
13063 reference. New argument diskf. Use read_dumptype if dumptype
13066 * man/amanda.8.in (disklist): Document it.
13068 * example/disklist: Exemplify it.
13070 1999-08-23 John R. Jackson <jrj@purdue.edu>
13072 * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
13073 * recover-src/extract_list.c (extract_files_setup): ditto.
13075 1999-08-23 John R. Jackson <jrj@purdue.edu>
13077 * server-src/reporter.c (copy_template_file): make sure all data is
13078 written to label template pipeline.
13080 1999-08-16 Alexandre Oliva <oliva@dcc.unicamp.br>
13082 * common-src/Makefile.am: Replace .o with OBJEXT. List sources
13083 explicitly, instead of LDADDing the corresponding objects.
13084 (OBJ_EXTENSION): Wipe out, use OBJEXT.
13086 * configure.in: Call AC_OBJEXT.
13087 (LTLIBOBJS, LTALLOCA): Define, according to ac_objext.
13088 * common-src/Makefile.am (libamanda_la_LIBADD): Use them.
13089 (libamanda_a_LIBADD): Use LIBOBJS and ALLOCA.
13091 * common-src/Makefile.am (genversion.o): Revert last change, it was
13092 just a bug in automake's --disable-dependency-tracking.
13094 1999-08-15 Alexandre Oliva <oliva@dcc.unicamp.br>
13096 * README (platforms): Added OpenBSD.
13097 Reported by Ian Darwin <ian@sq.com>
13098 (platforms): Added SunOS 5.7.
13100 1999-08-15 Derek Ney <derek@hipgraphics.com>, Alexandre Oliva <oliva@dcc.unicamp.br>
13102 * client-src/sendsize.c (SAMBA_DEBUG_LEVEL): New macro, "0" for
13103 Samba >= 2, "3" for older ones.
13104 (getsize_smbtar): Use `du' if SAMBA_VERSION >= 2, and the
13105 appropriate SAMBA_DEBUG_LEVEL.
13107 1999-08-15 Alexandre Oliva <oliva@dcc.unicamp.br>
13109 * common-src/Makefile.am (genversion.o): Depend on genversion.c
13110 too. It seems that IRIX's make doesn't work without it.
13111 Reported by Brian Cuttler <brian@wadsworth.org>
13113 1999-08-15 Jon LaBadie <jon@jgcomp.com>
13115 * tape-src/tapetype.c: Speed it up by using larger sections in the
13118 1999-08-15 Alexandre Oliva <oliva@dcc.unicamp.br>
13120 * man/amanda.8.in (skip-full, incronly): Document existing bugs.
13122 * server-src/conffile.c (init_defaults): Default disksize to 0.
13123 * man/amanda.8.in (holdingdisk use): Document it.
13124 Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
13126 * server-src/planner.c (setup_estimate): Typo.
13127 (next_level0): Typo.
13129 * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
13131 * example/amanda.conf.in: Clarify holdingdisk::use 0.
13133 * config/missing: Update from automake 1.4a.
13135 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13137 * man/amanda.8.in: typo.
13139 1999-06-29 Alexandre Oliva <oliva@dcc.unicamp.br>
13141 * man/amrestore.8: Document holding-file usage.
13143 1999-06-25 Alexandre Oliva <oliva@dcc.unicamp.br>
13145 * Makefile.am (pkgdata_DATA): Install COPYRIGHTs.
13146 (EXTRA_DIST): Remove docs/*.
13147 * docs/Makefile.am: New file.
13148 (pkgdata_DATA): Install all docs.
13149 * configure.in: Output docs/Makefile.
13150 Suggested by Paul L. Lussier <plussier@baynetworks.com>
13152 * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
13153 keyboard time-out, lsof.
13155 * server-src/amverify.sh.in (HEADER): Use `sed 1q' instead of the
13156 not-that-portable `head -1'.
13157 Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
13159 1999-06-19 Alexander Zangerl <az@Austria.EU.net>
13161 * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
13164 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13166 * server-src/dumper.c (read_indexfd): typo
13168 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13170 * server-src/dumper.c (do_dump): Close the indexout fh and wait
13171 for the completion of the index compress process.
13172 * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
13173 if the index fd is already shut down.
13174 * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
13175 the mesg and data fd are shut down.
13177 1999-06-15 Adam Hammer <hammer@math.purdue.edu>
13179 * server-src/amverify.sh.in: Wait until device becomes ready after
13182 1999-06-15 Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva <oliva@dcc.unicamp.br>
13184 * client-src/calcsize.c (ROUND): Rewrite, it was broken.
13185 Reported by Erik Lindahl <erik@theophys.kth.se>
13187 1999-06-15 Alexandre Oliva <oliva@dcc.unicamp.br>
13189 * server-src/conffile.h: Changed all `long's to `int's, as they
13190 broke get_number et al on 64bit platforms.
13191 Reported by Erik Lindahl <erik@theophys.kth.se>
13193 * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
13196 * configure.in (bcopy, bzero): Check whether they're available.
13197 * common-src/amanda.h (bcopy, bzero): If not, use memmove and
13199 Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
13201 * server-src/amcheck.c (start_server_check): If info file does not
13202 exist, explain that it is supposed to be created on the next run.
13204 1999-06-08 Alexandre Oliva <oliva@dcc.unicamp.br>
13206 * server-src/tapefile.c (lookup_last_reusable_tape): Fix order of
13207 arguments in match() invocation.
13208 From Anthony Worrall <Anthony.Worrall@reading.ac.uk>
13210 1999-06-08 Mike Grupenhoff <kashmir@munge.com>
13212 * restore-src/amrestore.c: second arg to restore() is a char *, not
13213 a string_t. Adjust prototype accordingly.
13215 1999-06-07 Mike Grupenhoff <kashmir@munge.com>
13217 * common-src/util.c (bind_portrange): function that attempts
13218 to bind a network connection to a port in a given range.
13219 * common-src/util.h: prototype bind_portrange().
13220 * common-src/dgram.c (bind_reserved): remove, superceeded by
13222 (dgram_bind): use bind_portrange() instead of bind_reserved(), and
13223 try user specified ports first, then reserved ports, then regular
13225 * common-src/dgram.h: remove prototype for bind_reserved().
13226 * common-src/stream.c (stream_server, stream_client): use
13227 bind_portrange() instead of bind_reserved(), and try user
13228 specified ports first, then reserved ports, then regular
13230 * recover-src/amrecover.c (main): use bind_portrange() instead
13231 of bind_reserved(), and verify that the port it gives us is
13233 * recover-src/extract_list.c (extract_files_setup): use
13234 bind_portrange() instead of bind_reserved(), and verify that
13235 the port it gives us is a reserved one.
13237 1999-06-07 Mark F. Vlems <mvlems@vbox.xs4all.nl>
13239 * server-src/amindexd.c (reply, lreply, fast_lreply): Return code 0
13240 of printf does not imply an error on some systems (Openstep) even if
13241 the number of written characters is more than 0. The weakened error
13242 check has no implication for the correct implementations of printf.
13244 1999-06-03 Alexandre Oliva <oliva@dcc.unicamp.br>
13246 * server-src/driver.c (dump_to_tape): Tell hard from soft
13247 (retryable) failures in both dumper and taper results, and behave
13250 * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is
13251 slightly different.
13252 Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
13254 1999-06-02 Mike Grupenhoff <kashmir@munge.com>
13256 * common-src/util.c (fullread, fullwrite): versions of
13257 read()/write() that keep looping until the buffer is
13258 completely read/written, or an error occurs.
13259 * common-src/Makefile.am: build util.c/util.h
13260 * common-src/fileheader.c, common-src/fileheader.h
13261 (fill_buffer): remove, replaced with fullread()
13262 * server-src/holding.c: use fullread() instead of fill_buffer().
13263 * common-src/bsd-security.c, restore-src/amrestore.c,
13264 server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
13265 server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
13266 instead of doing the retry loops manually.
13268 1999-06-02 Mike Grupenhoff <kashmir@munge.com>
13270 * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
13271 close the stream. If the other stream is also closed, shut
13274 1999-06-02 Mike Grupenhoff <kashmir@munge.com>
13276 * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
13278 (exit_check): remove waitpid(), let the service reap its own
13280 (s_repwait): rename 'err' to 'errstr' to avoid conflict with
13281 function in some libcs.
13282 (s_ackwait): if no pipes were opened by this service, then shut
13284 (process_netfd): on EOF, be sure to also close the network
13285 stream. Also, if this is the last stream to be closed, shut
13287 (allocstream): correct a comment
13288 (service_delete): only close the security handle if it is still
13289 open. Reap our children here instead of in exit_check().
13291 1999-06-01 Mike Grupenhoff <kashmir@munge.com>
13293 * server-src/taper.c (write_buffer): assert properly
13295 1999-06-01 John Williams <williams@morinda.com>
13297 * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
13299 1999-06-01 Alexandre Oliva <oliva@dcc.unicamp.br>
13301 * docs/INSTALL: Point to the patches page. Update version numbers.
13303 * example/config.site: Document UDPPORTRANGE.
13305 1999-06-01 Jens Persson <jens.persson@btj.se>
13307 * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
13308 * config/acconfig.h: Add UDPPORTRANGE.
13309 * common-src/dgram.c: Implement it.
13311 1999-05-27 Mike Grupenhoff <kashmir@munge.com>
13313 * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
13314 make the size argument a size_t.
13315 (alloc): if an allocation fails, in the error message print how
13316 many bytes we tried to alloc. This helps us determine if the
13317 alloc call was errant, or we really were out of memory.
13318 * common-src/amanda.h: update alloc/newalloc prototypes for
13321 1999-05-27 Alexandre Oliva <oliva@dcc.unicamp.br>
13323 * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
13324 to libtool 1.3.2 plus a few patches.
13325 * config/config.guess, config/config.sub: Ditto.
13327 1999-05-26 Mike Grupenhoff <kashmir@munge.com>
13329 * common-src/protocol.c: retry connection failures three times,
13330 waiting five seconds between each attempt. Also, fix a lot
13331 of untrue comments.
13333 1999-05-26 Mike Grupenhoff <kashmir@munge.com>
13335 * client-src/amandad.c: add a lot more dbprintfs so we know what's
13337 (service_new): use error() instead of dbprintf(); exit()
13340 1999-05-25 Alexandre Oliva <oliva@dcc.unicamp.br>
13342 * docs/FAQ (tar-patch): Mention sparse file problem.
13344 * recover-src/uscan.l: #undef `ECHO' after #include amanda.h; some
13345 system header files may define it.
13346 Reported by Dan Lipofsky <danlip@cyc.com>
13348 * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
13350 * Makefile.am: Create acinclude.m4 in the top-level directory.
13351 * config/Makefile.am: Create link to acconfig.h in the top-level
13353 * configure.in: Add AMANDA_CFLAGS to CFLAGS. Set DUMPER_DIR without
13355 * common-src/Makefile.am: Create genversion.h with #defines, to
13356 avoid genversion-specific CPPFLAGS.
13357 * common-src/genversion.c: #include genversion.h
13359 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13361 * server-src/amandad.c (state2str): string "s_processrep" is 13
13364 1999-05-24 Mike Grupenhoff <kashmir@munge.com>
13366 * server-src/amcheck.c (main): if we reap a bogus pid, print
13367 out the error message we generate, instead of whatever junk
13368 happens to be in the buffer.
13370 1999-05-24 Mike Grupenhoff <kashmir@munge.com>
13372 * common-src/bsd-security.c (bsd_stream_read): remove old
13373 code that was part of something that ended up not happening.
13374 (stream_read_callback): use ssize_t.
13376 1999-05-24 Mike Grupenhoff <kashmir@munge.com>
13378 * common-src/event.c (event_register): restructure asserts, and
13379 for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
13381 1999-05-24 Mike Grupenhoff <kashmir@munge.com>
13383 * common-src/queue.h: move the multiple-inclusion #defines
13384 into application namespace. #undef each macro before defining
13385 it, in case the OS has an identical macro.
13387 1999-05-23 Alexandre Oliva <oliva@dcc.unicamp.br>
13389 * server-src/amindex.h: Keep P macro expression in a single line.
13390 Reported by Patrick Harrold <patrickh@nasco-inc.com>
13392 * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
13394 * common-src/statfs.c (STATFS_SCALE, sys/statvfs.h): If f_frsize is
13395 zero, use f_bsize. It now works with GNU libc 2.1.
13396 Reported by Heikki Vatiainen <hessu@cs.tut.fi>
13398 1999-05-22 Alex Pilosov <alex@pilosoft.com>
13400 * server-src/amindexd.c (is_dump_host_valid): sanitize_name(host)
13401 before doing a stat.
13402 * server-src/tapefile.c (lookup_nb_tape): init pos to 0.
13404 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13406 * server-src/reporter.c: take the orig size from the SUCCESS line.
13407 use value from the infofile only the datestamp are equal.
13408 Write all available value.
13410 1999-05-18 Mike Grupenhoff <kashmir@munge.com>
13412 * common-src/strerror.c (strerror): restructure so that it doesn't
13415 1999-05-17 Mike Grupenhoff <kashmir@munge.com>
13417 * common-src/genversion.c (prvar): prototype declared it static,
13418 but actual function was still extern.
13420 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13422 * server-src/planner.c (pick_inclevel): check for base_level+1 if
13423 we don't have estimate for base_level. Needed for FORCE_BUMP.
13424 * server-src/planner.c (promote_highest_priority_incremental):
13425 Don't promote if we don't have level 0 estimate. No more need
13426 to check for skip_full, DS_NOFULL, DS_INCRONLY or FORCE_BUMP.
13428 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13430 * server-src/amflush.c: ignore SIGPIPE
13431 * server-src/driver.c: ignore SIGPIPE
13432 * server-src/driverio.c (taper_cmd, dumper_cmd): return 0 on error,
13434 * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
13436 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13438 * server-src/dumper.c: make prototypes consistent, (putresult):
13439 make first arg const.
13441 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13443 * server-src/conffile.c (getconf_byname): islower takes an int
13445 * server-src/diskfile.c (upcase): islower takes an int for an
13447 * server-src/driver.c (update_failed_dump_to_tape): prototype.
13448 * server-src/holding.c (insert_dirname, scan_holdingdisk):
13449 prototype and make static, (is_datestr): isdigit takes an int
13452 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13454 * client-src/calcsize.c (basename): make static, prototype, and
13455 only include if BUILTIN_EXCLUDE_SUPPORT is defined and
13456 HAVE_BASENAME is not defined.
13457 * client-src/getfsent.c (dev2rde, samefile): prototype and
13459 * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
13460 (start_backup, end_backup): prototype.
13461 * client-src/sendbackup.c (index_closed, save_fd): prototype
13463 * client-src/versionsuffix.c (main): prototype.
13464 * common-src/alloc.c (internal_vstralloc): prototype.
13465 * common-src/file.c (mk1dir): prototype, make static, and make
13467 * server-src/amadmin.c (check_dumpuser): prototype.
13468 * server-src/amflush.c (get_letter_from_user): prototype and make
13470 * server-src/amindexd.c: prototype and make static numerous local
13472 * server-src/amlabel.c (main): prototype.
13473 * server-src/amtrmidx.c (main): prototype.
13474 * server-src/changer.c (report_bad_resultstr, run_changer_command):
13476 * server-src/conffile.h: properly prototype getconf_holdingdisks()
13477 * server-src/driverio.h: properly prototype init_driverio().
13478 * server-src/find.c (find_compare, parse_taper_datestamp_log):
13480 * server-src/infofile.c (zero_info, open_txinfofile,
13481 close_txinfofile, read_txinfofile, write_txinfofile,
13482 delete_txinfofile): prototype and make static.
13483 * server-src/planner.c (main, askfor): prototype.
13485 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13487 * server-src/server_util.c: include server_util.h for prototypes
13488 * server-src/tapefile.h: properly prototype lookup_nb_tape()
13489 * server-src/driverio.c (childstr): make static, make return
13492 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13494 * server-src/find.h: properly prototype find_log()
13495 * server-src/amtrmlog.c (main): prototype. find_log() takes
13498 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13500 * server-src/reporter.c: make all functions and globals
13501 static. Prototype all functions, and make them consistent wrt
13502 K&R. Place all prototypes together. Place data type
13503 declarations before the prototypes that use them. Remove
13504 unused sort_by_time().
13506 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13508 * server-src/dumper.c (process_dumpline): clean up the error
13510 * server-src/dumper.c (log_msgout): no need to reuse errf global,
13511 it makes me nervous. Also, use amfree instead of free.
13513 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13515 * common-src/packet.c (pkt_cat): remove a bogus assert - len is
13516 a size_t, which is unsigned, so it will always be >= 0.
13518 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13520 * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
13521 A_REPTIMEOUT into just A_TIMEOUT.
13523 1999-05-14 Mike Grupenhoff <kashmir@munge.com>
13525 * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
13526 common-src/rsh-security.c, server-src/driver.c,
13527 server-src/dumper.c: (min, max): consolidate all min/max
13528 definitions into amanda.h
13530 1999-05-14 Alexandre Oliva <oliva@dcc.unicamp.br>
13532 * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
13534 1999-05-12 Mike Grupenhoff <kashmir@munge.com>
13536 * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
13537 const the filename arg to all of the dbmalloc versions of
13538 alloc and io functions
13540 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
13542 * common-src/protocol.c (proto_t): don't need prev and next ptrs
13545 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
13547 * common-src/amanda.h, common-src/alloc.c: remove the static
13548 buffer manager - nothing uses it. It can be resurrected in
13549 the future if needed.
13551 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
13553 * common-src/amanda.h: define stringconcat() macros that
13554 concatenate two const strings together
13555 * common-src/versuff.c.in (versionsuffix, version): generate
13556 data at compile time using stringconcat().
13557 * common-src/genversion.c: simplify, don't need to alloc anything
13558 * common-src/Makefile.am (genversion_LDADD): this doesn't need
13559 alloc.o or error.o anymore
13561 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
13563 * common-src/security.c (security_handleinit, security_streaminit):
13564 change default error message "unknown error" to "unknown protocol
13565 error" or "unknown stream error" to help identify where an
13566 messageless error was triggered.
13568 1999-05-11 Mike Grupenhoff <kashmir@munge.com>
13570 * client-src/amandad.c (main): call initgroups(), and also set
13573 1999-05-10 Mike Grupenhoff <kashmir@munge.com>
13575 * server-src/driver.c (start_some_dumps): if a dumper is
13576 constrained, and some dumpers or the taper are active, register
13578 * server-src/driver.c (handle_taper_result,
13579 handle_dumper_result): wakeup constrained dumpers after we
13580 have freed some resources.
13582 1999-05-10 Mike Grupenhoff <kashmir@munge.com>
13584 * common-src/fileheader.c, common-src/fileheader.h: rework the
13585 fileheader parse and format code to remove a lot of duplicated
13586 code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
13587 arguments, and simplifying parse code.
13589 1999-05-10 Mike Grupenhoff <kashmir@munge.com>
13591 * client-src/sendsize.c (getsize_dump): print out the strerror
13592 if we can't exec killpgrp.
13594 1999-05-10 Mike Grupenhoff <kashmir@munge.com>
13596 * server-src/dumper.c (add_msg_data): first two arguments
13597 to memmove() were backwards.
13599 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13601 * example/amanda.conf.in: typo
13603 1999-05-07 Mike Grupenhoff <kashmir@munge.com>
13605 * common-src/alloc.c (safe_env): allow DISPLAY into the
13606 environment for purify.
13607 * server-src/holding.c (rename_tmp_holding): if fill_buffer
13608 returns 0, don't try to parse a nonexistant header.
13609 * server-src/taper.c (file_reader_side): init datestamp to
13610 NULL, and don't try to free it if it's still NULL on exit.
13612 1999-05-06 Mike Grupenhoff <kashmir@munge.com>
13614 * server-src/driver.c (start_some_dumps): sleep_time is an
13615 offset, not an absolute. Leave it that way when we return from
13618 1999-05-05 Mike Grupenhoff <kashmir@munge.com>
13620 * server-src/amverify.sh.in (pecho): new function. Like echo
13621 but doesn't append newline, and supports \r, etc. Implemented
13623 * server-src/amverify.sh.in: use pecho where we used to use echo -n,
13624 etc. It's nearly impossible to figure out which echo needs what
13625 flags and also know if it supports \r. So we just punt and use
13628 1999-05-04 Mike Grupenhoff <kashmir@munge.com>
13630 * server-src/driver.c: convert to use event handler.
13631 (some_dumps_in_progress, lookup_dumper): nuke.
13632 (sleep_time): make a time_t and static.
13633 (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
13634 (start_some_dumps): make this work on one dumper instead of all.
13635 Call when a dumper is finished and needs more work.
13636 (handle_idle_wait): callback for dumpers waiting for delayed
13638 * server-src/driverio.c: initialize event handles for dumpers
13639 and the taper. Nuke addfd().
13640 * server-src/driverio.h: add event handles for each dumper, and
13641 one global one for the taper. Nuke maxfd and readset globals.
13643 1999-05-04 Mike Grupenhoff <kashmir@munge.com>
13645 * server-src/driver.c (taper_queuedisk): new function that takes
13646 a disk_t, and, if the taper is not busy, tells it to write it out,
13647 or else adds it to the tapeq. Make use_lffo global static.
13648 * server-src/driver.c (handle_taper_result, handle_dumper_result):
13649 call taper_queuedisk() instead of queueing ourself.
13651 1999-04-30 Mike Grupenhoff <kashmir@munge.com>
13653 * server-src/driver.c: make all local functions static.
13654 Exposed two prototypes for nonexistant functions
13655 (diskname2filename, driver_main), and one function (dump_state)
13656 that was never called. #if 0 out dump_state.
13657 Nuke inside_dump_to_tape global - it's value was never used.
13658 Make pending_aborts global a static local in handle_dumper_result.
13660 1999-04-30 Mike Grupenhoff <kashmir@munge.com>
13662 * server-src/driverio.h (dumper_t): merge infd and outfd into
13663 just 'fd'. Comment the other members of the struct.
13664 * server-src/driverio.c: infd/outfd -> fd
13665 * server-src/driver.c (handle_dumper_result): merge some common
13666 code between the FAILED and TRYAGAIN cases. Comment the
13667 ABORT_FINISHED case. Also infd/outfd -> fd.
13669 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13671 * server-src/planner.c (when_overwrite): return a big number (1024)
13672 if the tape is not reusable.
13674 1999-04-29 Alexandre Oliva <oliva@dcc.unicamp.br>
13676 * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
13679 1999-04-29 Mike Grupenhoff <kashmir@munge.com>
13681 * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
13682 case, nothing uses it.
13683 * server-src/driverio.c, server-src/driverio.h: garbage collect
13684 FATAL_TRYAGAIN. static & const cmdstr.
13686 1999-04-28 Mike Grupenhoff <kashmir@munge.com>
13688 * server-src/diskfile.c (read_diskfile): rework to take a
13689 disklist_t * as an argument, and return -1 on error, or 0 on
13690 success. const the filename argument. Kill a few globals.
13691 * server-src/diskfile.c (lookup_host, lookup_disk): const
13693 * server-src/diskfile.h: adjust prototypes for above changes
13694 * server-src/amadmin.c, server-src/amcheck.c,
13695 server-src/amcleanupdisk.c, server-src/amflush.c,
13696 server-src/amindexd.c, server-src/amtrmidx.c,
13697 server-src/amtrmlog.c, server-src/driver.c,
13698 server-src/planner.c, server-src/reporter.c: adjust calls to
13699 read_diskfile() to deal with convention
13701 1999-04-28 Mike Grupenhoff <kashmir@munge.com>
13703 * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
13704 stop reading these streams. We let EOF on the data stream cause
13705 the entire dump to be stopped.
13707 1999-04-27 Mike Grupenhoff <kashmir@munge.com>
13709 * common-src/rsh-security.c (conn_read_callback): cast
13710 event_wakeup() arg to event_id_t.
13712 1999-04-25 Alexandre Oliva <oliva@dcc.unicamp.br>
13714 * common-src/versuff.c.in: Adjust constness to match version.h.
13716 * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
13718 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13720 * server-src/amdump.sh.in: execute amtrmlog.
13722 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13724 * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
13725 we already have a write_tapeheader function in dumper.c
13726 * client-src/sendbackup.h: ditto
13727 * client-src/sendbackup-dump.c: ditto
13728 * client-src/sendbackup-gnutar.c: ditto
13730 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13732 * dumper-src/gnutar.pl.in: add debuging code.
13733 * server-src/planner.c (getsize): send optionstr() for estimate
13735 * client-src/selfcheck.c: init program_is_wrapper to 0.
13736 * client-src/sendsize.c: implement DUMPER-API, support only
13739 1999-04-22 John R. Jackson <jrj@purdue.edu>
13741 * configure.in: add --with-broken-fsf to use a read() loop instead
13742 of the fsf ioctl on some broken systems.
13743 * config/acconfig.h: ditto
13744 * tape-src/tapeio.c (tapefd_fsf): ditto
13746 1999-04-22 Alexandre Oliva <oliva@dcc.unicamp.br>
13748 * docs/SYSTEM.NOTES: Typo
13749 * docs/SAMBA: Update on samba-largefs patch.
13750 * docs/FAQ: New FAQ about promotion of full dumps.
13752 1999-04-20 Alexandre Oliva <oliva@dcc.unicamp.br>
13754 * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
13755 Comment out test that would set filename to /dev/null.
13757 1999-04-18 Alexandre Oliva <oliva@dcc.unicamp.br>
13759 * docs/WISHLIST: Global reformat. Removed fixed issues. Added
13762 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13764 * server-src/server_util.c: use snprintf instead of ap_snprintf.
13766 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13768 * server-src/server_util.c: new file for utility function.
13769 New function construct_datestamp.
13770 * server-src/server_util.h: ditto
13771 * server-src/Makefile.am: link server_util.c with libamserver.
13772 * amcleanupdisk.c (construct_datestamp): remove function.
13773 * server-src/driver.c: ditto
13774 * server-src/dumper.c: ditto
13775 * server-src/amflush.c: ditto
13776 * server-src/planner.c: ditto
13778 1999-04-17 Mike Grupenhoff <kashmir@munge.com>
13780 * common-src/bsd-security.c: this doesn't need queue.h
13782 1999-04-17 Mike Grupenhoff <kashmir@munge.com>
13784 * common-src/event.c: Insert new events at the head of the eventq,
13785 not the tail, so we don't loop forever if a newly registered
13786 event has the same type as the one currently firing. Noticed
13787 and diagnosed by Jean-Louis Martineau.
13788 Use a LIST for the eventq, instead of a TAILQ, since we don't need
13789 to do tail insertions anymore.
13790 Make the eventq_* functions take a queue name so we can also use
13791 them for the handle cache. Rename eventq_append() to eventq_add().
13793 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13795 * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
13797 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13799 * client-src/selfcheck.c: Implement DUMPER-API.
13800 * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
13801 is not implemented.
13802 * dumper-src/generic-dumper.pl.in (parse_options): option are
13805 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
13807 * server-src/dumper.c: make dumpsize and headersize static. Rename
13808 nb_header_block to headersize and also make it static. headersize
13809 now counts bytes instead of blocks, just like the other two.
13810 Use SEEK_SET in an lseek instead of hardcoding 0.
13812 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
13814 * configure.in: implement --with-cflags to allow turning on
13815 compiler warnings and optimizations
13817 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
13819 * common-src/event.c (gethandle, puthandle): new functions that
13820 keep a cache of handles to reduce calls to malloc/free.
13822 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
13824 * common-src/alloc.c (dbmalloc_caller_loc): const the file
13825 arg, use the queue macros to maintain the list.
13827 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
13829 * common-src/versuff.c.in: const the return str of version()
13830 and versionsuffix. Bump copyright to 1999.
13832 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
13834 * client-src/amandad.c, client-src/amandad.h,
13835 client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
13836 client-src/sendbackup.c, common-src/bsd-security.c,
13837 common-src/dgram,c, common-src/dgram.h, common-src/event.c,
13838 common-src/event.h, common-src/krb4-security.c,
13839 common-src/krb5-security.c, common-src/packet.c,
13840 common-src/packet.h, common-src/protocol.c, common-src/security.c,
13841 common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
13842 server-src/conffile.h, server-src/dumper.c:
13843 update copyright to 1999 on things I've touched this year.
13845 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
13847 * common-src/amanda.h: remove version_info extern. Bump
13849 * common-src/genversion.c: constify version_info. Emit
13850 {KRB4,KRB5,RSH}_SECURITY. Bump copyright.
13851 * common-src/version.h: const VERSION_COMMENT and version_info.
13852 const return str and fully prototype versionsuffix() and version()
13853 prototypes. Bump copyright.
13854 * server-src/planner.c (main): iterate through version_info using
13855 an index instead of a pointer.
13857 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
13859 * server-src/conffile.c: explicitly give the seen_columnspec global
13860 an int type instead of letting the compiler default to it.
13862 1999-04-16 Mike Grupenhoff <kashmir@munge.com>
13864 * common-src/event.h (event_id_t): a new typedef for the
13865 first arg to event_register. Should be wide enough to
13866 reasonably hold an int or a pointer (but it is ok to trunc
13867 the pointer if necessary). Update proto for event_register()
13868 and event_wakeup().
13869 * common-src/event.c: struct event_handle->data is now an
13871 (event_register, event_wakeup): adjust args for event_id_t)
13872 (event_register): event_id_t is unsigned, no need to assert
13873 positivity anymore.
13874 * common-src/rsh-security.c (rsh_stream_read): cast first arg to
13875 event_register() to event_id_t.
13878 1999-04-15 Mike Grupenhoff <kashmir@munge.com>
13880 * common-src/event.c (release): nuke, and inline into event_loop.
13881 * common-src/event.c (event_loop): flesh out the timeout comment.
13882 Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
13883 * common-src/event.h: flesh out the event_type_t comment.
13885 1999-04-15 Mike Grupenhoff <kashmir@munge.com>
13887 * common-src/event.c (fire): inline this with a macro. Remove
13888 timestamp arg. eh->lastfired is now only valid for EV_TIME
13889 events. Removes several time() systems from the critical path.
13890 * common-src/event.c (event_wakeup): have this fire EV_WAIT events
13891 directly instead of deferring back to the event loop. Removes the
13892 sequencing restriction for event_wakeup.
13894 1999-04-15 Mike Grupenhoff <kashmir@munge.com>
13896 * server-src/planner.c (getsize): put the hosts disks on the waitq
13897 before sending the request, not after.
13899 1999-04-15 Alexandre Oliva <oliva@dcc.unicamp.br>
13901 * docs/UPGRADE: Update URL for archived message.
13903 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13905 * server-src/amcheck.c (main): should not set real uid to 0.
13907 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13909 * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
13910 number, we don't need ntohs().
13912 1999-04-12 Mike Grupenhoff <kashmir@munge.com>
13914 * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
13917 1999-04-12 Mike Grupenhoff <kashmir@munge.com>
13919 * server-src/amindexd.c: dgram.h not needed
13921 1999-04-12 Mike Grupenhoff <kashmir@munge.com>
13923 * common-src/event.c: fix a bunch of inaccurate comments.
13924 * common-src/event.c (event_loop): prune dead events in the
13925 pre-select pass instead of in the EV_WAIT pass.
13926 * common-src/event.c (fire): factor out all code that fires
13927 events into a 'fire' function.
13928 * common-src/event.c (signal_handler): bounds check the signal
13929 number against the size of sigtable instead of assuming sigtable
13932 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
13934 * client-src/amandad.c (allocstream): if security_stream_server()
13935 fails, dbprintf the error.
13937 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
13939 * configure.in: implement --with-rsh-security
13940 * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
13941 command for dump transport and authentication. Still has lots
13943 * common-src/Makefile.am: build rsh-security.c
13944 * common-src/security.c: add rsh_security_driver to the drivers array
13945 * config/acconfig.h: define RSH_SECURITY
13947 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
13949 * server-src/dumper.c (runcompress): use the proper end of the pipe
13950 for writing and reading. Also, grab errno early on fork error
13951 before calling close.
13952 * server-src/dumper.c (sendbackup_response): make sure the client
13953 at least send us a mesgfd and datafd.
13955 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
13957 * client-src/amandad.c (main): don't dup stdout to db_fd - it might
13958 be needed by the security driver
13959 * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
13960 attempt to event_release a handle we haven't attached yet.
13962 1999-04-10 Mike Grupenhoff <kashmir@munge.com>
13964 * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
13966 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
13968 * client-src/Makefile.am (noinst_HEADERS): add amandad.h
13970 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
13972 * common-src/Makefile.am (libamanda_la_SOURCES): build
13975 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
13977 * configure.in: implement --with-dbmalloc=[dir], where dir is
13978 where the dist is unpacked and built. This could be improved on,
13979 because it doesn't handle the case where it's installed.
13981 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
13983 * client-src/sendbackup.c: security changes:
13984 remove krb4 code and NAUGHTY_BITS macros.
13985 (parse_options): don't look for krb4 options
13986 (main): don't close pipes that were handed to us from amandad.
13987 Don't open stream directly - just use the pipes given to us.
13988 * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
13989 Remove krb4 code and NAUGHTY_BITS macros.
13991 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
13993 * client-src/amandad.h: new file describing the pipes between
13994 amandad and children.
13995 * client-src/amandad.c: rewrite for security changes. Can
13996 now handle multiple requests simultaneously, and has a state
13997 machine to deal with each active request.
13998 This handles all network transmissions and authentication.
13999 Each child process (sendbackup, selfcheck) gets three general
14000 purpose pipes to amandad which it may allocate for anything.
14001 amandad relays these pipes to equivalent security_streams.
14002 Lots of other stuff.
14003 Finally, NEED_KEYPIPE stuff removed.
14005 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
14007 * server-src/dumper.c: security changes:
14008 Remove krb4 includes and NAUGHTY_BITS macros.
14009 Remove no-longer-true comment about DATABUF_SIZE ==
14010 TAPE_BLOCK_BYTES for krb4
14011 Remove file descriptor and event handle from streams array. Add
14012 a security_stream_t.
14013 Remove global read buffer.
14014 (check_options): remove krb4 code.
14015 (service_ports_init): remove, now handled by individual security
14017 (main): remove dgram usage.
14018 (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
14019 bsd driver. schedule reads on the streams using
14020 security_stream_read.
14021 (read_mesgfd,read_datafd,read_indexfd): adapt to
14022 security_stream_read callback interface.
14023 (stop_dump): just call security_stream_close on all non-null
14025 (sendbackup_response): adapt to new protocol layer error return.
14027 (startup_dump): stinky hack to parse the security driver string out of
14028 the options passed to us from driver.
14029 Lookup the security driver with said string.
14031 Free request after calling protocol_sendreq().
14033 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
14035 * server-src/planner.c: security changes:
14036 (main): Remove dgram usage. Call protocol_init(). Remove
14038 (getsize): remove krb4 code. Handle protocol layer api changes.
14039 Lookup security driver/complain if not found. Free request
14040 after calling sendreq. All hosts get put on the waitq since
14041 sendreq never returns an error.
14042 (handle_result): deal with new protocol layer error semantics.
14045 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
14047 * server-src/conffile.c: remove INTERFACE undef hack. Our
14048 namespace isn't polluted by krb4 headers anymore, so it's
14051 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
14053 * server-src/amcheck.c: security changes:
14054 (main): ignore SIGPIPE - some security drivers might get it.
14055 Remove all usages of dgram.
14056 Make our real uid root and our effective uid amanda so we can
14057 get back to root later (on most os's :()
14058 (start_client_checks): remove krb4 bits.
14059 The dump user check should check the effective uid.
14060 Get the name of the security driver for this host out of
14061 host->diskp->security_driver.
14062 Free req after calling protocol_sendreq() because it will internalize
14064 protocol_sendreq doesn't return any errors - they're all returned
14065 via handle_response.
14066 (handle_result): renamed from handle_response for consistency.
14067 The protocol layer doesn't pass us a proto_t anymore, so detect
14068 errors based on pkt being NULL.
14069 Remove krb4 bits - security violations will be indicated by a
14072 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
14074 * common-src/protocol.[ch]: rewrite for security api. The entry
14075 points now have the 'protocol' prefix. See protocol.h for more
14077 * common-src/security.c: rewrite for security api. This now contains
14078 the functions for the 'base class' or some approximation of it.
14079 See security.h for the entry points, or docs/SECURITY-API.
14081 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
14083 * common-src/amanda.h: rip out krb4 defines, headers, and
14084 prototypes. Also, make assert() abort() after calling error().
14085 * common-src/krb4-security.c: stub file that pulls in the real
14086 krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
14088 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
14090 * server-src/conffile.h: aggregate all of the compress defines
14091 (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
14092 Make dumptype_t->compress a comp_t.
14093 * server-src/dumper.c: make srvcompress global a comp_t.
14094 * server-src/dumper.c (runcompress): add a comp_t third arg
14095 that specifies the level of compression for this fd.
14096 * server-src/dumper.c (do_dump): always compress index files
14097 with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
14098 * server-src/dumper.c (read_indexfd): read the indexfd, not the
14099 datafd. Also noted by Jean-Louis Martineau.
14101 1999-04-09 Mike Grupenhoff <kashmir@munge.com>
14103 * server-src/planner.c (main): ignore SIGPIPE. tcp based
14104 security drivers may get this while getting estimates.
14105 Set the real uid to root, and the effective uid to the amanda
14106 user, so we can get back to root later if needed.
14107 * server-src/planner.c (handle_result): rework error logic
14108 so we don't need to use p->state, which will eventually go
14111 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
14113 * server-src/dumper.c: rewrite to use the event handler instead
14114 of a select loop. Also, compress the index output using
14115 runcompress() instead of forking a compress ourselves.
14117 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
14119 * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
14120 streams if krb4_auth if false.
14122 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
14124 * server-src/dumper.c (do_dump): some formatting cleanups. Nuke
14125 'killerr' - we can do without it.
14127 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
14129 * server-src/dumper.c (do_dump): store compresspid inside of
14132 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
14134 * server-src/dumper.c (parse_info_line): parse info lines
14135 from sendbackup directly into the 'file' global. Eliminate
14136 the backup_name, recover_cmd, and compress_suffix globals.
14137 * server-src/dumper.c (finish_tapeheader): nuke usage
14138 of above globals. Nuke unneeded explicit nul terminations (we
14139 memset the whole thing in fn_init).
14141 1999-04-08 Mike Grupenhoff <kashmir@munge.com>
14143 * server-src/dumper.c (process_dumpline): rewrite to use strtok
14144 and const the argument.
14145 * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
14146 and prototype it. Remove the 'type' arg, since it's always
14147 F_DUMPFILE. Remove call to fn_init().
14148 * server-src/dumper.c (do_dump): call fh_init on 'file' while
14149 initializing globals. Call finish_tapeheader after getting info
14152 1999-04-07 John R. Jackson <jrj@purdue.edu>
14154 * tape-src/tapeio.c: allow tapedev to be /dev/null.
14155 * server-src/taper.c: allow tapedev to be /dev/null.
14156 * man/amanda.8.in: allow tapedev to be /dev/null.
14158 1999-04-07 Mike Grupenhoff <kashmir@munge.com>
14160 * server-src/dumper.c: collect got_info_endline, got_sizeline,
14161 got_endline, and header_done into one bitmask global, and make it
14162 static. Also, make 'file' static.
14164 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14166 * server-src/reporter.c (TextRule): Fix to write the full string.
14168 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
14170 * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
14171 calls it libcrypto. Check for both.
14173 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
14175 * common-src/bsd-security.c (check_user): if an .amandahosts
14176 file is missing or unreadable, log this fact to the debug file
14177 instead of claiming that a user doesn't have permission.
14178 * common-src/bsd-security.c (bsd_stream_client): if
14179 DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
14180 be twice the size of our read buffer.
14182 1999-04-06 David Mankins <dm@k12-nis-2.bbn.com>
14184 * common-src/security.c (bsd_security_ok): if an .amandahosts
14185 file is missing or unreadable, log this fact to the debug file
14186 instead of claiming that a user doesn't have permission.
14188 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
14190 * server-src/dumper.c: put all of the streams (data,mesg,index)
14191 into an array with a name tag.
14192 * server-src/dumper.c (stop_dump): new function that cleans up
14193 and shuts down all of the streams.
14194 * server-src/dumper.c (sendbackup_response): make static, pass
14195 response_error through p->datap instead of making it global.
14196 Rewrite the parsing to use strtok() and take advantage of the
14197 streams array instead of repeading code for all three streams.
14199 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
14201 * server-src/dumper.c (main): keep our real uid as 0, and make
14202 our effective uid nonprivlidged, so we can get back to root
14203 later. Don't print what port we bound to. This info won't
14204 always be available or even applicable.
14205 * server-src/dumper.c (do_dump): create the stats line with one
14206 snprintf instead of a huge amount of code.
14208 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
14210 * server-src/dumper.c (startup_dump): make static, and const all
14212 * server-src/dumper.c (do_dump): make static
14214 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
14216 * server-src/dumper.c (do_dump): no need to have a separate buffer
14217 to read the mesgfd - just reuse the one we used for data reads.
14218 Gets rid of one more global. Also, we don't need to leave
14219 space for a NUL anymore.
14220 * server-src/dumper.c (main): wait for children after closing
14221 our fds. Some children may be blocked waiting for EOF on outfd,
14222 effectively causing deadlock between dumper and child.
14224 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
14226 * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
14227 doesn't expect the data to be nul terminated. Also, move
14228 the buffer from global scope into the function, and have a NULL
14229 arg flush it out if there is leftover data at the end. Finally,
14230 resize the buffer in 256 byte chunks.
14232 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
14234 * common-src/stream.c, common-src/stream.h (stream_client): add
14235 yet another arg - if nonzero, do a nonblocking connect
14236 * server-src/dumper.c: catch up with extra arg to stream_client()
14238 1999-04-06 Mike Grupenhoff <kashmir@munge.com>
14240 * common-src/bsd-security.c, common-src/security.h: attempt
14241 to decouple security streams from security handles. Lots of
14242 other restructuring.
14244 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14246 * server-src/amcheck.c: -t should read the tapelist to validate
14249 1999-03-30 Alexandre Oliva <oliva@dcc.unicamp.br>
14251 * patches/samba-largefs.patch: updated to patch that ended up
14252 installed in the Samba CVS tree
14254 * patches/tar-1.12.patch: patch the configure script so that it
14255 requires autoconf and autoheader to be run; improve the
14256 printf_long_long test so that it doesn't get false positives because
14259 * changer-src/scsi-chio.c: since we do not support FreeBSD 3's
14260 camlib.h interface, #ifdef out all the code
14261 Reported by Francis Lam <Francis.Lam@Leitch.com>
14263 * configure.in (VXSYSLOCPATH): apparently a complex path expression
14264 gets AC_PATH_PROGS confused; set the path beforehand
14265 Reported by Francis Lam <Francis.Lam@Leitch.com>
14267 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14269 * server-src/reporter.c: compiler warning.
14271 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14273 * server-src/amtrmlog.c: new program to move unused log
14275 * server-src/Makefile.am: install amtrmlog.
14276 * server-src/find.h: declare find_log().
14277 * server-src/find.c(find_log): new function to return an array of
14278 all the logfile name that are still needed.
14279 * server-src/find.c(search_logfile): special case if output_find==NULL,
14280 return 1 if it the logfile fir the label.
14282 1999-03-25 Neil Crellin <neil@wallaby.cc>
14284 * docs/TAPE.CHANGERS (chg-chs): URL for chs
14286 1999-03-25 Alexandre Oliva <oliva@dcc.unicamp.br>, Tom Schutter <tom@platte.com>, Cloyce D. Spradling <cloyce@headgear.org>
14288 * patches/samba-largefs.patch: updated for Samba 2.0.*
14290 1999-03-25 Charles Owens <owensc@enc.edu>
14292 * changer-src/chg-chio.pl.in (changeTape): do not print status to
14293 both stdout and stderr; this causes failures on FreeBSD
14295 1999-03-23 Mike Grupenhoff <kashmir@munge.com>
14297 * common-src/stream.c, common-src/stream.h (stream_client):
14298 const the hostname arg
14300 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14302 * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
14303 * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
14305 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14307 * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
14308 * Makefile.am: make dumper-src directory
14309 * dumper-src: directory for program that implement the DUMPER-API.
14310 * dumper-src/Makefile.am:
14311 * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
14312 * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
14314 1999-03-21 Elmar Bartel <bartel@Informatik.TU-Muenchen.DE>
14316 * conffile.h, conffile.c: new columnspec option
14317 * reporter.c: use it
14318 * man/amanda.8.in: description and example
14319 * example/amanda.conf.in: ditto
14321 1999-03-20 Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
14323 * configure.in: SAMBA_VERSION is not set correctly.
14325 1999-03-17 Alexandre Oliva <oliva@dcc.unicamp.br>
14327 * client-src/sendbackup-dump.c (re_table): generalize a bit some of
14328 the regular expressions, so as to make us more adaptable to future
14329 minor changes and bugfixes the the output format of some dumps
14331 1999-03-16 Thomas Hepper <th@ant.han.de>
14332 * changer-src/chg-scsi.c: If the open of the TapeDevice fails
14333 the programm is not terminated.
14334 * changer-src/scsi-aix.c: The wrong ident string was checked
14336 * changer-src/scsi-bsd.c: see scsi-aix.c
14337 * changer-src/scsi-linux.c: see scsi-aix.c
14338 * changer-src/scsi-solaris.c: see scsi-aix.c
14339 * changer-src/scsi-changer-driver.c: Added some more debug prints.
14340 Wrong fd passwd to LogSense.
14341 * docs/TAPE.CHANGERS: added note about linux and aha1542
14343 1999-03-15 Mike Grupenhoff <kashmir@munge.com>
14345 * common-src/packet.h: explicitly list the numeric values for
14346 the pktype_t enum, so we can use them on the wire
14348 1999-03-15 Alexandre Oliva <oliva@dcc.unicamp.br>
14350 * config/ltconfig, config/ltmain.sh: updated from libtool 1.2f
14351 * config/libtool.m4i, config/config.guess, config/config.sub: ditto
14352 * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
14354 1999-03-15 Mike Grupenhoff <kashmir@munge.com>
14356 * common-src/bsd-security.c (recv_security_ok): bring over
14357 increased verbosity change from common-src/security.c
14359 1999-03-14 Mathias Herberts <Mathias.Herberts@ago.fr>
14361 * man/amrecover.8.in: document mode and setmode
14363 1999-03-14 Jon Stevens <jon@clearink.com>
14365 * common-src/security.c (bsd_security_ok): increase the verbosity of
14366 failed authentication messages
14368 1999-03-14 Alexandre Oliva <oliva@dcc.unicamp.br>
14370 * configure.in (powerpc-*-linux-*): supported platform
14372 Reported by Jon Stevens <jon@clearink.com>
14374 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14376 * configure.in: new option --with-dumperdir=DIR to specify the
14377 directory for the dumpers (dumper api).
14378 * config/acconfig.h: add def of DUMPER_DIR
14380 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14382 * server-src/conffile.c: accept any string for the program.
14383 * server-src/amcheck.c: add the keyword DUMPER to the request if
14384 the program is not DUMP or GNUTAR.
14385 * server-src/planner.c: ditto
14386 * server-src/dumper.c: ditto
14388 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14390 * server-src/dumper.c (startup_dump): rename dumpname to progname.
14391 the function will use the parameter progname instead of the
14394 1999-03-06 Alexandre Oliva <oliva@dcc.unicamp.br>
14396 * configure.in (openbsd): according to Ralf Gebhart
14397 <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
14398 I assume other openbsd platforms work too.
14400 1999-03-06 Thomas Hepper <th@ant.han.de>
14402 * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
14403 * changer-src/: Get in sync with 2.4.2 Version
14405 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14407 * configure.in: set SAMBA_VERSION
14408 * client-src/sendbackup-gnutar.c (start_backup): use -q flag
14409 if SAMBA_VERSION >= 2
14411 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
14413 * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
14414 * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new
14416 * recover-src/extract_list.c: declare variable samba_extract_method.
14417 * recover-src/extract_list.c (extract_files_child): set dumptype
14418 according to samba_extract_method.
14419 * recover-src/help.c (help_list): print help for new command mode
14421 * recover-src/set_commands.c (set_mode, show_mode): new functions.
14422 * recover-src/uscan.l:
14423 * recover-src/uparse.y:
14425 1999-03-05 Mike Grupenhoff <kashmir@munge.com>
14427 * common-src/amanda.h: use ssize_t in writev return value
14428 * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
14429 use ssize_t over int
14430 * common-src/file.c (areads): use ssize_t to hold read() return val
14431 * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
14433 * common-src/security.h: stream_read's callback now takes a ssize_t
14434 as the third argument.
14435 * common-src/writev.c (writev): return a ssize_t
14437 1999-03-05 Mike Grupenhoff <kashmir@munge.com>
14439 * configure.in: check for ssize_t, make it int if not present
14440 * config/acconfig.h: add def for ssize_t
14442 1999-03-05 Mike Grupenhoff <kashmir@munge.com>
14444 * common-src/base64.c (base64encode): don't cast away a const
14447 1999-03-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14449 * common-src/bsd-security.c (stream_read_callback): change n to int
14450 since ssize_t doesn't exist on all OS.
14452 1999-03-03 Ralf Fassel <ralf@akutech.de>
14454 * common-src/conffile.h: bit field of length 1 should be unsigned int,
14457 1999-03-03 Ralf Fassel <ralf@akutech.de>
14459 * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
14461 1999-03-03 Ralf Fassel <ralf@akutech.de>
14463 * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
14465 1999-03-03 Ralf Fassel <ralf@akutech.de>
14467 * common-src/base64.c (base64encode): remove warning from sgi cc
14470 1999-03-03 Mike Grupenhoff <kashmir@munge.com>
14472 * common-src/bsd-security.c: use EV_WAIT events instead of
14473 maintaining a queue of listeners. Refcnt the dgram read event
14476 1999-03-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14478 * server-src/driverio.h: new parameter level to update_info_taper().
14479 * server-src/driverio.c (update_info_taper): use parameter instead
14480 of sched(dp)->level.
14481 * server-src/driver.c: call update_info_taper with level parameter.
14482 * server-src/amflush.c: call update_info_taper with level parameter.
14483 no longer need to create a sched_t struct.
14485 1999-03-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14487 * server-src/driverio.h: remove declaration of inparallel, cmdstr()
14488 and childstr(), declare init_driverio(), add inparallel parameter
14489 to startup_dump_processes().
14490 * server-src/driverio.c (init_driverio): new function to initialize
14491 dmptable and taper.
14492 * server-src/driverio.c (childstr): scan for all dumpers (MAX_DUMPERS)
14493 instead of only inparallel
14494 * server-src/driverio.c (startup_dump_processes): new parameter
14495 inparallel is used instead of global variable.
14496 * server-src/driver.c (main): call init_driverio.
14497 * server-src/driver.c (main): call startup_dump_processes with
14498 inparallel parameter.
14499 * server-src/amflush.c (main): call init_driverio.
14501 1999-03-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14503 * server-src/amrmtape.sh.in: work with "last_level" and
14504 "consecutive_runs" in the ouput of "amadmin export".
14506 1999-03-01 Mike Grupenhoff <kashmir@munge.com>
14508 * common-src/security.h: implement security_connect callback and
14509 security_status_t changes
14511 1999-03-01 Mike Grupenhoff <kashmir@munge.com>
14513 * common-src/bsd-security.c (bsd_connect): properly munge the uids
14514 to get a reserved port
14515 * common-src/bsd-security.c: adapt to the security_connect
14517 * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
14518 so skip the vstralloc
14520 1999-03-01 Mike Grupenhoff <kashmir@munge.com>
14522 * common-src/event.c: implement EV_WAIT events. Implement macros
14523 for adding/removing/traversing the event queue
14524 * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
14526 1999-02-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14528 * docs/WISHLIST: protocol between the driver and dumpers.
14530 1999-02-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14532 * server-src/amtoc.pl.in: output the datestamp of each dump, because
14533 amflush can flush the same disk multiple date.
14535 1999-02-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14537 * server-src/holding.h: declare struct holding_t. Remove
14538 declaration of insert_dirname, scan_holdingdisk. Declare
14539 new function free_holding_list. pick_datestamp and
14540 pick_all_datestamp now return (holding_t *).
14541 * server-src/holding.c (insert_dirname): new parameter holding_list
14542 where we add the name. Can add more than MAX_DIRS name.
14543 * server-src/holding.c (free_holding_list): new function to free
14545 * server-src/holding.c (scan_holdingdisk): new parameter holding_list.
14546 * server-src/holding.c (pick_all_datestamp, pick_datestamp): return
14547 a list instead of a (char **).
14548 * server-src/find.c (search_holding_disk): use the list return by
14549 pick_all_datestamp.
14550 * server-src/amflush.c: use the list return by pick_datestamp.
14551 * server-src/amcleanupdisk.c (check_disks): use the list return by
14552 pick_all_datestamp.
14554 1999-02-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14556 * server-src/driverio.c (addfd): bug fixe.
14558 1999-02-22 Alexandre Oliva <oliva@dcc.unicamp.br>
14560 * client-src/sendbackup-gnutar.c: new regexp for SAMBA
14561 Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
14563 1999-02-17 Alexandre Oliva <oliva@dcc.unicamp.br>
14565 * server-src/amtoc.pl.in: minor fixes for multi-tape runs
14567 1999-02-17 Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
14569 * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
14570 command-line arguments changed
14571 * man/amtoc.8.in: ditto
14573 1999-02-17 Alexandre Oliva <oliva@dcc.unicamp.br>
14575 * changer-src/chg-multi.sh.in: minor portability changes
14576 * docs/TAPE.CHANGERS: originally by James da Silva
14578 1999-02-17 Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
14580 * changer-src/chg-multi.sh.in: various portability changes and
14581 general fixes, particularly for multieject; new cycle mode
14582 * docs/TAPE.CHANGERS: detailed description of chg-multi
14583 * example/chg-multi.conf: updated; added reference to
14584 docs/TAPE.CHANGERS for details
14586 1999-02-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14588 * server-src/driverio.h: remove declaration of addfd.
14589 * server-src/driverio.c (addfd): 2 new arguments, readset and maxfd,
14590 don't use global variable.
14591 * server-src/driverio.c (startup_tape_process, startup_dump_process):
14592 call addfd with new argument.
14594 1999-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14596 * server-src/driverio.c (startup_tape_process): new taper_program
14598 * server-src/driverio.h: remove declaration of taper_program.
14599 * server-src/driver.c (main): declare taper_program.
14600 * server-src/driver.c: call startup_tape_process with the new
14601 taper_program argument.
14602 * server-src/amflush.c (run_dumps): declare taper_program.
14603 * server-src/amflush.c (run_dumps): call startup_tape_process with
14604 the new taper_program argument.
14606 1999-02-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14608 * server-src/driverio.c (startup_dump_process, startup_dump_processes):
14609 new dumper_program argument.
14610 * server-src/driverio.h: remove declaration of dumper_program.
14611 * server-src/driver.c: declare dumper_program.
14612 * server-src/driver.c: call startup_dump_process and
14613 startup_dump_processes with the new dumper_program argument.
14615 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14617 * server-src/list_dir.h: remove global variable dir_list, declare
14618 new function get_dir_list.
14619 * server-src/list_dir.c (get_dir_list): new function to return dir_list.
14620 * server-src/amindexd.c (opaque_ls): use get_dir_list.
14622 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14624 * server-src/holding.h: remove declaration of get_letter_from_user()
14626 * server-src/holding.c: remove function get_letter_from_user() and
14628 * server-src/holding.c (pick_datestamp): return empty array instead
14629 of calling exit if no directory are found.
14630 * server-src/amflush.c (get_letter_from_user): new function copied
14632 * server-src/amflush.c (confirm): write a message and exit if no
14633 directory were found.
14635 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14637 * server-src/amflush.c (flush_holdingdisk): don't update the database
14638 when flushing a partial dump.
14640 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14642 * server-src/holding.h (get_dumpfile): new function
14643 * server-src/holding.c (get_dumpfile): new function to fill a
14644 dumpfile_t struct from a holding file.
14646 1999-02-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14648 * server-src/amlabel.c: compiler warning: too many arguments for format
14650 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14652 * server-src/amlabel.c: remove the label from the tapefile in
14653 case it was already there (-f).
14655 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14657 * server-src/dumper.c: make sure holding files are not larger
14660 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14662 * server-src/amcleanupdisk.c: new program to scan and find temporary
14663 file on holding disks.
14664 * server-src/Makefile.am (libexec_PROGRAMS): add amcleanupdisk.
14665 * server-src/amcleanup.sh.in: call amcleanupdisk.
14667 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14669 * server-src/holding.c (pick_all_datestamp): new function to return
14670 all datestamp in the holding disks.
14671 * server-src/holding.h: declare pick_all_datestamp.
14673 1999-02-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14675 * server-src/diskfile.h (host_t): new start_t field.
14676 * server-src/diskfile.c (read_diskline): set start_t to 0.
14677 * server-src/driver.c (start_some_dumps): Don't start a dump if
14678 the host->start_t > now.
14679 * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
14680 in the future when starting a FILE_DUMP.
14681 * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
14682 the future when starting a PORT_DUMP.
14684 1999-02-10 Alexandre Oliva <oliva@dcc.unicamp.br>
14686 * server-src/amlabel.c (main): try to read just-written tape label
14687 back; if wrendmark overwrote the label, suggest using a
14688 non-rewinding device
14689 * tape-src/tapeio.c (tape_wrendmark): would not close tape device if
14692 1999-02-10 Paul Bijnens <Paul.Bijnens@lant.be>
14694 * server-src/amoverview.pl.in: Y2K fix in output to user
14695 * server-src/amtoc.pl.in (print_info): ditto
14697 1999-02-10 Alexandre Oliva <oliva@dcc.unicamp.br>
14699 * client-src/sendsize.c (getsize_dump): do not redirect standard
14700 output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
14702 1999-02-03 Alexandre Oliva <oliva@dcc.unicamp.br>
14704 * NEWS: fix description of incronly: it won't really perform full
14707 * NEWS: support for ufsdump -S, incronly strategy and new chunksize
14710 * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
14712 * example/amanda.conf.in: ditto
14713 * man/amanda.8.in: ditto
14715 * configure.in (amanda_cv_dump_estimate): check for support for -S
14716 too, and define HAVE_DUMP_ESTIMATE as the estimate switch, if any
14717 * client-src/sendsize.c (re_size): new regexps for Solaris ufsdump
14718 -S and Samba `du'. Restrict regexp that matched Digital Unix'
14719 dump -E so that it doesn't match smbclient's output any more.
14720 Move some regexps around, and only define them if the corresponding
14721 dump program is available
14723 1999-02-01 Alexandre Oliva <oliva@dcc.unicamp.br>
14725 * example/amanda.conf.in: document the behavior of relative
14727 * man/amanda.8.in: ditto
14729 * man/amanda.8.in (exclude list): the GNU tar flag is
14730 --exclude-from, not --exclude-list
14731 Reported by Tom Schutter <tom@platte.com>
14733 * client-src/sendbackup-gnutar.c (re_table): ignore `session request
14734 to' message printed by Samba 2.0.0
14736 1999-01-28 Alexandre Oliva <oliva@dcc.unicamp.br>
14738 * man/amanda.8.in (comprate): it is not used when there is history
14739 information; useful for large disks that compress little
14740 Reported by job bogan <job@piquin.uchicago.edu>
14742 * Makefile.am: select which SUBDIRS to descend to here
14743 * client-src/Makefile.am: removed if WANT_CLIENT
14744 * tape-src/Makefile.am: removed if WANT_TAPE
14745 * server-src/Makefile.am: removed if WANT_SERVER
14746 * changer-src/Makefile.am: ditto
14747 * restore-src/Makefile.am: removed if WANT_RESTORE
14748 * recover-src/Makefile.am: removed if WANT_RECOVER
14749 * amplot/Makefile.am: removed if WANT_AMPLOT
14751 1999-01-27 Alexandre Oliva <oliva@dcc.unicamp.br>
14753 * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
14755 * configure.in (USE_AMANDAHOSTS): enable by default
14756 * example/config.site: ditto
14757 * docs/INSTALL: ditto
14760 * docs/INSTALL: updated URLs for GNU packages and Samba
14761 * docs/SAMBA: note that Samba 2.0.0 is supported
14763 * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
14765 1999-01-27 Thomas Hepper <th@ant.han.de>
14766 * changer-src/scsi-changer-driver.c SCSI_ReadElementStatus
14767 A while loop has to start with while, not if .....
14769 1999-01-27 Alexandre Oliva <oliva@dcc.unicamp.br>
14771 * Makefile.am (EXTRA_DIST): sst was added within contrib
14773 * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
14774 * configure.in: AC_SUBST LIBTOOL_DEPS
14775 * Makefile.am: regen libtool if neded
14777 * Makefile.am: declare that we want automake 1.4 and we're a foreign
14780 * configure.in: require autoconf 2.13, and use
14781 AC_VALIDATE_CACHED_SYSTEM_TUPLE instead of
14782 AC_VALIDATE_CACHE_SYSTEM_TYPE
14783 * config/acinclude.m4i: removed AC_VALIDATE_CACHE_SYSTEM_TYPE
14785 * configure.in (SAMBA_CLIENT): updated check for smbclient to
14786 support Samba 2.0.0
14788 1999-01-26 Alexandre Oliva <oliva@dcc.unicamp.br>
14790 * server-src/amdump.sh.in (runuser): set to LOGNAME if defined, and
14791 to the output of whoami otherwise
14792 Reported by Tom Schutter <tom@platte.com>
14794 1999-01-26 Thomas Hepper <th@ant.han.de>
14795 * Makefile.am Added sst driver files to EXTRA_DIST
14797 1999-01-26 Thomas Hepper <th@ant.han.de>
14798 * changer-src/Makefile.am added to LDADD
14799 ../tape-src/libamtape.$(LIB_EXTENSION)
14800 * changer-src/chg-scsi.c If statfile is not set try to get the info
14801 about the current loaded tape direct from the changer.
14802 Fixed debug output for the eject value if > 1
14803 * changer-src/libscsi.h Prototype for GetCurrentSlot
14804 * changer-src/scsi-aix.c If the Device we open is not a changer or tape
14805 return NULL, so that the above function can abort. New eject per mtio ioctl.
14806 * changer-src/scsi-bsd.c see scsi-aix.c
14807 * changer-src/scsi-linux.c see scsi-aix.c
14808 * changer-src/scsi-hpux_new.c see scsi-aix.c
14809 * changer-src/scsi-irix.c see scsi-aix.c
14810 * changer-src/scsi-solaris.c see scsi-aix.c and added a retry loop for
14811 the execution of SCSI commands.
14812 * changer-src/scsi-changer-driver.c New Function SCSI_ReadElementStatus
14813 split ReadElementStatus in device and device independed part
14814 New EXB120ElementStatus, renamed ReadElementStatus in GenericElementStatus
14815 added EXB 120 and DLT7000 to the devices list.
14816 Removed the linked list for the element status. Now every element
14817 type has its own array allocated in the *ElementStatus functions.
14818 Check in the functions which sends SCSI commands if the fd is able to
14819 receive SCSI commands.
14820 In GenericEject check which type of eject to use (ioctl/SCSI)
14821 New GetCurrentSlot, try to get the info about the loaded tape direct from
14823 * changer-src/scsi-chio.c Add function GetCurrentSlot (not well tested yet)
14824 * changer-src/scsi-defs.h Added missing decl. in MediumTransportElementDescriptor_T
14825 for LITTLE_ENDIAN_BITFIELDS
14826 new field from in ElementInfo_T
14827 * changer-src/sci-hpux.c EMpty function GetCurrentSlot, do we still need scsi-hpux.c ?
14828 * docs/TAPE.CHANGERS added some notes for HP-UX, expanded list of tested devices
14830 1999-01-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14832 * server-src/conffile.c (init_defaults): default value of runspercycle
14834 * server-src/amadmin.c (balance): use default value of runspercycle.
14835 * server-src/planner.c (main): use default value of runspercycle.
14837 1999-01-22 Martin Apel <apel@tecmath.de>
14839 * example/amanda.conf.in: explanation of incronly strategy.
14840 * man/amanda.8.in: explanation of incronly strategy.
14841 * server-src/amadmin.c: recognize incronly strategy
14842 * server-src/conffile.c: read the incronly strategy in the
14843 configuration file.
14844 * server-src/conffile.h: definition of DS_INCRONLY
14845 * server-src/planner.c: Do planning for incronly strategy:
14846 If the force flag is set perform a full dump, otherwise do
14847 normal incremental processing but avoid full dumps.
14848 * server-src/tapefile.c: Bugfix so only tapes which match
14849 the regular expression for tape labels in the current
14850 configuration are considered for writing.
14852 1999-01-22 Alexandre Oliva <oliva@dcc.unicamp.br>
14854 * common-src/bsd-security.c (check_user): there was no uid variable
14855 here; replace with getuid()
14857 1999-01-22 Alexandre Oliva <oliva@dcc.unicamp.br>
14859 * server-src/planner.c (output_scheduleline): removed `or historical
14860 data' from `no estimate' message; historical data doesn't matter any
14862 Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
14864 1999-01-20 Todd Pfaff <pfaff@mcmaster.ca>
14866 * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
14868 * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message
14870 1999-01-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14872 * server-src/amflush.c: use ap_snprintf instead of snprintf.
14873 * server-src/amflush.c: rotation of new amflush log was broken.
14875 1999-01-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14877 * server-src/reporter.c: always call output_stats(), the problem is
14878 that degraded_mode is set if amflush fills the tape.
14880 1999-01-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14882 * server-src/amflush.c: write debuging info to $logdir/amflush
14883 instead of /dev/null if we run in background.
14884 * server-src/amcleanup.sh.in: rename $logdir/amflush.
14886 1999-01-14 Mike Grupenhoff <kashmir@munge.com>
14888 * server-src/dumper.c (make_tapeheader): explicitly compare
14889 srvcompress against srvcomp_none instead of assuming that
14890 srvcomp_none's value is 0.
14892 1999-01-14 Mike Grupenhoff <kashmir@munge.com>
14894 * server-src/dumper.c: move max() macro to top of file. Add min()
14895 * server-src/dumper.c (databuf_write): use min() to determine the
14897 * server-src/dumper.c (databuf_flush): more clearly calculate the
14898 buffer offset in the write loop
14900 1999-01-14 Mike Grupenhoff <kashmir@munge.com>
14902 * server-src/dumper.c (databuf_write): Egads! Also increment the
14903 source pointer doing a partial buf copy
14905 1999-01-14 Mike Grupenhoff <kashmir@munge.com>
14907 * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
14908 instead of getpwuid(getuid()), in case our caller has not done
14911 1999-01-12 Mike Grupenhoff <kashmir@munge.com>
14913 * server-src/dumper.c (add_msg_data): properly check for half-sent
14916 1999-01-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14918 * server-src/amstatus.pl.in: fix a divide by zero error.
14920 1999-01-11 Mike Grupenhoff <kashmir@munge.com>
14922 * server-src/dumper.c (add_msg_data): clarify and comment. Remove
14923 'len' arg. Const 'str' arg.
14924 * server-src/dumper.c (do_dump): compresspid and indexpid should
14925 be pid_t's. Also, remove len from add_msg_data call.
14927 1999-01-11 Mike Grupenhoff <kashmir@munge.com>
14929 * server-src/fileheader.c (parse_file_header): const the buffer
14931 * server-src/fileheader.h: update parse_file_header proto for const
14934 1999-01-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14936 * server-src/amstatus.pl.in: report the current dump when reporting
14937 the busy time of each dumper.
14939 1998-12-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
14941 * server-src/dumper.c: open temporary holding file with O_TRUNC flags
14942 and with mode 0600.
14944 1998-12-28 John R. Jackson <jrj@purdue.edu>
14946 * server-src/reporter.c: do not drop core generating labels if the
14947 tape label is not defined, e.g. in degraded mode (compliments of
14948 Jan L. Peterson <jlp@Part.NET>).
14950 1998-12-28 John R. Jackson <jrj@purdue.edu>
14952 * server-src/amtape.c: initialize two strings to NULL to avoid a
14953 core dump, compliments of G. Allen Morris III <gam3@acm.org>.
14955 1998-12-27 John R. Jackson <jrj@purdue.edu>
14957 * man/amreport.8.in: remove reference to 8.5x11 paper size for the
14960 1998-12-27 John R. Jackson <jrj@purdue.edu>
14962 * example/3hole.ps: new lbl-templ file for 3 hole punch reports
14963 * example/Makefile.am: add 3hole.ps
14965 1998-12-22 Thomas Hepper <th@icem.de>
14967 * docs/TAPE.CHANGERS Update notes about chg-scsi
14968 * changer-src/chg-scsi.c Added new config option tapestatus,
14969 if set the tape log pages are written to this file.
14970 changed parameter list for get_clean_state/ask_clean,
14971 * changer-src/libscsi.h changed parameter list for get_clean_state
14972 * changer-src/scsi-changer-driver.c Added new functions OpenDevice
14973 CloseDevice LookupDevice.
14974 Added new functions to read and decode the Tape LOG Pages.
14975 Tape Eject and ready check is now done by SCSI calls
14977 * changer-src/scsi-aix.c
14978 * changer-src/scsi-bsd.c
14979 * changer-src/scsi-hpux_new.c
14980 * changer-src/scsi-hpux.c
14981 * changer-src/scsi-irix.c
14982 * changer-src/scsi-solaris.c
14983 Changed all SCSI_OpenDevice/SCSI_CloseDevice functions so that they
14984 fit to the new OpenDevice/CloseDevice calls. Removed mtio.h from
14985 includes, remove Tape_Ready and Tape_Eject
14986 * changer-src/scsi-chio.c
14987 * changer-src/scsi-defs.h
14989 For all changer-src files, removed tabs, run indent (from xemacs)
14990 Added emacs variables to the end (no tab, gnu style)
14992 1998-12-21 John R. Jackson <jrj@purdue.edu>
14994 * man/amanda.8.in: document the lbl-templ tapetype option.
14996 1998-12-21 John R. Jackson <jrj@purdue.edu>
14998 * man/amreport.8.in: fix formatting problem.
15000 1998-12-20 John R. Jackson <jrj@purdue.edu>
15002 * configure.in: define NEED_RESETOFS unless LFS (large file system
15003 support) is available.
15004 * config/acconfig.h: add NEED_RESETOFS tag.
15005 * server-src/taper.c: only reset the tape offset if NEED_RESETOFS
15006 is defined and only once per 2 GBytes.
15008 1998-12-20 Alexandre Oliva <oliva@dcc.unicamp.br>
15010 * server-src/amlabel.c (main): datestamp for new tapes is now 0
15011 * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
15013 * man/amlabel.8.in: document that tapes are added to tapelist
15015 1998-12-19 Mike Grupenhoff <kashmir@munge.com>
15017 * server-src/dumper.c (runcompress): new function. Given an output
15018 file descriptor, inserts a gzip/compress in front of that descriptor.
15019 * server-src/dumper.c (do_dump): if srvcompress is true, insert
15020 the gzip (using runcompress) in front of the output fd instead
15021 of the input fd. Only do this after the tapeheader has been written.
15023 1998-12-19 Mike Grupenhoff <kashmir@munge.com>
15025 * server-src/dumper.c (startup_chunker): new function. When doing
15026 chunking, fork a piped subprocess that reads in a fileheader and
15027 a data stream, and writes out the headered, chunked files. This
15028 allows us to treat unchunked, chunked, and port-dump dumps exactly
15030 * server-src/dumper.c (main): file-dump: if chunksize > 0,
15031 call startup_chunker for our outfd. Otherwise, open the
15032 holding file directly.
15034 1998-12-19 Mike Grupenhoff <kashmir@munge.com>
15036 * server-src/dumper.c (struct databuf): add a chunk_size member,
15037 the size of each chunk. Remove chunksize global.
15038 * server-src/dumper.c (main): add a chunksize local var
15039 * server-src/dumper.c (databuf_init): init the chunk_size member
15040 with the same value as split_size
15041 * server-src/dumper.c (databuf_flush): increment db->split_size
15042 by the amount in db->chunk_size instead of the global chunksize
15044 1998-12-19 John R. Jackson <jrj@purdue.edu>
15046 * server-src/amstatus.pl.in: instead of just displaying why no
15047 dumpers were busy, display reason(s) why N+1 were not busy.
15049 1998-12-18 John R. Jackson <jrj@purdue.edu>
15051 * server-src/amstatus.pl.in: add statistics about how much time
15052 taper and each dumper is busy, how much time N dumpers are busy
15053 and why no dumpers were busy.
15055 1998-12-18 Mike Grupenhoff <kashmir@munge.com>
15057 * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
15058 and 'split_size' members to replace the equivalent globals. Nuke
15060 * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
15061 args to init those members. Init filename_seq to 0.
15062 * server-src/dumper.c (main): declare and init the databuf here
15063 * server-src/dumper.c (databuf_flush): refer to split_size, filename,
15064 and filename_seq in the databuf instead of the globals.
15065 * server-src/dumper.c (do_dump): now takes a databuf instead of an
15066 output file descriptor.
15068 1998-12-18 John R. Jackson <jrj@purdue.edu>
15070 * server-src/amstatus.pl.in: fix two perl warnings.
15072 1998-12-18 John R. Jackson <jrj@purdue.edu>
15074 * server-src/amstatus.pl.in: fix two minor typos. Add percentage
15075 display to the summary comparing real and estimated size and real
15076 versus total estimate (showing how well the estimates are doing and
15077 a rough guess at how far along the run is). Also the percentage of
15078 total holding disk space in use.
15080 1998-12-18 John R. Jackson <jrj@purdue.edu>
15082 * server-src/amstatus.pl.in: take the --file argument as is if it
15083 is an absolute path.
15085 1998-12-18 John R. Jackson <jrj@purdue.edu>
15087 * server-src/driver.c: call short_dump_state() one last time before
15088 quitting so amstatus gets a last good status. Tell taper to quit
15089 after the dumpers since it writes more information to the amdump
15090 file (helps prevent mixed messages).
15092 1998-12-17 Mike Grupenhoff <kashmir@munge.com>
15094 * server-src/dumper.c (databuf_flush): return 0 on success
15096 1998-12-17 Mike Grupenhoff <kashmir@munge.com>
15098 * server-src/dumper.c (databuf_flush): new function. Writes
15099 the contents of the databuf out to its backing file, doing splitting
15101 * server-src/dumper.c (databuf_write): call databuf_flush when the
15102 databuf fills up. Fully complete all writes (no short writes)
15103 * server-src/dumper.c (do_dump): databuf_write now guarantees complete
15104 writes, so remove retry loop. Call databuf_flush() when eof is hit.
15105 Do not close datafd on eof, because our caller (main) passed it to
15106 us and therefore owns it (and main does close it again).
15108 1998-12-17 Mike Grupenhoff <kashmir@munge.com>
15110 * server-src/dumper.c (databuf_init): new function, initializes
15112 * server-src/dumper.c (update_dataptr): rename to databuf_write,
15113 and have it take a buffer and a size, and return how many bytes
15114 of the buffer were written
15115 * server-src/dumper.c (do_dump): use databuf_init to initialize db.
15116 Use databuf_write to add incomign data to the databuf.
15117 Make size1 and size2 local to the blocks they are used in.
15119 1998-12-17 Alexandre Oliva <oliva@dcc.unicamp.br>
15121 * common-src/Makefile.am (noinst_DATA): removed; bogus
15122 * config/config.guess, config/config.sub: config/install-sh,
15123 config/mkinstalldirs: updated to current pre-2.13 autoconf CVS tree
15124 * patches/autoreconf.patch: removed
15125 * config/libtool/libtool.m4: renamed to config/libtool.m4i
15126 * config/acinclude.m4: renamed to config/acinclude.m4i
15127 * config/Makefile.am (EXTRA_DIST): updated to reflect changes
15128 * autogen: build config/acinclude.m4 by concatenating acinclude.m4i
15130 * configure.in: no longer test whether libtool is installed; require
15132 * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
15134 * amplot/Makefile.am (EXTRA_DIST): no longer needed
15135 * changer-src/Makefile.am (chg_scsi_SOURCE): move scsi-defs.h closer
15136 to the beginning of the list
15137 * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
15140 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15142 * common-src/genversion.c (main): rip out krb4 defines. If we
15143 need this info, each driver will have to do it individually.
15145 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15147 * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
15148 element from dumptype_t, and get_auth() lookup func. Add
15149 security_driver to dumptype_t and parse value of AUTH keyword
15151 * server-src/conffile.h: nuke auth_t. Remove auth_t auth, int s_auth
15152 from typetype_t; add char *security_driver, int s_security_driver.
15153 * server-src/diskfile.c: nuke auth_t auth from disk_t, add
15154 char *security_driver. Inherit security_driver from the dumptype_t
15156 * server-src/diskfile.h: ditto
15157 * server-src/amadmin.c (disklist_one): output the security-driver
15158 string in place of the auth type
15159 * server-src/amcheck.c (start_client_checks, handle_response):
15160 enum type hostp->disks->auth is gone. check the string in the
15161 security_driver for this disk for krb4 auth.
15162 * server-src/planner.c (getsize, handle_result): check the string
15163 in hostp->disks->security_driver for the auth type.
15165 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15167 * server-src/amindexd.c: no need to include protocol.h
15169 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15171 * server-src/amindexd.c: remove duplication inclusion of version.h.
15172 Include tapefile.h to get read_tapelist() prototype
15173 * server-src/amindexd.c (build_disk_table): remove a plethora of
15175 * server-src/amindexd.c (main): rename security_ok() call to
15176 check_security(), and define check_security() locally. security_ok
15177 will disappear when the new security api goes in
15179 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15181 * server-src/changer.c (changer_label): make it return void
15182 to keep gcc warning about control reaching the end of a nonvoid
15184 * server-src/changer.c: update changer_label's proto for previous
15186 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15188 * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
15190 * server-src/amadmin.c: use the bitmask macros for setting
15191 and clearing the bits in the infofile command word
15192 * server-src/planner.c: ditto. This fixes a bug in the code that
15193 tried to clear FORCE_FULL with an xor expression that was
15194 never assigned (x ^ FORCE_FULL)
15196 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15198 * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
15199 use %ld to print them.
15201 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15203 * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
15204 * common-src/packet.h: ditto for pkt_cat
15205 * common-src/security.h: likewise for security_seterror
15207 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15209 * common-src/error.c (error): const the format arg
15210 * common-src/amanda.h: mark error with gcc's noreturn attribute, and
15211 const its format arg
15213 1998-12-14 Mike Grupenhoff <kashmir@munge.com>
15215 * common-src/debug.c (debug_printf): const the format arg
15216 * common-src/amanda.h: const debug_printf's format arg
15218 1998-12-14 Alexandre Oliva <oliva@dcc.unicamp.br>
15220 * configure.in (BSD SCSI): test ... -a ... is not portable, and less
15221 so when written test ... -a test ... :-)
15223 1998-12-14 Thomas Hepper <th@icem.de>
15225 * changer-src/Makefile.am Added scsi-bsd.c
15226 * changer-src/chg-scsi.c Initialize *scsitapedevice
15227 * changer-src/scsi-changer-driver.c remove LITTLE_ENDIAN_BITFILEDS
15229 changed RequestSense to pRequestSense (there is a function
15230 called RequestSense)
15231 changed error handling in ResetStatus (fix for IRIX)
15232 FIxed length handling for the pages in ReadElemtStatus
15233 * changer-src/scsi-chio.c get_clean_state only returns 0, the
15234 ioctl to get the clean flag is not portable ;-(
15235 changed all (f)printf to dbprintf
15237 * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
15238 LITTLE endian the same ...
15240 * changer-src/scsi-bsd.c New file for FreeBSD
15242 * changer-src/scsi-irix.c Clean up in the return handling
15243 changed RequestSense to pRequestSense
15244 Removed unused function TapeStatus
15246 * changer-src/scsi-linux.c changed RequestSense to pRequestSense
15247 Removed unused function TapeStatus
15249 * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
15250 Removed unused function TapeStatus
15252 * config/acconfig.h added def for BSD_LIKE_SCSI
15254 * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
15255 added sys/scsiio.h and check for BSD SCSI interface
15257 1998-12-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15259 * server-src/driver.c (handle_dumper_result): rename .tmp files
15260 when receiving ABORT_FINISHED.
15262 1998-12-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15264 * server-src/driver.c (start_some_dumps): Use the holdp returned
15265 by find_diskspace for a big_dumper in degraded mode.
15267 1998-12-11 Alexandre Oliva <oliva@dcc.unicamp.br>
15269 * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
15270 (IRIX): patch for xfsdump estimates
15272 1998-12-10 John R. Jackson <jrj@purdue.edu>
15274 * common-src/amflock.c (main): remove call set_pname() for
15275 CONFIGURE_TEST since error.o is not linked in.
15277 1998-12-10 Mike Grupenhoff <kashmir@munge.com>
15279 * server-src/dumper.c (struct databuf): add a fd member - the file
15280 descriptor that we are buffering
15281 * server-src/dumper.c (update_dataptr): remove
15282 outf arguments, use the fd in the passed databuf. Return 0 on
15283 success, and -1 on error.
15284 * server-src/dumper.c (update_dataptr): rework and comment the
15285 chunk code a bit. Get rid of the cont_filename global.
15286 * server-src/dumper.c (do_dump): init the fd member of the databuf
15287 * server-src/dumper.c (write_dataptr): fold back into update_dataptr
15289 1998-12-10 John R. Jackson <jrj@purdue.edu>
15291 * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
15294 1998-12-10 John R. Jackson <jrj@purdue.edu>
15296 * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
15297 * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
15299 1998-12-10 Mike Grupenhoff <kashmir@munge.com>
15301 * server-src/dumper.c (update_dataptr): remove pointless backups
15302 of the databuf and associated vars when creating next chunk.
15303 Remove duplicate setting of file.cont_filename.
15305 1998-12-10 Mike Grupenhoff <kashmir@munge.com>
15307 * server-src/dumper.c (main): reuse outfd to clear the open files
15308 passed to us. Nuke the fd var.
15309 * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
15310 was always set to 1
15312 1998-12-09 Mike Grupenhoff <kashmir@munge.com>
15314 * server-src/dumper.c (write_tapeheader): kill dead code
15315 * server-src/dumper.c (main): remove useless amfree of datestamp.
15316 Add missing break to 'default' case in command loop.
15317 * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
15318 Create a 'struct databuf' that holds all three.
15319 * server-src/dumper.c (write_dataptr, update_dataptr): make
15320 these take a 'struct databuf *' as an argument, and have them
15321 operate on its contents instead of the aforementioned globals
15322 * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
15323 Make it static, because it's large. Use it instead of the
15326 1998-12-09 Mike Grupenhoff <kashmir@munge.com>
15328 * server-src/dumper.c (main): rework the command loop a bit.
15329 Consolidate all duplicated error cleanup into one place at the
15330 end of the loop after each command has been processed. Exit
15331 with exit(), not return.
15333 1998-12-09 Mike Grupenhoff <kashmir@munge.com>
15335 * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
15336 argv globals, pass them as arguments to getcmd() via struct cmdargs.
15337 * server-src/dumper.c (getcmd): make the command lookup table driven.
15338 * server-src/dumper.c (write_dataptr): restructure the command
15339 logic a bit to hopefully clarify things.
15341 1998-12-09 Henning P. Schmiedehausen <henning@tanstaafl.de>
15343 * client-src/sendbackup.c (parse_options): Added check whether the
15344 pathname of the exclude file is relative and if yes, use the
15345 mountpoint of the filesystem as anchor. So you can put your exclude
15346 file in the root of the filesystem to backup.
15347 * client-src/sendsize.c (getsize_gnutar): added the same check as
15348 above so sendsize uses the same exclude file.
15350 1998-12-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15352 * server-src/holding.c (size_holding_files): return size in KB.
15353 * server-src/driver.c (adjust_diskspace): use KB returned by
15354 size_holding_files.
15355 * server-src/driver.c: rename .tmp file
15356 * server-src/dumper.c: do not rename .tmp file. let the driver do it.
15358 1998-12-09 John R. Jackson <jrj@purdue.edu>
15360 * common-src/stream.c (stream_server): do not request a reserved port
15361 if we are root but PORTRANGE is defined. Also, clean up the code
15362 and make sure *portp is -1 on all error returns.
15364 1998-12-08 John R. Jackson <jrj@purdue.edu>
15366 * Makefile.am: add the user-contributed area.
15367 * contrib/README: describe the user-contributed area.
15368 * contrib/dbbackup.README: README for Oracle database backup system.
15369 * contrib/dbbackup.ksh: Oracle database backup system wrapper.
15370 * contrib/dbbackup.sql: Oracle database backup system setup commands.
15371 * contrib/dbbackup.tcl: Oracle database backup system main body.
15373 1998-12-08 John R. Jackson <jrj@purdue.edu>
15375 * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
15376 compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
15378 1998-12-08 John R. Jackson <jrj@purdue.edu>
15380 * configure.in: fix reversed code for --with-amrecover, compliments
15381 of Yar Tikhiy <yar@radio-msu.net>.
15383 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15385 * common-src/fileheader.h (dumpfile_t): new is_partial field.
15386 * common-src/fileheader.c: add codee for new is_partial field.
15387 * server-src/holding.h (rename_tmp_holding): declare new function.
15388 * server-src/holding.c (rename_tmp_holding): new function.
15389 * server-src/dumper.c (do_dump): return 1 if succeded, otherwise 0.
15390 * server-src/dumper.c (main): open .tmp when dumping to disk,
15391 rename .tmp if do_dump return 1.
15392 * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
15393 * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
15395 1998-12-07 Mike Grupenhoff <kashmir@munge.com>
15397 * server-src/amtape.c (main, usage): make command lookup and usage
15400 1998-12-07 Mike Grupenhoff <kashmir@munge.com>
15402 * server-src/amadmin.c: make command lookup and usage table-driven
15403 * server-src/amadmin.c (balance, tape, bumpsize): add
15404 argc/argv arguments to make them like the rest
15405 * server-src/amadmin.c (show_version): new function, implements
15406 the version command, so it is done like the other commands
15407 * server-src/amadmin.c (main): iterate through cmdtab[] when
15408 looking up the command, instead of a huge if/then/else
15409 * server-src/amadmin.c (usage): iterate through cmdtab[] when
15410 displaying usage strings. Display the "disklist" usage string.
15412 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15414 * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
15416 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15418 * NEWS: document new force-bump, force-no-bump and unforce-bump
15419 command in amadmin.
15421 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15423 * server-src/holding.c (size_holding_files): new function to
15424 return the sum of the size of all chunk of an image.
15425 * server-src/holding.h (size_holding_files): declare.
15426 * server-src/driver.c (adjust_diskspace): use size_holding_files
15427 instead of doing a stat of only the first chunk.
15429 1998-12-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15431 * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
15433 * man/amadmin.8.in: document them.
15435 1998-12-05 Alexandre Oliva <oliva@dcc.unicamp.br>
15437 * docs/FAQ (large filesystems): fixed reference to results missing
15438 (results missing): updated to 64Kb UDP packets
15440 1998-12-04 Mike Grupenhoff <kashmir@munge.com>
15442 * common-src/amanda.h: implement WIFSIGNALED() if not already
15444 * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
15445 WTERMSIG(), and WIFSIGNALED(). These are already handled in amanda.h
15446 * server-src/changer.c: ditto
15448 1998-12-03 Mike Grupenhoff <kashmir@munge.com>
15450 * common-src/bsd-security.c (recv_security_ok): only check for
15451 a reserved port for REQ packets
15453 1998-12-03 Mike Grupenhoff <kashmir@munge.com>
15455 * common-src/bsd-security.c (recvpkt_callback): only compare
15456 the sin_addr and sin_port fields in the sockaddr when determining
15457 what handle an incoming packet belongs to.
15458 * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
15459 since it's a string.
15461 1998-12-03 Mike Grupenhoff <kashmir@munge.com>
15463 * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
15464 the 'SECURITY USER' line in the packet
15465 * common-src/bsd-security.c (check_user): fix many bugs
15466 in the USE_AMANDAHOSTS case
15468 1998-12-03 Mike Grupenhoff <kashmir@munge.com>
15470 * configure.in: AC_REPLACE_FUNCS(writev)
15472 1998-12-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15474 * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
15475 * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
15476 * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
15478 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
15480 * config/acconfig.h: add KRB5_SECURITY. Update comment above
15481 krb4 define to make clear that they are for krb4
15483 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
15485 * configure.in: if we're doing krb4 and -lcom_err is there, pull
15487 * configure.in: implement --with-krb5-security.
15489 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
15491 * common-src/dgram.c (dgram_cat): now can take printf-style
15493 * common-src/dgram.g (dgram_cat): update prototype
15495 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
15497 * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
15498 * common-src/bsd-security.c (bsd_connect): catch up with
15499 security interface changes - upper layer now allocates our handle
15500 Also, pass up useful error message about why connects failed
15501 via the handle we are given
15502 * common-src/bsd-security.c (gethandle): rename to inithandle,
15503 since we are now passed the handle's memory. No need to allocate
15504 memory or initialize the error msg pointer
15505 * common-src/bsd-security.c (bsd_close): now an empty function - no
15507 * common-src/bsd-security.c (recvpkt_callback): allocate the handle
15508 before calling inithandle() (nee gethandle()).
15509 * common-src/bsd-security.c (stream_read_callback): put
15510 strerror(errno) in the handle's error buffer before passing a
15511 read error up to the caller
15513 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
15515 * common-src/krb5-security.c: new stub file that pulls in the
15516 krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
15519 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
15521 * common-src/base64.{c,h}: new files, implement base64 encoding
15522 and decoding. Implementation based on routines in bind, and so
15523 copyright is held by ISC and IBM (but is BSD-like).
15525 1998-12-02 Mike Grupenhoff <kashmir@munge.com>
15527 * common-src/security.h: add 'handlesize' to the driver struct, also
15528 make the connect function pointer return int and take a handle
15530 * common-src/security.h (security_connect): addd a 'const char **'
15531 errmsg argument for returning connect errors
15533 1998-12-01 John R. Jackson <jrj@purdue.edu>
15535 * server-src/amcheck.c: make -t mean do the tape checks, add new -l
15536 option for doing just the local server (non-tape) checks. Have -w
15537 turn on -t. Have -cs (or -sc) do both server and client checks.
15538 * man/amcheck.8.in: document above changes and clean up some minor
15541 1998-12-01 Mike Grupenhoff <kashmir@munge.com>
15543 * common-src/event.c (release): nuke bogus comment about signal
15545 * common-src/event.c (event_loop): move the reentrancy assert
15546 after the empty queue check. Otherwise, calling event_loop()
15547 with an empty event queue would cause the entry count to get
15548 out of sync. Also, on exit, assert that the entry count has
15550 * common-src/event.c (event_loop): fix bogus comment about event
15553 1998-12-01 Mike Grupenhoff <kashmir@munge.com>
15555 * common-src/arglist.h: implement arglist_function3()
15557 1998-11-30 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15559 * server-src/driver.c (start_some_dumps): In degraded mode,
15560 a big dumper should do high priority dump before low priority.
15561 * server-src/driver.c (sort_by_priority_reversed): sort by
15562 time if priority is equal.
15564 1998-11-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15566 * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
15568 * server-src/amadmin.c (force_one,unforce_one,info_one): work
15569 with info.command with bit operator.
15570 * server-src/planner.c (setup_estimate): work with info.command
15571 with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
15573 1998-11-27 Thomas Hepper <th@icem.de>
15575 * changer-src/scsi-aix.c Some changes in the error handling in
15576 scsi command execution
15577 * changer-src/scsi-changer-driver.c More debug prints.
15578 removed Endian16/Endian24 (replaced with macros)
15579 * changer-src/scsi-chio.c make get_clean_state work on linux
15580 * changer-src/scsi-defs.h added macros for converting from/to
15582 * docs/TAPE.CHANGERS add note about AIX and chg-scsi
15584 1998-11-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15586 * server-src/amadmin.c(export_one): export the last_level and
15587 consecutive_runs field.
15588 * server-src/amadmin.c(import_one): import the last_level and
15589 consecutive_runs field.
15591 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
15593 * common-src/amanda.h: uhh, every other decl has a leading
15594 'extern' so writev() should as well
15596 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
15598 * common-src/amanda.h: if no writev() decl exists, declare one
15600 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
15602 * configure.in: check for <sys/uio.h>, check for a writev() decl
15603 in <unistd.h> and/or <sys/uio.h>
15605 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
15607 * common-src/writev.c (writev): new file, implements writev for
15608 systems that lack it
15610 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
15612 * common-src/amanda.h: include <sys/uio.h> if it exists. Otherwise,
15613 define struct iovec
15615 1998-11-24 John R. Jackson <jrj@purdue.edu>
15617 * server-src/amlabel.c: insist on being run as the dump user (ala
15618 amlabel) to keep permissions straight.
15620 1998-11-24 John R. Jackson <jrj@purdue.edu>
15622 * server-src/amadmin.c: fix minor message format problem.
15624 1998-11-24 John R. Jackson <jrj@purdue.edu>
15626 * server-src/amlabel.c: insist on being run as the dump user (ala
15627 amflush) to keep permissions straight.
15629 1998-11-24 John R. Jackson <jrj@purdue.edu>
15631 * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
15632 amdump) to keep permissions straight.
15634 1998-11-24 John R. Jackson <jrj@purdue.edu>
15636 * server-src/amadmin.c: issue a warning for update commands that might
15637 leave ownership incorrect.
15639 1998-11-24 John R. Jackson <jrj@purdue.edu>
15641 * server-src/amcheck.c: add a "-t" option to disable tape tests in the
15642 server checks. This lets server checks be done without mounting a
15643 tape. Add lots more sanity checks, in particular, ownership and
15644 permissions of the index area and text format database. Warn if
15645 amcheck is not run as the dump user listed in amanda.conf. Minor
15646 consistency cleanup in the messages.
15647 * man/amcheck.8.in: document the changes.
15649 1998-11-24 Mike Grupenhoff <kashmir@munge.com>
15651 * common-src/dgram.c (dgram_bind): always try to get a reserved
15652 port, even if KRB4_SECURITY is defined
15654 1998-11-23 Mike Grupenhoff <kashmir@munge.com>
15656 * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
15657 to 'char proto_handle[32]' because the remote client might generate
15658 handles that aren't completely numerical
15659 * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
15661 * common-src/bsd-security.c (bsd_connect): convert our generated
15662 handle into a string to pass to gethandle()
15663 * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
15664 strtok(). Parse the handle as a string instead of trying to
15665 convert it into a number
15667 1998-11-20 Alexandre Oliva <oliva@dcc.unicamp.br>
15669 * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
15670 renamed if it exists, even if no log file could be found.
15672 1998-11-20 Mike Grupenhoff <kashmir@munge.com>
15674 * common-src/bsd-security.c: define STREAM_BUFSIZE to be
15675 the size of the tcp socket buffers
15676 * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
15677 adapt to the stream_server() interface changes. Set socket
15678 buffers to STREAM_BUFSIZE.
15680 1998-11-20 Alexandre Oliva <oliva@dcc.unicamp.br>
15682 * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
15683 updated to current CVS libtool
15685 1998-11-19 John R. Jackson <jrj@purdue.edu>
15687 * server-src/conffile.c (get_holdingdisk, init_holdingdisk_defaults):
15688 set the default chunksize and the "0" and "-1" special chunksizes
15689 to 64 KBytes less than the maximum to allow the final read at EOF.
15690 * server-src/dumper.c (main): leave the chunksize as it is when it
15691 comes in except to truncate it to a 32 KByte boundary.
15692 * man/amanda.8.in: add some chunksize comments and clean up a few
15693 minor odds and ends.
15695 1998-11-19 Mike Grupenhoff <kashmir@munge.com>
15697 Give amrecover its own security bits. It has different needs
15698 and a different protocol than the rest of amanda, so it shouldn't
15699 try to reuse the security bits
15700 * recover-src/amrecover.c (get_security): new function, implements
15702 * recover-src/amrecover.c (main): call get_security()
15703 * recover-src/amrecover.h: get_security() prototype
15704 * recover-src/extract_list.c (extract_files_setup): call
15706 * restore-src/amidxtaped.c (check_security): new function, implements
15707 * restore-src/amidxtaped.c (main): call check_security()
15709 1998-11-19 Mike Grupenhoff <kashmir@munge.com>
15711 * common-src/stream.c (stream_server, stream_client): cast 4th
15712 arg of setsockopt() to (void *) to quash a compiler warning
15715 1998-11-19 John R. Jackson <jrj@purdue.edu>
15717 * recover-src/amrecover.c (main): use set_host to find the initial
15718 host name so we get the same alias resolution at startup as the
15720 * recover-src/set_commands.c (set_host): report alternate names being
15721 attempted and only clear the directory list if a host is found.
15723 1998-11-19 Alexandre Oliva <oliva@dcc.unicamp.br>
15725 * server-src/driverio.c (update_info_dumper): do not update
15726 compression or dump rates when called from
15727 update_failed_dump_to_date
15728 Reported by Michael Schmitz <mschmitz@sema.de>
15730 1998-11-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15732 * server-src/dumper.c (main): reduce the size of the chunksize by
15735 1998-11-18 Alexandre Oliva <oliva@dcc.unicamp.br>
15737 * configure.in: hack for paxutils was not working; fixed
15739 1998-11-18 Michael Povel <mcp@ladyada.han.de>
15741 * server-src/changer.h added new functions:changer_query
15742 ,changer_search,changer_find, changer_label
15743 * server-src/changer.c added changer_query, changer_search,
15744 changer_find, changer_label
15745 * server-src/amcheck.c (taper_scan) now uses changer_find
15746 * server-src/amtape.c (load_label and taper_scan) now use changer_find
15747 * server-src/taper.c (taper_scan) now uses changer_find
15748 * server-src/amlabel.c (main) added call to changer_label
15749 which is only an empty dummy at the moment
15751 1998-11-18 Thomas Hepper <th@icem.de>
15753 * changer-src/chg-scsi.c Added debug print option
15754 * changer-src/chg-scsi.c If the load fails do not continue
15755 * changer-src/scsi-aix.c changed #include <config.h> to <amanda.h>
15756 * changer-src/scsi-aix.c Added debug prints to SCSI_ExecuteCommand
15757 * changer-src/scsi-changer-driver.c changed #include <config.h> to
15758 #include <amanda.h>
15759 * changer-src/scsi-changer-driver.c Added debugging prints
15760 * changer-src/scsi-changer-driver.c Remove unused funktion TestUnitReady
15761 * changer-src/scsi-chio.c added missing funktion Tape_Ready
15762 * changer-src/scsi-hpux.c removed #include "config.h", is already done
15764 * changer-src/scsi-hpux_new.c changed #include <config.h> to
15765 #include <amanda.h>
15766 * changer-src/scsi-irix.c changed #include <config.h> to
15767 #include <amanda.h>
15768 * changer-src/scsi-linux.c changed #include <config.h> to
15769 #include <amanda.h>
15770 * changer-src/scsi-solaris.c changed #include <config.h> to
15771 #include <amanda.h>
15773 1998-11-17 Alexandre Oliva <oliva@dcc.unicamp.br>
15775 * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
15778 1998-11-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15780 * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
15781 to shift the tpsave array.
15783 1998-11-17 Alexandre Oliva <oliva@dcc.unicamp.br>
15785 * example/amanda.conf.in: document that infofile is supposed to be a
15786 directory with the default database format
15787 * docs/FAQ: New questions: `infofile update failed' and `using the
15788 same host in different configurations'
15790 1998-11-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15792 changer-src/scsi-linux.c (Tape_Ready): typo, the argument Device
15793 to the SCSI_CloseDevice() is not defined, I changed it to tapedev.
15795 1998-11-17 Brendan M Coffey <bcoffey@connix.com>
15797 * common-src/stream.c (stream_server): add requested send and receive
15798 socket size parameters.
15799 * common-src/stream.h (stream_server): ditto
15800 * server-src/taper.c (file_reader_side): set a large receive socket
15802 * client-src/sendbackup.c (main): set a large send and receive socket
15803 buffer size for the data path, use defaults for the message and index
15806 1998-11-16 Alexandre Oliva <oliva@dcc.unicamp.br>
15808 * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
15810 1998-11-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15812 * server-src/infofile.h (get_dumpdate): rename record parameter to info.
15813 * server-src/infofile.h (get_info): rename record parameter to info.
15814 * server-src/infofile.h (put_info): rename record parameter to info.
15815 * server-src/infofile.c (get_dumpdate): rename rec parameter to info.
15816 * server-src/infofile.c (zero_info): rename ip parameter to info.
15817 * server-src/infofile.c (get_info): rename record parameter to info.
15818 * server-src/infofile.c (put_info): rename record parameter to info.
15819 * server-src/infofile.c (dump_rec): rename r parameter to info.
15820 * server-src/infofile.c (dump_db): rename record variable to info.
15821 * server-src/planner.c (last_level): rename ip parameter to info.
15822 * server-src/planner.c (next_level0): rename ip parameter to info.
15823 * server-src/planner.c (runs_at): rename ip parameter to info.
15824 * server-src/planner.c (askfor): rename inf parameter to info.
15825 * server-src/planner.c (setup_estimate): rename inf variable to info.
15826 * server-src/driverio.c (update_info_dumper): rename inf parameter
15828 * server-src/driverio.c (update_info_taper): rename inf parameter
15830 * server-src/amadmin.c (next_level0): rename ip parameter to info.
15831 * server-src/amadmin.c (force_one): rename inf variable to info.
15832 * server-src/amadmin.c (unforce_one): rename inf variable to info.
15833 * server-src/amadmin.c (delete_one): rename inf variable to info.
15834 * server-src/amadmin.c (info_one): rename inf variable to info.
15835 * server-src/amadmin.c (due_one): rename inf variable to info.
15836 * server-src/amadmin.c (balance): rename inf variable to info.
15838 1998-11-11 Thomas Hepper <th@icem.de>
15840 * configure.in: amanda_cv_hpux_scsi was double defined.
15841 Replaced it in the chio check with amanda_cv_hpux_scsi_chio
15842 * docs/TAPE.CHANGERS: update the notes about chg-scsi
15843 * changer-src/chg-scsi.c: Unload the cleaning tape only
15845 Pass the changerdev and tapedev Tape_Ready, so we can check
15846 if changerdev=tapedev. In this case the fd is already open.
15847 * changer-src/scsi-aix.c: cleanup and first parts are running :-)
15848 * changer-src/scsi-changer-driver.c: Pass back the scsi status
15849 field to the calling function, not the result from the ioctl
15850 if the return form the ioctl is >= 0
15851 * changer-src/scsi-hpux.c: Add additional param to Tape_Ready
15852 fill Tape_Ready with live
15853 * changer-src/scsi-hpux_new.c: Return the scsi status if
15854 the ioctl result is >=0. Add new Parameter to Tape_Ready
15855 * changer-src/scsi-irix.c: same as scsi-hpux_new.c
15856 * changer-src/scis-linux.c: Add additional param to Tape_Ready
15857 * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
15859 1998-11-11 Mike Grupenhoff <kashmir@munge.com>
15861 * server-src/security.h: add driver entry points and macros
15862 for security_stream_accept() and security_stream_auth()
15863 * server-src/bsd-security.c: implement security_stream_accept()
15864 and security_stream_auth() for bsd security
15866 1998-11-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15868 * server-src/driver.c (main): redo my patch about total_disksize that
15869 Alexendre has undone, only the 2.4.1 branch was broken.
15871 1998-11-10 Alexandre Oliva <oliva@dcc.unicamp.br>
15873 * server-src/driver.c (main): total_disksize was only added after
15874 the loop terminated, i.e., when hdp was NULL -> crash. fixed.
15876 1998-11-09 John R. Jackson <jrj@purdue.edu>
15878 * server-src/reporter.c (main): ignore SIGPIPE so if a child process
15879 dies we do not also go away. Also fix a core dump if amanda.conf
15880 cannot be processed, and clean up a few error messages.
15882 1998-11-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15884 * server-src/infofile.h (struct info_s): add last_level and
15886 * server-src/infofile.c: support new last_level and consecutive_runs
15887 * server-src/planner.c (last_level): return ip->last_level.
15888 * server-src/planner.c (runs_at): return ip->consecutive_runs.
15889 * server-src/driverio.c (update_info_dumper): update inf.last_level
15890 and inf.consecutive_runs.
15892 1998-11-09 Mike Grupenhoff <kashmir@munge.com>
15894 * client-src/sendbackup-dump.c (start_backup): don't close indexf
15895 if it was never open
15896 * client-src/sendbackup-gnutar.c (start_backup): ditto
15898 1998-11-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15900 * server-src/driver.c (main): add hdp->disksize to total_disksize
15901 even when we create the datestamp dir. (reserve was unusable).
15903 1998-11-07 Alexandre Oliva <oliva@dcc.unicamp.br>
15905 * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
15907 * docs/STRATEGY-API: new file
15909 * configure.in (GNUTAR): accept tar from Free paxutils, the new name
15912 1998-11-07 Alexandre Oliva <oliva@dcc.unicamp.br>
15914 * changer-src/scsi-solaris.c: added missing #endif
15916 * configure.in: merge with camlib.h patch from Oct 31
15917 remove all uses of test ... -a ...; this is not portable.
15918 (AC_CHECK_HEADERS) added header files for Linux and Solaris
15920 1998-11-07 Thomas Hepper <th@icem.de>
15922 * changer-src/chg-scsi: Add config option scsidev
15923 * changer-src/chg-scsi: Remove function tape_ready
15924 * changer-src/chg-scsi: Add new parameter tapedev to function
15926 * changer_src/scsi-hpux.c: changed HAVE_HPUX_SCSI to
15927 HAVE_HPUX_SCSI_CHIO, changed in configure.in too
15928 * changer-src/libscsi.h: Expand definition for get_clean_state
15929 * new files in /changer-src:
15930 scsi-aix.c, scsi-changer-driver.c, scsi-defs.h
15931 scsi-hpux_new.c, scsi-irix.c, scsi-linux.c, scsi-solaris.c
15932 * configure.in checks for scsi ioctl added, check for header files
15933 for the scsi suport added
15934 * config/acconfig.h new:
15935 HAVE_HPUX_LIKE_SCSI, HAVE_HPUX_SCSI_CHIO, HAVE_LINUX_LIKE_SCSI
15936 HAVE_IRIX_LIKE_SCSI, HAVE_SOLARIS_LIKE_SCSI, HAVE_AIX_LIKE_SCSI
15937 removed: HAVE_HPUX_SCSI
15938 * changer-src/Makefile.am: New conditional for building chg-scsi-chio
15939 and chg-scsi. chg-scsi-chio is the old chg-scsi
15941 1998-11-06 Mike Grupenhoff <kashmir@munge.com>
15943 * common-src/bsd-security.c (bsd_stream_write): callback's third
15944 arg should now be an int.
15945 * common-src/bsd-security.c: quash some gcc -Wall warnings
15947 1998-11-06 Mike Grupenhoff <kashmir@munge.com>
15949 * common-src/security.h: the callback to stream_read should
15950 take signed type as its 'length' argument so errors can be
15951 expressed as a negative number.
15953 1998-11-06 Mike Grupenhoff <kashmir@munge.com>
15955 * common-src/bsd-security.c (stream_read_callback): do reads into
15956 a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
15957 buffer in the stream handle instead of on the stack, since it's
15960 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
15962 * common-src/event.c (event_loop): Consider error conditions on
15963 file descriptors as read or write events. The caller will be
15964 able to differentiate when they call read or write and it
15967 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
15969 * common-src/event.c (event_loop): print out WHY select failed
15971 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
15973 * common-src/bsd-security.c: adjust for the recvpkt timeout
15975 * common-src/bsd-security.c (handleq_remove): add a missing ; after
15977 * common-src/bsd-security.c (gethandle): initialize the error buffer
15978 in the security handle, since errors may be set before the handle
15979 is passed up to the general security layer
15980 * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
15981 called several times, or when no recvpkt was scheduled
15983 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
15985 * common-src/security.h: define security_recvpkt_status_t
15986 * common-src/security.h: security_driver_t->recvpkt() now
15987 takes a timeout argument, and its callback takes a
15988 security_recvpkt_status_t
15989 * common-src/security.h: adjust the security_recvpkt() macro
15990 for the above changes
15992 1998-11-05 Mike Grupenhoff <kashmir@munge.com>
15994 * common-src/event.c (event_loop): assert that we are not firing
15997 1998-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
15999 * recover-src/amrecover.c: remove declaration of errstr.
16001 1998-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16003 * server-src/amindexd.c (build_disk_table): call find_dump() instead
16004 of popen("amadmin <conf> find ...")
16006 1998-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16008 * server-src/holding.h: rename dir_list to holding_list because
16009 dir_list is also declared in amflush.c
16010 * server-src/holding.c: ditto
16011 * server-src/find.c: ditto
16013 1998-11-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16015 * server-src/amstatus.pl.in: remove warning.
16017 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
16019 * common-src/event.c (event_register): delete some improper debug
16020 code that shouldn't have made it in
16022 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
16024 * common-src/bsd-security.c: new file: security driver that
16025 implements "BSD" security.
16027 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
16029 * common-src/security.h: new file: the security api header
16031 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
16033 * common-src/event.c: new file: the event handler. Handles file
16034 descriptor io, signals, and timed events.
16035 * common-src/event.h: new file: interface for the event handler.
16037 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
16039 * common-src/packet.c: new file: description of pkt_t's and routines
16041 * common-src/packet.h: new file: header for common-src/packet.c
16043 1998-11-04 Mike Grupenhoff <kashmir@munge.com>
16045 * common-src/queue.h: new file: the 4.4BSD queue macros, with
16046 additions from NetBSD
16048 1998-11-04 John R. Jackson <jrj@purdue.edu>
16050 * server-src/amverify.sh.in: tolerate extra amtape output.
16052 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br>
16054 * configure.in: bumped to 2.5.0
16056 * server-src/taper.c (read_file): if a new tape cannot be found,
16057 report a no-tape error to the log file and exit, just like it does
16060 1998-11-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16062 * server-src/planner.c (pick_inclevel): return base_level even
16063 when the estimate failed.
16064 * server-src/planner.c (output_scheduleline): test for degr_size
16065 instead of degr_level.
16067 1998-11-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16069 * server-src/planner.c (last_level): update last_date otherwise only
16070 level 0 or the highest is returned.
16072 1998-11-03 Mike Grupenhoff <kashmir@munge.com>
16074 * common-src/alloc.c: const arguments to the stralloc functions
16075 * common-src/amanda.h: update stralloc prototypes for const
16078 1998-11-03 John R. Jackson <jrj@purdue.edu>
16080 * server-src/dumper.c (do_dump): do not report FAILED back to driver
16081 when it sent us ABORT. Clean up and send back ABORT-FINISHED.
16083 1998-11-03 John R. Jackson <jrj@purdue.edu>
16085 * server-src/driver.c (handle_dumper_result): do not abort a dumper
16086 that reports NO-ROOM if taper is busy since some holding disk space
16087 will eventually be released (this code it not used when PORT-DUMP is
16090 1998-11-03 John R. Jackson <jrj@purdue.edu>
16092 * server-src/taper.c (write_buffer): calling lseek after every tape
16093 write is wasteful and makes utilities like lsof less useful. Only
16094 reset the offset when the amount written is about to go over 2 GBytes.
16096 1998-11-02 John R. Jackson <jrj@purdue.edu>
16098 * server-src/driver.c (main, start_degraded_mode): fix rounding problem
16099 that made the code think there was a little room for full dumps in
16100 degraded mode, and fix the code that decides whether to do a full dump
16103 1998-11-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16105 * server-src/amstatus.pl.in: initialize variable to remove warning.
16107 1998-11-02 Alexandre Oliva <oliva@dcc.unicamp.br>
16109 * client-src/Makefile.am (CLIENT_SCRIPTS): rename to
16110 CLIENT_SCRIPTS_OPT, because *_SCRIPTS is interpreted by automake
16111 * configure.in (CLIENT_SCRIPTS): ditto
16112 Reported by Thomas Hepper <Thomas.Hepper@icem.de>
16114 * configure.in (LIBTOOL_M4): no longer defined
16115 (LIBTOOL_M4_MACRO_DIR): defined assuming CWD is top_srcdir
16116 * Makefile.am (ACLOCAL_M4_FROM_SRCDIR): relative to srcdir
16117 (ACLOCAL_M4): defined and created using ACLOCAL_M4_FROM_SRCDIR
16118 Reported by Thomas Hepper <Thomas.Hepper@icem.de>
16120 * client-src/sendbackup.c (backup_program): rename to
16121 gnutar_program, that's the name it should have had from the
16123 * client-src/sendbackup-gnutar.c (backup_program): ditto
16125 1998-10-31 Michael Schmitz <mschmitz@iname.com>
16127 * configure.in: let configure check whether strcasecmp is
16129 * common-src/strcasecmp.c: new file which contains a definition
16131 * common-src/amanda.h: added code to declare strcasecmp in
16132 case it's not declared in a standard header
16134 1998-10-31 Alexandre Oliva <oliva@dcc.unicamp.br>
16136 * configure.in (snprintf): arrange that it is included in the
16137 distribution automatically
16138 * common-src/Makefile.am (EXTRA_DIST): removed, not needed
16140 * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
16143 * configure.in (NO_SCSI_CHANGER_MODE): chg-scsi does not support the
16144 new FreeBSD 3.0 chio.h, so disable it if camlib.h is found.
16145 * docs/SYSTEM.NOTES (FreeBSD 3.0): add a note about this
16146 (SunOS 4.x): libtool will no longer find incorrect library versions
16148 1998-10-30 John R. Jackson <jrj@purdue.edu>
16150 * common-src/security.c (bsd_security_ok): change error message to
16151 reflect that it is a host name we were looking up rather than an
16152 address (also makes the two similar messages unique).
16154 1998-10-28 Alexandre Oliva <oliva@dcc.unicamp.br>
16156 * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates
16158 1998-10-28 John R. Jackson <jrj@purdue.edu>
16160 * recover-src/set_commands.c (set_host): if the host given by the user
16161 does not work, try the canonical name and aliases returned by
16164 1998-10-28 John R. Jackson <jrj@purdue.edu>
16166 * configure.in: use "df /" instead of just "df" when trying to find
16167 the device that has the root file system to avoid things like NFS
16168 hangs that df sometimes suffers from.
16170 1998-10-27 Mike Grupenhoff <kashmir@munge.com>
16172 * common-src/stream.c (stream-client): add a 'localport' argument
16173 in which we can get the port this stream is bound to locally
16174 * common-src/stream.h (stream-client): update prototype
16175 * server-src/dumper.c: update stream-client calls
16177 1998-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16179 * client-src/amandad.c (main): better logging of received packet,
16180 do not send a P_ACK when the received packet is not a P_REQ.
16182 1998-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16184 * client-src/amandad.c (main): terminate immediately if started
16185 by a P_ACK packet without sending a P_NAK packet.
16187 1998-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16189 * server-src/conffile.h (dtimeout): new keyword
16190 * server-src/conffile.c (dtimeout): ditto
16191 * server-src/dumper.c: use dtimeout instead of READ_TIMEOUT
16192 * example/amanda.conf.in: document it
16193 * man/amanda.8.in: ditto
16196 1998-10-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16198 * server-src/dumper.c (sendbackup_response): a nak error will
16199 be a TRY-AGAIN instead of a FAILED.
16201 1998-10-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16203 * server-src/amlabel.c: move declaration of vtbl_no, datestr
16204 and slotcommand to the main function.
16206 1998-10-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16208 * server-src/amlabel.c: remove declaration of pname.
16210 1998-10-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16212 * server-src/amcheckdb.sh.in: modify to match new tapelist file
16213 format (keyword reuse and no-reuse). Probably no-one use this
16216 1998-10-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16218 * server-src/driver.c (handle_dumper_result): Add sleep time
16219 when a dumper failed, it could be a temporary network problem,
16220 such as NIS or NFS, better wait a few seconds before retrying.
16222 1998-10-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16224 * server-src/driverio.h: remove declaration of argc et argv.
16225 * server-src/driverio.h (getresult): add parameters result_argc,
16226 result_argv and max_arg.
16227 * server-src/driverio.c (getresult): use new parameters.
16228 * server-src/amflush.c (flush_holdingdisk, run_dumps): declare
16229 and use result_argc and result_argv instead of global variables
16231 * server-src/driver.c (main, handle_taper_result,
16232 handle_dumper_result, dump_to_tape): ditto
16234 1998-10-24 John R. Jackson <jrj@purdue.edu>
16236 * server-src/amstatus.pl.in: do not be quite so accurate in matching
16237 the log file lines since messages may be intermixed. Turn on perl
16238 -w switch and make first cut at cleaning up warnings.
16240 1998-10-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16242 * server-src/driverio.h: remove datestamp declaration.
16243 * server-src/amcheck.c: remove 'extern' to datestamp declaration.
16244 * server-src/amflush.c: declare datestamp.
16245 * server-src/amtape.c: remove 'extern' to datestamp declaration.
16246 * server-src/driver.c: declare datestamp.
16247 * server-src/dumper.c: remove 'extern' to datestamp declaration.
16248 * server-src/reporter.c: remove 'extern' to datestamp declaration.
16250 1998-10-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16252 * server-src/driverio.h: remove declaration of tok.
16253 * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
16255 * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
16256 dump_to_tape): declare tok locally.
16258 1998-10-23 John R. Jackson <jrj@purdue.edu>
16260 * configure.in: disable the -E and -h dump estimate checks if $DUMP
16263 1998-10-19 John R. Jackson <jrj@purdue.edu>
16265 * server-src/amindexd.c (is_config_valid): fix core dump by moving
16266 amfree of conf_dir later in case it is needed in an error message.
16268 1998-10-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16270 * server-src/reporter.c: remove declaration of curlinenum,
16271 curlog, curprog and curstr.
16273 1998-10-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16275 * server-src/amflush.c (main): move declaration of diskqp from
16278 1998-10-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16280 * server-src/amcheck.c (main): move declaration of mailout and
16281 tempfname from global to local.
16283 1998-10-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16285 * server-src/amadmin.c (search_logfile): remove declaration
16287 1998-10-15 Mike Grupenhoff <kashmir@munge.com>
16289 * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
16292 1998-10-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16294 * server-src/conffile.h: remove declaration of holdingdisks and
16295 num_holdingdisks, declare getconf_holdingdisks().
16296 * server-src/conffile.c: define getconf_holdingdisks(),
16297 * server-src/holding.c: use getconf_holdingdisks
16298 * server-src/find.c: ditto
16299 * server-src/amcheck.c: ditto
16300 * server-src/amflush.c: ditto
16301 * server-src/driver.c ditto
16303 1998-10-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16305 * server-src/driver.c: remove verbose and force_parameters
16308 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16310 * server-src/dumper.c: remove declaration of pid.
16311 * server-src/dumper.c(do_dump): move declaration of runtime,
16312 dumptime, compresspid, indexpid and killerr from global to local.
16314 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16316 * server-src/planner.c: remove declaration of total_waiting and
16318 * server-src/planner.c(main): move declaration of initial_size from
16321 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16323 * server-src/driverio.h,server-src/driver.c: move declaration
16324 of big_dumpers, degraded_mode and reserved_space from
16325 driverio.h to driver.c
16327 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16329 * server-src/driverio.h (optionstr): remove declaration
16331 1998-10-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16333 * configure.in (SAMBA_CLIENT): fix typo
16335 1998-10-14 John R. Jackson <jrj@purdue.edu>
16337 * restore-src/amrestore.c (read_file_header): make a couple of error
16338 messages clearer that they refer to problems with a header rather
16339 than the image data.
16341 1998-10-13 Alexandre Oliva <oliva@dcc.unicamp.br>
16343 * client-src/Makefile.am (libamclient_a_SOURCES): missing since
16346 1998-10-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16348 * docs/INTERNALS (driver and dumper): document <dumpdate> in
16349 FILE-DUMP and PORT-DUMP request, document <chunksize> in
16352 1998-10-12 John R. Jackson <jrj@purdue.edu>
16354 * server-src/amtape.c (usage, main, show_device): apply patch from
16355 Chris Jones <cjones@clydesdale.math.montana.edu> to support "device"
16356 as an option to return the drive device name as reported by the
16358 * man/amtape.8: document the new "device" option.
16359 * server-src/amverify.sh.in: use the new amtape "device" option to
16360 better handle tape changers. Overhaul for general cleanup and some
16361 security issues, plus amverify now tries to support non-tar images.
16362 * man/amverify.8.in: document non-tar image issues.
16364 1998-10-08 John R. Jackson <jrj@purdue.edu>
16366 * example/amanda.conf.in: fix runspercycle example and comments
16368 1998-10-08 Alexandre Oliva <oliva@dcc.unicamp.br>
16370 * configure.in (SAMBA_CLIENT): try to find it by default; minimal
16372 * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
16374 * docs/SAMBA: document that --with-smbclient is no longer required
16375 to enable SAMBA support
16377 * docs/FAQ: about inconsistencies in active filesystems
16379 1998-10-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16381 * docs/DUMPER-API: add `no-record' option to the `backup' command.
16383 1998-10-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16385 * docs/DUMPER-API: subdivise section 3.1.
16387 1998-10-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16389 * docs/DUMPER-API: New `index-<mode>' options.
16390 define `support parse-estimate' and `support parse-backup' subcommand.
16391 New 'estimate-direct', `estimate-parse', `backup-direct' and
16392 `backup-parse' options.
16393 Remove PARSE keyword from estimate and backup command.
16395 1998-10-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16397 * docs/DUMPER-API: define PARSE keyword in stderr of the backup
16400 1998-10-03 Alexandre Oliva <oliva@dcc.unicamp.br>
16402 * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not
16403 generated by autoconf get into the distribution
16405 1998-10-02 Josef Karthauser <joe@pavilion.net>
16407 * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression
16408 for $line; the trailing `s' of slots was missing
16410 1998-10-02 John R. Jackson <jrj@purdue.edu>
16412 * server-src/amstatus.pl.in: fix error message.
16414 1998-10-02 John R. Jackson <jrj@purdue.edu>
16416 * server-src/taper.c (write_file): fix a problem with tha taper
16417 stats where the times were all the same. The wallclock_str function
16418 returns a pointer to a static area so it cannot be called more
16419 than once as an argument to a function.
16421 1998-10-01 John R. Jackson <jrj@purdue.edu>
16423 * common-src/protocol.c (parse_integer): allow negative numbers.
16425 1998-10-01 John R. Jackson <jrj@purdue.edu>
16427 * server-src/amstatus.pl.in: add timestamps.
16429 1998-10-01 Alexandre Oliva <oliva@dcc.unicamp.br>
16431 * docs/DUMPER-API: define `support index', to be used instead of the
16432 previous `index-*' sub-commands
16434 1998-09-30 Alexandre Oliva <oliva@dcc.unicamp.br>
16436 * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use
16437 backslashes for continuation; this seems to break automake :-(
16439 1998-09-30 John R. Jackson <jrj@purdue.edu>
16441 * man/amanda.8.in: minor typo in "reserve" description.
16443 1998-09-29 John R. Jackson <jrj@purdue.edu>
16445 * server-src/taper.c (end_tape): do not rewind the tape when done.
16447 1998-09-29 Alexandre Oliva <oliva@dcc.unicamp.br>
16449 * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER,
16450 WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
16452 * amplot/Makefile.am: use them
16453 * changer-src/Makefile.am: ditto
16454 * client-src/Makefile.am: ditto
16455 * common-src/Makefile.am: ditto
16456 * man/Makefile.am: ditto
16457 * recover-src/Makefile.am: ditto
16458 * restore-src/Makefile.am: ditto
16459 * server-src/Makefile.am: ditto
16460 * tape-src/Makefile.am: ditto
16462 * Makefile.am: don't print commands that work around old aclocal bug
16464 * docs/DUMPER-API: remove environment variables, and mention a
16465 program that will help translating disklist entries to device names,
16466 mount points and filesystem types
16468 * recover-src/extract_list.c (extract_files_child): do not crash
16469 after failing to read the dump file header
16470 Reported by Jose Cheng <jcheng@math.ist.utl.pt>
16472 1998-09-28 Alexandre Oliva <oliva@dcc.unicamp.br>
16474 * server-src/taper.c (taperscan_slot): initialize scan_datestamp, to
16475 avoid amfree of uninitialized pointer
16476 Reported by Lance A. Brown <brown9@niehs.nih.gov>
16478 1998-09-27 Alexandre Oliva <oliva@dcc.unicamp.br>
16480 * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
16481 (estimate, estimate-parse): can print `KILL' after the estimate
16483 * docs/DUMPER-API: various suggestions from Eric Siegerman
16484 <erics@now.com> and some explanations added
16486 1998-09-27 Andy Farkas <andyf@speednet.com.au>
16488 * man/amlabel.8.in (labelstr): fix typo
16490 1998-09-26 Alexandre Oliva <oliva@dcc.unicamp.br>
16492 * recover-src/extract_list.c (extract_files_child): fix-up
16493 no_initial_params if password or domain information is not found
16494 Reported by Jose Cheng <jcheng@math.ist.utl.pt>
16496 * docs/DUMPER-API: extended `index' to `index-from-output' or
16497 `index-from-image', as suggested by Dale Hagglund <rdh@best.com>.
16498 Explained that the dumptype option `program' is the name of the
16501 1998-09-25 John R. Jackson <jrj@purdue.edu>
16503 * configure.in: fix --with-dump-honor-nodump test. Patch by
16504 Jonas Oberg <jonas@coyote.org>.
16506 1998-09-24 John R. Jackson <jrj@purdue.edu>
16508 * example/disklist: document the "spindle" and "interface" fields.
16509 Reported by Brendan M Coffey <bcoffey@connix.com>.
16511 1998-09-24 Alexandre Oliva <oliva@dcc.unicamp.br>
16513 * docs/DUMPER-API: added draft description of the DUMPER API
16514 * Makefile.am (EXTRA_DIST): add it to the distribution
16516 * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
16517 cached values for host, build and target system types match with the
16519 * configure.in: use it
16521 1998-09-23 John R. Jackson <jrj@purdue.edu>
16523 * server-src/amstatus.pl.in: sort the host and partition names.
16524 From David Wolfskill <dhw@whistle.com>.
16526 1998-09-23 Alexandre Oliva <oliva@dcc.unicamp.br>
16528 * server-src/taper.c (getcmd): typo in last DEBUGging patch
16530 1998-09-22 Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>, Alexandre Oliva <oliva@dcc.unicamp.br>
16532 * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
16534 1998-09-22 Alexandre Oliva <oliva@dcc.unicamp.br>
16536 * changer-src/chg-mtx.sh.in: replace rew with rewind
16537 * changer-src/chg-zd-mtx.sh.in: ditto
16538 Reported by Henning Holtschneider <hh@loca.net>
16540 * client-src/sendsize.c: remove usage of #error
16541 Reported by Jay Orr <orr@vss.fsi.com>
16543 1998-09-21 John R. Jackson <jrj@purdue.edu>
16545 * man/amanda.8.in: document the new "tapebufs" parameter.
16547 1998-09-21 Kelly Setzer <setzer@telalink.net>
16549 * server-src/taper.c (NBUFS): replaced with conf_tapebufs
16550 (THRESHOLD): now means `empty bufs' instead of `full bufs'
16551 * server-src/conffile.c: add support for the "tapebufs" option
16552 * server-src/planner.c: ditto
16553 * examples/amanda.conf.in: add sample "tapebufs" entry
16555 * server-src/amlabel.c (main): adds entry to tapelist with date
16558 1998-09-20 Alexandre Oliva <oliva@dcc.unicamp.br>
16560 * server-src/taper.c (getcmd): print DEBUGging output to stderr
16561 Reported by Henning Holtschneider <hh@loca.net>
16563 1998-09-19 Eric Doutreleau <Eric.doutreleau@int-evry.fr>
16565 * server-src/driverio.h (MAX_DUMPERS): increased from 15 to 63 in
16566 order to launch more dumper in parallel
16567 * example/amanda.conf.in (inparallel): Add the fact that it is
16568 limited by MAX_DUMPERS
16570 1998-09-18 Alexandre Oliva <oliva@dcc.unicamp.br>
16572 * common-src/Makefile.am (libamanda_la_LDFLAGS): use libtool
16573 -release instead of -version_info, so as to encode the Amanda
16574 release number in the library name. Problems related with
16575 pre-installed libraries should disappear, and separate releases can
16576 now be installed into the same directory without the risk of one
16577 using libraries from the other.
16579 1998-09-18 Michael C. Povel <Michael.Povel@hub.de>
16581 * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
16582 until success or timeout
16583 (ask_clean, main): use it
16585 1998-09-18 Alexandre Oliva <oliva@dcc.unicamp.br>
16587 * client-src/selfcheck.c (check_options): don't require runtar for
16590 * client-src/rundump.c: fix support for VDUMP-only installation
16591 * client-src/selfcheck.c (check_options): fix detection of advfs
16592 * client-src/sendsize.c (getsize_dump): ditto
16593 * client-src/sendbackup-dump.c (start_backup): ditto
16594 Reported by Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>
16596 1998-09-16 John R. Jackson <jrj@purdue.edu>
16598 * man/amadmin.8.in: document that "hostname" is optional for "info".
16599 Reported by David Wolfskill <dhw@whistle.com>.
16601 1998-09-15 Alexandre Oliva <oliva@dcc.unicamp.br>
16603 * docs/FAQ: common compile-time and link-time errors
16605 1998-09-11 John R. Jackson <jrj@purdue.edu>
16607 * server-src/tapefile.c (lookup_last_reusable_tape): use new
16608 calling sequence that passes how old a tape to return. Remove
16609 lookup_previous_reusable_tape().
16610 * server-src/tapefile.h (lookup_last_reusable_tape): use new
16611 calling sequence that passes how old a tape to return. Remove
16612 lookup_previous_reusable_tape().
16613 * server-src/amadmin.c (tape): use new lookup_last_reusable_tape
16615 * server-src/amcheck.c (taper_scan, start_server_check): use new
16616 lookup_last_reusable_tape calling sequence.
16617 * server-src/amflush.c (confirm): use new lookup_last_reusable_tape
16619 * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
16621 * server-src/reporter.c (output_tapeinfo): use new
16622 lookup_last_reusable_tape calling sequence.
16623 * server-src/taper.c (taper_scan): use new lookup_last_reusable_tape
16626 1998-09-11 Alexandre Oliva <oliva@dcc.unicamp.br>
16628 * client-src/sendbackup-gnutar.c (re_table): ignore
16629 `load_client_codepage' message from SAMBA
16631 1998-09-11 John R. Jackson <jrj@purdue.edu>
16633 * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
16634 problems. Reported by David Eckelkamp <davide@locutus.tradewave.com>.
16636 * man/amstatus.8.in (all): fix minor typos.
16638 1998-09-10 John R. Jackson <jrj@purdue.edu>
16640 * configure.in (LFS): add code that might support configuring large
16643 1998-09-10 Alexandre Oliva <oliva@dcc.unicamp.br>
16645 * server-src/conffile.c (dump_configuration): runspercycle is not a
16646 member of dumptype_t
16647 (init_holdingdisk_defaults): init chunksize with documented default,
16648 not -1, because it wouldn't be recalculated
16650 * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
16652 1998-09-10 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16654 * docs/SAMBA: 1.9.18p10 has a bug
16656 1998-09-09 Terje Malmedal <tm@funcom.com>
16658 * common-src/stream.c (stream_server, stream_client): added
16659 SO_KEEPALIVE option so we get an error if the other side crashes
16661 1998-09-09 Alexandre Oliva <oliva@dcc.unicamp.br>
16663 * configure.in (CHIO): look for chio and AC_SUBST it
16664 (MT, CHS): if not found, use just the program name
16666 1998-09-09 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16668 * server-src/planner.c (last_level): return the last level
16669 even it is still on holding disk if reserve < 100.
16671 1998-09-09 Alexandre Oliva <oliva@dcc.unicamp.br>
16673 * server-src/reporter.c (divzero, divzero_wide): print `#'s on
16676 * server-src/amtape.c (show_init): no longer print `scanning'
16678 (show_init_show, current_init_all): call show_init, then print the
16679 appropriate `scanning' message
16680 Reported by David Wolfskill <dhw@whistle.com>
16682 * changer-src/chg-scsi.c (main): use new multi-configuration
16683 mechanism only if tape_device contains only a single digit
16685 1998-09-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16687 * server-src/planner.c (setup_estimate): Don't write a
16688 "mismatch: no tapelist record, but curinfo next_level0" message
16689 and force a level 0 when reserve < 100.
16691 1998-09-08 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16693 * server-src/holding.h (get_amanda_names): return a filetype_t
16695 * server-src/holding.c (get_amanda_names): return the filetype_t
16696 of the file or F_UNKNOWN if it's not an amanda file.
16697 * server-src/find.c (search_holding_disk): Use the new return
16698 type of get_amanda_names.
16699 * server-src/amflush.c (flush_holdingdisk): Don't write a
16700 "ignoring cruft file" message for chunk files,
16701 filetype is F_CONT_DUMPFILE.
16703 1998-09-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16705 * recover-src/extract_list.c (extract_files_child): don't write
16706 the samba password to the debug file.
16708 1998-09-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16710 * server-src/driverio.c (update_info_dumper): set inf.command to
16711 NO_COMMAND if reserve< 100 because if you force a level 0 with
16712 'amadmin force', it will do level 0 every days until you flush them
16715 1998-09-03 Matthias Urlichs <smurf@noris.net>
16717 * recover-src/uscan.l: recognize "?" as alias for "help"
16719 * configure.in (MAILER): recognize "mail" as well as "Mail" and
16722 * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
16723 sizes of directories and files
16725 * client-src/amandates.c (start_amandates): create amandates if
16726 error is either EINTR or ENOENT
16728 * common-src/dgram.c (dgram_send_addr): handle ECONNREFUSED by not
16729 dying when receiving, and retrying when sending, a packet. The
16730 server may get this error when a client reboots and hasn't started
16732 * common-src/protocol.c (handle_incoming_packet): ditto
16734 * server-src/driver.c (read_schedule): catch cases when the time
16735 goes negative. Some operators have the bad habit of syncing clocks
16738 * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
16740 * client-src/amandad.c (main): read the pipe from the child
16741 incrementally: the pipe buffer of many OSes is shorter than
16742 MAX_DGRAM. Instead of SIGCHLD, note end-of-data by way of
16744 (sigchild_jump, sigchild_flag): removed
16745 * client-src/sendbackup.c (main): instead of fork-and-exit, tell
16746 amandad to process our data by closing our end of the pipe
16748 1998-09-03 Alexandre Oliva <oliva@dcc.unicamp.br>
16750 * NEWS: another typo (too late :-(
16752 1998-09-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16754 * server-src/driver.c: amanda will not use an holding disk
16755 if the directory with the datestamp already exist.
16757 1998-09-03 Alexandre Oliva <oliva@dcc.unicamp.br>
16759 * Amanda 2.4.1 released
16761 1998-08-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16765 1998-08-27 Alexandre Oliva <oliva@dcc.unicamp.br>
16767 * docs/INSTALL: update some version numbers; SAMBA 1.9.18p10 has
16768 fixed the bug in p8; using p8 is not recommended any more
16769 * docs/SAMBA: ditto
16771 * config/config.guess: updated to libtool 1.2b's, in order to
16772 auto-detect some recent architectures
16773 * config/config.sub: ditto
16775 * server-src/amcleanup.sh.in (sbindir): amreport now lives in
16776 sbindir; added it to PATH and removed full pathnames to binaries
16778 1998-08-27 Blair Zajac <blair@gps.caltech.edu>
16780 * configure.in: Add the directory /usr/lib/fs/vxfs to the search
16781 path where configure looks for vxdump and vxrestore. This is for
16782 Solaris so it can automatically handle vxfs filesystems.
16783 * client-src/sendbackup-dump.c: add missing last NULL argument to
16785 * server-src/dumper.c: add missing last NULL argument to
16787 * NEWS: reorder 2.4.1 items into most to least important for most
16789 * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
16790 include systems where the Veritas filesystem is used.
16792 1998-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
16794 * man/amanda.8.in (nofull): only level 1 incrementals
16796 1998-08-20 Alexandre Oliva <oliva@dcc.unicamp.br>
16798 * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
16800 * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
16802 * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
16803 * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
16804 (chg-mtx): mentioned chg-zd-mtx
16806 1998-08-20 Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
16808 * changer-src/chg-zd-mtx.sh.in: new changer script for
16809 Zubkoff/Dandelion version of mtx.
16811 1998-08-19 Alexandre Oliva <oliva@dcc.unicamp.br>
16813 * docs/SAMBA: updated; documented new patch (sambatar.diff,
16814 available in the patches page) and requirements about backup user.
16815 * docs/INSTALL: documented new patch
16817 1998-08-18 Alexandre Oliva <oliva@dcc.unicamp.br>
16819 * client-src/sendsize.c (regex_s): refuse to compile if SAMBA_CLIENT
16820 and HAVE_DUMP_ESTIMATE are both defined: the regexp that matches the
16821 estimate from DU 4.0's dump also matches an output line from
16822 smbclient, that provides an incorrect estimate.
16823 * docs/SYSTEM.NOTES: document the problem
16825 1998-08-14 John R. Jackson <jrj@purdue.edu>
16827 * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
16829 1998-08-13 Alexandre Oliva <oliva@dcc.unicamp.br>, Marcel Hild <hild@id-pro.de>
16831 * configure.in (--with-portrange): validate and define PORTRANGE
16832 * example/config.site: document it
16833 * config/acconfig.h (PORTRANGE): prepare for configure define
16834 * common-src/stream.c (stream_server): use PORTRANGE to limit TCP
16835 unreserved server sockets
16837 1998-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
16839 * docs/FAQ: working around `dumps way too big'
16841 1998-08-11 Alexandre Oliva <oliva@dcc.unicamp.br>, Gunnar Gunnarsson <gunnar@ki.ericsson.se>
16843 * common-src/token.h (rxquote, shquote): new functions
16844 * common-src/token.c (rxquote) quotes a string into an equivalent
16846 (shquote): quotes all shell special meta-characters, so that a
16847 string can be safely passed down for shell interpretation in
16848 system() or popen()-like calls
16849 * server-src/amindexd.c (build_disk_table): quote the disk_name with
16850 both rxquote and shquote
16852 1998-08-11 John R. Jackson <jrj@purdue.edu>
16854 * changer-src/chg-manual.sh.in: put the debug file in DEBUG_DIR for
16855 security. Clean up and enhance logging. Fix locations of the
16856 changer files. Source the changerfile into the script so it can
16857 override the request() function and allow alternatives to /dev/tty
16858 (e.g. E-mail, syslog). Issue rewind before status (Solaris does
16859 not give a good status report right after a tape is loaded).
16861 1998-08-10 Nick Hibma <nick.hibma@jrc.it>
16863 * changer-src/chg-chio.pl.in: move to first slot if last is unused
16865 1998-08-07 Alexandre Oliva <oliva@dcc.unicamp.br>
16867 * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
16869 1998-08-07 Günter Felkel <G.Felkel@edelmann.de>
16871 * example/DIN-A4.ps: new file
16873 1998-08-06 Alexandre Oliva <oliva@dcc.unicamp.br>
16875 * tape-src/tapetype.c (initrandombytes): use random() instead of
16876 rand(), its low-order bits are more random
16877 (main): call srandom(seed) instead of srand(seed)
16878 (USE_RAND): if defined, reverts to using rand() and srand(seed)
16880 * docs/FAQ: some notes about driving real tape changers
16882 1998-08-05 Alexandre Oliva <oliva@dcc.unicamp.br>
16884 * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
16886 1998-08-04 Alexandre Oliva <oliva@dcc.unicamp.br>
16888 * client-src/sendsize.c: revert 1998-08-01's change, it wouldn't
16889 even compile, as amfree() expands to a statement, not an expression,
16890 so it cannot be used as the `increment' part of a for loop.
16892 * server-src/planner.c (main): if runs_per_cycle is set to zero or
16893 negative, set it to 1, in order to avoid division by zero.
16894 * server-src/amadmin.c (balance): ditto
16896 1998-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
16898 * client-src/sendsize.c: replace free(line) with amfree(line),
16899 because line is not ensured to be non-NULL
16901 * docs/FAQ: amandad: error receiving message
16903 * docs/FAQ: difference between skip-full and strategy nofull
16905 1998-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
16907 * docs/FAQ: software or hardware compression?
16909 * server-src/driver.c (adjust_diskspace): do not abort just because
16910 a holding disk file is missing
16911 (main): report warning if holding disk directory could not be
16912 created, and do not use it
16913 Reported by Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
16915 * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
16917 Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
16919 * server-src/conffile.c (get_holdingdisk): define chunksize 0 as
16920 INT_MAX/1024, and chunksize -1 as -INT_MAX/1024
16921 * server-src/driver.c (find_diskspace): accept negative chunksizes
16922 as the maximum size (in modulus) for using the holding disk
16923 * man/amanda.8.in (chunksize): document the usage of negative
16924 values, and improve the explanation of chunking
16925 * example/amanda.conf.in: ditto
16927 1998-07-29 Alexandre Oliva <oliva@dcc.unicamp.br>
16929 * docs/FAQ: disk offline
16931 1998-07-27 Alexandre Oliva <oliva@dcc.unicamp.br>
16933 * restore-src/amidxtaped.c (main): use tape_rewind() instead of
16936 * server-src/amcleanup.sh.in (reporter): update to call amreport.
16937 (amdump.<n>) update to use the same renaming technique introduced in
16938 June 30's change to amdump.
16940 1998-07-25 Michael Graff <explorer@vix.com>
16942 * changer-src/Makefile.am (install-exec-hook): support $(DESTDIR)
16943 * client-src/Makefile.am (install-exec-hook): ditto
16944 * man/Makefile.am (install-data-hook): ditto
16945 * recover-src/Makefile.am (install-exec-hook): ditto
16946 * restore-src/Makefile.am (install-exec-hook): ditto
16947 * server-src/Makefile.am (install-exec-hook): ditto
16949 * configure.in: link krb5 and com_err in for Kerberos support, if
16952 1998-07-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16954 * server-src/reporter.c (copy_template_file): add braces to
16956 * tape-src/tapeio.h: declare is_zftape to remove warning in
16957 amlabel.c and taper.c
16959 1998-07-23 Alexandre Oliva <oliva@dcc.unicamp.br>
16961 * server-src/driver.c (any_delayed_disk): new variable, to ensure
16962 that we do not leave the main driver loop if there are delayed disks
16963 but there are no active dumpers
16964 (main): instead of checking whether idle_reason is IDLE_START_WAIT,
16965 check whether there is any_delayed_disk for remaining in the loop
16966 (start_degraded_mode): set any_delayed_disk when needed
16967 Reported by Peter Walker <peter@talarian.com>
16969 1998-07-23 John R. Jackson <jrj@purdue.edu>
16971 * server-src/reporter.c (main): handle LPRCMD being undefined.
16973 1998-07-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
16975 * client-src/selfcheck.c (check_suid): new function to check if a
16976 program is SUID root.
16977 * client-src/selfcheck.c (check_overall): check that runtar and
16978 rundump are SUID root.
16980 1998-07-22 Alexandre Oliva <oliva@dcc.unicamp.br>
16982 * configure.in: version number set to 2.4.1
16984 * recover-src/Makefile.am (LDADD): libamtape imports symbols from
16985 libamanda, so it must be listed first
16987 * changer-src/Makefile.am (LDADD): remove duplication of libamserver
16988 and libamanda, as they no longer provide symbols for each other
16989 * server-src/Makefile.am (LDADD): ditto
16991 1998-07-21 Blair Zajac <blair@gps.caltech.edu>
16993 * server-src/amrmtape.sh.in: now use amanda.conf's tapelist variable
16994 * server-src/amcheckdb.sh.in: now use amanda.conf's tapelist variable
16995 * server-src/amfreetapes.sh.in: now use amanda.conf's tapelist variable
16996 * server-src/amtoc.pl.in: now use amanda.conf's tapelist variable,
16997 make perl4 compatible
16999 1998-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
17001 * docs/FAQ (results missing): suggestions to work around the UDP
17004 1998-07-16 Alexandre Oliva <oliva@dcc.unicamp.br>
17006 * docs/FAQ (amrecover): a config name may have to be specified
17007 Reported by digital messiah <dmessiah@silcon.com>
17009 1998-07-15 Blair Zajac <blair@gps.caltech.edu>
17011 * server-src/reporter.c (main): declare optind
17013 1998-07-15 Alexandre Oliva <oliva@dcc.unicamp.br>
17015 * configure.in: created Amanda 2.4.1 branch
17017 * example/amanda.conf.in: strategy noinc is not implemented yet
17019 1998-07-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17021 * NEWS: new runspercycle keyword
17022 * server-src/conffile.h: new runspercycle keyword
17023 * server-src/conffile.c: new runspercycle keyword
17024 * server-src/amadmin.c (balance): new runspercycle keyword
17025 * server-src/planner.c (main): new runspercycle keyword
17026 * man/amanda.8.in: document new runspercycle keyword
17027 * example/amanda.conf.in: example for new runspercycle keyword
17029 1998-07-13 Alexandre Oliva <oliva@dcc.unicamp.br>
17031 * docs/FAQ: What to do if DUMP program is not available.
17032 * client-src/selfcheck.c (check_overall): if a needed program is
17033 missing, print an error message.
17034 Reported by Klaus Hoffmann <handatalog@csi.com>
17036 * */Makefile.am: checked library version numbers, no need for update
17038 * configure.in: version number set to 2.4.1b1
17040 1998-07-11 Alexandre Oliva <oliva@dcc.unicamp.br>
17042 * docs/FAQ: new entries: how to label tapes, (not) spanning large
17043 filesystems across tapes, how to enable index generation,
17044 overwriting selected tapes, cleaning up databases, selecting tape
17047 1998-07-10 Alexandre Oliva <oliva@dcc.unicamp.br>
17049 * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
17051 * configure.in (AC_OUTPUT): generate chg-chio.pl
17052 * changer-src/Makefile.am (EXTRA_DIST): removed chg-chio.c
17053 * changer-src/chg-chio.c: removed, as it was confusing make
17055 1998-07-10 Nick Hibma <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
17057 * changer-src/chg-chio.pl.in: new script, created to replace old
17058 chg-chio written in C
17059 * docs/TAPE.CHANGERS (chg-chio): document it
17060 * changer-src/Makefile.am (EXTRA_SCRIPTS): add chg-chio
17061 (EXTRA_DIST): still include chg-chio.c, just in case it is useful
17062 * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): add chg-chio
17064 1998-07-08 Alexandre Oliva <oliva@dcc.unicamp.br>
17066 * server-src/reporter.c (main): if no arguments are given, preserve
17067 original behavior; require config name otherwise. Perform better
17069 * example/DLT.ps (DrawHost): discard additional argument introduced
17070 in Steven Freed's modification
17071 * example/EXB-8500.ps (DrawHost): ditto
17072 * example/HP-DAT.ps (DrawHost): ditto
17074 * server-src/Makefile.am (amreport_SOURCES): build from reporter.c
17075 (driver_SOURCES) removed, no longer needed
17076 * man/Makefile.am (EXTRA_DIST): added amreport.8
17078 1998-07-08 Steven Freed <sfreed@gilasoft.com>
17080 * server-src/reporter.c (usage): new function
17081 (main): accept command-line arguments for selecting config name,
17082 output file, log file name to read from, postscript file to write
17084 (output_summary): print tape labels list, tape section numbers and
17086 * server-src/amdump.sh.in: run amreport
17087 * server-src/amflush.c (main): ditto
17089 * configure.in (BUILD_SERVER_PROGS_SBIN): add amreport
17090 (BUILD_SERVER_PROGS_LIBEXEC): remove reporter
17091 * man/amreport.8.in: new file
17092 * man/Makefile.am (man_MANS): added amreport.8
17093 * example/8.5x11.ps: new file
17095 1998-07-08 Alexandre Oliva <oliva@dcc.unicamp.br>
17097 * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
17099 1998-07-07 John R. Jackson <jrj@purdue.edu>
17101 * changer-src/scsi-chio.c: move #include's so this will compile on
17102 systems without <sys/mtio.h> (e.g. AIX).
17104 1998-07-06 John R. Jackson <jrj@purdue.edu>
17106 * client-src/sendsize.c (handle_dumpline): allow the dump block
17107 count estimate to be negative. Found by Lance A. Brown
17108 <brown9@niehs.nih.gov> on NeXT.
17110 * common-src/Makefile.am, common-src/security.c: add TEST code to
17111 security.c so people can do "make security" and have a test program
17112 to track down why they are getting "access as XXX not allowed from
17115 * common-src/security.c (bsd_security_ok): allow the remote user
17116 field in .amandahosts to be empty ala .rhosts.
17118 1998-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17120 * server-src/amcheck.c (start_server_check): report space use for
17121 holding disk if a negative value is given in the use parameter.
17123 * server-src/driver.c (main): compute holding disk space if
17124 a negative value is given in the use parameter..
17126 * man/amanda.8.in (use) : document negative use paramater for
17129 * example/amanda.conf.in (use): document negative use paramater for
17132 1998-07-04 Alexandre Oliva <oliva@dcc.unicamp.br>
17134 * man/amanda.8.in (reserve): document it
17135 * example/amanda.conf.in (reserve, gigabytes): ditto
17136 (etimeout) negative number stands for total estimate time
17138 * NEWS: documented major changes since amanda 2.3.0.4
17140 * docs/INSTALL: refer to patch-system for editing services and
17143 * docs/FAQ: added entries for common amdump and amcheck errors
17145 * COPYRIGHT: updated to 1998, refer to Amanda Development Team
17146 * AUTHORS: who is the Amanda Development Team
17148 1998-07-03 John R. Jackson <jrj@purdue.edu>
17150 * docs/SYSTEM.NOTES: add comment about using the variable device name
17151 on IRIX. Otherwise, IRIX will write 4KByte physical blocks, which
17152 it appears to read OK, but not if you take the tape to some other
17153 system that does what you tell it. Discovered by Steve E. Khoo
17154 (steve@gordian.com).
17156 1998-07-02 Alexandre Oliva <oliva@dcc.unicamp.br>
17158 * server-src/planner.c (setup_estimate): handle new disks with
17159 skip-full correctly.
17161 * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
17162 force it to be newer on distributions.
17164 1998-07-01 John R. Jackson <jrj@purdue.edu>
17166 * server-src/driverio.h: change reserved_space to unsigned long to
17167 match free_space() and avoid a compiler warning.
17169 1998-06-30 John R. Jackson <jrj@purdue.edu>
17171 * man/amanda.8.in: fix amrecover synopsis and add a short description.
17172 Noted by Brendan M Coffey <bcoffey@connix.com>.
17174 * example/amanda.conf.in: make tapecycle example fit dumpcycle value
17175 better. Noted by Tom.Croll@radisys.com and suggested comments from
17176 Alexandre Oliva <oliva@dcc.unicamp.br>.
17178 1998-06-30 Alexandre Oliva <oliva@dcc.unicamp.br>
17180 * server-src/amdump.sh.in (maxdays): set up with tapecycle+2
17181 (days): loops from 1 to $maxdays, but stops if amdump.$days does not
17182 exist, so that we only rename amdump log files that exist. This
17183 prevents too long loops in case of an infinite tapecycle.
17184 Reported by Nick Hibma <nick.hibma@jrc.it>
17186 1998-06-28 Alexandre Oliva <oliva@dcc.unicamp.br>
17188 * common-src/security.c (bsd_security_ok): accept case mismatches
17189 when comparing hostnames and usernames from amandahosts, and assume
17190 localuser if username is missing.
17191 * docs/INSTALL: clarify BSD security and amandahosts, WRT to
17193 Reported by Chris Shenton <chris@absinthe.shenton.org>
17195 * server-src/reporter.c (output_tapeinfo): degraded mode no longer
17196 implies incremental dumps only.
17197 Reported by Randy Dees <rrd@amherst.com>
17199 1998-06-26 John R. Jackson <jrj@purdue.edu>
17201 * configure.in: fix BSD/OS Kerberos include file location.
17203 1998-06-26 Alexandre Oliva <oliva@dcc.unicamp.br>
17205 * config/ltmain.sh: install official patch to libtool 1.2a
17207 * configure.in: do not set max file size for Solaris 2.6, it is no
17210 1998-06-26 Tim McNerney <mumbly@netcom.com>
17212 * common-src/fileheader.c (parse_file_header): accept missing
17213 PROGRAM in tape section header, for backward compatibility.
17215 1998-06-25 Blair Zajac <blair@gps.caltech.edu>
17217 * server-src/amflush.c: fix mismatch arguments to error()
17219 1998-06-24 Steven Freed <sfreed@gilasoft.com>
17221 * configure.in (dump-honor-nodump): fix test for `-h' support
17223 1998-06-24 Scott Mesches <mesches@allison.Colorado.EDU>
17225 * example/DLT.ps: new file
17226 * example/Makefile.am (EXTRA_DIST): add DLT.ps
17228 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
17230 * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
17232 * recover-src/extract_list.c (extract_files_child): handle
17233 IS_UNKNOWN dumptype as IS_DUMP
17235 * client-src/sendsize.c (getsize_dump): always create pipe for
17238 * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
17241 * amplot/amplot.awk: ignore `interface-state'
17242 Reported by Peter Walker <peter.walker@talarian.com>
17244 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
17246 * server-src/amrmtape.sh.in: enable verbose by default; implement -q
17248 * man/amrmtape.8.in: ditto
17249 Suggested by Nick Hibma <nick.hibma@jrc.it>
17251 1998-06-24 Nick Hibma <nick.hibma@jrc.it>
17253 * server-src/amrmtape.sh.in: better error reporting for incorrect
17256 1998-06-24 Dan Swartzendruber <dswartz@druber.com>
17258 * server-src/conffile.h (RESERVE): new keyword.
17259 * server-src/conffile.c (RESERVE): ditto.
17260 (getconf_seen): recognize "reserve" keyword.
17261 (getconf_int): return value of "reserve" keyword.
17262 (read_confline): parse "reserve" line.
17263 * server-src/driverio.h (reserved_space): new global
17264 * server-src/driver.c (main): compute holding disk space to reserve
17265 for degraded dumps.
17266 (start_degraded_mode): if we haven't hit degraded mode reservation
17267 limit, allow full dump.
17269 1998-06-18 Blair Zajac <blair@gps.caltech.edu>
17271 * config/ltconfig: update to 1.2a
17272 * config/ltmain.sh: update to 1.2a
17273 * config/libtool/libtool.m4: update to 1.2a
17275 1998-06-17 John R. Jackson <jrj@purdue.edu>
17277 * server-src/dumper.c (write_tapeheader): comment out some variables
17278 to get rid of a compiler warning.
17280 1998-06-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17282 * server-src/amadmin.c (bumpsize): write wrong equation for bump
17285 1998-06-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17287 * man/amanda.8.in: add info about the chunksize parameter
17288 of the holdingdisk.
17289 * man/amanda.8.in: add info about amstatus command
17291 1998-06-13 Alexandre Oliva <oliva@dcc.unicamp.br>
17293 * common-src/Makefile.am (libamanda_version): updated
17294 * tape-src/Makefile.am (libtape_version): updated
17295 * client-src/Makefile.am (libclient_version): updated
17296 * server-src/Makefile.am (libserver_version): updated
17298 * server-src/taper.c (read_file): if switching to the next file
17299 fails or there's no next file, do not send a `W' to taper writer.
17301 * server-src/changer.h (changer_clean): new function
17302 * server-src/changer.c (changer_clean): ditto
17304 1998-06-13 Michael C. Povel <mcp@ladyada.han.de>
17306 * changer-src/chg-scsi.c: added ejetct_tape and sleep for external
17307 tape devices, and changed some code to allow multiple drives to use
17308 their own slots. Also added support for reserverd slots.
17309 * changer-src/libscsi.h (get_clean_state, eject_tape): new functions
17310 * changer-src/scsi-chio.c (get_clean_state, eject_tape): implemented
17312 * changer-src/scsi-hpux.c (get_clean_state, eject_tape): do nothing,
17313 until someone implements them
17314 * changer-src/scsi-proto.c (get_clean_state, eject_tape): new
17316 * docs/TAPE.CHANGERS: document new configuration file format
17317 * example/chg-scsi.conf: sample configuration file
17318 * example/Makefile.am: add chg-scsi.conf to the distribution
17319 * server-src/amtape.c: add support for `clean' command
17321 1998-06-13 Alexandre Oliva <oliva@dcc.unicamp.br>
17323 * docs/SYSTEM.NOTES: clean-up
17325 * docs/FAQ: new file
17326 * docs/SUNOS4.BUG: removed
17327 * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
17329 * example/amanda.conf.in (bumpmult): fixed equation for threshold
17330 * man/amanda.8.in (bumpsize): fix threshold example.
17331 problem reported by Brian McEntire <brianm@fsg1.nws.noaa.gov>
17333 * server-src/logfile.c (open_log): open log file with mode 0600.
17335 * server-src/amdump.sh.in: refuse to run if either amdump or log
17337 * server-src/amflush.c (main): refuse to run if log exists.
17338 * server-src/amcheck.c (start_server_check): do not perform tape
17339 testing if amdump and/or log exist in logdir.
17341 1998-06-11 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17343 * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
17344 should not dup2( A, B ); aclose(A) when A == B
17346 1998-06-10 Alexandre Oliva <oliva@dcc.unicamp.br>
17348 * client-src/sendsize.c (getsize_dump): use killpgrp
17349 unconditionally, so we're not bitten by setuid dump programs.
17350 * client-src/killpgrp.c: enable unconditionally.
17352 * tape-src/tapetype.c: new program: calculates tapetype parameters.
17353 * tape-src/Makefile.am (EXTRA_PROGRAMS): added tapetype.
17354 * example/amanda.conf.in: point to tapetype program.
17356 1998-06-09 Alexandre Oliva <oliva@dcc.unicamp.br>
17358 * docs/SAMBA: added notes about (not) backing up registry files and
17360 * docs/INSTALL: point to docs/SAMBA for usage and limitations
17362 1998-06-08 Alexandre Oliva <oliva@dcc.unicamp.br>
17364 * configure.in (amanda_cv_print_command): removed; using PRINT
17367 1998-06-07 Todd Kover <kovert@omniscient.com>
17369 * add --with-owner option to allow installed binaries to be owned
17370 by someone other than the amanda user
17372 * add GB as valid holding disk size.
17374 1998-06-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17376 * server-src/amadmin.c (info): don't need to specify an host.
17378 * server-src/amadmin.c (due): new due command to write when a
17379 filesystem is due ffor next level 0 or how much days it is
17382 * server-src/amstatus.pl.in (dump_size): new function to report
17383 the size of a dump split on multiple files.
17385 1998-06-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
17387 * recover-src/extract_list.c (read_buffer): write a message
17388 when amrecover timeout waiting for amrestore to send the dump.
17390 1998-06-04 John R. Jackson <jrj@purdue.edu>
17392 * client-src/getfsent.c (main): use a dynamically allocated string
17393 for the lookups since dev2rdev alters it on the fly and some systems
17394 drop core for trying to write into read only memory. Also add the
17395 capability of passing additional lookups on the command line.
17397 * common-src/Makefile.am, common-src/file.c (main),
17398 common-src/token.c (main), server-src/conffile.c (dump_configuration,
17399 main), server-src/diskfile.c (main), server-src/infofile.c (main):
17400 Clean up compiler warnings in the test programs and make them all
17403 1998-06-03 Alexandre Oliva <oliva@dcc.unicamp.br>
17405 * amplot/amplot.sh.in: modified command line argument parsing
17406 mechanism, so as to prevent shell quoting problems and unportable
17408 Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
17410 1998-06-02 John R. Jackson <jrj@purdue.edu>
17412 * server-src/amcheck.c (main), server-src/reporter.c (main): make
17413 sure internal errors, such as the mail command failing, get
17414 reported. In the case of amcheck, they go to stderr even if -m is
17415 set since there didn't seem to be anyplace better to do so and if
17416 this is running from a cron job it might get back to a real user.
17417 For reporter, the errors go to .../amdump along with everything
17418 else from the amdump script, and they should also go to .../log,
17419 except since it's reporter that's having the trouble, they probably
17420 will not make it into the mail report.
17422 1998-06-01 John R. Jackson <jrj@purdue.edu>
17424 * client-src/killpgrp.c: clean up minor compiler warnings by not
17425 building term_kill_{soft,hard} unless they are needed.
17427 * server-src/driverio.c (dumper_cmd): clean up compiler warning
17428 in printf format by forcing argument to always be long and using %ld.
17430 * server-src/driver.c: include <holding.h> to get declaration for
17431 unlink_holding_files and avoid a compiler warning.
17433 * common-src/amanda.h, common-src/match.c (validate_glob, match_glob,
17434 glob_to_regex), recover-src/amrecover.h, recover-src/extract_list.c
17435 (add_glob, add_regex, add_file, delete_glob, delete_regex,
17436 delete_file), recover-src/help.c (help_list), recover-src/uparse.y,
17437 recover-src/uscan.l, man/amrecover.8.in: add shell wildcard support
17438 for the add/delete amrecover commands. Add addx/deletex commands
17439 that use regular expressions. Support more characters in path names.
17441 1998-06-01 Dan Swartzendruber <dswartz@druber.com> via John R. Jackson
17443 * server-src/amlabel.c (main): check argc before referencing too
17444 far into argv for "-f".
17446 1998-06-01 Alexandre Oliva <oliva@dcc.unicamp.br>
17448 * docs/SYSTEM.NOTES: advise Linux users to use dump without
17451 * docs/INDEXING: update dumptype syntax
17453 1998-05-29 John R. Jackson <jrj@purdue.edu>
17455 * server-src/amindexd.c (uncompress_file, process_ls_dump,
17456 build_disk_table, is_dir_valid_opaque, opaque_ls): fix file
17457 descriptor leak, log the amadmin find command, fix error reporting
17458 from routines that do not generate system errors.
17459 * common-src/amanda.h: make sure errno is saved through amfree().
17461 1998-05-28 Alexandre Oliva <oliva@dcc.unicamp.br>
17463 * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
17464 * patches/tar-1.12.patch: ditto.
17466 * server-src/taper.c (endtape): do not log amount of used tape after
17467 entering degraded mode.
17469 * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
17472 1998-05-28 Paul R. Johnson <prj@mit.edu>
17474 * client-src/sendbackup.c (check_status): when checking whether
17475 return status 1 is valid for dump, make sure it was *not* tar that
17478 1998-05-28 Tom Lear <toml@accesscom.com>, John R. Jackson <jrj@purdue.edu>
17480 * man/amcheck.8.in: document new -Maddress command line flag.
17481 * server-src/amcheck.c (usage, main): add -Maddress command line
17482 flag to send mail to a specific address instead of mailto from
17485 1998-05-27 John R. Jackson <jrj@purdue.edu>
17487 * man/amrestore.8: update for host/disk/date triplets.
17488 * recover-src/extract_list.c (extract_files_setup): pass datestamp
17489 argument in new position and without -d.
17490 * restore-src/amidxtaped.c (main): remove -d checks.
17491 * restore-src/amrestore.c (restore, usage, main): fix file descriptor
17492 leak, move datestamp to host/disk triplet and allow all to be repeated.
17494 1998-05-27 Alexandre Oliva <oliva@dcc.unicamp.br>
17496 * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
17499 * client-src/sendsize.c (getsize_dump): close the other end of
17500 killpgrp's stdin pipe before trying to kill it, because we just
17503 * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
17504 supports HP/UX-like changer commands.
17506 * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
17507 interface is supported.
17509 * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
17512 1998-05-25 Allen Briggs <briggs@canolog.ninthwonder.com>
17514 * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
17517 1998-05-23 Alexandre Oliva <oliva@dcc.unicamp.br>
17519 * client-src/sendsize.c (getsize_dump): killpgrp must be direct
17520 child of sendsize, otherwise sendsize won't be able to kill it.
17522 1998-05-23 Alexandre Oliva <oliva@dcc.unicamp.br>
17524 * configure.in (bcopy, bzero, fread, fwrite, vfprintf, vprintf,
17525 vsprintf): check for these in stdlib.h
17526 (memmove): check for it in strings.h
17528 * common-src/amanda.h (memmove): fix declaration of memmove, so as
17529 to be compatible with the ones in common-src/memmove.c and
17530 regex-src/fake/memmove.c
17532 reported by Tim Potter <tpot@acsys.anu.edu.au>
17534 1998-05-20 Alexandre Oliva <oliva@dcc.unicamp.br>
17536 * client-src/sendbackup.c (check_status): when checking whether dump
17537 returned 1, make sure it was not tar; #ifdef'ed out the code that
17538 ignores exit status 2 from gnutar (will be compiled in only if
17539 IGNORE_TAR_ERRORS is defined)
17540 * client-src/sendbackup-gnutar.c (GNUTAR active filesystem errors):
17541 updated comment; compile in GNUTAR error messages as DMP_NORMAL if
17542 IGNORE_TAR_ERRORS is defined; compile in SMBCLIENT error messages as
17543 DMP_NORMAL if IGNORE_SMBCLIENT_ERRORS is defined.
17545 1998-05-20 Tom Lear <toml@accesscom.com>
17547 * client-src/sendbackup.h (tarpid): new variable, used to check
17548 whether it is gnutar that is running
17549 * client-src/sendbackup-gnutar.c (start_backup): set tarpid when
17551 * client-src/sendbackup.c (check_status): if gnutar returns 2,
17554 1998-05-19 Jean-Louis Martineau <martineau@IRO.UMontrealCA>
17556 * client-src/amandad.c: set parse_errmsg when unexpected packet
17557 * recover-src/amrecover.c: overflow in clean_pathname()
17558 * recover-src/extract_list.c: add log in delete_file().
17559 small bug when call clean_pathname()
17560 * server-src/amindexd.c: ORLD command is not working
17561 * server-src/dumper.c: fixe overflow
17563 1998-05-17 Alexandre Oliva <oliva@dcc.unicamp.br>
17565 * configure.in: do not check for MAXFILESIZE
17566 * config/acconfig.h: do not define MAXFILESIZE
17567 * server-src/conffile.c: use INT_MAX instead of MAXFILESIZE
17568 * example/amanda.conf.in: ditto
17570 * server-src/driver.c (interface_state): new function; print the
17571 free bandwidth for each interface.
17572 (short_dump_state): call interface_state before holdingdisk_state
17574 * ChangeLog: renamed from CHANGES. Original entries follow.
17576 fix skip-incr handling so that reporter reports SKIPPED
17577 instead of missing result.
17578 -Jim Simmons <s4i@sws6.ctd.ornl.gov>
17580 split big dumps ( > MAXFILESIZE ) in multiple files on holding disk.
17581 new chunksize parameter in holdingdisk description of
17582 the amanda.conf file.
17583 -J-L Martineau <martineau@IRO.UMontreal.CA>
17585 an amstatus command that give the current state of a run.
17586 -J-L Martineau <martineau@IRO.UMontreal.CA>
17588 possibility to amflush multiple runs on one tape.
17589 possibility to select dump by datestamp in amrestore (-d datestamp).
17590 -J-L Martineau <martineau@IRO.UMontreal.CA>
17592 amidxtrm keep index of all active tapes as listed in tapelist file.
17593 -J-L Martineau <martineau@IRO.UMontreal.CA>
17595 the tapelist file keep every active tapes.
17596 "amadmin reuse" and "amadmin no-reuse" to mark tapes you want
17597 to keep for a long time.
17598 -J-L Martineau <martineau@IRO.UMontreal.CA>
17600 amlabel will not overwrite an amanda tape.
17601 The -f flag allow to overwriting an amanda tape.
17602 -J-L Martineau <martineau@IRO.UMontreal.CA>
17604 be consistent and use 1048576 as a dump size everyplace instead of
17605 100000 in some places (mostly cosmetic). -JJ
17607 negative numbers are now accepted in the configuration file
17610 allow a total estimate time-out to be specified. -oliva
17611 Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
17613 fix amtoc behavior in case of failed reads.
17614 -Niek Rijnbout <niek@knoware.nl>
17616 index files are now stored in a directory tree ala curinfo instead
17617 of a flat namespace. -JJ
17619 amrecover will now restore files using SAMBA.
17620 -Rob Riggs <rob@devilsthumb.com>
17622 VXDUMP needs not be run as root, so it no longer enables
17623 rundump automatically. -oliva
17625 new `killpgrp' setuid-root program. It is used to kill
17626 VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
17628 -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
17630 fixed amrmtape so that it will delete from tapelist only the
17631 entry that corresponds to the specified tape, not others that
17632 contain the tape name as a substring.
17633 -Nick Hibma <nick.hibma@jrc.it> & oliva
17635 Added support for FreeBSD dump -h flag (honor nodump).
17636 -James E. Housley <housley@pr-comm.com>
17638 Added support for ZFTAPE on Linux.
17639 -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
17641 Added support for printing tape labels.
17642 -Scott Mesches <mesches@allison.Colorado.EDU>
17644 Do not let amrecover die because of SIGPIPE if the pager terminates
17645 early during a long listing. Use the PAGER environment variable if
17646 available, else "more". -JJ
17648 Change log() calls to log_add() so it does not conflict with the math
17649 function of the same name. Replace pname global variable with two
17650 functions to set/get. Get rid of libamnolog. -JJ
17652 chg-chio was renamed to chg-scsi, and now it will support not
17653 only chio.h, but also tape changer interfaces available on
17654 HPUX, Solaris 2.5, IRIX and possibly others. Currently, only
17655 chio and HPUX are implemented.
17656 -Eric Schnoebelen <eric@cirr.com>
17658 Numerous bugs/errors were fixed in chg-chio/chg-scsi. it now
17659 properly responds to -eject requests, among other things.
17660 -Eric Schnoebelen <eric@cirr.com>
17664 updated to libtool 1.2a. -oliva
17666 fix kerberos encryption to work. -Chris Ross <cross@uu.net>
17668 add --with-owner option to optionally not have things owned by
17669 the amanda user. (meant to be in 2.4.0) -kovert
17671 only call initgroups() if it is available. -oliva
17673 check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
17674 -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
17676 amindexd no longer considers prefixes of hostnames as valid
17679 fix strappend2 so that it accepts a NULL first argument.
17680 -Rob Riggs <rob@devilsthumb.com>
17682 pass kerberos encryption switch to client.
17683 -Fredrik Jönsson <fjo@nada.kth.se>
17685 rename afree to amfree, to work around IRIX 6.4's afree.
17686 -oliva, reported Stephan P. Martin <smartin@schlund.de>
17688 implement `strategy skip' just like `ignore'.
17690 reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
17692 amcheck now checks whether COMPRESS_PATH is executable, which
17693 would prevent server-compression and indexing from working.
17694 -oliva, reported by Peter Schultze <peter@mbi.ucla.edu>
17696 fixed dump estimate regular expression for DU 4.0.
17697 -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
17701 fixed memory corruption error in amtape.
17704 fixed VXDUMP support.
17705 -Andrew Ivanov <ivanov@mics.msu.su> & oliva
17707 typos fixed in chg-chs.
17708 -David Barr <dbarr@simplex.com>
17710 chg-mtx now prints error message if tapedev or changerdev must
17712 -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
17714 fixed amflush problem, reported by Dietmar Goldbeck
17715 <dietmar@telemedia.de> -oliva
17717 Version 2.4.0-980319
17719 chg-mtx should use changer-dev if specified.
17720 -Steve Khoo <steve@gordian.com>
17722 flex-related backward-compatibility problem fixed.
17723 -Norman K Scherer <nsche@seros-48.hac.com>
17725 ported to RISCOS 4BSD. -Harlan Stenn <Harlan.Stenn@pfcs.com>
17727 when amrecover starts up, it will warn you $CWD is not the root
17728 of the selected filesystem. -oliva
17730 removed all uses of #elif, because some C compilers won't
17731 handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
17733 fixed VDUMP-only (no DUMP defined) estimates.
17734 -Joern Behrens <jbehren@umpa05.gwdg.de>
17736 ported to UnixWare. -Jeff Moscow <jeff@rtr.com>
17738 improved vxdump support so that rundump will be used for vxfs
17739 filesystems only, and it will be enabled automatically. -oliva
17741 various portability problems fixed.
17743 taper will now log reason for tape error to log.<DATE> file,
17744 in addition to amdump.<n>.
17745 -Liudvikas Bukys <bukys@cs.rochester.edu>
17747 amflush now correctly updates the info database. -oliva
17748 reported by Liudvikas Bukys <bukys@cs.rochester.edu>
17750 sendsize now wait()s for tar and samba child processes. -oliva
17751 reported by Brian Morris <brian@mvhs.fuhsd.org>
17753 ensure that `amadmin find' reports multiple backups performed on
17754 the same day in the correct sequence.
17755 -Liudvikas Bukys <bukys@cs.rochester.edu>
17757 if backup server has multiple IP addresses, security code
17758 might reject it. -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
17760 vdump would not work. -oliva
17762 kerberos support was broken. -mike
17764 Version 2.4.0-980222
17766 retry tape open on AIX if it fails with EAGAIN errno.
17767 -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
17769 fix amrmtape so that it behaves well when files to amflush
17770 remain. Reported by Dietmar Goldbeck <dietmar@telemedia.de>
17772 retry tape rewind on FreeBSD. -Bob Willcox <bob@prm.com>
17774 read all output from amrestore otherwise, instead of the
17775 beginning of the next tape section, it would read garbage.
17776 -Terje Malmedal <tm@odin.funcom.com> & oliva
17778 formatting error in amoverview fixed.
17779 -Terje Malmedal <tm@odin.funcom.com>
17783 use vdump to dump advfs filesystems only. add support for vdump
17785 -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
17787 change index generation commands so that they are less prone
17788 to be fooled by blanks or strange characters in filenames.
17791 check whether exclude-list file exists before calling gnutar.
17792 If it does not, log a message to debugging file and discard it.
17793 selfcheck should check for that too, and print a warning message,
17794 but this is left for a future version. -oliva
17796 fix sendbackup-gnutar crashing problem. -oliva
17798 ensure that, in case of tape failure when dumping to tape, no
17799 incremental relative to the failed backup is performed.
17800 -oliva & Liudvikas Bukys <bukys@cs.rochester.edu>
17802 Fix buffer use and write() error handling in the index pipeline.
17803 -Dietmar Goldbeck <dietmar@telemedia.de>
17804 & Lars Fenneberg <lf@elemental.net>
17806 new index generation commands. -oliva
17810 accept curses and ncurses in addition to termcap for readline
17811 support, just as readline itself does. -oliva
17813 fix NO-ROOM handling when Kerberos encryption is enabled.
17814 -oliva & Eric Siegerman <erics@now.com>
17816 patch file for automake 1.2d provided. -oliva
17818 sendbackup.debug now contains the argument list of child
17821 wait() for child processes, such as server compressor, before
17822 accepting other commands.
17823 -Liudvikas Bukys <bukys@cs.rochester.edu>
17825 amrecover will print an error message if it is not run by root.
17826 It will not crash if you `pwd' before selecting a disk. -oliva
17828 updated to libtool 1.0i. -oliva
17830 fixed tape block size of vxdump on HPUX 10.20.
17831 -Andrew Ivanov <ivanov@mics.msu.su>
17833 Use "a" mode instead of "w" for the fdopen of the debug file.
17834 -David Lamkin <drl@net-tel.co.uk>
17836 allow multiple concurrent gnutar backups, by fixing amandates
17838 -Liudvikas Bukys <bukys@cs.rochester.edu>
17840 amdump should check for a hold file, as says the man-page.
17843 fix automatic enabling of USE_RUNDUMP for systems that require
17844 this. xfsdump support no longer requires USE_RUNDUMP to be
17845 defined, rundump will be enabled and used for xfs filesystems
17846 even if USE_RUNDUMP is not defined, unless XFSDUMP is not defined.
17847 This seems to have completely solved the xfsdump problems.
17850 when USE_RUNDUMP is enabled, instead of checking for read or write
17851 access in selfcheck, just test for the existence of disk devices.
17854 fixed code that computed the dump size when incomplete
17855 writes occurred in dumper. -Eric Siegerman <erics@now.com>
17857 amplot no longer crashes if there's no holding disk. -oliva
17861 fix xfsdump index generation command.
17862 -Robert Tarrall <tarrall@bamboo.colorado.edu>
17864 tape device wouldn't rewind if opened O_WRONLY.
17865 -Palle Girgensohn <girgen@partitur.se> & oliva
17867 use setpgid instead of setpgrp if available
17868 -Mark Woodford <woodford@uniprise.com> & oliva
17870 chg-mtx will check whether slot 6 is a cleaning tape or not.
17871 -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
17873 amrmtape updated to text database. -oliva
17875 incorrect NO-ROOM error when dumping directly to tape fixed.
17878 --with-user and --with-group become are now required. -oliva
17880 patch-system script much more configurable. -oliva
17882 amindexd must get an exact match for diskname.
17883 -Richard Kail <e8903122@student.tuwien.ac.at> & oliva
17885 fix serial number message in amflush
17886 -Liudvikas Bukys <bukys@cs.rochester.edu>
17888 removed backslashes from inside macro calls.
17889 un-indented # directives.
17890 -Gregory Neil Shapiro <gshapiro@WPI.EDU>
17892 bsd-security is now enabled by default. -oliva
17894 fixed estimate command for XFSDUMP.
17895 -Mark Radleigh <radleigh@image.ucr.edu>
17896 & Jeff Moskow <jeff@rtr.com>
17900 documented etimeout configuration option. -oliva&jrj
17902 prevent a few crashes in dumper and reporter. -jrj
17904 reporter would report the same host and disk for RESULTS MISSING.
17907 fix a few file-locking configure bugs. -oliva
17909 chg-multi updates and bugfixes.
17910 -Liudvikas Bukys <bukys@cs.rochester.edu>
17914 amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
17916 New --disable-libtool configure option, for those who really don't
17917 want libraries to be installed. Shared libraries won't be
17918 built, of course. -oliva
17920 samba-related bugfixes.
17921 -Klaus Thiele <kth@becker-software.com>
17923 xfsdump, DNS and amidxtaped bugfixes. -martineau
17925 exclude-list support was broken, the filename was not copied
17926 to the gnutar argument list.
17927 -Stefan Bohm <Stefan.Bohm@rp-online.de>
17929 chg-chio still thought it was seagate-changer, and contained a
17930 few bugs. -Tim Tsai <tim@futuresouth.com>
17932 New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
17936 Make sure amverify waits for the tape device to be ready before it
17937 starts reading each section. -oliva
17939 Fix amrecover so that it accepts filenames with blanks.
17940 -J. Shirk <jshirt@ksu.edu> & oliva
17942 Add a TIMEOUT config file parameter to replace the hard coded value
17943 in planner. -Daniel David Benson <bensond@ucdavis.edu>
17945 Change amrecover/amindexd/amidxtaped to require a SECURITY
17946 exchange if --with-bsd-security is enabled. It is done on a
17947 reserved port, which means amrecover must be run as root and that
17948 amindexd/amidxtaped need an entry for the incoming amrecover in
17949 either .rhosts or .amandahosts (Kerberos is not yet supported). --JJ
17951 Make our internal TEXTDB the default database style for the infofile.
17952 If you wish to keep using a dbm style database use the configure
17953 option "--with-db={db,dbm,gdbm,ndbm}".
17956 Sanitise the disk name in the TEXTDB code.
17957 **NOTE** if your infofile database uses TEXTDB (which has only been
17958 available since Amanda-2.4.0b1) and you have '/'s in the
17959 first field in disklist you will need to 'amadmin export'
17960 the data using the old version of Amanda, 'mv' the old
17961 database out of the way and 'amadmin import' it back again
17962 using the new version. When you are happy with the new
17963 version you may delete the old database.
17966 Get rid of DEV_ROOT/DEV_RROOT and figure out the raw name on the
17967 fly by trying a leading 'r' before each path element one at a time
17968 until we find a character device. This should handle all the current
17969 cases plus things like Solaris DiskSuite that have /dev/md/rdsk/xxx
17972 Change kill logic in sendsize to try TERM first, then KILL if that
17973 does not get dump's attention. This fixes a problem on AIX 4.x
17974 where dump was always getting a KILL and leaving orphaned message
17975 queues, which would eventually run the system out of resources. -JJ
17977 Extensive buffer management, bug and defensive coding overhaul
17979 * Use proper fgets/fread/read buffer size.
17980 * Wrote agets and areads to get a line without buffer overflow
17981 and changed most gets/fgets and some read calls to use it.
17982 * Replaced all *scanf("...%s...") with explicit pointer work.
17983 * Replaced most fixed size buffers with dynamic ones. This has
17984 no doubt introduced some memory leaks.
17985 * Replaced most sprintf calls with vstralloc (new routine).
17986 * Added overflow checks to some remaining explicit buffer
17988 * Made almost all read() and write() calls into loops to handle
17989 short and broken up transfers.
17990 * Fixed potentially uninitialized fstype field.
17991 * Added more sanity checks when parsing various things, including
17992 converting some assert() calls to real code.
17993 * The pattern amtrmidx used to find old index files to delete
17994 thought the date field was YYYY-MM-DD, but it is YYYYMMDD,
17995 so no files were being deleted.
17996 * Limited the number of directories listed by amflush to 26 to
17997 avoid funny characters in the user prompt.
17998 * Changed some of the amrecover routines to soak up the rest of
17999 the continuation lines after an error.
18000 * If a dumper dies, driver still tries to send a QUIT command
18001 which fails because the file descriptor has been closed.
18002 * Wrote afree macro that calls free and then sets the pointer
18003 to NULL. Changed most free calls to afree.
18004 * Wrote aclose/afclose/apclose macros to do the associated close
18005 and then set the argument to something invalid (-1 or NULL).
18006 * Check the file descriptor before calling FD_ISSET in dumper.
18007 Otherwise it goes to -1 on EOF and FD_* doesn't like that.
18008 * Call aclose() after FD_CLR (so the descriptor is not -1).
18010 * Added some TEXTDB support code to the infofile test program.
18011 * Set it up so -DPROTO_DEBUG could come from the compiler command
18012 line instead of having to modify the source.
18013 * Added -t command line flag code to sendbackup.c to support some
18015 * Added a test to amcheck to see if the log file is writable
18016 (if it already exists). During debugging, I keep leaving one
18017 around owned by root :-).
18018 * Changed upper limit on close loops from 255 to FD_SETSIZE.
18019 This probably needs some more study.
18022 If krb4 auth was compiled in but not enabled, clients would hang
18023 forever. -Aidan Cully <aidan@panix.com>
18025 Make sure SAMBA will not clear archive bits when performing an
18026 incremental backup, so any incremental will be a level 1.
18029 Add a LOGDIR option to amanda.conf and use it to replace the
18030 --with-logdir option to configure (this was only used for the
18031 amdump files) and the logfile option in amanda.conf. Log
18032 files are now LOGDIR/log and amdump files are LOGDIR/amdump.
18033 Note: if there is a LOGFILE option in amanda.conf it has its
18034 filename removed and is used as the LOGDIR (eg, if you have
18035 "logfile /usr/adm/amanda/log" in amanda.conf it is translated to
18036 "logdir /usr/adm/amanda" instead). This should not cause a
18037 problem for most sites.
18040 Remove --with-dbdir option from configure. This was only used
18041 to setup things for the man pages and example files. Oh.. and
18042 amrmtape. Fix this as well.
18045 Remove --with-indexdir option from configure. This is obtained
18046 from amanda.conf at run time. Also fix things so that it *is*
18047 obtained from amanda.conf in all cases.
18050 This is no longer tested on configure.in, since it is
18051 expressly forbidden to include kernel headers under glibc,
18052 according to Matthias Urlichs <smurf@noris.de>. However, Eric
18053 Doutreleau <ed@cti.ecp.fr> said he needed to include this
18054 header file in order to build amanda on
18055 sparc-unknown-linux-gnu. -oliva
18057 It is now possible to specify a username to be used to backup
18059 -Jean-Louis Martineau <martinea@iro.umontreal.ca>
18061 Make sure dumper replies with ABORT_FINISHED when a PORT-DUMP
18062 is aborted because of tape error.
18063 -Michael C. Povel <Michael.Povel@hub.de>
18065 Amcheck checks only for the needed features.
18066 -Jean-Louis Martineau <martinea@iro.umontreal.ca>
18068 Performance and memory-usage improvements to amrecover.
18069 -Jean-Louis Martineau <martinea@iro.umontreal.ca>
18071 Use extended regular expressions.
18072 -Noel Hunt <noel@jpmorgan.com>
18074 Fixed regular expressions for samba support.
18075 -Brian Fernald <fernald@nsi.edu>
18077 Fixed a few bugs that caused arithmetic exceptions in planner.
18078 -Bob Willcox <bob@luke.pmr.com>, Evan Champion
18079 <evanc@synapse.net>, scott and oliva
18081 amrecover should now be able to handle GNUtar restores.
18082 -Jean-Louis Martineau <martinea@iro.umontreal.ca>, plus
18083 incremental (-G) patch by Lars Fenneberg <lf@elemental.net>
18085 Ported to SINIX (Reliant Unix V5.43).
18086 -Michael Schmitz <mschmitz@iname.com>
18088 Configure now looks for large file support and will use it under
18089 Solaris 2.6 and above.
18090 -Blair Zajac <blair@gps.caltech.edu>
18092 Compatibility problems fixed for:
18093 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
18097 New changerfile and changerdev configuration keywords, that
18098 allow changer scripts to be configured in the main amanda
18099 configuration file. Each changer script has been adapted, so
18100 that it uses those flags whenever possible. Also,
18101 documentation about built-in scripts has been added to
18102 docs/TAPE.CHANGERS. -oliva & Eric Schnoebelen
18103 <eric@egsner.cirr.com>
18105 --with-debugging now accepts a directory name, where debugging
18106 files should be stored. -John R. Jackson <jrj@cc.purdue.edu>
18108 Compatibility problems fixed for:
18109 NextStep 3.3: Fabrice GAILLARD <gaillard@ina.fr>
18110 SCO OpenServer V5: Christopher B. Olsen <colsen@compus.com>
18111 AIX: Georg Rehfeld <georg@wmd.de>
18113 Planner would core dump if it had to delay dumps. -Georg
18114 Rehfeld <georg@wmd.de>
18116 Added patch for samba to support very long filenames. -Todd
18117 Pfaff <todd@edge.cis.mcmaster.ca>
18119 Added VXDUMP support to estimate program. -oliva & John
18120 R. Jackson <jrj@cc.purdue.edu>
18122 Fixed amflush so that it cd's to the configuration directory
18123 before invoking reporter. -oliva
18125 driver no longer opens the infofile, so a deadlock is
18126 prevented. -oliva & John R. Jackson <jrj@cc.purdue.edu>
18128 Fixed typo in sendbackup-dump that would prevent compilation
18129 if either xfsdump or vxdump were enabled. -oliva
18131 Debugging messages produced by sendbackup are no longer
18132 included in the dump stream. -oliva
18134 amrestore should wait for the child process to die before
18135 re-opening the tape device. -Dietmar Braun
18136 <dietmar@tin-lizzy.hig>
18140 fixed race condition in debug file open operation. -oliva and
18143 exclude-list and exclude-file are correctly handled by
18144 sendsize. -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
18146 fix some kerberos4 problems; no longer require low ports for
18147 kerberized connections; now use amanda@REALM instead of
18148 amanda.amanda@REALM in .klogin's. -kovert
18150 amrecover no longer depends on GNU flex library. -oliva
18152 Ensure that malloc(0) is not called. -Wolfram Schmidt
18153 <Wolfram.Schmidt@iao.fhg.de>
18155 Compression is now performed where specified, and server
18156 compress best specifications are obeyed. -oliva
18158 genversion now correctly recognizes the selected locking scheme.
18159 -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
18163 Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
18165 AIX's restore support added to amrecover. -David B. Anderson
18166 <dbanders@mail.physics.utah.edu>
18168 Dump process would not be killed unless it supported the -E
18169 flag (flipped #ifdef): fixed. -Steve Bower <sbower@raytheon.com>
18171 --with-testing now supports a trailing argument, that
18172 specifies the a string to be appended to service names. -oliva
18174 Recent versions of Samba require additional arguments so that
18175 estimates and total sizes are logged to stdout, not to syslog.
18176 -Ernie Oporto <ernie_oporto@MENTORG.COM> & Norbert Holzknecht
18177 <Holzknecht@fs31.vdeh-bfi.de>
18181 Improved planner backup-delaying mechanism. -scott
18183 Concurrent estimates are now supported. -oliva
18185 Shared library support included with GNU libtool. -oliva
18187 New hard-link-based locking mechanism for operating systems
18188 that do not support standard locking system calls. -scott
18190 New configuration file format, simpler and easier to
18193 New curinfo database format that uses only text files. The
18194 old dbm format is used by default, though. -scott
18196 DGUX support. -Brian Harvey <bharvey@raven.phs.com>
18198 Tentative HPUX vxdump support. -oliva
18200 Integrated amgetidx into dumper/sendbackup protocol. This
18201 ***breaks backward compatibility***! -oliva
18203 Have sendbackup-dump and sendbackup-gnutar list the actual
18204 program that should be used to restore a file from a backup
18205 instead of just listing restore or gtar. -blair&oliva
18207 Have configure check for the initgroups() declaration in
18208 unistd.h in addition to grp.h and sys/types.h, which is where
18209 some OSes have the declaration. -blair
18211 SAMBA backups wouldn't succeed if GNUTAR listed incrementals
18212 were enabled. SAMBA password file can now specify workgroup
18213 and may contain comments. -oliva
18215 Fixed xfsdump support. -oliva
18217 Fixed srvcompress option. -oliva
18219 Fixed exclude/exclude-list support. -oliva
18221 Change umask to 066 before creating index file in /tmp. -oliva
18223 Fixed autoconf for gdbm on linux. -oliva
18225 configure now seeks out a few possible locations for
18226 kerberos4 includes and tries to find the correct path if
18227 the kerberos bits have been installed. It's possible for
18228 someone to just specify the root of a kerberos tree for
18229 where the bits live, as well. -kovert
18233 Have bsd_security_ok() in amandad return 1 when BSD security is
18234 not turned on. Patch from Michael C. Grant
18235 <mcgrant@rascals.Stanford.EDU>.
18237 Add a configure option, --with-db, which lets the user specify
18238 the database library to use. The available codes to look for
18239 are db,dbm,gdbm,ndbm. The new configure code goes to a lot
18240 more length to find pairs of header files and libraries. If a
18241 header file exists and the library does not, but dbm_open() is
18242 found by linking against -lc, then that header file is used.
18243 Patch from Blair Zajac <blair@gps.caltech.edu>.
18245 Fixed bug at line 158 where selfcheck was testing that the
18246 result returned by open() was nonzero. The correct thing to do
18247 is check for non-negative values returned by open(). Changed
18248 the "ERROR" in line 169 to "OK" to prevent selfcheck from
18249 flagging the non-existence of /etc/amandapass as an error.
18250 Using "OK" in this line flags this condition as an informative
18251 statement rather than an error - which is to say this will be
18252 reported along with other errors but it isn't enough in itself
18253 to generate an error report. The reason that I think this is
18254 the right fix is because although every Amanda client is
18255 capable of backing up PCs using smbclient it isn't the case
18256 that we will back up PCs with every Amanda client. This also
18257 implies that we don't want to have /etc/amandapass files on all
18258 these machines either. If an Amanda client does have a samba
18259 "//host/share" entry in its disklist file then selfcheck will
18260 flag the non-existence of the /etc/amandapass file on line 105
18261 when it attempts to check that partition, so I believe that
18262 this is a safe fix. Patch from Michael Brantley
18263 <Michael-Brantley@deshaw.com>.
18265 Have all calls to gethostname() leave the result in character
18266 arrays of length 1025. This will make sure that gethostname
18267 behaves correctly. Patch from blair Zajac
18268 <blair@gps.caltech.edu>.
18270 Have amrecover.c include history.h or readline/history.h if
18271 configure finds it. Patch from blair Zajac
18272 <blair@gps.caltech.edu>.
18274 Have Amanda use cat if gzip and compress cannot be found. In
18275 this case, do not #define COMPRESS_FAST_OPT, COMPRESS_BEST_OPT,
18276 or UNCOMPRESS_OPT as "" since cat will look look for a file by
18277 the name of "". Place #ifdef's around code that uses any of
18278 the _OPT defines. Patch from Blair Zajac
18279 <blair@gps.caltech.edu>.
18281 Rewrite amgetidx to use amandad instead of rsh/rcp. amgetidx
18282 now only gets the index files from a given day. It now takes
18283 two optionally arguments <on day> or <ago days>. <on day> lets
18284 the user specify the day in one of the forms YYYYMMDD MMDD DD
18285 YYYY-MM-DD --MM-DD ---DD. <ago days> gets the files from days
18286 days ago. Have configure look for an appropriate directory to
18287 use for the temporary files on the clients. Use /var/tmp, then
18288 /usr/tmp, and if neither of those exist, then use /tmp. Have
18289 selfcheck check if the index holding directory has enough space
18290 in it. Add a new program called sendindex which sends the
18291 index files. Add the file docs/INDEXING which describes the
18292 index code. Patch from Alan McIvor <alan@auck.irl.cri.nz>.
18294 Have configure set up mt to use either the -f or the -t option
18295 depending upon the operating system. Patch from Blair Zajac
18296 <blair@gps.caltech.edu>.
18298 Include the amanda_tapetypes.txt file as docs/TAPETYPES. File
18299 composed by Chris Stacey <chris@snrc.uow.edu.au>.
18301 Allow certain dumptypes to be kicked off at specific times.
18302 Add a new, optional, parameter to the dumptype description in
18303 the config file. The parameter is called "starttime" and takes
18304 one argument which is a time of day (local timezone) formated
18305 as either hhmm or hmm (no `.'s, no `:'s, just an integer).
18306 define dumptype comp-user-2am {
18307 comment "Non-root partitions on fast machines"
18308 options compress-fast
18312 Any partitions listed in disklist with this dumptype will be
18313 fired off no earlier than 2am. If 2am today is less than 43200
18314 seconds past (12 hours ago) it will assume you meant 2am today
18315 and fire the dumps off right away. But if 2am today is more
18316 than 12 hours in the past, it will wait till 2am tomorrow.
18317 Patch from Brad Huntting <huntting@misc.glarp.com>.
18319 Totally rewrite the socket buffering code for dumper.
18320 Eliminate SO_SNDTIMEO and SO_RCVTIMEO setsockopt calls. Remove
18321 the check for HAVE_SO_SNDTIMEO from configure. Add a new
18322 option to configure named --enable-buffered-dump to enable this
18323 code. Patch from Brad Huntting <huntting@misc.glarp.com>.
18325 Have amflush call setsid() to detach amflush from the
18326 controlling terminal. Patch from Ken Laprade
18327 <klaprade@harris.com>.
18329 Have configure correctly work on systems where dbm_open is in
18330 libc. Patch from Farzad Farid <farzy@sgip.fr>.
18332 Patches to amrmtape which remove C style comments and let the
18333 script remove a tape if there is only one tape in the tapelist
18334 file. Patch from Andrew A. Ivanov <IVANOV@mics.msu.su>.
18336 Sprintf formatting error in amgetidx fixed. Patch from Yossi
18337 Gottlieb <yogo@xpert.com>.
18339 I'm using a Sony SDT/STL-7000 4mm DAT changer. I could not
18340 find any method of directly controlling the device, except for
18341 simply using the 'offline' mt command for advancing to the next
18342 tape. Using this method, however, I could not go beyond the
18343 last cassette (that is, to roll back to the first one). This
18344 means the device is currently being used as a simple gravity
18345 changer, only able to change forward. The chg-generic.conf
18346 should list the default tape device for all slots, disable
18347 'needeject', enable 'gravity' and enable the new option named
18348 'multieject'. Patch from Yossi Gottlieb <yogo@xpert.com>.
18350 Update the example chg-generic.conf file to include comments
18351 that describe how to use the multieject feature of the script.
18352 Patch from Yossi Gottlieb <yogo@xpert.com>.
18354 Protocol seems to loop when a A_TIMEOUT occurs because
18355 p->reqtries was not being decremented. Problem noted by Neal
18356 Becker <neal@ctd.comsat.com>.
18358 About half the calls to gethostname() in Amanda fail to
18359 null-terminate properly. This patch makes them all
18360 consistent. In addition it updates sendbackup-dump and
18361 sendbackup-gnutar so they handle USE_FQDN is a way consistent
18362 with the amindex stuff. In particular when USE_FQDN is set,
18363 the dump clients will not truncate their hostname before
18364 putting it in the dump headers. My patches to amflush are
18365 already in the Amanda betas so amflush should be able to match
18366 up both FQDN and non-FQDN clients against FQDN and non-FQDN
18367 disklist files. I also fixed an error message that was
18368 attributed to gethostname when it actually came from
18369 getpeername. Patches from James Mathiesen
18370 <james@nyc.deshaw.com>.
18372 I have run into the problem, on a Linux system, where the first
18373 time I run configure it generates valid Makefiles and Amanda
18374 compiles without problem. If I run configure again, or I alter
18375 a Makefile.in or something which causes autoconf to be called,
18376 the resulting Makefiles are no good - the programs in
18377 server-src don't finish linking because there is no dbm
18378 library. That is, the first time through configure -lgdbm is
18379 added to LIBS but the second, and any subsequent times, it is
18380 not. Patch from Alan McIvor <alan@auck.irl.cri.nz>.
18382 I've just found a bug that has prevented Amanda from running on
18383 my site for almost one week. Just after a dumper replied that
18384 it timed-out, the driver would send it another dump request.
18385 Then the driver would log to amdump an event of receiving a
18386 message from the dumper, but that message would be empty, the
18387 holding file for the requested filesystem would not exist, and
18388 driver would quit. It turned out that the problem was that
18389 dumper started to close its sockets (datafd, mesgfd and outfd)
18390 since release 2.3.0.4b3. outfd is initialized before invoking
18391 startup_dump, but it is sendbackup_response, intended to be
18392 invoked by the amandad protocol driver, that opens sockets and
18393 initializes datafd and mesgfd. If sendbackup_response is never
18394 run (because the amandad request times out), datafd and mesgfd
18395 will not be initialized, so they may contain already closed
18396 (and possibly already reopened) file descriptor numbers or
18397 still be uninitialized, containing any garbage, but usually 0
18398 --- but 0 is stdin, used for reading commands from the driver,
18399 it should not be closed! I've solved the problem by
18400 initializing them to -1 in startup_dump. Patch from Alexandre
18401 Oliva <oliva@dcc.unicamp.br>.
18403 Include declarations for select(), bind(), connect(), fread(),
18404 fwrite(), getopt(), getpeername(), getsockname(), getsockopt(),
18405 initgroups(), listen(), lstat(), mktemp(), mktime(), puts(),
18406 recvfrom(), select(), sendto(), setpgrp(), setsockopt(),
18407 shmat(), shmctl(), shmdt(), shmget(), socketpair(), sscanf(),
18408 strftime(), strncasecmp(), system() if the system does not
18409 declare these in any header files. Patch from Blair Zajac
18410 <blair@gps.caltech.edu>.
18412 Have configure correctly substitute for DB_DIR and LOG_DIR in
18413 example/amanda.conf when --prefix was not used. Problem noted
18414 by Philippe Charnier <charnier@xp11.frmug.org>.
18416 Include seagate-changer.c from Larry D. Pyeatt
18417 <pyeatt@cs.colostate.edu>. This program was written to control
18418 the Seagate/Conner/Archive autoloading DAT drive. This drive
18419 normally has 4 tape capacity but can be expanded to 12 tapes
18420 with an optional tape cartridge. This program may also work on
18421 other drives. This program works for me under Linux with Gerd
18422 Knorr's <kraxel@cs.tu-berlin.de> SCSI media changer driver
18423 installed as a kernel module. The kernel module is available
18425 http://sunsite.unc.edu/pub/Linux/kernel/patches/scsi/scsi-changer*
18426 Since the Linux media changer is based on NetBSD, this program
18427 should also work for NetBSD, although I have not tried it. It
18428 may be necessary to change the IOCTL calls to work on other
18431 Add a new configure option, --with-group, which tells Amanda
18432 the group to install all files as. Patch from Alexandre Oliva
18433 <oliva@dcc.unicamp.br>.
18435 If --with-bsd-security was not set, then dumper would not find
18436 the amanda/udp port to use to connect to clients. Patch from
18437 Alan McIvor <alan@auck.irl.cri.nz>.
18439 The order of dump programs to search for (ufsdump, vdump, dump,
18440 backup) didn't work on AIX systems, where backup should be used
18441 but a program named dump exists on the system. Patch by Blair
18442 Zajac <blair@gps.caltech.edu>.
18444 The configure --with-mmap was not working properly since
18445 configure was using the wrong variable to see if the system had
18446 a working mmap(). Problem noted by Keith Mitchell
18447 <kmitch@weenix.guru.org>.
18451 Save the results of getchar() into int's instead of char's in
18452 amidxtaped.c. Patch by Blair Zajac <blair@gps.caltech.edu>.
18454 Fix sendbackup-gnutar so that it can be compiled with a K&R
18455 compiler. Patch by Blair Zajac <blair@gps.caltech.edu>.
18457 Since I installed Amanda 2.3.0.4b3, I noticed some annoying
18458 messages in amdump:
18459 dumper: pid 8696 setsockopt(SO_SNDTIMEO): Invalid argument
18460 This is because Solaris 2.5 does declare SO_SNDTIMEO in
18461 sys/socket.h, but fails to setsockopt with the given
18462 arguments. Unfortunately, it is not documented, so I could not
18463 find out the correct way to do this, so I just added a test in
18464 configure to check whether SO_SNDTIMEO works as expected or
18465 not. Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18467 Include amplot-2.2.6 written by Olafur Gudmundsson
18468 <ogud@tis.com> into Amanda. Have amplot be configured using
18469 configure instead of amplot.conf. It will be installed if
18470 gnuplot and the version of awk configure finds can handle
18471 variable assignment from the command line. I also changed some
18472 of the command line options so that the amdump files will not
18473 be compressed unless amplot is told to do so on the command
18474 line. It also takes a new command line option, -t, which lets
18475 the user set the time of the right side of the plot. Work done
18476 by Blair Zajac <blair@gps.caltech.edu>.
18478 Made rth-changer check all system calls for valid returns.
18479 Patch by Blair Zajac <blair@gps.caltech.edu>.
18481 amrestore.c and sendbackup-common.c would do an ifdef on
18482 HAVE_GZIP, which was no longer being defined if Amanda was
18483 using gzip. Now, define HAVE_GZIP if gzip is being used.
18484 Patch by Blair Zajac <blair@gps.caltech.edu>.
18486 Include a script, amoverview, that outputs an overview of all
18487 of the backups done on all of the disks. Script written by
18488 Dave Disser <disser@sdd.hp.com>.
18490 The prototype for amname_to_fstype() is missing in
18491 createindex-dump.c when xfsdump is available. Patch from Ken
18492 Laprade <klaprade@harris.com>.
18494 Apparently SGI provides a dummy libsun.a that does not really
18495 have anything in it. I guess this tricks configure into adding
18496 it to the Makefile. Have configure not check for libsun.a on
18497 SGI systems. Patch from Ken Laprade <klaprade@harris.com>.
18499 The global variable overwrite in amcheck.c apparently is seen
18500 as a potential conflict with the overwrite() curses function
18501 which is apparently in SGI's libtermcap.a. Declaring the
18502 variable static eliminates the warning. Patch from Ken Laprade
18503 <klaprade@harris.com>.
18505 Add a new configure option, --with-fqdn, which allows Amanda to
18506 back up systems in different domains. This requires that the
18507 disklist file have the fully qualified domain names (FQDNs)
18508 listed. Patch from Joe Ammond <Joe.Ammond@ee.gatech.edu>.
18510 Include rundump, a setuid program that runs dump as root. This
18511 is used under OSF1 systems. Patch from Alexandre Oliva
18512 <oliva@dcc.unicamp.br>.
18514 Install setuid files executable only by the owner and group of
18515 the files. This stops other users from running these programs,
18516 making security tighter. Patch from Alexandre Oliva
18517 <oliva@dcc.unicamp.br>.
18519 On FreeBSD 3.0, amanda.h needs to include <sys/types.h> before
18520 <dirent.h>. Problem noted by Keith Mitchell
18521 <kmitch@weenix.guru.org>.
18523 Amanda had a bug regarding the recent addition of support for
18524 excluding files in GNUTAR. planner and sendsize did not
18525 understand each other about empty exclusion lists, so there
18526 were failures using gnutar, as dump does not support excludes.
18527 Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18529 Fixed a problem in configure where DUMP was being set to
18530 /no/restore/available when no restore program could be found
18531 instead of setting RESTORE to this. Patch from Alexandre Oliva
18532 <oliva@dcc.unicamp.br>.
18534 Have no-changer and hp-changer check for the existence of the
18535 logging directory before trying to use it. Patch by Blair
18536 Zajac <blair@gps.caltech.edu>.
18538 Patches to have nicer looking Samba support code. Patch from
18539 Michael Zucchi <cismpz@cis.unisa.edu.au>.
18541 Got Amanda to compile fine on a m88k-motorola-sysv4 system.
18542 Patches from Blair Zajac <blair@gps.caltech.edu>.
18544 In amandad.c, pk_t dupmsg was conflicting with dupmsg in
18545 /usr/include/sys/stream.h on an m88k-motorola-sysv4 system.
18546 Rename dupmsg to dup_msg. To keep things consistent, rename
18547 inmsg to in_msg and outmsg to out_msg. Patch by Blair Zajac
18548 <blair@gps.caltech.edu>.
18550 Check for the dbm_open declaration in any header file that may
18551 contain it. If it doesn't exist, then declare it and all of
18552 the other dbm_ functions. Check if struct datum is declared in
18553 any header files and if it isn't then declare it. Patch from
18554 Blair Zajac <blair@gps.caltech.edu>.
18556 Have runtar make sure that it is being invoked by the
18557 CLIENT_LOGIN user, since it is a suid executable. Patch from
18558 Alexandre Oliva <oliva@dcc.unicamp.br>.
18560 Have selfcheck check for /etc/vdumpdates if vdump is being
18561 used. Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18563 If we're on an Ultrix system, then define STATFS_ULTRIX. Patch
18564 by Blair Zajac <blair@gps.caltech.edu>.
18566 amadmin export produces a full version number (2.3.0.4b2, for
18567 instance), while amadmin import expects three integers
18568 separated by dots, so it fails to import an exported file by
18569 itself. Patch by Alexandre Oliva <oliva@dcc.unicamp.br>.
18571 Sendsize.c would loop forever if debugging was not turned on.
18572 Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18574 Define STATFS_OSF1 if we are on a *-dec-osf-* system. Change
18575 ifdef OSF1_HANG_BUG to ifdef OSF1_VDUMP, since I'd rather not
18576 have too many defines floating around. Patch by Blair Zajac
18577 <blair@gps.caltech.edu>.
18579 There was a bug in selfcheck.c when Blair installed the Samba
18580 support. I deleted an extra space that was added after
18581 SAMBA_CLIENT when the command was being put together. Fix by
18582 Michael Zucchi <cismpz@cis.unisa.edu.au>.
18584 Add a needed ; to client-src/Makefile.am and
18585 server-src/Makefile.am. Patch from Alexandre Oliva
18586 <oliva@dcc.unicamp.br>.
18588 Have planner.c and amcheck.c always get the amanda port number
18589 even if BSD security is turned off. Patch by Blair Zajac
18590 <blair@gps.caltech.edu>.
18592 Change the way amgetidx caches host up/down information. It
18593 used to stralloc() a string depending on if the host was up or
18594 down. Now, create two static character arrays, one holding
18595 "down" and the other holding "up" and simply point the
18596 hostinfo->up pointer to one of the two arrays. This should
18597 save a little memory. Patch by Blair Zajac
18598 <blair@gps.caltech.edu>.
18600 The Bourne shell in FreeBSD can't handle setting IFS to : and
18601 expanding $LOCPATH:$SYSPATH. Create two new variables before
18602 their use called $LOCSYSPATH and $SYSLOCPATH. Patch by Blair
18603 Zajac <blair@gps.caltech.edu>.
18605 Have open_fstab for BSD systems return the value of setfsent.
18606 Patch by Blair Zajac <blair@gps.caltech.edu>.
18608 Configure was searching for the dump program in the following
18609 order: ufsdump, vdump, backup, dump. On HP-UX systems,
18610 configure would find backup, which is a valid program but does
18611 not do what dump does. So switch the order of the programs to
18612 ufsdump, vdump, dump, backup. Patch by Blair Zajac
18613 <blair@gps.caltech.edu>.
18615 Fixed some dbprintf(()) bugs in amgetidx.c. Patch by Blair
18616 Zajac <blair@gps.caltech.edu>.
18618 Have amrecover.c always declare
18619 extern char *optarg;
18621 This makes amrecover.c compile on Ultrix systems. Problem
18622 noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
18624 Patch to configure to have it recognize gnutar version 1.11.2.
18625 Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18629 Have amcleanup, no-changer, and hp-changer find out where the
18630 logging directory, or amdump error file is from getconf instead
18631 of using @LOG_DIR@ or @DB_DIR@ from configure. Problem noted
18632 by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
18634 Remove VarDir=@DB_DIR@ from amrmtape.sh.in, since amrmtape
18635 figures out where the curinfo files are from the amanda.conf
18636 file. Problem noted by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
18638 Include rth-changer, a tape changer script for the Robotic Tape
18639 Handling system OEM'd by Andataco (RTH-406). Script written by
18640 Erik Frederick <edf@tyrell.mc.duke.edu>.
18642 Add a new configure option called --with-pid-debug-files which
18643 has Amanda append the process ID to the debugging files placed
18644 in /tmp. The PID will not be appended unless this option is
18645 used. Suggestion by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
18647 Add a new #define UNCOMPRESS_OPT to pass to UNCOMPRESS_PATH to
18648 get compressed standard input decompressed and pass it to
18649 standard output. The configure script only recognized gzip and
18650 compress right now, so it will set UNCOMPRESS_OPT to -dc and
18651 set UNCOMPRESS_PATH to the same value as COMPRESS_PATH. Edit
18652 all of the files that make use of UNCOMPRESS_PATH to also make
18653 use of UNCOMPRESS_OPT now. Patch by Blair Zajac
18654 <blair@gps.caltech.edu>.
18656 The readline() substitute in amrecover.c when the real
18657 readline() code is not available did not return to the caller
18658 what the user typed in. It now does so. Patch from Blair
18659 Zajac <blair@gps.caltech.edu>.
18661 Avoid -lnsl on Irix. On IRIX 5.x and 6.x systems that have the
18662 svr4net module installed, there will be a /usr/lib/libnsl.so
18663 present on the system. The configure script looks for this and
18664 tosses into the library list if it's there. It is not
18665 advisable to link against libnsl on IRIX unless you really need
18666 it for SVR4 networking (TLI/STREAMS). If you _do_ link against
18667 it, you should use include '-lc' _before_ '-lnsl'. The reason
18668 for this is that libnsl.so also contains the SysV TI-RPC code,
18669 which is RPC based on STREAMS/TLI rather than sockets. (Solaris
18670 2.x now uses this by default.) TI-RPC has some compatibility
18671 functions with the same names as older RPC functions, such as
18672 clnt_call(), clnt_create(), clnt_destroy(), and these conflict
18673 with the functions in libc.so. The main place this will hose
18674 you is NIS: NIS v2 expects the underlying RPC code to use
18675 sockets, not STREAMS, and it fails if the TI-RPC symbols in
18676 libnsl.so override the RPC symbols in libc.so. Again, you
18677 don't need libnsl.so unless you're actually using STREAMS/TLI
18678 or TI-RPC, so in Amanda's case it's safe to just ignore it. If
18679 you _do_ need it, you must do 'cc -o foo foo.c -lc -lnsl' in
18680 order to make sure the linker resolves the RPC symbol
18681 references correctly. The primary symptom of this problem is
18682 that things like getpwent(), getgrent() and getnetgrent() stop
18683 working in an NIS environment. To make a long story short: on
18684 IRIX, avoid using libnsl. Amanda doesn't need it anyway. So far
18685 I haven't encountered a problem with this, but you never know.
18686 Note from Bill Paul <wpaul@ctr.columbia.edu>.
18688 Include patches to have Amanda do incrementals of gnutar based
18689 backups. Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
18691 Delete the GNUTAR_BROKEN_PIPE from configure and acconfig.h
18692 since no code was testing for it. Patch by Blair Zajac
18693 <blair@gps.caltech.edu>.
18695 Have configure check for the number of arguments that
18696 gettimeofday takes and have clock.c use the appropriate number
18697 of arguments. Patch by Blair Zajac <blair@gps.caltech.edu>.
18699 Have sendbackup-common.c include tapeio.h instead of defining
18700 BUFFER_SIZE. Fix by Philip Guenther <guenther@gac.edu>.
18702 Put in more support for AIX by defining AIX_BACKUP if the
18703 system is an AIX system. Fix createindex-dump.c to pass the -B
18704 flag to restore to have it read from standard input. Problem
18705 noted by Bill Paul <wpaul@ctr.columbia.edu>. Patch by Blair
18706 Zajac <blair@gps.caltech.edu>.
18708 Add a regexp for AIX 4's backup in sendbackup-dump.c and
18709 sendsize.c. Patch from Bill Paul <wpaul@ctr.columbia.edu>.
18711 Add a comment to tapeio.h about BUFFER_SIZE and what it is used
18712 for and how people should not change it. Noted by Bill Paul
18713 <wpaul@ctr.columbia.edu>.
18715 Added a --with-mmap option to force the use of mmap() instead
18716 of shared memory support. Requested by wpaul@ctr.columbia.edu
18717 <Bill Paul>. Patch by Blair Zajac <blair@gps.caltech.edu>.
18719 On FreeBSD 2.x and 3.x, the SO_SNDTIMEOUT value is too large in
18720 dumper.c. Looking at the kernel source, the maximum value for
18721 tv_sec is about 227. The value used is READ_TIMEOUT/4, or
18722 (30*60)/4 == 450 seconds. This causes setsockopt() to return
18723 EDOM (Numerical argument out of domain), and again everything
18724 grinds to a halt. I changed the value from READ_TIMEOUT/4 to
18725 READ_TIMEOUT/8, which reduces the SO_SNDTIMEO value to 225. I
18726 haven't extensively tested this yet, but based on eyeballing
18727 the kernel source it should work. Patch from Bill Paul
18728 <wpaul@ctr.columbia.edu>.
18730 In dumper.c:do_dump(), there is code to set the transmission
18731 timeout, receive buffer size and receive low water mark on the
18732 data socket using setsockopt(). For SO_RECVBUF, the receive
18733 buffer size (recbuf) is set to DATABUF_SIZE * 4, which is
18734 32*1024*4, or 131072. On SunOS 4.1.x, this value is too
18735 large: dumper generates a 'no buffer space available' error
18736 and everything grinds to a halt. I took away the '*4', which
18737 reduces the size to 32767 bytes, which seems to work. I'm
18738 surprised nobody else has noticed this since it breaks SunOS
18739 Amanda servers. I can only surmise that people aren't using
18740 SunOS machines as servers these days. :) Patch from Bill Paul
18741 <wpaul@ctr.columbia.edu>.
18743 Have Amanda include either readline.h or readline/readline.h
18744 Fix suggested by Neal Becker <neal@ctd.comsat.com>.
18746 Have --with-includes put the -I flags into $CPPFLAGS and
18747 $CFLAGS so that AC_CHECK_HEADERS will find other include
18748 files. Problem noted by Neal Becker <neal@ctd.comsat.com>.
18750 Fixed common-src/Makefile.am to put the extra libamanda.a
18751 sources into the EXTRA_libamanda_a_SOURCES variable instead of
18752 EXTRA_DIST. Fix from Tom Tromey <tromey@drip.Colorado.EDU>.
18754 When compiling amgetidx.c with some compilers, trigraph
18755 substitutions were being made when they should not have been.
18756 Protect the code from this. Patch from Blair Zajac
18757 <blair@gps.caltech.edu>.
18759 Test for flock support in the following order:
18760 1) POSIX fcntl file locking
18763 The common-src/flock.c file will only be used if the lockf type
18764 locking is needed on this system. Patch from Blair Zajac
18765 <blair@gps.caltech.edu>.
18767 Have Samba support compile in only if requested by the user.
18768 Patch from Blair Zajac <blair@gps.caltech.edu>.
18770 Configure was not using $CFLAGS and $CPPFLAGS when trying to
18771 calculate the select argument type. Patch from Blair Zajac
18772 <blair@gps.caltech.edu>.
18774 Updated amanda.h to include alloca.h if the system has it and
18775 if it's ok to include. Also protect more include files with
18776 #ifdefs found by configure. Patch from Blair Zajac
18777 <blair@gps.caltech.edu>.
18779 Linux does not use the raw device names to do backups.
18780 configure now checks to see if it can find a raw disk device
18781 file whose name is built from root's mount point. If it can't,
18782 then set RDEV_PREFIX to use /dev/ instead of /dev/r. Fix
18783 suggested by Brian <brian.s.mogged@uwrf.edu> and Ken Latta
18784 <latta@parc.xerox.com>.
18786 Fixed const cast message from regex.c. Problem noted by Ken
18787 Laprade <klaprade@harris.com>. Patch from Blair Zajac
18788 <blair@gps.caltech.edu>.
18790 Configure was not checking for the OSF1_VDUMP #ifdef used in
18791 Amanda. It now will set OSF1_VDUMP if vdump is found on the
18792 system. However, it does not check if the system is really a
18793 OSF system. Patch from Blair Zajac <blair@gps.caltech.edu>.
18795 Have configure check for asm/byteorder.h for
18796 sparc-unknown-linux-gnu. Problem noted by Eric Doutreleau
18799 Remove the check for libintl.h from configure. It was only
18800 being used for regex.c, which really didn't need it. Patch
18801 from Blair Zajac <blair@gps.caltech.edu>.
18803 Convert all code to K&R C by trying to compile Amanda using
18804 /usr/bin/cc on a SunOS 4.1.1 machine. Have configure check if
18805 the compiler can handle the volatile keyword and if it can't,
18806 #define it to empty in the config.h file. Patch from Blair
18807 Zajac <blair@gps.caltech.edu>.
18809 Move the contents of versuff.h into version.h and remove
18810 versuff.h. Add a new function called version() which returns
18811 the version string. Use version() in some of the programs.
18812 Patch from Blair Zajac <blair@gps.caltech.edu>.
18814 m88k-motorola-sysv4 systems define L_FAIL, which is used by
18815 logfile.h. Undefine it in logfile.h. Patch from Blair Zajac
18816 <blair@gps.caltech.edu>.
18818 Include amindex-1.0 from Alan McIvor. It includes these
18819 improvements over 0.3:
18820 Amrecover now provides the ability to restore files
18821 from the tapes, via the "extract" command.
18823 Support for gnutar based index generation (but not file
18826 Numerous bug fixes.
18828 Have amgetidx try to open a socket to the shell/tcp port on the
18829 remote machine and cache if it succeeds. If it connection
18830 attempt succeeds, then attempt to get the index files over from
18831 the client. Patch from Blair Zajac <blair@gps.caltech.edu>.
18833 Update patch-system to include the amidxtape service at
18834 10083/tcp. Patch from Blair Zajac <blair@gps.caltech.edu>.
18836 Configure said that the server configuration was OK and then
18837 next said it wasn't. Remove these checks. Patch from Blair
18838 Zajac <blair@gps.caltech.edu>.
18840 Fixed building Amanda for multiple architectures in
18841 subdirectories of Amanda. Problem noted by Thomas Hepper
18842 <Thomas.Hepper@icem.de>.
18846 Fix a problem with `amadmin <conf> balance' dumping core. If
18847 some disks are overdue, they are stored in the sequence array
18848 with a negative index. This has the potential to cause memory
18849 corruption, and it makes the reported balance figures not add up
18850 to the same as the total. Since overdue disks are really going
18851 to be candidated for today's backups, they are thrown in the
18852 bin for those. Patch from Ken Laprade <klaprade@harris.com>.
18854 Add Samba client support using smbclient to Amanda. Samba must
18855 be patched with the file patches/samba-1.9.16p2.1.patch - this
18856 is a patch for 1.9.16p2 of Samba, and modifies the way the
18857 'dir' command works, and adds totals to both the dir command
18858 and the tar command, via stderr. These are used by amanda to
18859 estimate and count backup sizes. This should be installed on
18860 an amanda 'client' host, that will act as the 'samba server'
18861 host. This will most likely be the same machine as the Amanda
18862 master server. Patches from Michael Zucchi
18863 <zucchi@cis.unisa.edu.au>.
18865 Amrmtape converted from Bash to Bourne shell. Patch from Blair
18866 Zajac <blair@gps.caltech.edu>.
18868 Fix the indexing code to use "arglist.h" instead of <stdarg.h>
18869 Patch from Blair Zajac <blair@gps.caltech.edu>.
18871 Have amdump call amgetidx and amtrmidx. Put amgetidx and
18872 amtrmidx into the libexec directory instead of the bin
18873 directory, since Amanda users will not use these by hand.
18874 Patch from Blair Zajac <blair@gps.caltech.edu>.
18876 Modified diskfile.c to match hostname in the backup header
18877 against the fully qualified domain name in disklist file,
18878 because amflush fails in a multidomain backup environment, as
18879 backup headers have only the hostname. Patch from Karl
18880 Lehenbauer <karl@neosoft.com>.
18882 Have autoconf figure out if some functions are not declared and
18883 if they are not, then declare them. Patch from Blair Zajac
18884 <blair@gps.caltech.edu>.
18886 Add security fixes to amandad.c. It now checks the forward and
18887 reverse DNS names for consistency. Added a configure option
18888 --amandahosts to use Michael's code to use .amandahosts instead
18889 of .rhosts. Patch from Michael Douglass <mikedoug@texas.net>.
18891 Add amverify, a simple shell script to check Amanda tapes -
18892 gnutar driven backups only. Patch from Thomas Hepper
18893 <Thomas.Hepper@icem.de>.
18895 Add the version option to amadmin (eg amadmin <conf> version).
18896 Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
18898 Add the current option to amtape (eg amtape <conf> current).
18899 This let's you the label of the current tape only without using
18900 dd. Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
18902 Gnutar support for amindex added. Patch from Thomas Hepper
18903 <Thomas.Hepper@icem.de>.
18905 Calcsize supports exclude-list (gtar). The source was
18906 extracted from gnutar itself to be 100% compatible. Patch from
18907 Thomas Hepper <Thomas.Hepper@icem.de>.
18909 Calcsize checks the file type and ignores special files and
18910 pipes. Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
18912 Calcsizes calculation for gnu tar archives had a bug (gtar file
18913 blocks always are a multiple of 2k). Patch from Thomas Hepper
18914 <Thomas.Hepper@icem.de>.
18916 `amandates.c': amdandad suffered by missing AMANDATES_FILE.
18917 Now it creates this file before missing it. Patch from Thomas
18918 Hepper <Thomas.Hepper@icem.de>.
18920 `createindex-gnutar.c' added. Patch from Thomas Hepper
18921 <Thomas.Hepper@icem.de>.
18923 alloca(), strdup.c and getcwd added for those system who don't
18924 have them. Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
18926 A dirty hack for BSD based systems without sigaction(), see
18927 amanda.h. Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
18929 Add two scripts, hp-changer and no-changer. hp-changer is a
18930 tape changer script for a HP DAT changer. Every 10th tape a
18931 taper clean runs. no-changer is a changer-like script for
18932 single tape streamer. It makes Amanda see a tape changer unit
18933 with an infinite count of tapes (and requires an operator to
18934 change the tapes :-)). Every 10 tapes the operator is
18935 recommended to insert a cleaning tape. Patch from Thomas
18936 Hepper <Thomas.Hepper@icem.de>.
18938 The version suffix adding is done with a seperate function
18939 versionsuffix() also available as standalone program. Patch
18940 from Thomas Hepper <Thomas.Hepper@icem.de>.
18942 Several files got debug support. Patch from Thomas Hepper
18943 <Thomas.Hepper@icem.de>.
18945 Added an idle type file-too-large to driver.c to avoid dumping
18946 files to the holding disk(s) which exceed the maximum file size
18947 (2 GB on the most 32-bit machines). Patch from Thomas Hepper
18948 <Thomas.Hepper@icem.de>.
18950 Some minor bug fixes, mostly regarding missing or wrong casts
18951 confusing c compilers (shmat()/shmdt(), select()). Patch from
18952 Thomas Hepper <Thomas.Hepper@icem.de>.
18954 Genversion gives some more information. Patch from Thomas
18955 Hepper <Thomas.Hepper@icem.de>.
18957 getfsent.c and statfs.c have been cleaned up. The have to be
18958 checked on non-Irix/Solaris/NextStep/HPUX/AIX/Linux-systems.
18959 Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
18961 Simple support if readline.a is missing. NEVER TESTED! Patch
18962 from Thomas Hepper <Thomas.Hepper@icem.de>.
18964 Linux requires libdb.a and ndbm.h to handle database files. Not
18965 really what I expected. Patch from Thomas Hepper
18966 <Thomas.Hepper@icem.de>.
18968 Here's a simple patch which fixes a problem that causes amflush
18969 to erroneously complain "ignoring cruft file" about good dump
18970 files on the holding disk, and fail to flush them to tape.
18971 This happens if your holding disk directory has a long name,
18972 and the dump file also has a long name (i.e. if you use
18973 filesystem mount points in disklist). The problem occurs if
18974 the holding directory + filename exceeds 80 bytes. The patch
18975 still leaves a length limitation, but at least it matches the
18976 size limit imposed by driver (and thus dumper & taper) of 128
18977 bytes. Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
18979 Use regex.h and regex.c from
18980 ftp://prep.ai.mit.edu/sh-utils-1.15.tar.gz instead of the regex
18981 checking code in the system. This code includes re_comp and
18982 re_exec calls, so it will work on any system. Patch by Blair
18983 Zajac <blair@gps.caltech.edu>.
18985 Amadmin find reports the wrong tape file numbers after when a
18986 dump is amflush'ed to tape. Patch by Ralf Fassel
18987 <ralf@atg.venture.de>.
18989 Fix a bug where dumps of disks on the Amanda server are counted
18990 against the available network bandwidth. Patch from Marion
18991 Hakanson <hakanson@cse.ogi.edu>.
18993 Tell gnutar to not exit with a nonzero value if a read failed.
18994 This prevents backups from aborting if a file disappeared
18995 before gnutar could save it. Patch from Hal Snyder
18998 Fix dumper which can cause the entire amdump run to hang after
18999 dumper issues a "TRY-AGAIN" message to driver while dumping
19000 directly to tape. Patch from Marion Hakanson's
19001 <hakanson@cse.ogi.edu>.
19003 Added Marion Hakanson's <hakanson@cse.ogi.edu> patches to fix
19004 problems when amanda dumps directly to tape (i.e. when holding
19005 space is full, or you're backing up a huge filesystem, etc.).
19006 The bug occurs in the way taper determines it has succeeded
19007 when doing a PORT-WRITE operation (i.e. dumping directly to
19008 tape). It used to assume that an EOF meant no more data --
19009 true if it's reading from a file, but when reading from a port
19010 (i.e. directly from a dump process), an EOF could signal
19011 abnormal exit as well as a normal one. So, I extended the
19012 protocol between driver and taper when dumping directly to tape
19013 (see dump_to_tape() in driver.c) so the taper will wait for the
19014 driver to pass PORT-WRITE-SUCCESS or PORT-WRITE-FAILURE to the
19015 taper (since driver gets OK/not-OK from the dumper) before the
19016 taper records success or failure. Note that this change
19017 affects only the PORT-WRITE case in taper. FYI, the bug
19018 resulted in the curinfo database for a failed port-dump to have
19019 the tape-label & file-number fields updated with the location
19020 of the failed dump, even though the timestamp & dump statistics
19021 still have the values of the last successful dump (the latter
19022 fields are updated by dumper itself).
19024 Patches from George Scott <George.Scott@cc.monash.edu.au> to
19025 fix the following problems in planner.c.
19026 1) Initialise total_size, total_lev0 and balanced_size. They
19027 are updated in analyze_estimates() but never initialised. Zero
19028 them before the first call.
19029 2) Remove oversize dumps. If there is a dump whose estimated
19030 size is larger than the tape the planner would tend to throw
19031 away all the other dumps and then probably generate an
19032 unworkable plan anyway. (The standard 2.2.6 planner probably
19033 tossed these dumps fairly quickly for other reasons, but my
19034 next fix made this one almost mandatory!) The fix is to drop
19035 these enormous dumps right at the begining. This shouldn't be
19036 triggered for anyone with a sane configuration.
19037 3) Promote hills. There are two ways to create a balanced
19038 cycle. The first is to fill in any holes and the second is to
19039 remove any hills. The original planner is good at doing the
19040 first but doesn't even attempt the second. A quick look at
19041 "amadmin balance" would show big hills quite clearly. This fix
19042 effectively does an "amadmin balance" and promotes a dump from
19043 one of the "hills". This type of promotion is quite
19045 - don't bother if we already plan to do any level 0 dumps
19046 - don't promote a dump if it was going to be the only level 0
19047 to be done on that run (ie, ignore hills that are only one
19049 - only promote one level 0 by this method
19050 - don't exceed tape_length
19051 The key to it is the first restriction. Large sites (with
19052 large numbers of disks and a large balanced_size) will have at
19053 least one level 0 scheduled for each day in the dump cycle and
19054 will already have a balanced cycle. This code will not
19055 activate for them. Small sites will probably not have a level
19056 0 scheduled and will benefit. The second restriction will stop
19057 Amanda from constantly promoting dumps when the schedule is as
19058 balanced as it will go. The third restriction will stop Amanda
19059 over reacting. Promoting one dump by this method would take
19060 total_lev0 larger that balanced_size. If it wouldn't then the
19061 first stage promotion didn't work like it should.
19062 4) Initialise got_estimate for all cases. This fix was from
19063 der Mouse <mouse@collatz.mcrcim.mcgill.edu>. "got_estimate"
19064 wasn't being initialised for skipped disks. Later in the code
19065 it was being used in all cases. The fix is to move its
19066 initialisation up a few lines.
19067 5) Explicitly ignore off-line disks. If a disk is off-line
19068 when the planner is run it gets -1 for all dump sizes. These
19069 were ignored at a later stage. This fix explicitly ignores
19071 6) Ignore down machines. If a machine is down when the planner
19072 is run it guesses from historical data what the size of
19073 tonights dump is likely to be and schedules a dump anyway. The
19074 dumper then usually discovers that the machine is still down
19075 and ends up with a half full tape. Unfortunately the planner
19076 had to delay another dump because it thought that the tape was
19077 full. The fix here is for the planner to discard unavailable
19078 machines totally rather than just ignore the fact that they are
19080 7) Keep at least one total. Amanda moves level 0 dumps back to
19081 incrementals to try and fit everything onto the tape.
19082 Unfortunately if all your incrementals are too big (or your
19083 tape too small) it can move all of your level 0 dumps. This
19084 ends up being a kind of deadlock since, unless a level 0 gets
19085 done, the incrementals will not reduce in size and until the
19086 incrementals reduce in size there will not be enough room to
19087 fit in a level 0. (This is not quite accurate since a level 4
19088 dump can get bumped to a level 5 which reduces its size.
19089 However, this deadlock has happened to me and for many days in
19090 a row.) The fix is to pick on the highest priority level 0 and
19091 not let it be moved. This change will not affect users with
19092 reasonably sized tapes since Amanda would not have moved all
19093 their disks to incrementals.
19094 8) Make usage of total_lev0 consistent. "total_lev0" is a
19095 double and doesn't include tape_mark's. Make it so.
19097 Add a fflush(outf) to amcheck.c. Patch from Mike Russell
19098 <Michael_Russell@Brown.EDU>.
19100 Fix problems with amhpfixdevs. Patch from Michael Schmitz
19101 <mschmitz@iname.com>.
19103 Have DEC OSF1 use installbsd instead of install. Patch from
19104 Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
19106 Have amcontrol take the first command line argument as the
19107 configuration to use. If there are no command line arguments,
19108 then use daily. Patch from Thomas Schmeidl
19109 <schmeidl@nwp.kwu.siemens.de>.
19111 Removed --atime-preserve from sendbackup-gnutar.c so that
19112 incremental backups of filesystems will work. Patch from
19113 Alexandre Oliva <oliva@dcc.unicamp.br>.
19115 Change all #if __STDC__ to #ifdef __STDC__ for those systems
19116 that define __STDC__ to 0, such as Solaris using cc -Xt, cc
19117 -Xa. Patch from Blair Zajac <blair@gps.caltech.edu>.
19119 Increase the socket buffer size, and set a low watter mark at
19120 32k. This cut the number of syscalls done to process one 32k
19121 block from dozens down to 4 (select, read, lseek, write).
19122 Patch from Brad Huntting <huntting@glarp.com>.
19124 Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
19126 Add the "srvcompress" option to compress dumps on the tape host
19127 instead of on the client machines. This may be useful when a
19128 fast tape host is backing up slow clients. The patches add a
19129 dump-type option, analogous to "compress-fast" or
19130 "compress-best" - the way to use it is to create a new dumptype
19131 in your amanda.conf that includes "srvcompress" and use the new
19132 dumptype for those filesystems you wish to have compressed on
19133 the tape server. For example, in amanda.conf:
19134 define dumptype srvcomp-user {
19135 comment "Partitions on slow machines, compressed on tapehost"
19136 options srvcompress
19139 Patches from Eric Volpe <epv@panix.com>.
19141 Increase the planner timeout for one estimate from 30 seconds
19142 to 120 seconds. Patch from Michael Schmitz
19143 <mschmitz@iname.com>.
19145 The select(2) prototype on HPUX specifies 'int' as argument
19146 type of the filedescriptor arguments. All other systems I know
19147 of use 'fd_set'. This has been fixed by having configure check
19148 the argument type to select and adding casts to the select(2)
19149 calls. Patch from Michael Schmitz <mschmitz@iname.com>.
19151 Improve the diagnostic output and increase the robustness of
19152 the system by adding better error checking on communication
19153 between taper & driver, and among the two taper processes.
19154 Patches from Marion Hakanson <hakanson@cse.ogi.edu>.
19156 Convert all flock() calls to use POSIX-style locks via the
19157 fcntl(2) call. This operation was prompted by the fact that
19158 the flock() emulation in the Amanda-provided common-src/flock.c
19159 was broken for read-only file descriptors, and the fcntl(2)
19160 locks are widely available. This patch makes it possible to
19161 have a read-only lock on the /etc/amandates file on systems
19162 which want to use it. I've built and tested the patched code
19163 on Amanda servers running on Digital Unix v3.2B (on Alpha
19164 hardware) and on SPARC Solaris-2.5.1. It's also been compiled
19165 here on SPARC's running SunOS-4.1.3u1b, HP-UX 9.0[345], and
19166 NeXTstep-3.3 (NeXT hardware). Note that the patches also
19167 remove all trace of the NEED_FLOCK define, and I have removed
19168 the file common-src/flock.c from our source tree here. Patch
19169 from Marion Hakanson <hakanson@cse.ogi.edu>.
19171 For disk/filesystem names which are wider than 14 characters,
19172 have reporter print out the rightmost characters of the disk
19173 name, which is usually more meaningful in a daily backup
19174 summary. Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
19176 Lets amflush work in a wider variety of cases than was
19177 previously true (it used to work if the disklist contains only
19178 the first token of each hostname). sendbackup-dump.c and
19179 sendbackup-gnutar.c now do not trim the domain name from the
19180 host name that is sent back to the server. amflush now looks
19181 for an exact match, in the database. If it can't find one it
19182 strips the last token off the dump header hostname and keeps
19183 trying until it finds a match in the disklist or runs out of
19184 tokens. This also has the advantage that if gethostname()
19185 returns FQDNs and you specify the same FQDNs in the disklist,
19186 then amflush will always work. It will also work as long as
19187 the disklist and gethostname() on the clients return enough
19188 information to be unambiguous. Patch from James Mathiesen
19189 <james@deshaw.com>.
19191 Increase the READ_TIMEOUT in dumper.c to 30 minutes. This
19192 needs to be longer than the longest amount of time dump will
19193 not produce output. People have observed dumps taking more
19194 than 10 minutes to finish mapping some of the passes
19195 sometimes. Patch from James Mathiesen <james@deshaw.com>.
19197 Added Adrian T. Filipi-Martin's <atf3r@cs.virginia.edu>
19198 amrmtape script, which allows you to invalidate the contents of
19199 an existing backup tape within the Amanda current tape
19200 database. This is meant as a recovery mecanism for when a good
19201 backup is damaged either by faulty hardware or user error,
19202 i.e. the tape is eaten by the tape drive, or the tape has been
19203 overwritten. Blair Zajac wrote a quick little manual page for
19206 amrmtape was using the return value from amadmin and amadmin
19207 was exiting with a non-zero value, causing amrmtape to quit.
19208 Added a return 0 statement to amadmin.c. Patch from Blair
19209 Zajac <blair@gps.caltech.edu>.
19211 Went through all of the files and changed void main()'s to int
19212 main()'s. Patch from Blair Zajac <blair@gps.caltech.edu>.
19214 Removed the 50 tape file limit in amcleanup and amdump.
19216 createindex-dump and sendbackup-dump did not always take into
19217 account the version suffix. This is now handled. Patch from
19218 Philippe Charnier <charnier@lirmm.fr>
19220 Compile and install amrecover and amrestore as client programs,
19221 not a server program. The motovation for this is that
19222 amrecover is truly a program for all of the users on the
19223 system, while the remaining amanda programs could be used by
19224 only the system administrator. Patch from Alexandre Oliva
19225 <oliva@dcc.unicamp.br>.
19227 The program amtrmidx fails to close some of the pipes it uses,
19228 and this can lead to failure on systems with large numbers of
19229 disks with incomplete database sets, and file descriptor
19230 ulimits set. Patch from Alan McIvor <alan@auck.irl.cri.nz>.
19234 Expanded the width of the DISK column from the reporter
19235 output. I like to use mount points like /export/home?? instead
19236 of device names to back up. Since the width of the disk name
19237 field from reporter's output is pretty small, I couldn't easily
19238 figure out the statistics for a particular partition. Patch
19239 from Blair Zajac <blair@gps.caltech.edu>.
19241 Included Eric Doutreleau <ed@cti.ecp.fr> patch's for amadmin to
19242 handle multiple tapes better. The patch that he posted on used
19243 a hardwired value of 6 for runtapes, which I changed.
19245 Included Marion Hakanson's <hakanson@cse.ogi.edu> patches to
19246 amadmin.c and amadmin.8 to let amadmin use the same disk
19247 regular expression matching as amrestore. So now "^/$" will
19248 match only the root partition, not all of the disks.
19250 Added a patch from George.Scott@cc.monash.edu.au which makes
19251 new disks and forces dump with a higher priority.
19253 Changed tools/munge to delete blank lines and the commented
19254 lines that the C preprocessor generates (i.e. # 123). We also
19255 remove the space after the = sign that can be generated by cpp
19258 Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
19259 with the following patches:
19261 Fix problem so that rsh'ing on a hpux host works.
19262 Patch from Neal Becker <neal@ctd.comsat.com>. This
19263 patch includes a new #define for RSH_COMMAND, which is
19264 set to rsh in config-common.h and defined as remsh in
19267 Fix bugs in createindex-dump.c when comparing errno to
19268 EINTR. The code was using = instead of ==. Patch from
19269 Neal Becker <neal@ctd.comsat.com>. I'm guessing this
19270 might fix some of the runaway createindex-dump
19271 processes that I have seen on my system.
19273 On my system, we use MAE which likes to generate path
19274 names with spaces in them. I patched
19275 createindex-dump.c so that filenames with spaces have
19276 the whole filename listed. Patch from Blair Zajac
19277 <blair@gps.caltech.edu>.
19279 Patch amtrmidx.c so that backups using the mount points
19280 for disks instead of the device name have the /'s
19281 replaced with _'s. Patch from Blair Zajac
19282 <blair@gps.caltech.edu>.
19286 Changed the signals being sent to xfsdump for Irix so that it
19287 will be killed without dumping a core.
19289 Fixed a typo in the definition of XFSDUMP in config.h-irix.
19291 Removed the extra option.s-* and copied options.h to
19294 Moved the amrestore manual page into the man directory so it
19295 would get installed.
19299 amindex-0.1 written by Alan McIvor <alan@kauri.auck.irl.cri.nz>
19300 installed. amindex generates an index of all of the files that
19301 were dumped. It is nice to see what files were dumped before
19302 you restore a whole bunch of tapes looking for a file. I
19303 patched some of this code. Here are some of the changes:
19305 Switched the Imakefile to Makefile and Makefile.in to
19306 be more consistent with the system used by the rest of
19309 Moved the configuration #defines out of the specific
19310 files (such as amrecover.c) into options.h, so that
19311 people installing this version of amanda would be able
19312 to see the required changes more easily and not have to
19313 edit multiple files.
19315 Made some changes to the codes to remove #include's
19316 where amanda.h would include them and also check if the
19317 system had the particular include file.
19319 Added code to set_commands.c and amgetidx.c to change
19320 /'s in disk names to _'s.
19322 Added code to amrecover.c to properly compile on
19325 With the -Xc compiler option on Solaris and with
19326 amindex, the sigaction structure was not being
19327 declared. Added -D__EXTENSIONS__ to config.h-sunos5 so
19328 that sigaction would be declared.
19330 I changed a bunch of fprintf to perrors.
19332 Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
19335 Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
19337 Installed Ken Laprade's <klaprade@harris.com> patches for
19338 amanda to handle both EFS and XFs file systems on the same
19339 client. The only change from his patch is to #ifdef XFSDUMP
19340 the kill(-dumppid, SIGTERM) so the SIGTERM signal will be used
19341 on other systems, while SIGQUIT will be used on Irix systems.
19343 Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
19344 the main config file to include subsidiary config files.
19346 On Solaris, sometimes the hdr->handle variable in amandad.c
19347 would be null, causing core dumps when it was used in a sprintf
19348 statement. The code now checks if hdr->handle is null and
19349 prints a "" if it is null. This was only done in amandad.c.
19351 Fix a problem where new disks would be added but not backed up
19352 concurrently. Changes to diskfile.c. I forgot who put this
19353 patch up on the mailing list.
19355 I made some changes to options.h to allow the user to more
19356 easily install the programs under a different user. This meant
19357 defining two new #defines, MK_AMANDA_USER and
19358 MK_QUOTED_AMANDA_USER which are used in the appropriate
19361 Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
19362 for multiple tapes.
19364 Included Joachim Loehr's <Joachim.Loeh@stadt-mh.de>
19365 script to automatically figure out which kind of HP-UX file
19366 system is being dumped. Look in tools for the script and a