pax_global_header00006660000000000000000000000064146500631560014520gustar00rootroot0000000000000052 comment=cd3bb80941b7dcdadc23871da27a282922bbca1c amanda-3.5.4/000077500000000000000000000000001465006315600127525ustar00rootroot00000000000000amanda-3.5.4/.gitignore000066400000000000000000000111621465006315600147430ustar00rootroot00000000000000# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,windows,vim,emacs,visualstudiocode,git,svn,autotools,c,perl # Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,windows,vim,emacs,visualstudiocode,git,svn,autotools,c,perl ### Autotools ### # http://www.gnu.org/software/automake Makefile.in /config/ar-lib /config/mdate-sh /config/py-compile /config/test-driver /config/ylwrap .deps/ .dirstamp # http://www.gnu.org/software/autoconf autom4te.cache /autoscan.log /autoscan-*.log /aclocal.m4 /config/compile /config.cache /config/config.guess /config/config.h.in config.log /config.status /config/config.sub /configure /configure.scan /config/depcomp /config/install-sh /config/missing /config/stamp-h1 # https://www.gnu.org/software/libtool/ /ltmain.sh # http://www.gnu.org/software/texinfo /texinfo.tex # http://www.gnu.org/software/m4/ m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4 # Generated Makefile # (meta build system like autotools, # can automatically generate from config.status script # (which is called by configure script)) Makefile ### Autotools Patch ### ### C ### # Prerequisites *.d # Object files *.o *.ko *.obj *.elf # Linker output *.ilk *.map *.exp # Precompiled Headers *.gch *.pch # Libraries *.lib *.a *.la *.lo # Shared objects (inc. Windows DLLs) *.dll *.so *.so.* *.dylib # Executables *.exe *.out *.app *.i*86 *.x86_64 *.hex # Debug files *.dSYM/ *.su *.idb *.pdb # Kernel Module Compile Results *.mod* *.cmd .tmp_versions/ modules.order Module.symvers Mkfile.old dkms.conf ### Emacs ### # -*- mode: gitignore; -*- *~ \#*\# /.emacs.desktop /.emacs.desktop.lock *.elc auto-save-list tramp .\#* # Org-mode .org-id-locations *_archive # flymake-mode *_flymake.* # eshell files /eshell/history /eshell/lastdir # elpa packages /elpa/ # reftex files *.rel # AUCTeX auto folder /auto/ # cask packages .cask/ dist/ # Flycheck flycheck_*.el # server auth directory /server/ # projectiles files .projectile # directory configuration .dir-locals.el # network security /network-security.data ### Git ### # Created by git for backups. To disable backups in Git: # $ git config --global mergetool.keepBackup false *.orig # Created by git when using merge tools for conflicts *.BACKUP.* *.BASE.* *.LOCAL.* *.REMOTE.* *_BACKUP_*.txt *_BASE_*.txt *_LOCAL_*.txt *_REMOTE_*.txt ### Linux ### # temporary files which can be created if a process still has a handle open of a deleted file .fuse_hidden* # KDE directory preferences .directory # Linux trash folder which might appear on any partition or disk .Trash-* # .nfs files are created when an open file is removed but is still being accessed .nfs* ### macOS ### # General .DS_Store .AppleDouble .LSOverride # Icon must end with two \r Icon # Thumbnails ._* # Files that might appear in the root of a volume .DocumentRevisions-V100 .fseventsd .Spotlight-V100 .TemporaryItems .Trashes .VolumeIcon.icns .com.apple.timemachine.donotpresent # Directories potentially created on remote AFP share .AppleDB .AppleDesktop Network Trash Folder Temporary Items .apdisk ### macOS Patch ### # iCloud generated files *.icloud ### Perl ### !Build/ .last_cover_stats /META.yml /META.json /MYMETA.* *.pm.tdy *.bs # Devel::Cover cover_db/ # Devel::NYTProf nytprof.out # Dist::Zilla /.build/ # Module::Build _build/ Build Build.bat # Module::Install inc/ # ExtUtils::MakeMaker /blib/ /_eumm/ /*.gz /Makefile /Makefile.old /MANIFEST.bak /pm_to_blib /*.zip ### SVN ### .svn/ ### Vim ### # Swap [._]*.s[a-v][a-z] !*.svg # comment out if you don't need vector files [._]*.sw[a-p] [._]s[a-rt-v][a-z] [._]ss[a-gi-z] [._]sw[a-p] # Session Session.vim Sessionx.vim # Temporary .netrwhist # Auto-generated tag files tags # Persistent undo [._]*.un~ ### VisualStudioCode ### .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json !.vscode/*.code-snippets # Local History for Visual Studio Code .history/ # Built Visual Studio Code Extensions *.vsix ### VisualStudioCode Patch ### # Ignore all local history of files .history .ionide ### Windows ### # Windows thumbnail cache files Thumbs.db Thumbs.db:encryptable ehthumbs.db ehthumbs_vista.db # Dump file *.stackdump # Folder config file [Dd]esktop.ini # Recycle Bin used on file shares $RECYCLE.BIN/ # Windows Installer files *.cab *.msi *.msix *.msm *.msp # Windows shortcuts *.lnk # End of https://www.toptal.com/developers/gitignore/api/linux,macos,windows,vim,emacs,visualstudiocode,git,svn,autotools,c,perl ### Amanda ### file-list conftemp.svn FULL_VERSION /config/config.h /common-src/svn-info.h /libtool .libs/ !/example/template.d/ amanda-3.5.4/AUTHORS000066400000000000000000000071351465006315600140300ustar00rootroot00000000000000This file lists all known contributors of significant changes to Amanda. Many of the contributors listed here are no longer active. Please do not contact anyone on this list directly with questions about Amanda; instead, post to the Amanda Users mailing list: amanda-users@amanda.org James da Silva Hacker Emeritus Contributions made under the UMD license Mike Grupenhoff Ex-UMIACS hacker Contributions made under the UMD license Todd Kover Mailing eist maintainer Ex-UMIACS hacker, developer and supporter Contributions made under the UMD license James Mathiesen Numerous bug fixes Contributions made under the UMD license Alan McIvor Developer of amindex and various bug fixes Contributions made under the UMD license George Scott Developer during 2.4.0 release cycle Contributions made under the UMD license Alexandre Oliva Long-time developer Contributions made under the UMD license Blair Zajac De-facto maintainer between release 2.3.0 and the creation of the Amanda Development Team, at some point after release 2.3.0.4. Contributions made under the UMD license Curtis Varner Feature development and bug fixes Contributions made under the UMD license John R. Jackson Security fixes, feature development Contributions made under the UMD license Jean-Louis Martineau New features, bug fixes, and current maintainer Application API Contributions made under GPLv2 Thomas Hepper : Original Changer API Contributions made under the UMD license Jon LaBadie Active supporter Contributions made under the UMD license Stefan G. Weichinger Documentation author and compiler Contributions made under the UMD license John Franks Contributions made under GPLv2 Paddy Sreenivasan Contributions made under GPLv2 Kevin Till Contributions made under GPLv2 Ian Turner Device API Contributions made under GPLv2 Dustin J. Mitchell Device API, Changer API, Xfer Architecture, and Perl rewrite Contributions before Oct 18, 2010 made under GPLv2 Contributions after Oct 18, 2010 made under the UMD license Nikolas Coukouma S3 Device Contributions made under GPLv2 John Hein Contributions made under the UMD license Nick Smith Patches to ZFS applications and scripts Contributions made under the UMD license Satya Ganga Contributions made under GPLv2 Alan Hodgson Contributions made under the UMD license Ben Slusky amcrypt-ossl.sh and amcrypt-ossl-asym.sh Contributions made under the UMD license Sam Couter DVD-RW device Contributions made under the UMD license Orion Poplawski amoverview, perl report fixes Contributions made under GPLv2 Stephen Gelman Nexenta support and patches Contributions made under GPLv2 Nikhil Bhupale Contributions made under GPLv2 Francis Galiegue Contributions made under GPLv2 Chapman Flack Contributions made under BSD license amanda-3.5.4/COPYRIGHT000066400000000000000000000027441465006315600142540ustar00rootroot00000000000000/* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 1991-1998 University of Maryland at College Park * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved. * Copyright (c) 2013-2016 Carbonite, Inc. All Rights Reserved. * All Rights Reserved. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the name of U.M. not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission. U.M. makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * U.M. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL U.M. * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Authors: the Amanda Development Team. Its members are listed in a * file named AUTHORS, in the root directory of this distribution. */ amanda-3.5.4/COPYRIGHT.BSD000066400000000000000000000031611465006315600146550ustar00rootroot00000000000000This copyright apply to all codes written by authors that made contribution made under the BSD license. Read the AUTHORS file to know which authors made contribution made under the BSD license. The 3-Clause BSD License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. amanda-3.5.4/ChangeLog000066400000000000000000037315651465006315600145500ustar00rootroot000000000000002023-07-26 amandaTrusted * Fixed: arg checking for runtar.c (CVE-2023-30577) 2023-02-25 amandaTrusted * Fixed: removed vulnerable jQuery dependency * Fixed: fix suppressed 1st char of error message in common-src/bsdtcp-security.c * docs: improved README with Markdown * docs: updated README file name for docs in Debian builds * Fixed: post_inst_functions.sh to create amkey * Fixed: added extern keyword for tu_debugging_enabled declaration in testutils.h * Fixed: https://sogis.eu complaint symmetric encryption key derivation algorithm * Fixed: removed perror to fix information leak vulnerability found in the calcsize SUID binary. (CVE-2022-37703) * Fixed: added filter for RSH environment settings in rundump to fix privilege escalation vulnerability (CVE-2022-37704) * Fixed: arg checking for runtar.c (CVE-2022-37705) 2022-05-23 chassell * Purpose: set a default to disable auto-label from claiming non-amanda and "other-config" labels as if available * Changes: Add a build flag to re-include options. Block use of two enums for the features. Change perl uses to null-set options. * File: config/amanda/tape.m4: adds build flag to prevent auto-label issues: "Define if unsafe erasure of tapes is allowed" * File: common-src/conffile.c: exclude definition(s) of CONF_OTHER_CONFIG and CONF_NON_AMANDA enums * File: common-src/conffile.h: add C-macros of null-set for AL_OTHER_CONFIG and AL_NON_AMANDA flag bits * File: installcheck/{Amanda_Changer.pl,Amanda_Config.pl}: tests for OTHER_CONFIG and NON_AMANDA options 2022-06-23 chassell * issue#160: found problem with code refactor earlier 2019-12-10 chassell * 3 5.default amanda security (#142) * amanda-security.conf becomes a default installed file * adding final step in install files 2019-12-03 chassell * handle tape scan more correctly (#136) * check the correct variable to ensure exclude-list is not used (#138) * modernize s3/aws interface (#137) * remove strange use of @prefix@ (#135) * perl/Amanda/Taper/Scan/lexical.pm (last_use_label_from_pool): issue #126 bad copy-paste fail fix 2019-11-28 Daniel T Chen * amar-src/Makefile.am, ndmp-src/Makefile.am, perl/Makefile.am, server-src/Makefile.am, xfer-src/Makefile.am: issue 129, add libamanda.la, libndmlib.la and libamxfer.la into important linking 2019-11-28 Debian Packagers * perl/Amanda/Interactivity.pm, server-src/amtape.pl: issue #128, exchange 'stdin' to 'tty' as interactivity label 2019-11-28 Chris Hassell * application-src/amsamba.pl (command_estimate): issue #132 fixed use wildcard to force samba to estimate from dir and not whole disk 2019-11-28 Chris Hassell * perl/Amanda/Taper/Scan/lexical.pm (last_use_label_from_pool): issue #126, lexical.pm now uses matching pool or undefined pool for tapes 2019-11-07 Debian Packagers * perl/Amanda/Chunker/Controller.pm: rounding bug for very small backups 2019-11-07 Orion Poplawski * perl/Amanda/Report/human.pm: Emit a note on small estimates 2019-11-07 Diego Zuccato , Stefan G. Weichinger * application-src/amsamba.pl: accept "Unable to initialize messaging context" errs 2019-11-07 Debian Packagers * perl/Amanda/Amflush.pm: Issue #86: prevent AMINF from infinite loop causing 2019-11-05 Debian Packagers * common-src/protocol.c: double-call reduces latency/missed alarms 2019-11-05 Will Aoki * perl/Amanda/Changer/robot.pm: add Carp module use line 2019-05-07 Chris Hassell * config/*: use automake --add-missing to copy files each build ( compile config.guess config.sub depcomp install-sh missing mkinstalldirs test-driver ylwrap ) * device-src/Makefile.am, ndmp-src/Makefile.am, perl/Makefile.am, config/amanda/amanda_configure.m4: use search for stdint.h and libtirpc * config/amanda/progs.m4: update quotes to make it work * packaging/deb/amanda-backup-client.*: remove extra path-patterns * packaging/deb/compat: allow level 5 and below compatibility * packaging/deb/rules: build manpages by default * packaging/rpm/amanda.spec.src: build manpages by default 2019-04-26 Badal Dave * perl/Amanda/Taper/Scribe.pm: Adding tape barcode info to logs 2019-01-18 Hiten Shah * application-src/amgtar.c: Filter GNU tar arguments * application-src/amstar.c: Filter star arguments * client-src/rundump.c: Filter dump and xfsdump arguments 2018-02-27 Jean-Louis Martineau * common-src/amflock-test.c (int_counter): Fix call to file_lock_write * common-src/amutil.c (unquote_string): Fix * common-src/fileheader-test.c, common-src/ipc-binary-test.c, common-src/match-test.c: Fix memory leak 2018-02-26 Jean-Louis Martineau * common-src/local-security.c: Do not call initgroups since we are no longer suid root 2018-02-23 Jean-Louis Martineau * server-src/driver.c: s/g_free/amfree/ for sp->try_again_message 2018-02-19 Jean-Louis Martineau * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c, client-src/sendbackup.c: Fix fd managment 2018-02-12 Jean-Louis Martineau * perl/Amanda/Cmdfile.swg (get_nb_image_cmd_for_storage): Return the result 2018-02-12 Jean-Louis Martineau * perl/Amanda/Changer/disk.pm: Make slot dit with permission 0700 2018-02-12 Jean-Louis Martineau * common-src/protocol.c (protocol_sendreq): Cache the result of get_platform_and_distro, calling it for each request take too much time 2018-02-05 Jean-Louis Martineau * application-src/ampgsql.pl: Call _get_pg_version after setting $self->{'props'}->{'psql-path'} 2018-01-31 Jean-Louis Martineau * perl/Amanda/Vault.pm: Run the driver if run_delayed is set * server-src/amvault.pl: New --run-delayed argument * man/xml-source/amvault.8.xml: Document it * NEWS, ReleaseNotes: Add it 2018-01-31 Jean-Louis Martineau * perl/Amanda/Vault.pm: Add vault command to the commands file if delayed is set * server-src/amvault.pl: New --delayed argument * man/xml-source/amvault.8.xml: Document it * NEWS, ReleaseNotes: Add it 2018-01-31 Jean-Louis Martineau * perl/Amanda/Vault.pm: Verify the dump is not already in the dest storage if uniq is set * server-src/amvault.pl: New --uniq, --no-uniq argument * man/xml-source/amvault.8.xml: Document it * NEWS, ReleaseNotes: Add it 2018-01-30 Jean-Louis Martineau * application-src/ampgsql.pl: exclude pg_wal/* 2018-01-29 Jean-Louis Martineau * server-src/find.c (dump_storage_hash_exist): g_free(key) 2018-01-29 Jean-Louis Martineau * server-src/driver.c server-src/planner.c: Don't do some check if --no-dump or no storage defined 2018-01-29 Jean-Louis Martineau * man/xml-source/amanda-changers.7.xml: Document the diskflat changer * man/xml-source/amanda-devices.7.xml: The diskflat device must use the diskflat changer 2018-01-26 Jean-Louis Martineau * server-src/driver.c: Do not add a COPY command if the dump is already on the storage * server-src/driverio.c (startup_vault_tape_process): Use same taper as storage 2018-01-26 Jean-Louis Martineau * server-src/cmdfile.c (cmdfile_get_nb_image_cmd_for_storage): New function * server-src/cmdfile.h (cmdfile_get_nb_image_cmd_for_storage): Add prototype * server-src/find.c (make_dump_storage_hash, add_dump_storage_hash, dump_storage_hash_exist): New functions to keep track of all available dump * server-src/find.h (make_dump_storage_hash, add_dump_storage_hash, dump_storage_hash_exist): Add prototypes 2018-01-24 Jean-Louis Martineau * server-src/driver.c: Send CLOSE-VOLUME command only if the volume is opened 2018-01-24 Jean-Louis Martineau * server-src/driver.c: fix queue handling 2018-01-23 Jean-Louis Martineau * application-src/ampgsql.pl: s/xlog/wal/ in function name for version 10 and newer 2018-01-22 Jean-Louis Martineau * installcheck/success-dumper-taper-vault.pl: Merge error 2018-01-22 Jean-Louis Martineau * server-src/driver.c (server-src/driver.c): Remove function 2018-01-22 Jean-Louis Martineau * server-src/driver.c (tape_action): Improvement 2018-01-22 Jean-Louis Martineau * server-src/driver.c (idle_taper): Check wtaper->vaultqs.vaultq.head 2018-01-22 Jean-Louis Martineau * server-src/driver.c: Set sent_first_write and last_started_wtaper 2018-01-22 Jean-Louis Martineau * server-src/driver.c: Improve new_tape 2018-01-22 Jean-Louis Martineau * server-src/driver.c: Set TAPER_STATE_TAPE_STARTED on NEW-TAPE 2018-01-22 Jean-Louis Martineau * server-src/driver.c: Send dump to first storage 2018-01-22 Jean-Louis Martineau * perl/Amanda/Status.pm: Add vaulting information * server-src/amstatus.pl: Print vaulting information * installcheck/success-dumper-taper.pl: Fix for vaulting information 2018-01-22 Jean-Louis Martineau * server-src/driver.c: Keep track of all label in use 2018-01-22 Jean-Louis Martineau * server-src/driver.c: Set wtaper->current_source_label 2018-01-22 Jean-Louis Martineau * server-src/driver.c: Set wtaper->current_dest_label 2018-01-19 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: Set input_errors on Recovery error 2018-01-19 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm (_dbg): Improve debugging 2018-01-19 Jean-Louis Martineau * perl/Amanda/Taper/Controller.pm: Quit the Clerk on START_TAPER, Add debugging 2018-01-19 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm (_scan_): Set scanning to 0 on error 2018-01-19 Jean-Louis Martineau * perl/Amanda/Changer.pm, perl/Amanda/Changer/diskflat.pm: Try to get the lock more often, otherwise we might never get it if another thread lock it often 2018-01-19 Jean-Louis Martineau * common-src/match.c (match_labelstr_template, match_labelstr): Checklabel is not NULL 2018-01-11 Jean-Louis Martineau * man/xml-source/amanda.conf.5.xml: Add rest-api-port 2018-01-10 Jean-Louis Martineau * server-src/amstatus.pl: Typo 2018-01-10 Jean-Louis Martineau * server-src/amstatus.pl: Add a --[no]taped argument * man/xml-source/amstatus.8.xml: Document it * NEWS, ReleaseNotes: Add it 2018-01-08 Jean-Louis Martineau * server-src/driver.c (tape_action): fix for max_dle_by_volume 2018-01-08 Jean-Louis Martineau * client-src/ambackup.pl: Fix usage message 2018-01-05 Jean-Louis Martineau * perl/Amanda/Status.pm, server-src/amstatus.pl: Fix when taper crash 2018-01-05 Jean-Louis Martineau * server-src/driver.c (tape_action): fix for max_dle_by_volume 2018-01-03 Jean-Louis Martineau * perl/Amanda/Rest/Runs.pm: Undo, bsd_glob is not exported on older perl 2018-01-03 Jean-Louis Martineau * common-src/bsdtcp-security.c, common-src/conffile.c, common-src/ssl-security.c, oldrecover-src/extract_list.c, server-src/dumper.c: Fix warning in newer gcc * perl/Amanda/Rest/Runs.pm,: Fix warning in newer perl * installcheck/Installcheck.pm: Use File::Glob::bsd_glob 2017-12-20 Jean-Louis Martineau * common-src/conffile.c: Parse subsection name with or without double quote * installcheck/Amanda_Config.pl: Test it * installcheck/Installcheck/Config.pm: set interactivity after they are defined 2017-12-18 Jean-Louis Martineau * perl/Amanda/Process.pm (process_alive): Can be called a class method * perl/Amanda/Util.swg (is_pid_alive): New pname argument, call Amanda::Process::process_alive if pname is set * perl/Amanda/Status.pm: Call is_pid_alive with 'driver' as the pname 2017-12-18 Jean-Louis Martineau * perl/Amanda/Status.pm: Use Amanda::Util::is_pid_alive 2017-12-18 Jean-Louis Martineau * perl/Amanda/Util.swg (is_pid_alive): Use kill instead of Amanda::Process 2017-12-13 Jean-Louis Martineau * common-src/amfeatures.c: Add fe_sendbackup_statedone * common-src/amfeatures.h: Add fe_sendbackup_statedone * amandad-src/amandad.c, client-src/sendbackup.c, server-src/dumper.c: Fix for directtcp data_path 2017-12-13 Jean-Louis Martineau * common-src/conffile.c: Accept define with double quote 2017-12-13 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Fix perl warning on taper failure 2017-12-13 Jean-Louis Martineau * perl/Amanda/Label.pm: Fix error message * installcheck/amlabel.pl: Fix 2017-12-12 Jean-Louis Martineau * perl/Amanda/Status.pm: Also use 'driver: pid' line to detect running version * server-src/amstatus.pl: Fix perl warning * installcheck/Installcheck/Catalogs.pm: Fix 2017-12-04 Jean-Louis Martineau * common-src/ammessage.c (get_errno_string, get_errno_number): New functions toreturn errno string and number * common-src/ammessage.h: Add prototypes * common-src/ambind.c: Print the errno_string in error message * common-src/amutil.c: Parse errno string is ambind error message and set errno 2017-12-04 Jean-Louis Martineau * installcheck/Amanda_Archive.pl: Fix parameter order 2017-12-01 Jean-Louis Martineau * perl/Amanda/Archive.swg (read_finish_file_cb): Fix parameter order 2017-11-29 Jean-Louis Martineau * application-src/ampgsql.pl: Accept --target asa synonyme for --directory 2017-11-28 Jean-Louis Martineau * NEWS, ReleaseNotes: 3.5.1 * VERSION: 3.5.1 2017-11-28 Jean-Louis Martineau * common-src/protocol.c: Use correct macro to find if we have getservbyname_r 2017-11-27 Jean-Louis Martineau Patch by Nathan Stratton Treadway * man/xml-source/amanda-changers.7.xml, man/xml-source/amfetchdump.8.xml: Fix typo 2017-11-27 Jean-Louis Martineau Patch by Nathan Stratton Treadway * man/xml-source/amanda.conf.5.xml: Improve documentation 2017-11-23 Jean-Louis Martineau * server-src/planner.c: Do not log L_DISK if no_dump 2017-11-22 Jean-Louis Martineau * common-src/file.c: Remove duplicate code * server-src/holding.c: Do not stat before fopen * server-src/xfer-dest-holding.c: Do not call mkholdingdir, the directory should alredy exists 2017-11-22 Jean-Louis Martineau * server-src/planner.c: Fix compilation 2017-11-22 Jean-Louis Martineau * perl/Amanda/Amflush.pm, server-src/driver.c: rename .tmp holding files * server-src/planner.c: Use DUMP_LEVELS 2017-11-22 Jean-Louis Martineau * server-src/holding.c: Fix to take pid lock * server-src/holding.c (holding_get_files): Add a take_pid_lock argument * server-src/cmdline.c, server-src/find.c: Add 0 take_pid_lock argument to holding_get_files * server-src/holding.h (holding_get_files): Change prototype * installcheck/Amanda_Holding.pl, installcheck/amrestore.pl: Call Amanda::Holding::files and Amanda::Holding::get_files_for_flush with a 0 take_pid_lock * perl/Amanda/Amflush.pm: Call Amanda::Holding::get_files_for_flush with a 1 take_pid_lock * perl/Amanda/Holding.pm: Fix to take pid lock * perl/Amanda/Report/human.pm, perl/Amanda/Report/json.pm: Call Amanda::Holding::get_files_for_flush with a 0 take_pid_lock * perl/Amanda/Rest/Runs.pm: Log pid-done 2017-11-20 Jean-Louis Martineau * perl/Amanda/Holding.pm: Lock the holding disk dir * server-src/holding.c: Lock the holding disk dir 2017-11-20 Jean-Louis Martineau * perl/Amanda/Amflush.pm: Use new --no-dump argument of driver * server-src/driver.c: Merge nodump and --no-dump argument 2017-11-20 Jean-Louis Martineau * server-src/amstatus.pl: Fix when no storage 2017-11-17 Jean-Louis Martineau * server-src/amdump.pl: Fix usage message 2017-11-17 Jean-Louis Martineau * installcheck/success-dumper-taper-vault.pl:Increase diskname length to 130 character 2017-11-17 Jean-Louis Martineau * perl/Amanda/Report.pm: Add all disks to the disklist hash, Add only disk that must be dumped to the dump_disk hash * perl/Amanda/Report/human.pm: Do not report 'MISSING RESULT' If the disk is not in the dump_disk hash * installcheck/Amanda_Report.pl: Setup a valid config 2017-11-17 Jean-Louis Martineau * server-src/amdump.pl, server-src/driver.c server-src/planner.c: Add --no-dump, --no-flush and --no-vault argument * perl/Amanda/Amdump.pm: Add no_dump, no_flush and no_vault parameters * man/xml-source/amdump.8.xml: Document new arguments 2017-11-16 Jean-Louis Martineau Patch by Nathan Stratton Treadway * perl/Amanda/CheckDump.pm: Fix report of image validated 2017-11-16 Jean-Louis Martineau * common-src/file.c (untaint_fgets): Fix 2017-11-16 Jean-Louis Martineau * installcheck/Amanda_Recovery_Clerk.pl, installcheck/Amanda_Taper_Scribe.pl, perl/Amanda/CheckDump.pm, perl/Amanda/Chunker/Controller.pm, perl/Amanda/Chunker/Scribe.pm, perl/Amanda/FetchDump.pm, perl/Amanda/Recovery/Clerk.pm, perl/Amanda/Rest/Runs.pm, perl/Amanda/Service/Amidxtaped.pm, perl/Amanda/Service/Restore.pm, perl/Amanda/Taper/Scribe.pm, perl/Amanda/Taper/Worker.pm, perl/Amanda/Vault.pm, server-src/amreindex.pl: s/use base/use parent -norequire,/ for *::Feedback class * perl/Amanda/Config/FoldingHash.pm: use 'use parent -norequire' for Tie::StdHash 2017-11-15 Jean-Louis Martineau * common-src/amgetconf.pl: print an empty string if a parameter is not set instead of 'no such parameter' 2017-11-15 Jean-Louis Martineau * common-src/conffile.c: Allow to unset some setting 2017-11-15 Jean-Louis Martineau Patch by Nathan Stratton Treadway * common-src/match.c (match_datastamp) Allow "*" wildcard 2017-11-15 Jean-Louis Martineau * server-src/dumper.c (process_dumpline): debug once error to write to the state file 2017-11-14 Jean-Louis Martineau * common-src/conffile.c: Do not allow double quote in section name or label 2017-11-13 Jean-Louis Martineau * perl/Amanda/Config.swg (subsection_names):Add missing entry * common-src/amgetconf.pl: Sort the list output 2017-11-10 Jean-Louis Martineau * installcheck/success-dumper-taper-vault.pl: Fix for any diskname 2017-11-10 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix setting dlet * installcheck/success-dumper-taper-vault.pl: Fix 2017-11-10 Jean-Louis Martineau * installcheck/catalogs/vault1.cat, installcheck/catalogs/vault2.cat, installcheck/catalogs/vault3.cat: Fix for previous patch 2017-11-10 Jean-Louis Martineau * perl/Amanda/DB/Catalog.pm: s/exists/defined/g * perl/Amanda/Recovery/Planner.pm: Pass separate args to get_dumps instead of a dumpspecs (becasue it match instead of equal) * perl/Amanda/Report.pm: storage_list must include vault-storage * perl/Amanda/Status.pm: Fix * perl/Amanda/Taper/Worker.pm: Pass separate args to make_plan instead of a dumpspecs (becasue it match instead of equal) * installcheck/success-dumper-taper-vault.pl: New check * installcheck/Makefile.am: Add success-dumper-taper-vault.pl 2017-11-10 Jean-Louis Martineau * common-src/conffile.c: Do not cwgenerate error when appying override until the complete configuration is read * common-src/conffile.h: Define CONFIG_OVERRDIDE_NO_ERROR * perl/Amanda/Config.swg: Define CONFIG_OVERRDIDE_NO_ERROR * installcheck/amgetconf.pl: Test it 2017-11-09 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Use good try * server-src/tapefile.c: Call find_dump with added_todo=1 * installcheck/Makefile.am (catalogs): Add catalogs/vault3.cat * installcheck/amreport.pl: Check successful flush/vault * installcheck/catalogs/vault3.cat: New catalog 2017-11-09 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: Fix for one of the previous patch * installcheck/Makefile.am (catalogs): Add catalogs/vault2.cat * installcheck/amreport.pl: Check successful vault * installcheck/catalogs/vault2.cat: New catalog 2017-11-09 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Fix tape_rape for VAULT * installcheck/catalogs/vault1.cat: Fxi test 2017-11-09 Jean-Louis Martineau * perl/Amanda/Report.pm: Fix perl warning 2017-11-08 Jean-Louis Martineau * perl/Amanda/Report.pm: Improvement for vault * perl/Amanda/Report/human.pm: Improvement for vault * perl/Amanda/Taper/Worker.pm: Add VAULT keyword to FAILED line * server-src/driver.c: Do not log on error * server-src/find.c: Parse VAULT keyword * installcheck/Makefile.am (catalogs): Add catalogs/vault1.cat * installcheck/amreport.pl: Check failed amvault report * installcheck/catalogs/vault1.cat: New catalog 2017-11-08 Jean-Louis Martineau * perl/Amanda/Recovery/Planner.pm: Undo previous patch * perl/Amanda/Taper/Worker.pm: Return errorif plan is empty 2017-11-08 Jean-Louis Martineau * perl/Amanda/Recovery/Planner.pm (make_plan): Return an error if the dump is not found * perl/Amanda/Taper/Worker.pm: Fail if error is set * perl/Amanda/Status.pm: Fix for vaulting error 2017-11-08 Jean-Louis Martineau * perl/Amanda/Report.pm: Set storage and pool * perl/Amanda/Report/human.pm: Print timestamp and vault storage * installcheck/catalogs/tapers.cat: Fix check 2017-11-08 Jean-Louis Martineau * config/amanda/progs.m4: AC_DEFINE_UNQUOTED(LPR) * common-src/genversion.c: s/LPRCMD/LPR/, use DEFAULT_MAILER 2017-11-06 Jean-Louis Martineau * common-src/security-util.c (sec_tcp_conn_get): Do not reuse a connection if it is in error 2017-11-01 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Report taper problem event if no dumper * installcheck/catalogs/tapers.cat, installcheck/failure-xfer-dest-holding-file-first-close_chunk.pl, installcheck/failure-xfer-dest-holding-file-second-close_chunk.pl, installcheck/failure-xfer-dest-holding-shm-first-close_chunk.pl, installcheck/failure-xfer-dest-holding-shm-second-close_chunk.pl: Fix for error message showing in report 2017-10-30 Jean-Louis Martineau * common-src/conffile.c: Check ORG do not have space if it is use in autolabel or meta-autolabel 2017-10-30 Jean-Louis Martineau * client-src/sendbackup-dump.c: Fix if shared memory is not used 2017-10-30 Jean-Louis Martineau * common-src/shm-ring.c (shm_ring_create): Take a new errmsg argument, return NULL on failure * common-src/shm-ring.h (shm_ring_create): Change prototype * amandad-src/amandad.c: handle shm_ring_create return NULL; * device-src/xfer-dest-taper-splitter.c, server-src/dumper.c, server-src/xfer-dest-holding.c, xfer-src/element-glue.c: Pass a NULL errmsg to shm_ring_create 2017-10-26 Jean-Louis Martineau * common-src/conffile.c (read_storage_identlist): Prefer ident to keyword 2017-10-23 Jean-Louis Martineau * application-src/ampgsql.pl: Fix parsing of psql version for version 10.0 2017-10-17 Jean-Louis Martineau * common-src/ammessage.c (2800235): Print the required permission * server-src/amcheck.c: Do not check all 'r' bit on suid binary 2017-10-12 Jean-Louis Martineau * installcheck/failure-dumper-try-again.pl: Don't do the check if FAILURE_CODE is not set 2017-10-12 Jean-Louis Martineau * common-src/security-util.c: Do not waitpid() if we have a watch-source for it 2017-10-09 Jean-Louis Martineau * server-src/driver.c (handle_dumper_result): Send the TRYAGAIN mesage to chunker or taper * file server-src/driverio.h (sched_t): Add try_again_message * server-src/dumper.c: Log L_FAIL on TRY-AGAIN * installcheck/failure-dumper-try-again.pl: New Check * installcheck/Makefile.am (full_tests): Add failure-dumper-try-again 2017-10-02 Jean-Louis Martineau * server-src/amcheck.c: Fix compilation on Solaris 2017-10-02 Jean-Louis Martineau * man/xml-source/amanda-security.conf.5.xml 2017-10-02 Jean-Louis Martineau * common-src/security-file.c: Print better error message 2017-10-02 Jean-Louis Martineau * common-src/amservice.c, server-src/amcheck.c, server-src/dumper.c, server-src/planner.c: Correctly check they are not suid 2017-09-27 Jean-Louis Martineau * perl/make_html.pl: Fix 2017-09-27 Jean-Louis Martineau * NEWS, ReleaseNotes: 3.5 2017-09-27 Jean-Louis Martineau * amplot/amplot.awk: Major fix 2017-09-27 Jean-Louis Martineau Patch by Nathan Stratton Treadway * man/xml-source/amvault.8.xml: Improve page 2017-09-26 Jean-Louis Martineau * perl/Amanda/Report.pm: Parse server-src on SUCCESS dumper line * server-src/ambackupd.pl: Do not print the server-src on SUCCESS dumper line 2017-09-25 Jean-Louis Martineau * perl/Amanda/Vault.pm: Quit the taperscan only if it is defined 2017-09-22 Jean-Louis Martineau * perl/Amanda/Vault.pm: Fix for tty output, improve usage output * server-src/amvault.pl: Fix for message 2500008, quiet, and always quit the taperscan * man/xml-source/amvault.8.xml: Improve man page 2017-09-20 Jean-Louis Martineau * common-src/file.c (untaint_fgets): New function * common-src/file.h (untaint_fgets): Add prototype * server-src/logfile.c, server-src/server_util.c: Use untaint_fgets 2017-09-20 Jean-Louis Martineau * xfer-src/element-glue.c: Fix deadlock * server-src/xfer-source-holding.c: Fix deadlock 2017-09-19 Jean-Louis Martineau * common-src/conffile.c (conftoken_getc): Untaint the returned value * server-src/xfer-dest-holding.c: Check result of shm_ring_sem_wait 2017-09-19 Jean-Louis Martineau * common-src/amutil.c (ambind): Close fds before forking ambind * client-src/client_util.c, client-src/selfcheck.c, client-src/senddiscover.c, common-src/ammessage.c, common-src/amxml.c, common-src/security-util.c, server-src/amcheck.c, server-src/driver.c, server-src/server_util.c, server-src/xfer-dest-holding.c: Fix small memory leak * ndmp-src/ndml_conn.c: Comment a memory leak 2017-09-18 Jean-Louis Martineau * common-src/amutil.c (parse_crc): Set to 0 on error * perl/Amanda/Restore.pm: Modify a copy of the header 2017-09-18 Jean-Louis Martineau * application-src/amsuntar.pl: Typo 2017-09-15 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: Call release with need_another flag. * perl/Amanda/Changer/single.pm (do_release): eject the tevice if need_another 2017-09-15 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm (after_poll): Set $remove_undef_state if $self->{'chg'}->{'scan-require-update'} 2017-09-12 Jean-Louis Martineau * server-src/dumper.c:i Do not cancel the shm_ring if the dump-result is 1 (STRANGE) 2017-09-11 Jean-Louis Martineau * client-src/sendsize.c: If application return '-2 -2' for the size, then report -2 to the server 2017-09-08 Jean-Louis Martineau Add timestmap in the req OPTION line Run script support command Add the --timestmap argument to scripts and applications * amandad-src/amandad.h (g_option_t): Add timestamp * amandad-src/amandad_util.c (parse_g_options): Parse timestamp in the OPTION line * application-src/amgtar.c, application-src/amlog-script.pl:Add timestamp * application-src/script-fail.sh: Add support command * client-src/client_util.c: Move backup_support_option to common-src/backup_support_option.c * client-src/client_util.h: Move backup_support_option to common-src/backup_support_option.h * client-src/sendbackup.c: Add --timestamp argument * client-src/sendsize.c: Add --timestamp argument * common-src/Makefile.am: Add backup_support_option.[hc] * common-src/amfeatures.c: Add fe_req_options_timestamp * common-src/amfeatures.h: Add fe_req_options_timestamp * common-src/backup_support_option.c: Add backup_support_option * common-src/backup_support_option.h: Add prototype * server-src/server_util.c (run_server_script, run_server_dle_scripts, run_server_host_scripts, run_server_global_scripts): Add timestamp argument. * server-src/server_util.h:Change prototype * server-src/amcheck.c, server-src/driver.c server-src/dumper.c server-src/planner.c: Add the timestamp argument in calls 2017-09-08 Jean-Louis Martineau Patch by Chapman Flack * application-src/ambsdtar.c, application-src/amgtar.c, client-src/client_util.c, client-src/client_util.h, client-src/selfcheck.c, client-src/sendbackup-gnutar.c, client-src/sendsize.c: Add dirname argument to many include/exclude functions 2017-09-08 Jean-Louis Martineau Rename script/applciaiton DIRECTORY property to TARGET Rename amfetchumpd --directory argument to --target * amandad-src/amandad.c: Add debugging statement * application-src/ambsdtar.c, application-src/amgtar.c, application-src/amrandom.pl, application-src/amraw.pl, application-src/amsamba.pl, application-src/amstar.c, application-src/amsuntar.pl, * application-src/amzfs-sendrecv.pl: Accept TARGET property * application-src/amzfs-snapshot.pl: Print TARGET property * perl/Amanda/Application/Zfs.pm: Use TARGET property * perl/Amanda/CheckDump.pm, perl/Amanda/Extract.pm, perl/Amanda/FetchDump.pm, perl/Amanda/FetchDump/Application.pm, perl/Amanda/FetchDump/ClientApplication.pm, perl/Amanda/Restore.pm, perl/Amanda/Service/Restore.pm: s/directory/target/ * server-src/amfetchdump.pl: --target argument * man/xml-source/amfetchdump.8.xml: Document --target argument 2017-09-06 Jean-Louis Martineau * perl/Amanda/Restore.pm:i Fix Parsing properties 2017-08-25 Jean-Louis Martineau * common-src/amutil.c: Add comment * common-src/local-security.c: Check result of setregid and setreuid 2017-08-25 Jean-Louis Martineau Patch by Chapman Flack * common-src/local-security.c: Check the hostname is local * man/xml-source/amanda-auth.7.xml: Document what a localhost is * COPYRIGHT.BSD: New copytight file * AUTHORS: Add Chapman Flack 2017-08-24 Jean-Louis Martineau * application-src/ampgsql.pl:Add --icremental, --remove-full-wal and --remove-incremental-wal properties * man/xml-source/ampgsql.8.xml: Document new properties 2017-08-22 Jean-Louis Martineau * perl/Amanda/Status.pm: Check only VERSION_MAJOR and VESION_MINOR for error code 1800002 2017-08-22 Jean-Louis Martineau * config/amanda/version.m4: Correctly set VERSION_COMMENT * perl/Amanda/Constants.pm.in.src: Set VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH and VERSION_COMMENT 2017-08-22 Jean-Louis Martineau * application-src/ampgsql.pl: Add exclude-list and exclude-file to backup operation 2017-08-22 Jean-Louis Martineau * application-src/ampgsql.pl: exclude postmaster.pid, postmaster.opts and pg_replslot/* 2017-08-21 Jean-Louis Martineau * perl/Amanda/Status.pm: s/vaulting/writing/ 2017-08-21 Jean-Louis Martineau * perl/Amanda/Chunker/Controller.pm (msg_ABORT): Set mesg from param 2017-08-21 Jean-Louis Martineau * perl/Amanda/Status.pm: Add error 36, 37 and 38 2017-08-16 Jean-Louis Martineau * server-src/amflush.pl: Use the date specified by the user 2017-08-16 Jean-Louis Martineau * amar-src/amar.c: Fix race with stop/start_read when record are already read 2017-08-08 Jean-Louis Martineau * common-src/amutil.c, common-src/security-util.c: Fix getservbyport_r with 4 arguments 2017-08-04 Jean-Louis Martineau * common-src/amutil.c: Call correct variant of getservbyport_r * common-src/krb5-security.c: Call correct variant of getservbyname_r * common-src/security-util.c: Call correct variant of getservbyname_r * common-src/ambind.c: include netinet/in.h * config/amanda/syshacks.m4: Do not set GETSERVBYNAME_R5 and GETSERVBYPORT_R5 * config/amanda/amanda_configure.m4: use ax_func_which_getservbyname_r * config/macro-archive/ax_func_which_getservbyname_r.m4: New macro to detect getservbyname_r variant 2017-08-03 Jean-Louis Martineau * device-src/s3.c: Fix compilation 2017-08-03 Jean-Louis Martineau * device-src/s3.c: Print html error even on curl error 2017-08-03 Jean-Louis Martineau * device-src/s3-device.c: Check for S3_ERROR_NotFound 2017-07-31 Jean-Louis Martineau * common-src/amssl.pl: Chomp openssl result 2017-07-28 Jean-Louis Martineau * server-src/driver.c: Fix test 2017-07-19 Jean-Louis Martineau * perl/Amanda/Amdump.pm: Read stdout of suprocess and log them as L_INFO * server-src/amreport.pl: When in script mode, print error to stdout * installcheck/amreport.pl: Fix test 2017-07-19 Jean-Louis Martineau * device-src/s3-device.c: Use S3_name * device-src/s3.c (S3_name, S3_bucket_name): Define * device-src/s3.h (S3_name, S3_bucket_name): Add prototype 2017-07-17 Jean-Louis Martineau * perl/Amanda/Config/FoldingHash.pm: Fix use of Tie::StdHash 2017-07-17 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix aborted, set storage stats to TERMINATED_* 2017-06-16 Jean-Louis Martineau * installcheck/success-dumper-chunker+2taper-flush.pl, * installcheck/success-dumper-chunker+dumper-chunker-taper-flush.pl, * installcheck/success-dumper-chunker+taper-flush.pl: Set reserve = 0 2017-06-15 Jean-Louis Martineau * perl/Amanda/Status.pm: Set 'aborted'. Always set TERMINATED* on dead_run * installcheck/Amanda_Rest_Runs.pl: Fix 2017-06-15 Jean-Louis Martineau * server-src/driver.c (start_degraded_mode): Go in degraded mode if there is no storage 2017-06-14 Jean-Louis Martineau * server-src/driver.c: dp_degraded_modemust be TRUE if nb_storage == 0 2017-06-14 Jean-Louis Martineau * installcheck/Installcheck/Rest.pm: We need WWW::Curl::Easy version 4.14 or newer 2017-06-13 Jean-Louis Martineau * device-src/s3.c: Fix for x-amz-server-side-encryption 2017-06-13 Jean-Louis Martineau * installcheck/ambsdtar.pl, installcheck/amgtar.pl. installcheck/amstar.pl: Fix for !SINGLE_USERID 2017-06-09 Jean-Louis Martineau * device-src/s3-device.h (_S3Device): last_byte_read, next_block_to_read, next_byte_to_read must be gint64 2017-06-08 Jean-Louis Martineau * common-src/ammessage.c (3600096): Print the security_file * common-src/security-file.c (security_file_check_path): Add the security_file to the message * installcheck/ambsdtar.pl, installcheck/amgtar.pl, installcheck/amstar.pl: Test it 2017-06-07 Jean-Louis Martineau * server-src/planner.c: Fix planner looping 2017-06-06 Jean-Louis Martineau * NEWS, ReleaseNotes: 3.4.5 2017-06-06 Jean-Louis Martineau * config/amanda/amanda_configure.m4: Call AMANDA_CHECK_LIBDL * config/amanda/libs.m4 (AMANDA_CHECK_LIBDL): Check if libdl exists * device-src/Makefile.am: Use $LIBDL} 2017-06-06 Jean-Louis Martineau * common-src/conffile.c (read_block): Reset current_line_num after processing config_overrides 2017-06-05 Jean-Louis Martineau * recover-src/extract_list.c: Fix memory leak 2017-06-05 Jean-Louis Martineau * device-src/xfer-dest-taper-splitter.c: Fix taper hang 2017-05-19 Jean-Louis Martineau * perl/Amanda/Vault.pm: Set $size to -1 if it is 0. 0 means nothing, -1, means everything 2017-05-18 Jean-Louis Martineau * device-src/s3-device.c:use_s3_multi_delete default to 1 for SWIFT-3 * device-src/s3.c (s3_multi_delete): Handle S3_API_SWIFT_3 2017-05-16 Jean-Louis Martineau * perl/Amanda/Chunker/Controller.pm: Send SHM_NAME or PORT only if we have a header_port * perl/Amanda/Report.pm: Chunker without dumper is a failure * perl/Amanda/Report/human.pm: Chunker without dumper is a FAILED * server-src/driver.c: Call dumper_chunker_result if chunker failand dumper not yet started * server-src/driverio.h (struct dumper_s): Add sent_command * xfer-src/element-glue.c (do_directtcp_listen): Correctly print error from resolve_hostname() 2017-05-15 Jean-Louis Martineau * common-src/amjson.c (amjson_s, parse_json_primitive, json_parse_string): Move declaration to amjson.h * common-src/amjson.h: Add declaration * common-src/ammessage.c: Use amjson type and functions 2017-05-12 Jean-Louis Martineau * client-src/senddiscover.c: s/read/read/fully/ 2017-05-09 Jean-Louis Martineau * device-src/s3.c: Parse HTML error from SWIFT_3 * device-src/s3.h: Add NotFound error 2017-05-08 Jean-Louis Martineau * common-src/amjson.c, common-src/security-util.c, recover-src/extract_list.c: Fix bug found by coverity 2017-05-08 Jean-Louis Martineau * server-src/driver.c (tape_action): Use a new tape if it lost less tape space * installcheck/tape_action.pl: Add tests 2017-05-08 Jean-Louis Martineau * server-src/driver.c (wait_children): Use smaller sleep time 2017-05-05 Jean-Louis Martineau * client-src/runtar.c: Accept --verbose argument 2017-05-04 Jean-Louis Martineau * ReleaseNotes, NEWS: Typo 2017-05-04 Jean-Louis Martineau * common-src/security-util.c: Fix for compiler warning 2017-05-03 Jean-Louis Martineau * NEWS, ReleaseNotes: 3.4.4 2017-05-02 Jean-Louis Martineau * common-src/match.c (make_template): Fix * installcheck/Amanda_Util.pl: Check fix 2017-04-26 Jean-Louis Martineau * common-src/amservice.c (handle_result): Call security_close_connection * common-src/security-util.c (sec_tcp_conn_put): Kill the subprocess * common-src/security-util.h (sec_tcp_conn_put): Remove prototype * server-src/amcheck.c (handle_result): Call security_close_connection 2017-04-25 Jean-Louis Martineau * device-src/s3.c: Get a new curl handle after a 503 error. To force closing the connection and opening a new one 2017-04-25 Jean-Louis Martineau * common-src/Makefile.am (INSTALLPERMS_exec): Add ambind, remove amservice * server-src/Makefile.am (INSTALLPERMS_exec): Remove amcheck, dumper and planner 2017-04-20 Jean-Louis Martineau * NEWS: S3 device: openstack keystone v3 support * device-src/s3-device.c: PROJECT-NAME and DOMAIN-NAME device properties * device-src/s3-device.h (struct _S3Device): Add project_name and domain_name fields * device-src/s3.c: Get token from keystone v3 * device-src/s3.h (s3_open): Change prototype. * man/xml-source/amanda-devices.7.xml: Document new device properties 2017-04-20 Jean-Louis Martineau * common-src/amjson.c: Remove debugging statement 2017-04-14 Jean-Louis Martineau * common-src/amjson.c: New generic json parser * common-src/amjson.h: Add json parser prototypes * common-src/Makefile.am (libamanda_la_SOURCES): Add amjson.c * common-src/Makefile.am (noinst_HEADERS): Add amjson.h * device-src/s3.c (get_openstack_swift_api_v2_setting):Send json requestand parse json result 2017-04-06 Jean-Louis Martineau Patch by Nathan Stratton Treadway * perl/Amanda/Interactivity/email.pm: Improve Interactivity 2017-04-06 Jean-Louis Martineau Patch by Nathan Stratton Treadway * perl/Amanda/Interactivity/tty_email.pm: Fix NAME description 2017-04-06 Jean-Louis Martineau Patch by Nathan Stratton Treadway * man/xml-source/amadmin.8.xml: Add config command * man/xml-source/amanda.conf.5.xml (seealso): Add ref to amadmin * man/xml-source/amgetconf.8.xml (seealso): Add ref to amadmin 2017-03-31 Jean-Louis Martineau * device-src/ndmp-device.c (write_from_connection_impl, read_to_connection_impl): Do not overflow length 2017-03-16 Jean-Louis Martineau * perl/Amanda/Label.pm: Check if label match labelstr * installcheck/amlabel.pl: Fix 2017-03-16 Jean-Louis Martineau * perl/Amanda/Tapelist.swg: Fix not adding label to tapleist file when creating it 2017-03-16 Jean-Louis Martineau * common-src/file.c: Fix crash if read return -1 2017-03-16 Jean-Louis Martineau * VERSION: 3.5 2017-03-15 Jean-Louis Martineau * installcheck/amgetconf.pl: Fix for visible/hidden * perl/Amanda/Service/Amidxtaped.pm: Wait to load the config before doing some setting * server-src/logfile.c: Abort on ENOENT error 2017-03-15 Jean-Louis Martineau * perl/Amanda/Curinfo/Info.pm: Fix writting the stats line 2017-03-15 Jean-Louis Martineau * common-src/conffile.c: Correctly initialize the visible property field * installcheck/Amanda_Config.pl: Check visible field 2017-03-14 Jean-Louis Martineau * common-src/conffile.c: Parse hidden|visible on dumptype property * common-src/conffile.h (property_t) : Add visible field * man/xml-source/amanda.conf.5.xml: Document the new hidden|visible keyword * perl/Amanda/Config.swg: Add the visible field * perl/amglue/ghashtable.c: Add the visible field * server-src/diskfile.c: Do not add hidden dumptype property to the xml string 2017-03-14 Jean-Louis Martineau * server-src/ambackupd.pl: Do incremental backup 2017-03-14 Jean-Louis Martineau * perl/Amanda/Cleanup.pm: Improvement 2017-03-10 Jean-Louis Martineau * recover-src/extract_list.c: Check result of fcntl 2017-03-10 Jean-Louis Martineau * common-src/bsd-security.c: Add bsd_stream_pause and bsd_stream_resume * common-src/bsdtcp-security.c, common-src/bsdudp-security.c, common-src/krb5-security.c, common-src/local-security.c, common-src/rsh-security.c, common-src/ssh-security.c, common-src/ssl-security.c: Add tcpm_stream_pause and tcpm_stream_resume to declaration * common-src/security-util.c (tcpm_stream_pause, tcpm_stream_resume): Add function * common-src/security-util.h (tcpm_stream_pause, tcpm_stream_resume): Add prototype * common-src/security.h (security_stream_pause, security_stream_resume): Add macro * recover-src/extract_list.c (read_amidxtaped_data): Call security_stream_pause if can't write to the pipe, add a EV_WRITEFD to call write_data_to_app * recover-src/extract_list.c (write_data_to_app): New function that write data to the pipe if allowed, call security_stream_resume when the block is completely written 2017-03-10 Jean-Louis Martineau * packaging/rpm/amanda.spec.src: Fix (add fi) 2017-03-10 Jean-Louis Martineau * packaging/rpm/amanda.spec.src:Add CentOs 6 and RedHat 7 2017-03-10 Jean-Louis Martineau * server-src/ambackupd.pl: Remove bogus check 2017-03-09 Jean-Louis Martineau * perl/Amanda/CheckDump.pm (local_message): Add message 2700008, 2700009, 2700010, 2700018, 2700019 and 2700020 * perl/Amanda/CheckDump.pm (new): Set message_filename and message_pathname * perl/Amanda/CheckDump.pm (run): Print message 2700006, 2700007, 2700008, 2700009 and 2700010 * perl/Amanda/FetchDump.pm (new): Set message_filename and message_pathname * perl/Amanda/Rest/Runs.pm (checkump): Use message_filename * perl/Amanda/Restore.pm: Count image_restored and image_failed * perl/Amanda/Service/Amidxtaped.pm (new): Set message_filename and message_pathname * server-src/amcheckdump.pl: Do not printmessage 2700006 and 2700007 2017-03-09 Jean-Louis Martineau * perl/Amanda/Chunker/Controller.pm (msg_PORT_WRITE): Call dump_db instead of cance_dump on failure * perl/Amanda/Chunker/Scribe.pm: Do not call dump_cb if it is not defined 2017-03-09 Jean-Louis Martineau * server-src/amdumpd.pl: Do not check if amanda is busy 2017-03-07 Jean-Louis Martineau * config/automake/scripts.am: Check libConfig.so instead of libCmdline.so because it is always compiled * installcheck/Amanda_Xfer.pl: Load a config if without server 2017-03-07 Jean-Louis Martineau * config/amanda/net.m4: Define LOW_TCPPORTRANGE_MIN, LOW_TCPPORTRANGE_MAX, TCPPORTRANGE_MIN, TCPPORTRANGE_MAX, UDPPORTRANGE_MIN and UDPPORTRANGE_MAX * common-src/security-file.c: Use configured portrange is not set in the security-file 2017-03-07 Jean-Louis Martineau * perl/Makefile.am, rest-server/Makefile.am, server-src/Makefile.am: fix 'make dist' when compiled with --wothout-server or --without-client 2017-03-07 Jean-Louis Martineau * installcheck/amstar.pl: Check first line of errors 2017-03-07 Jean-Louis Martineau * perl/Amanda/Service/Restore.pm: Remove unused code 2017-03-06 Jean-Louis Martineau * device-src/diskflat-device.c (diskflat_clear_and_prepare_label): result of ftruncate 2017-03-06 Jean-Louis Martineau * application-src/ambsdtar.c: Typo * application-src/amstar.c (amstar_restore, amstar_validate): filter stdout and stderr 2017-03-06 Jean-Louis Martineau * device-src/diskflat-device.c (diskflat_clear_and_prepare_label): ftruncate the file 2017-03-06 Jean-Louis Martineau * perl/Amanda/CheckDump.pm (run): Set all_copy=1 to restore() * perl/Amanda/Restore.pm (restore): Pass all_copy to make_plan() 2017-03-01 Jean-Louis Martineau * perl/Amanda/Recovery/Clerk.pm: Typo * perl/make_html.pl: Fix man pages 2017-03-01 Jean-Louis Martineau * NEWS, ReleaseNotes: 3.4.3 2017-02-28 Jean-Louis Martineau * perl/Amanda/Tapelist.swg (remove_tapelabel): Call C_remove_tapelabel * server-src/tapefile.c (add_tapelabel): Verify the label is not already in the tapelist * installcheck/Amanda_Tapelist.pl: Fix/add check 2017-02-27 Jean-Louis Martineau * server-src/tapefile.c (tape_overwrite, nb_tape_in_storage): Take storage as argument, Check NULL storage name and labelstr * server-src/tapefile.h (tape_overwrite, nb_tape_in_storage): New prototypes * server-src/planner.c (when_overwrite): Pass the storage argument to tape_overwrite and nb_tape_in_storage 2017-02-24 Jean-Louis Martineau * common-src/amutil.c, common-src/security-file.c, common-src/stream.c: Fix bug found by coverity 2017-02-24 Jean-Louis Martineau * device-src/ndmp-device.c (read_to_connection_impl):Correctlycompute the offset 2017-02-23 Jean-Louis Martineau * server-src/amcleanupdisk.pl: Fix renaming tmp holding file 2017-02-22 Jean-Louis Martineau Patch by Charles Curley * common-src/ammessage.c: Fix message * man/xml-source/amanda.8.xml: Fix documentation 2017-02-21 Jean-Louis Martineau * server-src/tapefile.c (nb_tape_in_storage): Fix for older glib2 2017-02-21 Jean-Louis Martineau * common-src/ambind.c: Print 'WARNING:' prefix if we should retry on a different port * common-src/amutil.c: Parse 'WARNING:' prefix * common-src/stream.c, common-src/dgram.c: Handle retry * common-src/security-file.c (security_allow_bind): Check the port have no name 2017-02-21 Jean-Louis Martineau * server-src/tapefile.c (nb_tape_in_storage): Use g_strcmp0 2017-02-20 Jean-Louis Martineau * server-src/amtape.pl: Add a drive argument to 'amtape slot' * perl/Amanda/Changer/robot.pm (load_unlocked): Use the drive argument * man/xml-source/amtape.8.xml: Document it * NEWS: Document it 2017-02-20 Jean-Louis Martineau * common-src/security-file.c: Parse tcp_port_range and udp_port_range * common-src/security-file.c (security_allow_bind): New function to verify if the port is in tcp_port_range and udp_port_range * common-src/security-file.h (security_allow_bind): Add prototype * common-src/make_security_file.c: Add tcp_port_range and udp_port_range in the default amanda-security.conf file * common-src/dgram.c (dgram_bind): Add bind_msg argument * common-src/dgram.h (dgram_bind): New prototype * common-src/stream.c (stream_client_addr, stream_client_privileged, stream_client): Add stream_msg argument * common-src/stream.h (stream_client_addr, stream_client_privileged, stream_client): New prototype * common-src/amutil.c (connect_portrange): Add stream_msg argument * common-src/amutil.c (bind_portrange): Add bind_msg argument * common-src/amutil.c (ambind): Parse stderr of ambind * common-src/amutil.h (connect_portrange): New prototype * common-src/amutil.h (bind_portrange): New prototype * common-src/ambind.c: Call security_allow_bind, print error on stderr * client-src/sendbackup.c, common-src/bsd-security.c, common-src/bsdtcp-security.c, common-src/bsdudp-security.c, common-src/krb5-security.c, common-src/security-util.c, common-src/ssl-security.c, oldrecover-src/amrecover.c, oldrecover-src/extract_list.c, server-src/dumper.c, xfer-src/element-glue.c: Use new API * man/xml-source/amanda-security.conf.5.xml: Document tcp_port_range and udp_port_range * NEWS: Document it 2017-02-17 Jean-Louis Martineau * common-src/local-security.c: Fix setregid call 2017-02-17 Jean-Louis Martineau * perl/Amanda/Changer/diskflat.pm: Add info_setup 2017-02-15 Jean-Louis Martineau * server-src/diskfile.c: Fix for older glib2 2017-02-14 Jean-Louis Martineau * device-src/s3-device.c (catalog_open): Typo 2017-02-14 Jean-Louis Martineau * common-src/shm-ring.c (shm_ring_sem_wait): Remove duplicated code * client-src/sendbackup.c: Close file descriptor * common-src/file.c: Fix memory leak * common-src/protocol.c: Fix memory leak * server-src/amtrmidx.c: Fix memory leak * server-src/amtrmlog.c: Fix memory leak * server-src/diskfile.c: Fix memory leak 2017-02-10 Jean-Louis Martineau * server-src/amadmin.c (tape): Do not free the list_new_tapes result 2017-02-10 Jean-Louis Martineau * device-src/tape-device.c (tape_device_eject): Close the device if we open it 2017-02-10 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: Make sure restart_scan is not run twice in parallel 2017-02-10 Jean-Louis Martineau * common-src/conffile.c, server-src/find.c, server-src/tapefile.c: Fix memory leak. 2017-02-10 Jean-Louis Martineau * common-src/shm-ring.c: NetBSD limit to 14 characters the shm name 2017-02-07 Jean-Louis Martineau Allow compilation with libressl * config/amanda/amanda_configure.m4: Change order * device-src/Makefile.am (libamdevice_la_LDFLAGS): Add -ldl * common-src/glib-util.c, device-src/s3-util.c, device-src/s3.c: check for LIBRESSL_VERSION_NUMBER 2017-02-02 Jean-Louis Martineau * installcheck/failure-server-custom-compress-no-exec.pl: Call check_amreport with skip_size 2017-02-02 Jean-Louis Martineau * client-src/calcsize.c: amflock(2,"size"); * client-src/sendsize.c: Add amflock(1,"size"); 2017-02-02 Jean-Louis Martineau * config/amanda/syshacks.m4: Set BROKEN_SENDMSG on *-apple-darwin* * common-src/amutil.c: Do not use ambinf if BROKEN_SENDMSG 2017-02-02 Jean-Louis Martineau * config/amanda/amanda_configure.m4: Detect if we have getservbyport_r * common-src/amutil.c: use getservbyport if getservbyport_r is not available * common-src/protocol.c: Use tread if HAVE_GETSERVBYNAME_R and HAVE_GETSERVBYPORT_R 2017-02-02 Jean-Louis Martineau * application-src/ambsdtar.c: 'copyfile unpack (./.) failed' is normal on restore 2017-02-01 Jean-Louis Martineau * common-src/amutil.c (get_sse42): Add default function 2017-01-31 Jean-Louis Martineau * NEWS, ReleaseNotes: 3.4.2 2017-01-30 Jean-Louis Martineau Patch by Jason L Tibbitts III * server-src/amcheck.c: Remove spurious printf 2017-01-30 Jean-Louis Martineau * common-src/krb5-security.c (krb5_accept): Check result of setreuid 2017-01-24 Jean-Louis Martineau * application-src/ambsdtar.c: Add a SPARSE property, default to YES * man/xml-source/ambsdtar.8.xml: Document it. 2017-01-20 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Fix output 2017-01-19 Jean-Louis Martineau * perl/Amanda/Script_App.pm: Use config_init_with_global 2017-01-18 Jean-Louis Martineau * common-src/amgetconf.pl: Add build.amperldir * perl/Amanda/Paths.pm.in: Export $amperldir 2017-01-18 Jean-Louis Martineau * common-src/ammessage.c: Add storage to message * server-src/amtape.pl: Use storage AUTOLABEL * server-src/amcheck-device.pl: Use storage AUTOLABEL * server-src/amcheck.c: Use storage RUNTAPES and policy retention-tapes * server-src/driverio.c: Use storage tapetype 2017-01-18 Jean-Louis Martineau * packaging/deb/amanda-backup-client.dirs, packaging/deb/amanda-backup-client.install, packaging/deb/amanda-backup-server.install: s#usr/libexec/amanda#usr/lib/x86_64-linux-gnu/amanda# * packaging/deb/rules: Set LIBDIR to $(PREFIX)/lib/$(triplet) on x86_64-linux-gnu Set LIBEXECDIR to $(LIBDIR) 2017-01-17 Jean-Louis Martineau * device-src/s3.c: Fix for '/' in prefix, fix for port in S3-HOST 2017-01-17 Jean-Louis Martineau * server-src/dumper.c (startup_dump): Fix reversed test 2017-01-17 Jean-Louis Martineau Patch by Jason L Tibbitts * server-src/diskfile.c (optionstr): Make sure options string begins with a semicolon 2017-01-13 Jean-Louis Martineau * installcheck/failure-server-custom-compress-not-found.pl: Call check_amreport with skip_size 2017-01-13 Jean-Louis Martineau * common-src/bsdtcp-security.c (bsdtcp_accept): Send early error message to the socket 2017-01-12 Jean-Louis Martineau * server-src/driverio.h (sched_t): remove nb_flush * server-src/driver.c (read_flush): Add a different sched_t for each storage * installcheck/success-dumper-chunker+2taper-flush.pl: fix 2017-01-12 Jean-Louis Martineau * common-src/conffile.c: Parse 'active-storage' setting * common-src/conffile.h: Add CNF_ACTIVE_STORAGE * server-src/driver.c: Use active-storage * man/xml-source/amanda.conf.5.xml: Document active-storage * installcheck/Installcheck/Run.pm (is_sort_array): new function * installcheck/Makefile.am: Add success-dumper-chunker+2taper-flush * installcheck/success-dumper-chunker+2taper-flush.pl: New file 2017-01-09 Jean-Louis Martineau * application-src/amsamba.pl: Set LC_CTYPE to en_US.UTF-8 before executing smbclient 2017-01-09 Jean-Louis Martineau By Jose M Calhariz and Jon LaBadie * man/xml-source/amanda-auth.7.xml * man/xml-source/amanda-changers.7.xml * file man/xml-source/amanda-devices.7.xml: Documentation fix 2017-01-08 Jean-Louis Martineau * client-src/sendbackup.c (start_index): Remove unused ptr and bytes_written variables 2017-01-06 Jean-Louis Martineau * man/xml-source/amanda.conf.5.xml: Add a   to force a space 2017-01-05 Jean-Louis Martineau Patch by Eric Schnoebelen * config/amanda/defaults.m4: Install amanda-security.conf in $sysconfdir 2017-01-05 Jean-Louis Martineau * perl/Amanda/Paths.pm.in: export SECURITY_FILE and AMANDATES_FILE * common-src/amgetconf.pl: Add build.amdatadir, build.security_file and build.amandates_file * installcheck/amgetconf.pl: Test them 2017-01-05 Jean-Louis Martineau * installcheck/failure-server-encrypt-end.pl, installcheck/failure-server-encrypt-no-exec.pl. installcheck/failure-server-encrypt-not-found.pl: Call check_amreport with skip_size 2017-01-04 Jean-Louis Martineau * installcheck/failure-server-encrypt.pl: Call check_amreport with skip_size 2017-01-04 Jean-Louis Martineau * config/amanda/flags.m4: Detect clang compiler * common-src/ammessage.c: Fix warning found by clang compiler * common-src/amutil.c: Fix warning found by clang compiler * common-src/conffile.c: Fix warning found by clang compiler * common-src/crc32-test.c: Fix warning found by clang compiler * common-src/security-util.c: Fix warning found by clang compiler * device-src/ndmp-device.c: Fix warning found by clang compiler 2017-01-04 Jean-Louis Martineau * common-src/Makefile.am: crc32-test.o: AM_CFLAGS += $(SSE42_CFLAGS) * common-src/amcrc32chw.c: Use __SSE4_2__, set compiled_with_sse4_2 * common-src/amcrc32chw.h: Declare compiled_with_sse4_2 * common-src/amutil.c: Use __SSE4_2__, check compiled_with_sse4_2 * common-src/crc32-test.c: Use __SSE4_2__ 2017-01-03 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Add 'use Carp;' in Amanda::Changer::robot::Interface::MTX package 2017-01-03 Jean-Louis Martineau Initial patch by Eric Schnoebelen * common-src/ammessage.c: Check bound on err_code array 2017-01-03 Jean-Louis Martineau Patch by Eric Schnoebelen * common-src/security-file.c: use of autoconf defined feature macro instead of hardcoded path 2017-01-03 Jean-Louis Martineau Patch by Eric Schnoebelen * config/macro-archive/xsltproc.m4: Fix shell portability problem 2017-01-03 Jean-Louis Martineau Patch by Eric Schnoebelen * config/amanda/libs.m4: bash-ism's in the autoconf macros. autoconf should be written in POSIX sh 2017-01-03 Jean-Louis Martineau Patch by Eric Schnoebelen * common-src/glib-util.c: Make sure to use the feature test macro for LIBCURL before trying to use either the GNUTLS or OPENSSL feature test macros 2017-01-03 Jean-Louis Martineau * common-src/conffile.c: Print warning if autolabel is set to the "MATCH-AUTOLABEL" string 2016-12-30 Jean-Louis Martineau * server-src/amcheck-device.pl: Fix printing error 2016-12-21 Jean-Louis Martineau * perl/Amanda/Paths.pm.in: Add $libdir * common-src/amgetconf.pl: Add build.libdir and build.amlibdir 2016-12-21 Jean-Louis Martineau * perl/Amanda/Label.pm: Fix for force (-f in amlabel) 2016-12-19 Jean-Louis Martineau * server-src/amtoc.pl: Fix for new log file format 2016-12-16 Jean-Louis Martineau * perl/Amanda/Report.pm: Fix exit_status for some error 2016-12-13 Jean-Louis Martineau * perl/Amanda/Debug.swg (_my_warn): Fix for array argument 2016-12-05 Jean-Louis Martineau * server-src/tapefile.c (lookup_last_reusable_tape): correctly check pool and label 2016-12-05 Jean-Louis Martineau * common-src/make_security_file.c: Fix comment in amanda-security.conf 2016-12-02 Jean-Louis Martineau * server-src/planner.c (when_overwrite): Use default storage if the tle have no storage 2016-12-01 Jean-Louis Martineau * common-src/amutil.c: typo 2016-12-01 Jean-Louis Martineau * config/amanda/syshacks.m4: Define GETSERVBYPORT_R5 on solaris2 * common-src/amutil.c: Use solaris 5 arguments for getservbyport_r 2016-11-29 Jean-Louis Martineau * installcheck/Installcheck/Run.pm (check_amreport): skip_size default to 1 * installcheck/failure-client-custom-compress-end.pl, installcheck/failure-client-custom-compress-no-exec.pl, installcheck/failure-client-custom-compress-not-found.pl, installcheck/failure-client-custom-compress.pl, installcheck/failure-client-encrypt-end.pl, installcheck/failure-client-encrypt-no-exec.pl, installcheck/failure-client-encrypt-not-found.pl, installcheck/failure-client-encrypt.pl, installcheck/failure-server-custom-compress-end.pl, installcheck/failure-server-encrypt-end.pl: Remove 'sendbackup: size' lines 2016-11-29 Jean-Louis Martineau * perl/Amanda/Changer.pm (show): Print if the label do not match the labelstr * perl/Amanda/Rest/Storages.pm: Set label_match * server-src/amtape.pl (inventory): Print if the label do not match the labelstr * installcheck/Amanda_Rest_Storages.pl, installcheck/amtape.pl: Fix 2016-11-28 Jean-Louis Martineau * common-src/amutil.c: Workaround if SOCK_NONBLOCK is not defined 2016-11-25 Jean-Louis Martineau * common-src/amxml.c, device-src/vfs-device.c, perl/Amanda/Config.swg: Fix warning found by clang 2016-11-25 Jean-Louis Martineau * installcheck/Amanda_Changer_aggregate.pl: Set the aggregate state-filename property 2016-11-25 Jean-Louis Martineau * installcheck/Amanda_Rest_Storages.pl: Set the aggregate state_filename 2016-11-25 Jean-Louis Martineau * installcheck/Amanda_Rest_Storages.pl: Typo 2016-11-25 Jean-Louis Martineau * perl/Amanda/Changer.pm: s/NO-STORAGE/ by the config_name * perl/Amanda/Changer/aggregate.pm: Various fix * server-src/driverio.c: Add comments * installcheck/Amanda_Changer_disk.pl: Fix comment * installcheck/Amanda_Rest_Storages.pl: Test chg-aggregate * installcheck/Installcheck/Changer.pm: Improve error message * installcheck/Installcheck/Rest.pm: Start starman with the '--workers 1' argument * installcheck/Amanda_Changer_aggregate.pl: New script to test chg-aggregate * installcheck/Makefile.am (server_tests): Add Amanda_Changer_aggregate 2016-11-24 Jean-Louis Martineau New setuid ambind binary to bind a socket to a priviledge port planner, dumper, amcheck and amservice are no longer setuid Use one thread by client for the connect call * common-src/Makefile.am (amlibexec_PROGRAMS): Add ambind * common-src/amanda.h (sockaddr_union): remove typedef * common-src/sockaddr-util.h (sockaddr_union): copied from amanda.h * common-src/ambind.c: New program to bind a socket to a privilege port * common-src/ammessage.c: Add message 2800235 * common-src/amservice.c: Check is not suid root * common-src/amutil.c (priv_mutex): declare * common-src/amutil.c (connect_port, connect_portrane, bind_portrange): New priv argument * common-src/amutil.c (ambind): New function to execute ambind * common-src/amutil.c (connect_port, bind_portrange): Call ambind if a privilege port is required * common-src/amutil.h (priv_mutex): declare extern * common-src/amutil.h (connect_portrange, connect_portrange): New priv argument * common-src/bsd-security.c: Do not take root privilege * common-src/bsdtcp-security.c: Do not take root privilege, take security_mutex * common-src/bsdudp-security.c: Do not take root privilege * common-src/dgram.c (dgram_bind): Add priv to argument, use new bind_portrange return socket * common-src/dgram.h (dgram_bind): Add priv to argument * common-src/glib-util.c: create priv_mutex an security_mutex * common-src/krb5-security.c Do not take root privilege, take security_mutex * common-src/local-security.c: take security_mutex * common-src/protocol.c: Call security_connect in a new thread if allowed * common-src/security-util.c: take security_mutex * common-src/security.c (security_mutex): Declare * common-src/security.h (security_mutex): Declare extern * common-src/ssh-security.c: take security_mutex * common-src/ssl-security.c: take security_mutex * common-src/stream.c (stream_server): use new bind_portrange return socket * packaging/deb/rules: Set new suid bit * packaging/rpm/amanda.spec.src: Set new suid bit * server-src/amcheck.c: Check is not suid root * server-src/dumper.c: Check is not suid root * server-src/planner.c: Check is not suid root 2016-11-23 Jean-Louis Martineau Fix race when using event_register in thread, the callback can be calback can before event_register return * */*.c : Use event_create and event_activate instead of event_register 2016-11-22 Jean-Louis Martineau * server-src/dumper.c (retimeout): New function that change the timeout_time but do create create the event * installcheck/Installcheck/Run.pm (check_amreport): Add an option to skip the 'sendbackup: size' line * installcheck/failure-server-custom-compress.pl: Call check_amreport with the skip_size bit set. 2016-11-21 Jean-Louis Martineau * server-src/amfetchdump.pl, server-src/amreport.pl: Do not add to cfgerr_level 2016-11-21 Jean-Louis Martineau * installcheck/Amanda_Rest_Storages.pl: Fix check 2016-11-21 Jean-Louis Martineau * NEWS, ReleaseNotes: 3.4.1 2016-11-18 Jean-Louis Martineau * server-src/find.c (find_dump, search_holding_disk, search_logfile): add added_todo argument * server-src/find.h (find_dump, search_holding_disk, search_logfile): add added_todo argument * server-src/amadmin.c: Call find_dump with added_todo=1 * server-src/amindexd.c: Call find_dump with added_todo=1 * server-src/amtrmidx.c: Call find_dump with added_todo=1 * server-src/driver.c: Call search_holding_disk with added_todo=1 * server-src/planner.c: Use a dp with a todo bit set * server-src/server_util.c: Use a dp with a todo bit set * server-src/tapefile.c: Call find_dump with added_todo=0 * perl/Amanda/Logfile.swg (search_logfile, search_holding_disk): Add added_todo argument * perl/Amanda/DB/Catalog.pm: Call search_logfile with added_todo=1 * perl/Amanda/Disklist.swg: Call search_holding_disk with added_todo=1 * installcheck/Amanda_Logfile.pl: Call search_logfile with added_todo=1 2016-11-16 Jean-Louis Martineau * application-src/amrandom.pl: Fix perl warning * device-src/amtapetype.pl: Fix perl warning * installcheck/success-dumper-chunker-2taper-by-level.pl: Fix test * perl/Amanda/Report.pm: Fix perl warning * perl/Amanda/Report/human.pm: Fix perl warning * server-src/amadmin_perl.pl: Fix perl warning * server-src/amstatus.pl: Fix perl warning 2016-11-15 Jean-Louis Martineau * server-src/amstatus.pl: Fix warning, do not print useless (:) * installcheck/failure-*.pl, installcheck/success-dumper-*.pl: fix 2016-11-15 Jean-Louis Martineau * common-src/conffile.c: Add tapedev in storage section * common-src/conffile.h: Add STORAGE_TAPEDEV * device-src/xfer-dest-taper-splitter.c: Fix to use mem_ring value * man/xml-source/amanda.conf.5.xml: Document tapedev in storage section * perl/Amanda/Changer.pm: Improve message 1150003 * perl/Amanda/Config.swg: Add STORAGE_TAPEDEV * perl/Amanda/Rest/Storages.pm: Set status to 404 if create fail * perl/Amanda/Storage.pm: Use tapedev if tpchanger is not set * installcheck/Amanda_Rest_Storages.pl: Fix check * installcheck/taper.pl: Fix check 2016-11-14 Jean-Louis Martineau * server-src/planner.c: Set dp->todo to 0 if the dle is not skipped 2016-11-14 Jean-Louis Martineau * device-src/amtapetype.pl: Correctly check result of property_set 2016-11-11 Jean-Louis Martineau * config/amanda/components.m4 (AMANDA_WITHOUT_REST_SERVER): New --without-rest-server option * Makefile.am: Do not build rest-server if --without-rest-server * config/amanda/libs.m4: Fix typo * man/Makefile.am: Do not build amanda-rest-server.8 if --without-rest-server * perl/Makefile.am: Do not build Amanda::Rest modules if --without-rest-server * server-src/Makefile.am: Do not build amanda-rest-server if --without-rest-server 2016-11-11 Jean-Louis Martineau * device-src/s3.c: Correctly handle Region not found * device-src/s3.h: Add S3_ERROR_Region_Not_Found 2016-11-09 Jean-Louis Martineau * device-src/s3.c: Verify a publicURL is found 2016-11-09 Jean-Louis Martineau * device-src/s3.c: publicURl and region can be unordered 2016-11-04 Jean-Louis Martineau * device-src/s3.c: Use the publicURL from the good region 2016-11-02 Jean-Louis Martineau * server-src/amcheck.c: Fix 2016-11-01 Jean-Louis Martineau * perl/Amanda/Status.pm: Set $dlet->{'wsize'} to $dlet->{'taped_size'} if it is bigger * perl/Amanda/Taper/Scribe.pm (get_bytes_written): Do not set oldsize to size if size==0 * perl/Amanda/Taper/Worker.pm: Delete the statefile later 2016-11-01 Jean-Louis Martineau * device-src/xfer-dest-taper-splitter.c: ring buffer might never be full 2016-10-31 Jean-Louis Martineau * server-src/amcheck.c: Print message 2800016 to mainfd 2016-10-31 Jean-Louis Martineau * perl/Amanda/Service/Amidxtaped.pm: Do not send mesage 4900000 and 4900012 to client * recover-src/extract_list.c: Print size on EOF 2016-10-26 Jean-Louis Martineau * packaging/rpm/amanda.spec.src: Remove perl(Dancer2) from the Requires 2016-10-25 Jean-Louis Martineau * perl/Amanda/DB.pm: package Amanda::DB; * perl/Amanda/Recovery.pm: package Amanda::Recovery; * perl/Amanda/Service.pm: package Amanda::Service; 2016-10-24 Jean-Louis Martineau * config/amanda/dvdrw-device.m4, config/amanda/ndmp-device.m4, config/amanda/s3-device.m4: Do not include the device if compiled --without-server 2016-10-19 Jean-Louis Martineau * config/amanda/libs.m4: Do not link with libcurl if no se device or no server * config/amanda/s3-device.m4: Re-order 2016-10-19 Jean-Louis Martineau * perl/Makefile.am: Amanda::FetchDump::*, Amanda::Recovery::* and Amanda::Amservice are for client or server 2016-10-11 Jean-Louis Martineau * installcheck/Amanda_Device.pl: Reduce bucket name length 2016-10-08 Jean-Louis Martineau * config/amanda/amanda_configure.m4: Check for getservbyname_t and sem_timedwait * common-src/security-util.c: Check HAVE_GETSERVBYNAME_R * common-src/shm-ring.c: Check HAVE_SEM_TIMEDWAIT * gnulib/regenerate/regenerate: Check configure.ac 2016-10-08 Jean-Louis Martineau * config/amanda/ssl-security.m4: Fix pkg-config argument 2016-10-04 Jean-Louis Martineau * application-src/amstar.c: Fix exclude pattern 2016-10-02 Jean-Louis Martineau * config/amanda/amanda_configure.m4: Check if clock_gettime exists * common-src/debug.c (msg_timestamp): Use time/ctime_r if clock_gettime do not exists 2016-09-29 Jean-Louis Martineau * packaging/common/test_sh_libs.sh: Fix for time 2016-09-29 Jean-Louis Martineau * many */*.c: Add call to glib_init() 2016-09-28 Jean-Louis Martineau * amandad-src/amandad.c: Do not free as * recover-src/extract_list.c: Check state_filename != NULL before unlink 2016-09-28 Jean-Louis Martineau * installcheck/Amanda_MainLoop.pl: Increase timeout 2016-09-27 Jean-Louis Martineau * server-src/driver.c (file_taper_result): Check result of g_hash_table_lookup 2016-09-27 Jean-Louis Martineau * common-src/glib-util.c: Initialize shm_ring_mutex * common-src/shm-ring.c: Use a hash to manage semaphore * common-src/shm-ring.h: Export shm_ring_mutex * perl/Amanda/Status.pm: Fix for runq * server-src/tapefile.c: Fix for storage not set * installcheck/Amanda_Rest_Runs.pl: Fix * installcheck/success-dumper-chunker+taper-flush.pl Fix 2016-09-26 Jean-Louis Martineau * config/amanda/syshacks.m4: Define GETSERVBYNAME_R5 on solaris * common-src/security-util.c: Use solaris getservbyname_r if GETSERVBYNAME_R5 is defined * common-src/shm-ring.c: Cast pid_t to int * server-src/tapefile.c: Cast pid_t to int 2016-09-21 Jean-Louis Martineau * server-src/amadmin.c (find): Do not call find_log(), it is a cpu hog and it print useless warning * server-src/tapefile.c (lookup_tapelabel): Use a hash 2016-09-21 Jean-Louis Martineau * perl/Amanda/Report.pm: A Fail driver line must set the exit_status to STATUS_FAILED * installcheck/Amanda_ClientService.pl: Fix test 2016-09-21 Jean-Louis Martineau * installcheck/Amanda_Device.pl: Fix a test 2016-09-20 Jean-Louis Martineau * server-src/planner.c (when_overwrite): Use the tapecycle * server-src/tapefile.c (nb_tape_in_storage): New function to compute the number of tape in a storage * server-src/tapefile.h (nb_tape_in_storage): Add prototype * installcheck/success-dumper-chunker-2taper-by-level.pl: Fix test 2016-09-20 Jean-Louis Martineau * server-src/planner.c (when_overwrite): Fix off by 1 error * server-src/tapefile.c (tape_overwrite): Use tp1->retention 2016-09-20 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: Use storage_nme fro chg->storage * server-src/amadmin.c: Remove spurious print message * server-src/amreindex.pl: Remove spurious print message * server-src/dumper.c: Call g_mutex_new and g_cond_new before creating the thread, this fix a race * server-src/infofile.c (read_txinfofile): return 0 on success * server-src/planner.c (when_overwrite): Use storage setting * server-src/tapefile.c (tape_overwrite): New function to return how many tapes whould be reuse before this one * server-src/tapefile.h (tape_overwrite): Add prototype 2016-09-19 Jean-Louis Martineau * NEWS, ReleaseNotes: Update for 3.4 2016-09-19 Jean-Louis Martineau * server-src/driver.c: Do not call cleanup_shm_ring too often * common-src/shm-ring.c (cleanup_shm_ring): Do not remove new shm, allow them the time to setup 2016-09-18 Jean-Louis Martineau * common-src/glib-util.c (glib_init): Call g_mutex_new after the thread are initialized 2016-09-16 Jean-Louis Martineau Do not substitute $t in autolabel, meta-autolabel and pool,the value is not always available * common-src/conffile.c: Do not substitute $t in pool * common-src/match.c (make_template, match_labelstr_template, match_labelstr):Add storage argument * common-src/match.h (match_labelstr_template, match_labelstr): Fix prototype * perl/Amanda/Util.swg (match_labelstr_template, match_labelstr): Fix prototype * perl/Amanda/Changer.pm (label_to_slot, make_new_tape_label): Do no substitute $t in autolabel, meta-autolabel * perl/Amanda/Label.pm, perl/Amanda/ScanInventory.pm, perl/Amanda/Taper/Scan/oldest.pm, perl/Amanda/Taper/Scan/traditional.pm: Add storage argument to match_labelstr call * perl/Amanda/Taper/Scan.pm, server-src/tapefile.c: Add storage argument to match_labelstr_template call * man/xml-source/amanda.conf.5.xml: Document the change 2016-09-16 Jean-Louis Martineau * common-src/file.c (areads_getbuf): Fix prototype 2016-09-16 Jean-Louis Martineau * application-src/ambsdtar.c, application-src/amgtar.c, application-src/amstar.c, client-src/selfcheck.c, client-src/sendsize.c: Call glib_init() * common-src/glib-util.c (glib_init): Initialize file_mutex. * common-src/file.c (areads_dataready, areads_relbuf, debug_areads):i Thread safe * common-src/file.h (aclose): do not call areads_relbuf * common-src/file.h (aaclose): Same as old aclose * client-src/sendbackup.c, oldrecover-src/amrecover.c, server-src/amtrmidx.c, server-src/driver.c: Call aaclose 2016-09-15 Jean-Louis Martineau * amandad-src/amandad.c: Send no more than one PREP by second 2016-09-14 Jean-Louis Martineau * common-src/security-util.c (find_port_for_service):Make it thread safe 2016-09-14 Jean-Louis Martineau * common-src/event.c: Allow a EV_TIME to be 0, run in the next iteration 2016-09-14 Jean-Louis Martineau * server-src/planner.c: Fix comment 2016-09-14 Jean-Louis Martineau * common-src/debug.c (msg_timestamp):Make it thread safe by providing a buffer 2016-09-13 Jean-Louis Martineau * installcheck/amarchiver.pl: Fix for size output * amar-src/amar-test.c: Fix for improved error message 2016-09-13 Jean-Louis Martineau * amar-src/amarchiver.c: Cast amar-size result ot (long long) 2016-09-13 Jean-Louis Martineau * perl/Amanda/FetchDump.pm: Print to STDERR * amar-src/amar.c: Improve error message * amar-src/amar.h (amar_record): New prototype * amar-src/amarchiver.c (do_list): Print the size of the archive * perl/Amanda/Archive.swg (amar_record): Swig it 2016-09-08 Jean-Louis Martineau * application-src/amrandom.pl: Do not check the device, set size_level_1 * common-src/shm-ring.c (cleanup_shm_ring, close_producer_shm_ring, close_consumer_shm_ring): Close the shm memory 2016-09-06 Jean-Louis Martineau * perl/Amanda/Restore.pm: Fix call to remove_for_restore_label and remove_for_restore_holding 2016-09-01 Jean-Louis Martineau * common-src/shm-ring.c (cleanup_shm_ring): Use name without path 2016-09-01 Jean-Louis Martineau * device-src/device.c (default_device_property_set_ex): Return the device error if it is set * device-src/s3-device.c (s3_device_set_use_subdomain_fn): Improve error message * installcheck/Amanda_Device.pl: Test non DNS bucket name 2016-08-25 Jean-Louis Martineau * perl/Amanda/Process.pm: Typo 2016-08-25 Jean-Louis Martineau * installcheck/*.pl: Make sure they all log their results 2016-08-25 Jean-Louis Martineau * perl/Amanda/Vault.pm: fix 2016-08-25 Jean-Louis Martineau * perl/Amanda/Vault.pm: Log a 'STATS hostname' line * perl/Amanda/Report.pm: Parse the amvault 'STATS hostname' line * perl/Amanda/Report/json.pm: Always include the head section * installcheck/Amanda_Rest_Runs.pl: Add head section * installcheck/catalogs/bigestimate.cat, installcheck/catalogs/doublefailure.cat, installcheck/catalogs/longstrange.cat, installcheck/catalogs/resultsmissing.cat, installcheck/catalogs/retried-nofinish.cat, installcheck/catalogs/retried.cat, installcheck/catalogs/shortstrange.cat, installcheck/catalogs/skipped.cat: Add 'STATS driver' and many 'INFO pid-done' lines 2016-08-24 Jean-Louis Martineau * perl/Amanda/Extract.pm: Use 'eq' to compare string 2016-08-23 Jean-Louis Martineau * perl/Amanda/Restore.pm: Do not chdir if not an absolute path 2016-08-19 Jean-Louis Martineau * perl/Amanda/Changer.pm (make_new_tape_label): use the child slot * perl/Amanda/Changer/aggregate.pm: Add allow-missing-changer property 2016-08-18 Jean-Louis Martineau * installcheck/Makefile.am: Move some test to full_tests or restore_tests * installcheck/failure-client-custom-compress-end.pl: Remove 1 test 2016-08-18 Jean-Louis Martineau * installcheck/Amanda_Device.pl: Fix test 2016-08-18 Jean-Louis Martineau * installcheck/failure-client-custom-compress-end.pl: Remove 5 tests 2016-08-17 Jean-Louis Martineau * server-src/dumper.c:Fix compiler warning * installcheck/Installcheck/Run.pm: Improvement * installcheck/Makefile.am: Add new amcat* script and new test scripts * installcheck/amcat-error-end.pl: New script that fail on exit * installcheck/amcat-error-no-exec.pl: New script install without execute bit * installcheck/amcat-error.pl: New script that fail after 65536 bytes * installcheck/amcat.sh: New script that do a cat * installcheck/failure-client-custom-compress-end.pl, installcheck/failure-client-custom-compress-no-exec.pl, installcheck/failure-client-custom-compress-not-found.pl, installcheck/failure-client-custom-compress.pl, installcheck/failure-client-encrypt-end.pl, installcheck/failure-client-encrypt-no-exec.pl, installcheck/failure-client-encrypt-not-found.pl, installcheck/failure-client-encrypt.pl, installcheck/failure-server-custom-compress-end.pl, installcheck/failure-server-custom-compress-no-exec.pl, installcheck/failure-server-custom-compress-not-found.pl, installcheck/failure-server-custom-compress.pl, installcheck/failure-server-encrypt-end.pl, installcheck/failure-server-encrypt-no-exec.pl, installcheck/failure-server-encrypt-not-found.pl, installcheck/failure-server-encrypt.pl: New scripts to test various error * installcheck/failure-xfer-dest-holding-file-first-close_chunk.pl, installcheck/failure-xfer-dest-holding-file-open-first-header.pl, installcheck/failure-xfer-dest-holding-file-open-second-header.pl, installcheck/failure-xfer-dest-holding-file-second-close_chunk.pl, installcheck/failure-xfer-dest-holding-file-write-first-data.pl, installcheck/failure-xfer-dest-holding-file-write-first-header.pl, installcheck/failure-xfer-dest-holding-file-write-second-data.pl, installcheck/failure-xfer-dest-holding-file-write-second-header.pl, installcheck/failure-xfer-dest-holding-shm-first-close_chunk.pl, installcheck/failure-xfer-dest-holding-shm-open-first-header.pl, installcheck/failure-xfer-dest-holding-shm-open-second-header.pl, installcheck/failure-xfer-dest-holding-shm-second-close_chunk.pl, installcheck/failure-xfer-dest-holding-shm-write-first-data.pl, installcheck/failure-xfer-dest-holding-shm-write-first-header.pl, installcheck/failure-xfer-dest-holding-shm-write-second-data.pl, installcheck/failure-xfer-dest-holding-shm-write-second-header.pl: New script to test error in xfer-dest-holding.c * installcheck/success-dumper-chunker+dumper-chunker-taper-flush.pl, installcheck/success-dumper-chunker+taper-flush.pl, installcheck/success-dumper-chunker-2taper-by-level.pl, installcheck/success-dumper-chunker-2taper.pl, installcheck/success-dumper-chunker-taper.pl, installcheck/success-dumper-taper.pl: Update for improvement in Installcheck/Run.pm 2016-08-17 Jean-Louis Martineau * amandad-src/amandad.c: Fix closing service * client-src/sendbackup.c (stderr_thread): Cancel the shm_ring * common-src/security-util.c: Do not free(rs) * common-src/security.c (security_seterror, security_stream_seterror): Use g_strdup_vprintf * perl/Amanda/Report/human.pm: Do not report 'Aborted by driver' error * server-src/dumper.c: Take the shm_thread_mutex more often, add FAILURE_CODE error * server-src/xfer-dest-holding.c: Add FAILURE_CODE error 2016-08-17 Jean-Louis Martineau * man/xml-source/amanda.8.xml: Add amanda-command-file.5 2016-08-17 Jean-Louis Martineau * man/Makefile.am: Add amanda-command-file.5.xml * man/xml-source/amanda-command-file.5.xml:Document the command-file format * man/xml-source/amanda.conf.5.xml: Reorder entries 2016-08-10 Jean-Louis Martineau * device-src/s3-device.c (progress_func): Donot fail if the transfer is not started 2016-08-09 Jean-Louis Martineau Add a --failure-code configure option that allow to inject error in the code * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add --failure-code * common-src/alloc.c (safe_env_full): Keep all ENV if FAILURE_CODE is define * config/amanda/amanda_configure.m4: Load AMANDA_WITH_FAILURE_CODE * config/amanda/failure_code.m4 (AMANDA_WITH_FAILURE_CODE): Define FAILURE_CODE if --failure-code * perl/Amanda/Constants.pm.in.src: Add FAILURE_CODE * perl/Amanda/Rest/Configs.pm: Handle FAILURE parameter 2016-08-09 Jean-Louis Martineau * server-src/xfer-dest-holding.c (finish_chunk): Return a char * * server-src/xfer-server.h (finish_chunk): modify declaration * perl/Amanda/XferServer.swg (finish_chunk): modify declaration * perl/Amanda/Xfer.pod: Update documentation 2016-08-09 Jean-Louis Martineau * device-src/s3.c: Correctly compute the signature for AWS4 if S3_SUBDOMAIN is set to OFF 2016-08-08 Jean-Louis Martineau * client-src/ambackup.pl: Wait for 'MESG END' 2016-08-08 Jean-Louis Martineau * server-src/ambackupd.pl: Fix string comparaison 2016-08-08 Jean-Louis Martineau * amandad-src/amandad.c: Wait for the child process to terminate 2016-08-08 Jean-Louis Martineau * perl/Amanda/Chunker/Scribe.pm: fix bad variable name 2016-08-08 Jean-Louis Martineau * perl/Amanda/Curinfo/Info.pm: Fix perl warning 2016-08-08 Jean-Louis Martineau * xfer-src/element-glue.c: Enable XFER_MECH_WRITEFD, XFER_MECH_MEM_RING and XFER_MECH_WRITEFD, XFER_MECH_SHM_RING 2016-08-03 Jean-Louis Martineau * application-src/amrandom.pl: Fix perl warning 2016-08-02 Jean-Louis Martineau * common-src/ammessage.c: typo 2016-07-19 Jean-Louis Martineau * client-src/sendbackup.c: (childstr): check dumppid at last * client-src/sendbackup.c: (check_result):Increase the timeout to 600 seconds 2016-07-18 Jean-Louis Martineau * perl/Amanda/Amdump.pm: Use POSIX::close * perl/Amanda/Chunker/Controller.pm, perl/Amanda/Chunker/Scribe.pm: Improve error message * perl/Amanda/Config.swg: Add Message for code 1560000 * perl/Amanda/Report.pm: Fix parsing of pid and fork L_INFO lines * perl/Amanda/Report/human.pm: Improve error message * perl/Amanda/Report/json.pm: Improve error message * perl/Amanda/Status.pm: Improve parsing * installcheck/Amanda_Rest_Runs.pl installcheck/amstatus.pl installcheck/chunker.pl installcheck/pp-scripts.pl installcheck/success-dumper-chunker+dumper-chunker-taper-flush.pl installcheck/success-dumper-chunker+taper-flush.pl installcheck/success-dumper-chunker-2taper-by-level.pl installcheck/success-dumper-chunker-2taper.pl installcheck/success-dumper-chunker-taper.pl installcheck/success-dumper-taper.pl: Fix for changes 2016-07-14 Jean-Louis Martineau * server-src/dumper.c: Improve error reporting 2016-07-14 Jean-Louis Martineau * server-src/driver.c: Remove useless printf 2016-07-14 Jean-Louis Martineau * client-src/sendbackup.c: Read filter stderr and report them as error 2016-07-14 Jean-Louis Martineau * client-src/senddiscover.c: Do not include "pipespawn.h" 2016-07-14 Jean-Louis Martineau * common-src/file.c (debug_areads): Add a terminating '\n' on the buffer 2016-07-14 Jean-Louis Martineau * common-src/event.c (event_release): Abort the main_loop is there is no more event 2016-07-14 Jean-Louis Martineau * common-src/debug.c: Fix race in getting the thread id 2016-07-14 Jean-Louis Martineau * device-src/device.h (property_set_ex, device_property_set_ex): Change prototype to return a (char *) * device-src/device.c (property_set_ex, device_property_set_ex): Return a (char *) on error, NULL on success * perl/Amanda/Device.swg (property_set), Return a string on eror, undef on success * device-src/amtapetype.pl, device-src/rait-device.c, perl/Amanda/Changer.pm, perl/Amanda/Changer/disk.pm, perl/Amanda/Changer/diskflat.pm, server-src/amadmin.c, server-src/amrestore.pl: Change for new API * installcheck/Amanda_Device.pl: Test new API * installcheck/Amanda_Xfer.pl: Change for new API 2016-07-13 Jean-Louis Martineau * server-src/infofile.c: Make sure the infofile never have more more than 100 history lines 2016-07-08 Jean-Louis Martineau * installcheck/Installcheck/Rest.pm (post): Set CURLOPT_POSTFIELDSIZE 2016-07-08 Jean-Louis Martineau Add message in NO-ROOM from chunker and ABORT from driver to chunker * perl/Amanda/Chunker/Controller.pm: Add message * perl/Amanda/Chunker/Protocol.pm: Add message * server-src/driver.c: Add message * server-src/driverio.c: Send message * server-src/xfer-dest-holding.c: Set message * installcheck/chunker.pl: Check message 2016-07-08 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Fix dealing with try, fix line spacing * perl/Amanda/Report.pm: Fix setting try * installcheck/success-dumper-chunker+dumper-chunker-taper-flush.pl, installcheck/success-dumper-chunker+taper-flush.pl, installcheck/success-dumper-chunker-2taper-by-level.pl, installcheck/success-dumper-chunker-2taper.pl, installcheck/success-dumper-chunker-taper.pl, installcheck/success-dumper-taper.pl: Check report failure_summary, fix for line spacing 2016-07-08 Jean-Louis Martineau * installcheck/Installcheck/Catalogs.pm: Set current version in amdump log file 2016-07-08 Jean-Louis Martineau * perl/Amanda/Status.pm:: Return an error if not for same version * server-src/amstatus.pl: Handle Message return from $status->current 2016-07-06 Jean-Louis Martineau * installcheck/dump-client-custom-compress+amfetchdump.pl, installcheck/dump-client-encrypt+amfetchdump.pl, installcheck/dump-server-custom-compress+amfetchdump.pl, installcheck/dump-server-encrypt+amfetchdump.pl: restore in a testdir, check the dump is restored 2016-07-06 Jean-Louis Martineau * perl/Amanda/Restore.pm: srvcompprog and clntcompprog are string * installcheck/Makefile.am (server_tests): Add new test scripts * installcheck/dump-client-custom-compress+amfetchdump.pl, installcheck/dump-client-encrypt+amfetchdump.pl, installcheck/dump-server-custom-compress+amfetchdump.pl, installcheck/dump-server-encrypt+amfetchdump.pl: New test scripts 2016-07-05 Jean-Louis Martineau * installcheck/Amanda_Rest_Configs.pl, installcheck/amgetconf.pl: Change for new value of send-amreport-on 2016-07-05 Jean-Louis Martineau * installcheck/Installcheck/Config.pm (new): Set send-amreport-on to never 2016-07-05 Jean-Louis Martineau * perl/Amanda/Process.pm (load_ps_table): Skip partial line 2016-07-05 Jean-Louis Martineau * common-src/amflock.c: Typo * perl/Amanda/Tapelist.swg (relaod): Take the lock before checking force * perl/Amanda/Tapelist.swg (write): Verify we have the lock * perl/Amanda/Rest/Storages/Labels.pm: Take the tapelist lock * installcheck/Amanda_Rest_Storages_Labels.pl: Do not exit * installcheck/Amanda_Tapelist.pl: Reload the tapelist * installcheck/Amanda_Taper_Scan_lexical.pl: Reload the tapelist * installcheck/Amanda_Taper_Scan_oldest.pl: Reload the tapelist * installcheck/Amanda_Taper_Scan_traditional.pl: Reload the tapelist * installcheck/amlabel.pl: Reload the tapelist * installcheck/amreport.pl: unlink "$mail_mock.bogus" * installcheck/success-dumper-chunker+dumper-chunker-taper-flush.pl, installcheck/success-dumper-chunker+taper-flush.pl, installcheck/success-dumper-chunker-2taper-by-level.pl, installcheck/success-dumper-chunker-2taper.pl, installcheck/success-dumper-chunker-taper.pl, installcheck/success-dumper-taper.pl: sleep before checking result 2016-07-04 Jean-Louis Martineau * installcheck/amreport.pl: simpler error matching 2016-07-04 Jean-Louis Martineau * server-src/logfile.c (program_str): Add amtrmidx and amtrmlog * server-src/logfile.c (get_logtype_str, get_program_str): New functions * server-src/logfile.h (program_t): Add P_AMTRMIDX and P_AMTRMLOG * server-src/logfile.h (get_logtype_str, get_program_str): Add prototypes * perl/Amanda/Logfile.swg: Swig P_AMTRMIDX P_AMTRMLOG, get_logtype_str and get_program_str * perl/Amanda/Amdump.pm (run_subprocess): Read stderr and log a L_ERROR * perl/Amanda/Report.pm: Parse line from amreport, amtrmidx and amtrmlog * perl/Amanda/Report/human.pm (PROGRAM_ORDER): Add amtrmidx and amtrmlog * server-src/amreport.pl: Print better error message * installcheck/amreport.pl: Check new error reporting 2016-07-04 Jean-Louis Martineau * installcheck/Installcheck/Run.pm (check_amreport): Remove double space in date 2016-06-29 Jean-Louis Martineau * perl/Amanda/Process.pm (load_ps_table): accept any process which match /perl/ as a perl binary 2016-06-29 Jean-Louis Martineau * installcheck/success-dumper-chunker+taper-flush.pl: s/ 0:00:00/00:00:00/ 2016-06-29 Jean-Louis Martineau * installcheck/Installcheck/Run.pm (setup_changer, setup_storage): New methods * installcheck/Installcheck/Run.pm (check_amreport): Sort the 'USAGE BY TAPE' and 'NOTES' sections before comparing them * installcheck/Makefile.am (server_tests): Add 2 new tests * installcheck/success-dumper-chunker-2taper-by-level.pl: test a dump where the full go to a storage and the incremental go to another storage * installcheck/success-dumper-chunker-2taper.pl: test a dump that goto 2 different storages 2016-06-29 Jean-Louis Martineau * perl/Amanda/Status.pm (show_time): Always print hours with 2 chars * server-src/amstatus.pl (busytime): Always print hours with 2 chars * installcheck/Installcheck/Run.pm (check_amstatus): Fix regex * installcheck/amstatus.pl: Fix * installcheck/success-dumper-chunker+dumper-chunker-taper-flush.pl, installcheck/success-dumper-chunker+taper-flush.pl, installcheck/success-dumper-chunker-taper.pl, installcheck/success-dumper-taper.pl: Fix 2016-06-29 Jean-Louis Martineau * installcheck/Installcheck/Run.pm (check_amstatus): Remove not-idle lines from amstatus result 2016-06-29 Jean-Louis Martineau * installcheck/Installcheck/Run.pm (check_amstatus): Remove not-idle lines 2016-06-29 Jean-Louis Martineau * perl/Amanda/Report/human.pm (get_summary_info): Do not add spurious space 2016-06-29 Jean-Louis Martineau * common-src/conffile.c (update_derived_values): create a default CONF policy 2016-06-29 Jean-Louis Martineau * application-src/amrandom.pl: Allow level 1 backup, add SIZE-LEVEL-1 property * installcheck/success-dumper-chunker+dumper-chunker-taper-flush.pl, installcheck/success-dumper-chunker+taper-flush.pl, installcheck/success-dumper-chunker-taper.pl, installcheck/success-dumper-taper.pl: Use amrandom, it have consistent size 2016-06-28 Jean-Louis Martineau * server-src/amstatus.pl:Fix indentation * installcheck/Installcheck/Run.pm (check_amstatus): Do not check dumper busy stat 2016-06-28 Jean-Louis Martineau * installcheck/Installcheck/Run.pm: Subtitute hostname * installcheck/success-dumper-chunker+dumper-chunker-taper-flush.pl, installcheck/success-dumper-chunker+taper-flush.pl, installcheck/success-dumper-chunker-taper.pl, installcheck/success-dumper-taper.pl: Increase time length 2016-06-28 Jean-Louis Martineau * config/amanda/libs.m4: Set LIBCURL_USE_GNUTLS_NETTLE or LIBCURL_USE_GNUTLS_GCRYPT depending on which crypto library gnutls use * common-src/glib-util.c: Initialize gcrypt only if LIBCURL_USE_GNUTLS_GCRYPT 2016-06-28 Jean-Louis Martineau * device-src/xfer-dest-taper-splitter.c: Fix error path * perl/Amanda/Report.pm: Fix exit_status * perl/Amanda/Report/human.pm: Fix line spacing * server-src/amstatus.pl: Add dump_time * server-src/driver.c: Do not log 'too many taper retry' * server-src/xfer-source-holding.c (cancel_impl): Set eogf_flag on the mem_ring * xfer-src/xfer.c: Add debugging statement * installcheck/Makefile.am (server_tests): Add new test file * installcheck/Makefile.am (catalogs): Add new catalog file * installcheck/Amanda_Report.pl, installcheck/Amanda_Rest_Runs.pl, installcheck/Installcheck/Run.pm, installcheck/amdump.pl, installcheck/amreport.pl: Add and fix test * installcheck/success-dumper-chunker+dumper-chunker-taper-flush.pl installcheck/success-dumper-chunker+taper-flush.pl installcheck/success-dumper-chunker-taper.pl installcheck/success-dumper-taper.pl: New test * installcheck/catalogs/dumper-chunker-taper-success.cat, installcheck/catalogs/dumper-taper-success.cat: New catalog 2016-06-28 Jean-Louis Martineau * perl/Amanda/Report.pm: Fix race by loading the ps_table early 2016-06-27 Jean-Louis Martineau * application-src/amrandom.pl: Improve debugging * common-src/shm-ring.c: Improve debugging 2016-06-27 Jean-Louis Martineau * config/gettext-macros/gettext.m4, config/gettext-macros/po.m4: s/AM_PROG_MKDIR_P/AC_PROG_MKDIR_P/ 2016-06-27 Jean-Louis Martineau * config/amanda/libs.m4 (AMANDA_CHECK_LIBCURL): Check for HMAC_CTX_init or HMAC_CTX_reset * common-src/glib-util.c, common-src/ssl-security.c, device-src/s3-util.c, device-src/s3.c: Fix for openssl 1.1 2016-06-27 Jean-Louis Martineau * perl/Amanda/Rest/Runs.pm (list one): Do not return emtpy string 2016-06-21 Jean-Louis Martineau * perl/Amanda/Rest/Runs.pm (list): Do not set $status 2016-06-21 Jean-Louis Martineau * perl/Amanda/Amdump.pm (message 2000000): use logfile * perl/Amanda/Amdump.pm (message 2000001): use tracefile * perl/Amanda/Amflush.pm (message 2200000): use logfile * perl/Amanda/Amflush.pm (message 2200001): use tracefile * perl/Amanda/Report.pm: Set status to 'running', 'done' or 'aborted' * perl/Amanda/Report/json.pm: Report the status in head->status * perl/Amanda/Rest/Runs.pm: Use tracefile and logfile * perl/Amanda/Rest/Status.pm:use tracefile * installcheck/Amanda_Report.pl: Add pids * installcheck/Amanda_Rest_Runs.pl: Add pids * installcheck/pp-scripts.pl: use tracefile and logfile * installcheck/catalogs/amflush.cat, installcheck/catalogs/fatal.cat, installcheck/catalogs/flush-noorigsize.cat, installcheck/catalogs/flush-origsize.cat, installcheck/catalogs/normal.cat, installcheck/catalogs/plannerfail.cat, installcheck/catalogs/retried-strange.cat, installcheck/catalogs/skipped.cat, installcheck/catalogs/spanned.cat, installcheck/catalogs/strontium.cat, installcheck/catalogs/taperr.cat: Add pid lines 2016-06-17 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm, perl/Amanda/Taper/Scan/oldest.pm: Do not 'use Time::HiRes' 2016-06-17 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Fix perl warning * perl/Amanda/ScanInventory.pm: Use all slots returned by analyze before calling it again * perl/Amanda/Taper/Scan/lexical.pm (analyze), perl/Amanda/Taper/Scan/oldest.pm (analyze): Return an array of slots * installcheck/Amanda_Taper_Scan_lexical.pl: Fix * installcheck/Amanda_Taper_Scan_oldest.pl: Fix * installcheck/Amanda_Taper_Scan_traditional.pl: Fix * installcheck/Installcheck/Changer.pm: Fix 2016-06-17 Jean-Louis Martineau * perl/Amanda/Changer.pm: Call $rv->_valide() * perl/Amanda/Changer/disk.pm, perl/Amanda/Changer/diskflat.pm: Do not call $self->_validate() 2016-06-17 Jean-Louis Martineau * server-src/driver.c (start_a_flush_taper): Use TAPER_STATE_TAPE_STARTED && TAPER_STATE_RESERVATION 2016-06-17 Jean-Louis Martineau * common-src/amflock.c: Check the return status of mkdir 2016-06-17 Jean-Louis Martineau Maintain the C tapelist instead of reloading it after a write * device-src/diskflat-device.c (diskflat_device_seek_file): Return an F_EMPTY header on DEVICE_STATUS_VOLUME_UNLABELED * perl/Amanda/Tapelist.swg (reset_tapelist): New method, (reload): Do not call C_clear_tapelist, (remove_tapelabel): Call C_remove_tapelabel, (add_tapelabel): Call C_add_tapelabel, (write): Do not call C_read_tapelist, * perl/Amanda/Taper/Scan.pm (quit): Do not quit the changer * server-src/tapefile.c (reset_tapelist, add_tapelabel): New function * server-src/tapefile.h (reset_tapelist, add_tapelabel): Add prototype * installcheck/Amanda_Taper_Scan_lexical.pl: Fix * installcheck/Amanda_Taper_Scan_oldest.pl: Fix * installcheck/Amanda_Taper_Scan_traditional.pl: Fix 2016-06-15 Jean-Louis Martineau * installcheck/Amanda_Taper_Scan_lexical.pl, installcheck/Amanda_Taper_Scan_oldest.pl, installcheck/Amanda_Taper_Scan_traditional.pl: Fix 2016-06-15 Jean-Louis Martineau * server-src/tapefile.c: Check result of symlink call and log error 2016-06-15 Jean-Louis Martineau * common-src/amflock.c: Improve debugging 2016-06-15 Jean-Louis Martineau * perl/Amanda/Tapelist.swg: Do not reload the tapelist file if we already have the last state * server-src/tapefile.c: Create the tapelist.last_write symlink * installcheck/Amanda_Tapelist.pl: Fix 2016-06-15 Jean-Louis Martineau * common-src/debug.c (msg_timestamp): Add sub-second time precision to the timestamp 2016-06-15 Jean-Louis Martineau * server-src/driver.c (start_a_flush_taper): Use TAPER_STATE_TAPE_STARTED or TAPER_STATE_RESERVATION 2016-06-15 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Fix perl warning 2016-06-10 Jean-Louis Martineau * server-src/driver.c (start_some_dumps): Do not wait for chunker PORT or SHM-NAME * server-src/driver.c (handle_chunker_result): Handle PORT and SHM-NAME reply 2016-06-09 Jean-Louis Martineau * server-src/find.c (make_dump_hash, dump_hash_exist): Fix for host_hash 2016-06-09 Jean-Louis Martineau * application-src/amsamba.pl: Fix for newer samba version 2016-06-08 Jean-Louis Martineau * common-src/ammessage.c: typo 2016-06-08 Jean-Louis Martineau * perl/Amanda/Changer.pm (label_to_slot): Fix for $r and $t substitution * perl/Amanda/Changer/disk.pm: Do not create all num-slot directories, inventory return only the slot with a directory + runtapes new slots * perl/Amanda/Changer/diskflat.pm: inventory return only the slot with a label + runtapes new slots * installcheck/Amanda_Rest_Storages.pl: Set auto-create-slot 2016-06-08 Jean-Louis Martineau * common-src/amflock.c (common-src/amflock.c): Create the parent directory 2016-06-07 Jean-Louis Martineau * common-src/conffile.c: Allow $t in changerfile and tpchanger from a changer section * man/xml-source/amanda.conf.5.xml: Document it 2016-06-07 Jean-Louis Martineau * perl/Amanda/Changer.pm: Allow $r and $t in autolabel and meta-autolabel * man/xml-source/amanda.conf.5.xml: Document it 2016-06-07 Jean-Louis Martineau * common-src/conffile.c: Allow $o, $c, $r and $t in tapepool * man/xml-source/amanda.conf.5.xml: Document it 2016-06-03 Jean-Louis Martineau * device-src/xfer-dest-taper-splitter.c: Do not cancel twice * perl/Amanda/Taper/Worker.pm: Abort_setup on input_errors * server-src/dumper.c: Improve debugging 2016-06-02 Jean-Louis Martineau * common-src/ammessage.c (set_message): Fix typo in mesage 2800036 2016-06-02 Jean-Louis Martineau * common-src/shm-ring.c (cleanup_shm_ring): New function to remove unused semaphore and shared memory * common-src/shm-ring.h (cleanup_shm_ring): Add prototype * server-src/driver.c: Call cleanup_shm_ring 2016-06-02 Jean-Louis Martineau * server-src/driver.c (handle_chunker_result): Set job on BOGUS 2016-06-02 Jean-Louis Martineau * server-src/amadmin.c: Fix out of bound 2016-06-02 Jean-Louis Martineau * server-src/amstatus.pl: Use 'dsize' if available 2016-06-01 Jean-Louis Martineau * common-src/mem-ring.c, common-src/shm-ring.c: Make sure the ring size is at least twice the block size, otherwise the ring can hang 2016-06-01 Jean-Louis Martineau * common-src/security-util.c, common-src/shm-ring.c, device-src/xfer-dest-taper-splitter.c, server-src/xfer-source-holding.c: Allow to completely fill the ring 2016-05-31 Jean-Louis Martineau * common-src/shm-ring.c (shm_ring_to_security_stream), device-src/xfer-dest-taper-splitter.c (device_thread_wait_for_block), server-src/dumper.c (handle_shm_ring_to_fd_thread): set usable after getting the semaphore * server-src/driver.c (handle_chunker_result): Fix for BOGUS 2016-05-31 Jean-Louis Martineau * common-src/conffile.c: displayunit default ot 'K' (uppercase) * installcheck/Amanda_Rest_Configs.pl: Fix for K uppercase * installcheck/Amanda_Rest_Runs.pl: Fix for K uppercase * xfer-src/xfer-test.c: Call config_init(0, NULL) * installcheck/catalogs/*.cat: Fix for K uppercase 2016-05-31 Jean-Louis Martineau * perl/Amanda/Changer.pm (make_new_tape_label): Can take meta from $self * perl/Amanda/Changer/diskflat.pm: Use meta from state * installcheck/Amanda_Changer_diskflat.pl: More meta check 2016-05-27 Jean-Louis Martineau * common-src/conffile.c: Check meta-autolabel, autolabel, labelstr and tapepool do not conatisna space 2016-05-26 Jean-Louis Martineau * server-src/amadmin.c (import_db): Fix version parsing * server-src/amadmin.c: Fix for level > 9 2016-05-25 Jean-Louis Martineau * xfer-src/element-glue.c: #include "conffile.h" 2016-05-25 Jean-Louis Martineau * xfer-src/element-glue.c (do_directtcp_accept): Use dtimeout for the timeout 2016-05-24 Jean-Louis Martineau * server-src/driver.c: Fix fro taper failure after SHM-NAME received 2016-05-20 Jean-Louis Martineau * common-src/stream.h (STREAM_BUFSIZE): Set to NETWORK_BLOCK_BYTES * 4 2016-05-20 Jean-Louis Martineau * common-src/security-util.c (tcpm_recv_token): Fix return value 2016-05-19 Jean-Louis Martineau * common-src/shm-ring.c (shm_ring_sem_wait): Return -1 if the shm-ring is cancelled * device-src/xfer-dest-taper-splitter.c: s/!!/!/ 2016-05-19 Jean-Louis Martineau * common-src/security-util.c: Improve error message * common-src/shm-ring.c (shm_ring_sem_wait): Faile only if the process do not exists (ESRCH) * device-src/xfer-dest-taper-splitter.c: Improve debugging * perl/Amanda/Taper/Scribe.pm: Set started_writing only when we wrote a part * server-src/dumper.c: Improve debugging * xfer-src/element-glue.c: Improve debugging * xfer-src/xfer.c: Improve debugging 2016-05-19 Jean-Louis Martineau * server-src/amtrmlog.c: Remove bogus g_free 2016-05-19 Jean-Louis Martineau * common-src/file.c (debug_pgets): Untaint the returned string * server-src/amtrmlog.c: Fix coverity warning 2016-05-18 Jean-Louis Martineau * installcheck/pp-scripts.pl: Use amrandom to get consistent size 2016-05-18 Jean-Louis Martineau * server-src/amtrmlog.c: Use free_dump_hash() * server-src/find.c (free_dump_hash): Put in comment because infailon some machine 2016-05-18 Jean-Louis Martineau * server-src/amrmtape.pl: Can remove multiple labels * man/xml-source/amrmtape.8.xml: Document new feature 2016-05-18 Jean-Louis Martineau * server-src/dumper.c: Fix dtimeout when using shm-ring (local auth) 2016-05-17 Jean-Louis Martineau * common-src/file.c (debug_pgets): New function to read a complete line from a FILE* * common-src/file.h (debug_pgets, pgets): Add prototypes * common-src/amxml.c: Undo previous patch, use pgets instead of agets * application-src/amstar.c, client-src/client_util.c, client-src/selfcheck.c, client-src/sendbackup.c, client-src/senddiscover.c, client-src/sendsize.c, common-src/amutil.c, common-src/krb5-security.c, common-src/security-util.c, recover-src/extract_list.c, server-src/amcheck.c, server-src/amindexd.c, server-src/dumper.c: Use pgets instead of agets to read many files * installcheck/amdump.pl: Add check for '#' in dumptype property 2016-05-16 Jean-Louis Martineau * common-src/amxml.c (amxml_format_tag): The '#' character require raw format 2016-05-16 Jean-Louis Martineau * perl/Amanda/Tapelist.swg: Keep hash by label and barcode for faster lookup * installcheck/Amanda_Tapelist.pl: Fix for new hash 2016-05-16 Jean-Louis Martineau * server-src/amtrmidx.c: Fix 2016-05-16 Jean-Louis Martineau * server-src/dumper.c (stop_dump): Call security_stream_read_cancel 2016-05-16 Jean-Louis Martineau * server-src/find.c: Find the find result in a hash * server-src/find.h (hash_find_log, make_dump_hash, free_dump_hash, dump_hash_exist): Add prototypes * server-src/amtrmidx.c, server-src/amtrmlog.c: Use the hash 2016-05-16 Jean-Louis Martineau * server-src/driverio.h (chunker_t, wtaper_t): sendresult is a gboolean * server-src/driver.c: Fix sending the result to taper twice 2016-05-12 Jean-Louis Martineau * man/xml-source/amanda-scripts.7.xml: Add notes on how to abort a backup with exit status != 0 2016-05-12 Jean-Louis Martineau * installcheck/pp-scripts.pl: Use $dbgdir 2016-05-12 Jean-Louis Martineau * installcheck/Installcheck/Rest.pm (cleanup_for_amdump): Clean $body->[0]{report}{head}->{hostname} * installcheck/pp-scripts.pl: hostname is undef 2016-05-11 Jean-Louis Martineau * application-src/Makefile.am (applicationexec_SCRIPTS_SHELL): Add script-fail * application-src/script-fail.sh: New script that always fail (for testing) * installcheck/Installcheck/Rest.pm (cleanup_for_amdump): New function to cleanup result for a report * installcheck/pp-scripts.pl: Check failing scripts 2016-05-11 Jean-Louis Martineau * server-src/holding.c: Accept level up to DUMP_LEVELS 2016-05-11 Jean-Louis Martineau * client-src/sendbackup.c: Fix delay in waiting for application 2016-05-11 Jean-Louis Martineau * client-src/client_util.c: Improve parsing of estimate scripts * client-src/sendsize.c: Fail estimate if script fail * server-src/planner.c: continue parsing after ERROR line 2016-05-10 Jean-Louis Martineau * installcheck/amgtar.pl: Fix path 2016-05-10 Jean-Louis Martineau * installcheck/amgtar.pl: Fix path * installcheck/amstar.pl: Add a STAR-TARDUMP property 2016-05-10 Jean-Louis Martineau * application-src/ambsdtar.c, application-src/amgtar.c application-src/amstar.c: Define a AM_ERROR_RE * client-src/client_util.c (build_re_table): Keep DMP_ERROR * config/amanda/userid.m4: AC_SUBST(SINGLE_USERID) * perl/Amanda/Constants.pm.in.src: Add $SINGLE_USERID * installcheck/Installcheck/Application.pm: Parse negative size * installcheck/ambsdtar.pl, installcheck/amgtar.pl, installcheck/amstar.pl: Resultdifer if $SINGLE_USERID is set 2016-05-09 Jean-Louis Martineau * application-src/ambsdtar.c: selfcheck output is JSON, improve error reporting * application-src/amgtar.c: Improve error reporting * application-src/amstar.c: selfcheck output is JSON, improve error reporting * client-src/client_util.c: Fix error reporting * client-src/sendbackup.c: Fix error reporting * common-src/ammessage.c: Add messages from amstar and ambsdtar * installcheck/Installcheck/Application.pm: Fix to get error * installcheck/Makefile.am (client_tests): Add amstar * installcheck/ambsdtar.pl: Add new checks * installcheck/amgtar.pl: Add new checks * installcheck/amstar.pl: New file to check amstar behaviour 2016-05-05 Jean-Louis Martineau * perl/Amanda/Extract.pm (BSU): Fix for non-application * perl/Amanda/FetchDump.pm: Add message 3300005 * perl/Amanda/FetchDump/Application.pm: Return a 3300005 message if it don't know how to extract the dump * perl/Amanda/Restore.pm: Fix * server-src/amfetchdump.pl: Check -O and --directory are not different 2016-05-05 Jean-Louis Martineau * device-src/s3.c: Fix AWS4 auth-string 2016-05-05 Jean-Louis Martineau * perl/Amanda/Status.pm: Set status of failed dle to inew status TERMINATED_* 2016-05-05 Jean-Louis Martineau * perl/Amanda/CheckDump.pm: Use Xfer::Dest::Null for destination when amanda don't know how to validate the dump 2016-05-04 Jean-Louis Martineau * perl/Amanda/Tapelist.swg: Change RETENTION_NO string to 'retention-no' * server-src/amtape.pl (inventory): Print the retention even if it is RETENTION_NO * installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Storages.pl: Fix for 'retention-no' string 2016-05-04 Dustin J. Mitchell * man/xml-source/amanda-auth.7.xml: Improve doc 2016-05-04 Jean-Louis Martineau * common-src/security-util.c: Break after the first callback 2016-05-04 Jean-Louis Martineau * server-src/tapefile.c: Use g_hash_table_destroy 2016-05-03 Jean-Louis Martineau * installcheck/Amanda_Xfer.pl: Sort the crcs 2016-05-03 Jean-Louis Martineau * client-src/client_util.c (run_client_scripts): return the exit status of the scripts * client-src/client_util.h (run_client_scripts): Change return type to int * client-src/sendbackup.c: Do not run the application if a PRE-DLE-BACKUP script failed * server-src/dumper.c: Fix hang 2016-05-03 Jean-Louis Martineau * installcheck/Amanda_Xfer.pl: 45 checks require the server 2016-05-02 Jean-Louis Martineau * amandad-src/amandad.c, server-src/amcheck.c, server-src/driver.c, server-src/dumper.c, server-src/planner.c, common-src/amservice.c: Call glib_init() 2016-05-02 Jean-Louis Martineau * common-src/security-util.h (sec_stream): Add event_id * common-src/security-util.c: Use event_id from sec_stream 2016-05-02 Jean-Louis Martineau * device-src/xfer-dest-taper-cacher.c, xfer-src/dest-buffer.c, xfer-src/dest-null.c, xfer-src/filter-crc.c, xfer-src/filter-xor.c (push_buffer_static_impl): The end is determined by either a NULL buffer or a len of 0 * xfer-src/element-glue.c (pull_and_push_static): Call xfer_element_pull_buffer_static with a NULL buffer 2016-05-02 Jean-Louis Martineau * client-src/sendbackup.c: Remove duplicate g_thread_join 2016-05-02 Jean-Louis Martineau * config/amanda/amanda_configure.m4: AC_SEARCH_LIBS([shm_open], [rt]) 2016-05-02 Jean-Louis Martineau * xfer-src/source-shm-ring.c: Add the file 2016-05-02 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix for new shm-ring in protocol 2016-05-02 Jean-Louis Martineau client use shm-ring between sendbackup and amandad shm-ring is use between client and server if using the local auth * amandad-src/amandad.c: handle data stream in a shm-ring * amandad-src/amandad.h (g_option_t): Add data_shm_control_name * amandad-src/amandad_util.c (parse_g_options): Parse the shm-ring name * client-src/client_util.c: Remove debugging statement * client-src/sendbackup-dump.c: Compute crc, send data stream to a shm-ring * client-src/sendbackup-gnutar.c: Compute crc, send data stream to a shm-ring * client-src/sendbackup.c: send data stream to a shm-ring * client-src/sendbackup.h (handle_crc_thread, handle_crc_to_shm_ring_thread): Add prototypes * common-src/amfeatures.c: add fe_sendbackup_req_options_data_shm_control_name * common-src/amfeatures.h: add fe_sendbackup_req_options_data_shm_control_name * server-src/dumper.c: Can access data stream from a shm-ring 2016-05-02 Jean-Louis Martineau server use shm-ring beteeen dumper and chunker/taper Add new protocol between driver and dumper/chunker/taper * server-src/server_util.c (cmdstr): Add "SHM-WRITE", "SHM-DUMP", "SHM-NAME" * server-src/server_util.h (cmd_t): Add SHM_WRITE, SHM_DUMP, SHM_NAME * server-src/driver.c: Handle new protocol with dumper, chunker and taper * server-src/driverio.c: Send new command * server-src/dumper.c: Accept SHM_DUMP command * server-src/driverio.h (job_s):Add do_port_write * perl/Amanda/Chunker/Controller.pm: Accept SHM_WRITE command * perl/Amanda/Chunker/Protocol.pm (SHM_WRITE): Define it * perl/Amanda/Taper/Controller.pm: Accept SHM_WRITE command * perl/Amanda/Taper/Protocol.pm (SHM_WRITE): Define it * perl/Amanda/Taper/Scribe.pm: Various fix * perl/Amanda/Taper/Worker.pm: Handle SHM_WRITE * perl/Amanda/Xfer.swg: Add Amanda::Xfer::Source::ShmRing * installcheck/tape_action.pl: use amrandom and lexical taperscan 2016-05-02 Jean-Louis Martineau Add a security_stream_read_to_shm_ring function, it require many change in the internal structure of the security layer * common-src/bsd-security.c (bsd_stream_read_to_shm_ring_callback, bsd_stream_read_to_shm_ring): New function to implement security_stream_read_to_shm_ring * common-src/bsdtcp-security.c: Use tcpm_stream_read_to_shm_ring * common-src/bsdudp-security.c: Use tcpm_stream_read_to_shm_ring * common-src/krb5-security.c: Use tcpm_stream_read_to_shm_ring * common-src/local-security.c: Use tcpm_stream_read_to_shm_ring * common-src/rsh-security.c: Use tcpm_stream_read_to_shm_ring * common-src/ssh-security.c: Use tcpm_stream_read_to_shm_ring * common-src/ssl-security.c: Use tcpm_stream_read_to_shm_ring * common-src/security-util.c (tcpm_stream_read_to_shm_ring) Add fucntion * common-src/security-util.h (tcpm_stream_read_to_shm_ring) Add prototype * common-src/security.h (security_driver): Add stream_read_to_shm_ring 2016-05-02 Jean-Louis Martineau * device-src/xfer-dest-taper-cacher.c: Add the new push_buffer_static xfer mechanism 2016-05-02 Jean-Louis Martineau * device-src/xfer-dest-taper-splitter.c: Use the new mem-ring internally, Can use the new mem_ring and shm_ring as input * installcheck/Amanda_Xfer.pl: Fix check 2016-05-02 Jean-Louis Martineau * server-src/xfer-dest-holding.c: Use the new mem-ring internally, Can use the new mem_ring and shm_ring as input 2016-05-02 Jean-Louis Martineau * server-src/xfer-source-holding.c: Can use the new mem_ring and pull_buffer_static xfer mechanism 2016-05-02 Jean-Louis Martineau Add XFER_MECH_PULL_BUFFER_STATIC, XFER_MECH_PUSH_BUFFER_STATIC, XFER_MECH_MEM_RING and XFER_MECH_SHM_RING as new xfer mechanism * xfer-src/Makefile.am (libamxfer_la_SOURCES): Add source-shm-ring.c * xfer-src/amxfer.h: include "mem-ring.h" and "shm-ring.h" * xfer-src/dest-buffer.c: Add push_buffer_static_impl * xfer-src/dest-null.c: Add push_buffer_static_impl * xfer-src/element-glue.c * xfer-src/filter-crc.c: Add pull_buffer_static_impl and push_buffer_static_impl * xfer-src/filter-xor.c: Add pull_buffer_static_impl and push_buffer_static_impl * xfer-src/source-directtcp-connect.c: typo * xfer-src/source-directtcp-listen.c: typo * xfer-src/source-fd.c: typo * xfer-src/source-file.c: typo * xfer-src/source-pattern.c: Add pull_buffer_static_impl * xfer-src/source-random.c: Add pull_buffer_static_impl * xfer-src/source-shm-ring.c: New xfer source * xfer-src/xfer-element.c: Add various helper function * xfer-src/xfer-element.h (xfer_mech): Add the new xfer mechanism definition * xfer-src/xfer.c (xfer_mech_name): Print the new xfer name 2016-05-02 Jean-Louis Martineau Add the number of memory allocation by block in the xfer cost metric * xfer-src/xfer-element.h (XFER_NALLOC): New macro * xfer-src/xfer.c (PAIR_COST) Compute the new cost * device-src/xfer-dest-device.c, device-src/xfer-dest-taper-cacher.c, device-src/xfer-dest-taper-directtcp.c, device-src/xfer-dest-taper-splitter.c, device-src/xfer-source-device.c, device-src/xfer-source-recovery.c, server-src/xfer-dest-holding.c, server-src/xfer-source-holding.c, xfer-src/dest-application.c, xfer-src/dest-buffer.c, xfer-src/dest-directtcp-connect.c, xfer-src/dest-directtcp-listen.c, xfer-src/dest-fd.c, xfer-src/dest-null.c, xfer-src/element-glue.c, xfer-src/filter-crc.c, xfer-src/filter-process.c, xfer-src/filter-xor.c, xfer-src/source-directtcp-connect.c, xfer-src/source-directtcp-listen.c, xfer-src/source-fd.c, xfer-src/source-file.c, xfer-src/source-pattern.c, xfer-src/source-random.c, xfer-src/xfer-test.c: Add the new cost value 2016-05-02 Jean-Louis Martineau Add a shared memory ring * common-src/Makefile.am (libamanda_la_SOURCES): Add shm-ring.c * common-src/security.h: include "shm-ring.h" * common-src/shm-ring.c: New file * common-src/shm-ring.h: New header 2016-05-02 Jean-Louis Martineau Add a memory ring * common-src/Makefile.am (libamanda_la_SOURCES): Add mem-ring.c * common-src/mem-ring.c: New file * common-src/mem-ring.h: New header 2016-04-29 Jean-Louis Martineau * server-src/server_util.c (putresult): Print the complete line in the debug file 2016-04-29 Jean-Louis Martineau * amar-src/amarchiver.c: s/error/gerror/ 2016-04-29 Jean-Louis Martineau * common-src/ammessage.c: typo * device-src/s3-util.c: Fix buffer overflow 2016-04-29 Jean-Louis Martineau * perl/Amanda/Cmdfile.swg: Remove debugging statement 2016-04-26 Jean-Louis Martineau * client-src/sendbackup.c: Call application_api_info_tapeheader before closing statefd 2016-04-25 Jean-Louis Martineau * installcheck/tape_action.pl: Fix check 2016-04-25 Jean-Louis Martineau * common-src/file.c (areads_dataready): Check fd < 0 2016-04-25 Jean-Louis Martineau * recover-src/extract_list.c: Remove debugging statement 2016-04-25 Jean-Louis Martineau * common-src/file.c (areads_dataready): Also use select to find if something can be read * server-src/server_util.c (getcmd): Use areads instead of agets * server-src/server_util.c (get_pending_cmd): Call areads_dataready 2016-04-21 Jean-Louis Martineau * application-src/amrandom.pl: A new application that generate a random backup, useful for testing * application-src/Makefile.am (SCRIPTS_PERL): Add amrandom 2016-04-19 Jean-Louis Martineau * installcheck/pp-scripts.pl: Print more info on failure 2016-04-19 Jean-Louis Martineau * installcheck/tape_action.pl: Open a debug file 2016-04-19 Jean-Louis Martineau * server-src/diskfile.c (get_disklist): New function * server-src/diskfile.h (get_disklist): prototype 2016-04-19 Jean-Louis Martineau * server-src/tapefile.c (compute_retention): Fix if a dle is not in the disklist 2016-04-19 Jean-Louis Martineau * server-src/amstatus.pl: typo 2016-04-19 Jean-Louis Martineau * installcheck/Amanda_ClientService.pl: Fix for new DATA_FD_OFFSET value 2016-04-19 Jean-Louis Martineau * common-src/amanda.h, perl/Amanda/Constants.pm.in.src:Increase DATA_FD_OFFSET to 150, it allow more paralled backup with bsd or bsdudp auth 2016-04-19 Jean-Louis Martineau * application-src/amgtar.c: Compare unescaped filename with the DAR state file 2016-04-15 Jean-Louis Martineau * common-src/security-util.c (sec_tcp_conn_read_callback): do not free rc 2016-04-15 Jean-Louis Martineau * installcheck/tape_action.pl: Fix test 2016-04-14 Jean-Louis Martineau * server-src/planner.c (promote_highest_priority_incremental): Was not promote the correct ep (possible infinite loop) 2016-04-13 Jean-Louis Martineau * common-src/amutil.c (split_quoted_strings_for_amstatus): New function to parse a line for Amanda::Status * common-src/amutil.h (split_quoted_strings_for_amstatus): Add protoype * perl/Amanda/Util.swg:Swig split_quoted_strings_for_amstatus * perl/Amanda/Status.pm: Use split_quoted_strings_for_amstatus 2016-04-12 Jean-Louis Martineau * packaging/deb/amanda-backup-client.install, packaging/deb/amanda-backup-server.install: Add etc/amanda/* 2016-04-12 Jean-Louis Martineau * server-src/driver.c (tape_action): Fix for parallel taper 2016-04-12 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix worker status 2016-04-12 Jean-Louis Martineau * Allow multiple connections to a client with different auth 2016-04-11 Jean-Louis Martineau * installcheck/Makefile.am: Typo 2016-04-11 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Remove multiple output line * server-src/driver.c: Fix after a TRY-AGAIN * installcheck/Makefile.am: Add catalogs/dumper-tryagain.cat * installcheck/amreport.pl: Add check for dumper-tryagain.cat * installcheck/catalogs/tapers.cat: Fix for new output * installcheck/catalogs/dumper-tryagain.cat: New test case 2016-04-08 Jean-Louis Martineau * common-src/amcrc32chw.c: Add fall through comment 2016-04-08 Jean-Louis Martineau * common-src/event.c (fire): Allow for NULL callback 2016-04-08 Jean-Louis Martineau * device-src/tape-device.c: improve error message on write fail 2016-04-07 Jean-Louis Martineau * server-src/planner.c: Remove for startq 2016-03-31 Jean-Louis Martineau * application-src/ambsdtar.c: use bsdtar_realpath 2016-03-31 Jean-Louis Martineau * config/amanda/syshacks.m4: accept *-apple-darwin* * common-src/conffile.c, common-src/conffile.h, common-src/match.c, common-src/match.h, perl/Amanda/Config.swg, perl/Amanda/Util.swg, server-src/amadmin.c, server-src/amcheck.c, server-src/planner.c, server-src/tapefile.c: s/labeltsr_t/labelstr_s/ and s/policy_t/policy_s/g because they are defined on OSX 2016-03-30 Jean-Louis Martineau * recover-src/extract_list.c: Use property from header instead of from disklist 2016-03-28 Jean-Louis Martineau * installcheck/Amanda_Xfer.pl: Validate CRC and part size 2016-03-22 Jean-Louis Martineau * NEWS: Add new amadmin command and amtape inventory result 2016-03-22 Jean-Louis Martineau * perl/Amanda/Rest/Labels.pm: Add the RentetionType in result * perl/Amanda/Rest/Storages.pm: Add the RentetionType in result * installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Storages.pl: Fix for new result 2016-03-22 Jean-Louis Martineau * server-src/amtape.pl: Add the RetentionType in the inventory result 2016-03-22 Jean-Louis Martineau * server-src/amadmin.c: Add retention command * server-src/amadmin_perl.pl: Implement retention command * man/xml-source/amadmin.8.xml: Document retention command 2016-03-22 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: Typo 2016-03-22 Jean-Louis Martineau * server-src/tapefile.h (tape_t): Add the RetentionType * server-src/tapefile.c: Comupte the RetentionType * perl/Amanda/Tapelist.swg: Swig the RetentionType 2016-03-21 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm (scribe_notif_new_tape): Check for no error 2016-03-21 Jean-Louis Martineau * device-src/vfs-device.c: Return some error instead of just logging a warning 2016-03-18 Jean-Louis Martineau * xfer-src/element-glue.c (do_directtcp_accept): Increase timeout to 840 2016-03-18 Jean-Louis Martineau Add RESTORE command in the cmdfile * man/xml-source/amfetchdump.8.xml: Document new --reserve-tapes and --release-tapes options * perl/Amanda/Cmdfile.swg: Add CMD_RESTORE * perl/Amanda/DB/Catalog.pm: Get the pool fromthe find result * perl/Amanda/FetchDump.pm: Add release-tapes and reserve-tapes * perl/Amanda/Recovery/Planner.pm: Add the pool * perl/Amanda/Restore.pm: Handle release-tapes and reserve-tapes * server-src/amfetchdump.pl: New --release-tapes and --reserve-tapes options * server-src/cmdfile.c: Add CMD_RESTORE * server-src/cmdfile.h: Add CMD_RESTORE * server-src/find.h (find_result_t): Add pool in the struct * server-src/tapefile.c: Compute retention for CMD_RESTORE command 2016-03-18 Jean-Louis Martineau Add "POOL:pool" to many taper log lines * perl/Amanda/DB/Catalog.pm: Parse POOL:pool * perl/Amanda/Logfile.swg: Add pool * perl/Amanda/Report.pm: Parse POOL:pool * perl/Amanda/Taper/Worker.pm: Add "POOL:pool" to many taper log lines * server-src/find.c: Parse POOL:pool * installcheck/Amanda_Report.pl, installcheck/Amanda_Rest_Dumps.pl, installcheck/Installcheck/Catalogs.pm, installcheck/taper.pl: Fix 2016-03-18 Jean-Louis Martineau * perl/Amanda/Changer.pm (Reservation::set_device_error): New method * perl/Amanda/Changer/aggregate.pm (set_device_error): New method * perl/Amanda/Changer/multi.pm (set_device_error): New method * perl/Amanda/Changer/robot.pm (set_device_error): New method * perl/Amanda/ScanInventory.pm: Use a global seen hash * perl/Amanda/Taper/Scan/lexical.pm, perl/Amanda/Taper/Scan/oldest.pm: Samll fix * perl/Amanda/Taper/Scribe.pm: Call $reservation->set_device_error * installcheck/Amanda_Taper_Scan_lexical.pl, installcheck/Amanda_Taper_Scan_oldest.pl, installcheck/taper.pl: Fix test 2016-03-17 Jean-Louis Martineau * installcheck/Makefile.am (catalogs): Add catalogs/tapers.cat and catalogs/tapers1.cat 2016-03-14 Jean-Louis Martineau * common-src/ammessage.c: Fix parsing of NULL, true or false value 2016-03-14 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Fix compression for partial result * installcheck/amreport.pl: Check partial result * installcheck/catalogs/tapers1.cat, installcheck/catalogs/tapers.cat: New catalogs to check taper partial result * installcheck/catalogs/taperr.cat: Typo 2016-03-01 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: A no-reuse is not a new labelled tape * installcheck/Amanda_Taper_Scan_lexical.pl, installcheck/Amanda_Taper_Scan_oldest.pl, installcheck/Amanda_Taper_Scan_traditional.pl: Add check 2016-02-29 Jean-Louis Martineau * installcheck/Amanda_Rest_Runs.pl: Fix for Report/json.pm fix 2016-02-29 Jean-Louis Martineau * server-src/driver.c: fix for last dle span two tapes * device-src/vfs-device.c: Add a SLOW-WRITE property (for testing) * device-src/vfs-device.h: Add a SLOW-WRITE property (for testing) * installcheck/Installcheck/Config.pm (rm_param): New fucntion * installcheck/Installcheck/Run.pm (clean_taperoot: New function * installcheck/Makefile.am: Add tape_action * installcheck/tape_action.pl: New installcheck script to check the tape_action function 2016-02-29 Jean-Louis Martineau Patch by Micheal Burk * perl/Amanda/Report/json.pm: fixup 2016-02-25 Jean-Louis Martineau * all files: Update copyright notice 2016-02-24 Jean-Louis Martineau * config/libtool.m4: Fix for x86_64 * contrib/libtool-for-x86_64.diff: Copy of the patch 2016-02-22 Jean-Louis Martineau * installcheck/amstatus.pl: Test number printing * installcheck/Makefile.am: Add catalogs/number.cat * installcheck/catalogs/number.cat: New catalog file for testing number 2016-02-22 Jean-Louis Martineau * device-src/s3-device.c: Give and error if MAX-RECV-SPEED or MAX-SEND-SPEED is below 5120 * man/xml-source/amanda-devices.7.xml: Document the minimum value for MAX-RECV-SPEED and MAX-SEND-SPEED 2016-02-22 Jean-Louis Martineau * man/xml-source/amanda-security.conf.5.xml: Document permissions 2016-02-17 Jean-Louis Martineau * amandad-src/amandad.c: Add SERVICE_AMBACKUPD * client-src/Makefile.am: Add ambackup * client-src/ambackup.pl: New client program to start a backup * man/Makefile.am: Add ambackup.8 * man/xml-source/ambackup.8.xml: New man page * perl/Amanda/Logfile.swg: Add P_AMBACKUPD * perl/Amanda/Message.pm: Add message id for ambackupd * perl/Amanda/Report.pm: Handle ambackupd run * server-src/Makefile.am: Add ambackupd * server-src/ambackupd.pl: New server service to allow ambackup to run a backup * server-src/amreport.pl: Handle ambackupd run * server-src/logfile.c: Add ambackupd * server-src/logfile.h: Add P_AMBACKUPD 2016-02-17 Jean-Louis Martineau * perl/Amanda/Curinfo/Info.pm (update_dumper): New function 2016-02-17 Jean-Louis Martineau * amandad-src/amandad.c: Send P_NAK with ERRIR message on some error 2016-02-17 Jean-Louis Martineau * perl/Amanda/Holding.pm (filetmp_chunks): Renamed from file_tmp_chunks 2016-02-17 Jean-Louis Martineau * perl/Amanda/Chunker/Scribe.pm: Fix pod 2016-02-17 Jean-Louis Martineau * server-src/amindexd.c: Check recovery-limit 2016-02-17 Jean-Louis Martineau * recover-src/amrecover.c (server_warning): New function * recover-src/amrecover.h (server_warning): Add prototype * recover-src/set_commands.c: Use server_warning() 2016-02-17 Jean-Louis Martineau * client-src/sendbackup.c: Fix * client-src/selfcheck.c: Fix 2016-02-17 Jean-Louis Martineau * common-src/ssl-security.c: s/remote_port/client_port/ 2016-02-17 Jean-Louis Martineau * client-src/amdump_client.pl: Remove printing the config * installcheck/amdump_client.pl: Fix 2016-02-17 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Improve output * installcheck/catalogs/bigestimate.cat, installcheck/catalogs/doublefailure.cat, installcheck/catalogs/longstrange.cat, installcheck/catalogs/resultsmissing.cat, installcheck/catalogs/retried-nofinish.cat, installcheck/catalogs/retried.cat, installcheck/catalogs/shortstrange.cat, installcheck/catalogs/skipped.cat: Fix for report change 2016-02-17 Jean-Louis Martineau * xfer-src/source-file.c: Cleanup * xfer-src/xmsg.h: Fix comment 2016-02-17 Jean-Louis Martineau * common-src/security-util.c: Fix hang if receive partial packet from network 2016-02-16 Jean-Louis Martineau * perl/Amanda/Status.pm, perl/Amanda/Taper/Scribe.pm, server-src/driver.c: s/writting/writing/g 2016-02-11 Jean-Louis Martineau * client-src/sendbackup-gnutar.c, client-src/sendsize.c: Init mlist to NULL 2016-02-11 Jean-Louis Martineau * config/amanda/amanda_configure.m4 (AM_INIT_AUTOMAKE): Add subdir-objects * amandad-src/Makefile.am, amar-src/Makefile.am, application-src/Makefile.am, client-src/Makefile.am, common-src/Makefile.am, device-src/Makefile.am, installcheck/Makefile.am, ndmp-src/Makefile.am, oldrecover-src/Makefile.am, perl/Makefile.am, perl/amglue/Makefile.am, po/Makefile.am, recover-src/Makefile.am, server-src/Makefile.am, xfer-src/Makefile.am: Cleanup s/INCLUDES/AM_CPPFLAGS/ s/mkdir_p/MKDIR_P/ 2016-02-11 Jean-Louis Martineau * config/ar-lib: Add file 2016-02-11 Jean-Louis Martineau * common-src/ammessage.h (messagelist_t): New typedef for a GSList of messages * common-src/ammessage.c: Add messages * client-src/client_util.c (build_exclude, build_include): return a messagelist_t instead of printing error * client-src/client_util.c (build_exclude, build_include): Change prototype * application-src/ambsdtar.c, application-src/amgtar.c, client-src/selfcheck.c, client-src/sendbackup-gnutar.c, client-src/sendsize.c: Print messages from build_exclude and build_include * perl/Amanda/CheckDump.pm (); return undef on success 2016-02-11 Jean-Louis Martineau * gnulib/Makefile.am: Remove regenerate.swp 2016-02-11 Jean-Louis Martineau * config/gnulib/*, config/snipset/*, gnulib/*: Upgrade to gnulib cd9ecca8812571fc443688d11148f2768ededfa4 2016-02-11 Jean-Louis Martineau * application-src/amgtar.c, server-src/amindexd.c: Check result of fopen() 2016-02-11 Jean-Louis Martineau * configure.ac: Renamed from configure.in * configure.in: Renamed to configure.ac * config/amanda/i18n.m4, config/amanda/progs.m4, config/compile, config/config.guess, config/macro-archive/ac_prog_swig.m4, packaging/README, packaging/rpm/buildpkg: s/configure.in/configure.ac/ 2016-02-09 Jean-Louis Martineau * installcheck/amgetconf.pl: s/unknown/Unknown/ 2016-02-09 Jean-Louis Martineau * installcheck/amgetconf.pl: Test the result of 'amgetconf --platform' and 'amgetconf --distro' are not "unknown" 2016-02-09 Jean-Louis Martineau * common-src/amutil.c (get_platform_and_distro, get_platform, get_distro): New functions toreturn platform and distro * common-src/amutil.h (get_platform_and_distro, get_platform, get_distro): Add prototypes * client-src/selfcheck.c: Use get_platform_and_distro() * common-src/amgetconf.pl: Add --platform and --distro arguments * man/xml-source/amgetconf.8.xml: Document --platform and --distro * perl/Amanda/Util.swg: Swig get_platform and get_distro * NEWS: Add new --platform and --distro argument of amgetconf 2016-02-08 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix for taper FAILED * perl/Amanda/Taper/Worker.pm: Wait to get the device before checking if it support the requested data_path * server-src/driver.c: Fix reporting * server-src/driver.c: Use any idle wtaper * server-src/dumper.c: Do not send the header to the taper until some data is received 2016-02-05 Jean-Louis Martineau * config/libtool.m4, config/ltmain.sh, config/ltoptions.m4, config/ltsugar.m4, config/ltversion.m4, config/lt~obsolete.m4: Upgrade lintool to 2.4.6 2016-02-05 Jean-Louis Martineau * application-src/ambsdtar.c, application-src/amgtar.c, application-src/amstar.c (*_backup): Send message to mesgstream 2016-02-04 Jean-Louis Martineau * common-src/Makefile.am: s/CFLAGS/AM_CFLAGS/ 2016-02-04 Jean-Louis Martineau * man/xml-source/amfetchdump.8.xml: Add --run-client-scripts 2016-02-04 Jean-Louis Martineau * config/amanda/defaults.m4: Add --with-security-file configure option * common-src/ammessage.c: Improve messages * common-src/security-file.c: Use DEFAULT_SECURITY_FILE, check the path is secure * common-src/security-file.h (check_security_file_permission): Remove * NEWS, ReleaseNotes: Add --with-security-file configure option 2016-02-02 Jean-Louis Martineau * client-src/client_util.c: Do not use gnuish of realpath 2016-02-02 Jean-Louis Martineau * config/amanda/dumpers.m4: Use AM_READLINK * config/amanda/progs.m4: Verify that $READLINK is what we want and set AM_READLINK 2016-02-02 Jean-Louis Martineau * server-src/amstatus.pl: Fix for 32 bits perl 2016-02-02 Jean-Louis Martineau * common-src/ammessage.c: Fix for errno in message * installcheck/Amanda_Rest_Services_senddiscover_amgtar.pl, installcheck/Amanda_Rest_Amcheck.pl: Fix * man/xml-source/amssl.8.xml: Improve documentation 2016-02-01 Jean-Louis Martineau * common-src/amutil.c: Fix for automatic test 2016-02-01 Jean-Louis Martineau * client-src/client_util.c, common-src/amutil.c, xfer-src/xfer-test.c: Fix bug found by coverity 2016-02-01 Jean-Louis Martineau * common-src/security-file.c: Fix small memory leak 2016-01-29 Jean-Louis Martineau * config/amanda/amanda_configure.m4: Invoke AMANDA_PROG_READLINK * config/amanda/dumpers.m4: use READLINK if REALPATH is not available * config/amanda/progs.m4: Find readlink 2016-01-29 Jean-Louis Martineau * common-src/make_security_file.c: Print '=' 2016-01-29 Jean-Louis Martineau * Improve reporting of security message 2016-01-28 Jean-Louis Martineau * NEWS: Change in 3.3.9 * ReleaseNotes: Change in 3.3.9 2016-01-27 Jean-Louis Martineau * packaging/rpm/amanda.spec.src: Use 'mkdirp -p' 2016-01-27 Jean-Louis Martineau * common-src/Makefile.am (EXTRA_DIST): Remove * recover-src/Makefile.am (EXTRA_DIST): Add uscan.c 2016-01-26 Jean-Louis Martineau * common-src/security-file.c: s/g_strcmp0/strcmp/ * man/xml-source/amanda.8.xml: Add amanda-security.conf 2016-01-25 Jean-Louis Martineau * common-src/Makefile.am (EXTRA_DIST): Add make_security_file.c * common-src/make_security_file.c: Typo 2016-01-25 Jean-Louis Martineau * common-src/security-file.c: Fix security * installcheck/ambsdtar.pl, installcheck/amgtar.pl: Fix for non-root 2016-01-25 Jean-Louis Martineau * client-src/client_util.c: Check for SINGLE_USERID * common-src/Makefile.am: Install example amanda-security.conf in CONFIG_DIR 2016-01-25 Jean-Louis Martineau * Add a /etc/amanda-security.conf file 2016-01-22 Jean-Louis Martineau * application-src/ambsdtar.c, application-src/amgtar.c, application-src/amstar.c: Filter option from COMMAND-OPTIONS * common-src/ammessage.c: Add message 2016-01-22 Jean-Louis Martineau * client-src/client_util.c (check_exec_for_suid_message, check_exec_for_suid): New functions to verify a binary is secure * client-src/client_util.h(check_exec_for_suid_message, check_exec_for_suid): Add prototypes * application-src/ambsdtar.c, application-src/amgtar.c, application-src/amstar.c, client-src/runtar.c: Call check_exec_for_suid* before running a binary as root * common-src/ammessage.c: Add messages * installcheck/ambsdtar.pl: Fix check * installcheck/amgtar.pl: Fix check 2016-01-22 Jean-Louis Martineau * client-src/runtar.c: Filter tar arguments * installcheck/runtar.pl: Check runtar errorr * installcheck/Makefile.am: Add runtar.pl 2016-01-19 Jean-Louis Martineau * recover-src/set_commands.c (set_host): Correctly setdump_hostname when the input is quoted with double quote 2016-01-19 Jean-Louis Martineau * config/set_full_version: Fix for new URL path 2016-01-19 Jean-Louis Martineau * NEWS: Typo * ReleaseNotes: Typo 2016-01-19 Jean-Louis Martineau * NEWS: Change in 3.3.8 * ReleaseNotes: Change in 3.3.8 2015-12-10 Xu Han * packaging/common/post_inst_functions.sh: Adding the correct Amanda sbin path to Solaris Amandabackup user profile file 2015-12-09 Jean-Louis Martineau * ndmp-src/ndma_tape.c (ndmta_read_quantum): Fix setting ta->mover_state.record_num 2015-12-09 Jean-Louis Martineau * client-src/sendbackup.c: Fir debugging message * common-src/glib-util.c: Improve error message * perl/Amanda/Extract.pm: Fix in error path 2015-12-09 Jean-Louis Martineau * application-src/amlog-script.pl, application-src/ampgsql.pl, application-src/amraw.pl, application-src/amsamba.pl, application-src/amsuntar.pl, application-src/amzfs-sendrecv.pl, application-src/amzfs-snapshot.pl, application-src/script-email.pl: Log the arguments 2015-12-04 Jean-Louis Martineau * server-src/dumper.c: Change message 2015-12-04 Jean-Louis Martineau * recover-src/amrecover.c: Use the amanda-client.conf hostname setting 2015-12-04 Jean-Louis Martineau * common-src/conffile.c: Add amanda-client 'hostname' global setting * common-src/conffile.h: Add CNF_HOSTNAME * perl/Amanda/Config.swg: Add CNF_HOSTNAME * man/xml-source/amanda-client.conf.5.xml: Document hostname 2015-12-04 Jean-Louis Martineau * server-src/dumper.c: Use getstatefname() 2015-12-04 Jean-Louis Martineau * common-src/amutil.c (get_fsusage): New function to the filesystem usage * common-src/amutil.h (get_fsusage): Add prototype. common-src/amxml.c: Cleanup * server-src/diskfile.c (xml_optionstr_disk, xml_estimate_disk, xml_application_disk): New functions to return anxnl string * server-src/diskfile.h (xml_optionstr_disk, xml_estimate_disk, xml_application_disk): Add prototypes * perl/Amanda/Disklist.swg (xml_optionstr_disk, xml_application_disk, xml_estimate_disk): Swig these functions * perl/Amanda/Logfile.swg (log_start_multiline, log_end_multiline): Swig these functions * perl/Amanda/Util.swg (amxml_format_tag, get_fsusage, get_time_from_timestamp): Swig these functions 2015-12-ouis Martineau * common-src/amfeatures.h: Add fe_restore_prev_next_level * common-src/amfeatures.c: Add fe_restore_prev_next_level * server-src/amfetchdump.pl: Add --prev-level and --next-level arguments * man/xml-source/amfetchdump.8.xml: Document --prev-level and --next-level argument * perl/Amanda/Extract.pm (run_scripts): New method to run scripts * perl/Amanda/FetchDump.pm: Keep copy of prev-level and next-level * perl/Amanda/FetchDump/Application.pm: Fix race * perl/Amanda/FetchDump/ClientApplication.pm: Send PREV-NEXT-LEVEL to client, fix race * perl/Amanda/Restore.pm: Call feedback run_pre_scripts and run_post_scripts * perl/Amanda/Service/Restore.pm: Get PREV-NEXT-LEVEL from server, call $extract->run_scripts() to run the scrips 2015-11-30 Jean-Louis Martineau * common-src/amfeatures.h (fe_restore_include, fe_restore_include_glob, fe_restore_exclude, fe_restore_exclude_glob): New amfeature to send include/exclude to the restore service * common-src/amfeatures.c: Add new amfeature * server-src/amfetchdump.pl: New arguments: --include-file, --include-list, --include-list-glob, --exclude-file, --exclude-list, --exclude-list-glob * man/xml-source/amfetchdump.8.xml: Document new arguments. * perl/Amanda/Extract.pm: Add the various include/exclude arguments to the restore_argv * perl/Amanda/FetchDump.pm: Keep local copy of the include/exclude arguments * perl/Amanda/FetchDump/Application.pm: Pass the include/exclude arguments to the Extract module * perl/Amanda/FetchDump/ClientApplication.pm: Send include/exclude arguments to the restore service * perl/Amanda/Service/Restore.pm: Get include/exclude from the server, Pass them to the Extract module 2015-11-27 Jean-Louis Martineau * perl/Amanda/Restore.pm: Fix typo 2015-11-27 Jean-Louis Martineau * perl/Amanda/Restore.pm: Fix Message handling 2015-11-27 Jean-Louis Martineau * server-src/amindex.c (getstatefname): New functionto return the name of the state file * server-src/amindex.h (getstatefname): Add prototype * perl/Amanda/Logfile.swg: swig getstatefname * perl/Amanda/Extract.pm: Get the state file name as argument * perl/Amanda/FetchDump/Application.pm (transmit_state_file): Uncompress de state file is required * perl/Amanda/FetchDump/ClientApplication.pm: Use getstatefname and some fix * perl/Amanda/Restore.pm: Call start_read_dar after notify_start_backup * perl/Amanda/Service/Amidxtaped.pm: Use getstatefname * perl/Amanda/Service/Restore.pm (transmit_dar): Fix 2015-11-26 Jean-Louis Martineau * common-src/amanda.h: Remove define of _LARGEFILE64_SOURCE 2015-11-25 Jean-Louis Martineau * config/amanda/syshacks.m4: Define _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED on solaris to get correct type for 'struct iovec' 2015-11-25 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Fix crash if orig_size == 0 2015-11-25 Jean-Louis Martineau * perl/Makefile.am: Install perl/Amanda/FetchDump files 2015-11-25 Jean-Louis Martineau * perl/Amanda/Extract.pm: Correctly check if program_path is an Amanda::Message 2015-11-25 Jean-Louis Martineau * perl/Amanda/Service/Restore.pm: Remove unused code 2015-11-25 Jean-Louis Martineau * common-src/conffile.c: Log which conffile is read 2015-11-25 Jean-Louis Martineau * perl/Makefile.am: Typo 2015-11-25 Jean-Louis Martineau * perl/Amanda/Util.swg: swig quote_string_always 2015-11-25 Jean-Louis Martineau * perl/Amanda/Rest/Runs.pm: Use new FetchDump API 2015-11-25 Jean-Louis Martineau * perl/Amanda/Extract.pm (set_validate_argv): New function 2015-11-25 Jean-Louis Martineau * perl/Amanda/Disklist.swg: Add all auth option to the host class 2015-11-25 Jean-Louis Martineau * common-src/ammessage.c: Add new message * perl/Amanda/Message.pm: Add new message 2015-11-25 Jean-Louis Martineau * common-src/amfeatures.c, common-src/amfeatures.h: Add new amfeatures for amrecover/amidxtaped protocol change and for the new restore service 2015-11-25 Jean-Louis Martineau * client-src/senddiscover.c: use MSG_ERROR instead of 16 2015-11-25 Jean-Louis Martineau * amandad-src/amandad.c: Add the restore service 2015-11-25 Jean-Louis Martineau * man/xml-source/amservice.8.xml: Document new amservice options 2015-11-25 Jean-Louis Martineau * installcheck/Amanda_Rest_Services_senddiscover.pl, installcheck/ambsdtar.pl, installcheck/amcheckdump.pl, installcheck/amfetchdump.pl, installcheck/amidxtaped.pl: Fix for changes 2015-11-25 Jean-Louis Martineau * server-src/planner.c: Fix for security API fix 2015-11-25 Jean-Louis Martineau * server-src/amfetchdump.pl: use Amanda::Fetchdump subclass * perl/Amanda/FetchDump.pm: Generic class * perl/Amanda/FetchDump/Application.pm, perl/Amanda/FetchDump/ClientApplication.pm, perl/Amanda/FetchDump/Local.pm: Specific module for different destination, use Amanda::Restore 2015-11-25 Jean-Louis Martineau * client-src/restore.pl: New client service to restore on the client * client-src/Makefile.am: add restore.pl * perl/Amanda/Service/Restore.pm: Core of service, use Amanda::Restore * perl/Makefile.am: Add Amanda/Service/Restore.pm 2015-11-25 Jean-Louis Martineau * perl/Amanda/CheckDump.pm: Use Amanda::Restore module * server-src/amcheckdump.pl: Use Amanda::CheckDump 2015-11-25 Jean-Louis Martineau * xfer-src/dest-fd.c, xfer-src/filter-crc.c, xfer-src/filter-process.c, xfer-src/source-fd.c, xfer-src/xfer-element.h: Small fix 2015-11-25 Jean-Louis Martineau * perl/Amanda/Service/Amidxtaped.pm: New amidxtaped perl module, it use Amanda::Restore * server-src/amidxtaped.pl: Use Amanda::Service::Amidxtaped * recover-src/amrecover.c, recover-src/extract_list.c: improve amrecover-amidxtaped protocol 2015-11-25 Jean-Louis Martineau * perl/Amanda/Restore.pm: New module to to do a recovery, all program will use it. * perl/Makefile.am: Add Amanda/Restore.pm 2015-11-25 Jean-Louis Martineau * perl/Amanda/Amservice.pm: New perl module to execute amservive * perl/Makefile.am: Add Amanda/Amservice.pm 2015-11-25 Jean-Louis Martineau * common-src/amservice.c: Add --stream and --config option, use security_stream_write_async 2015-11-25 Jean-Louis Martineau * common-src/bsd-security.c, common-src/bsdtcp-security.c, common-src/bsdudp-security.c, common-src/krb5-security.c, common-src/local-security.c, common-src/rsh-security.c, common-src/security-util.c, common-src/security-util.h, common-src/security.c, common-src/security.h, common-src/ssh-security.c, common-src/ssl-security.c: Fix security API and add security_stream_write_async and security_stream_close_async 2015-11-20 Jean-Louis Martineau * perl/Amanda/DB/Catalog.pm: Filter with the status * perl/Amanda/Recovery/Planner.pm: Pass the status to Amanda::DB::Catalog::get_dumps * perl/Amanda/FetchDump.pm, perl/Amanda/CheckDump.pm, perl/Amanda/Taper/Worker.pm, perl/Amanda/Vault.pm, server-src/amreindex.pl: Call Amanda::Recovery::Planner::make_plan with a "status => 'OK'" argument 2015-11-12 Jean-Louis Martineau * server-src/driver.c (handle_taper_result): Set job to NULL * server-src/driverio.c: Improve debugging * file server-src/planner.c (est_dump_queue): Fix crash 2015-11-11 Jean-Louis Martineau * common-src/amcryptsimple.pl: Use 'gpg-agent --use-standard-socket-p' to find if gpg-agent must be used 2015-11-09 Orion Poplawski * perl/Amanda/Vault.pm: Add missing parens 2015-11-05 Jean-Louis Martineau * installcheck/Amanda_Rest_Services_senddiscover.pl, * installcheck/Amanda_Rest_Services_senddiscover_amgtar.pl: Skip if client is not compiled 2015-11-05 Jean-Louis Martineau * installcheck/amvault.pl: Do not check the size, it varies on different machines 2015-11-05 Jean-Louis Martineau * server-src/amfetchdump.pl: Fix argument check * man/xml-source/amfetchdump.8.xml: Fix spacing 2015-11-05 Jean-Louis Martineau * installcheck/amgtar.pl: Ignore SIGPIPE * installcheck/Installcheck/Application.pm: Do not fail on SIGPIPE if allowed 2015-11-04 Orion Poplawski * perl/Amanda/Vault.pm: Output the size of each dump * installcheck/amvault.pl: Fix for new output 2015-11-04 Jean-Louis Martineau * installcheck/Amanda_Rest_Services_senddiscover_amgtar.pl: Workaround for File::Temp without newdir function 2015-11-03 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm (_volume_cb): Release the old reservation when changing scribe 2015-10-29 Jean-Louis Martineau * perl/Amanda/Label.pm: Fix severity * perl/Amanda/Message.pm: Fix for code 1 or 2 * server-src/amlabel.pl: Severity of ERROR is always a failure 2015-10-29 Jean-Louis Martineau * installcheck/amgtar.pl: Fix 2015-10-29 Jean-Louis Martineau * application-src/ambsdtar.c (restore): Exit with 1 if BSDTAR-PATH can't be executed * application-src/amgtar.c (amgtar_restore): Exit code of 1 is an error * config/amanda/dumpers.m4 (AMANDA_PROG_BSDTAR): Fix BSDTAR default value * installcheck/Installcheck/Application.pm (restore): Return the stderr of the application * installcheck/Makefile.am (client_tests): Add ambsdtar * installcheck/amgtar.pl: Add check * installcheck/ambsdtar.pl: New file to check ambsdtar behavior 2015-10-27 Jean-Louis Martineau * installcheck/Amanda_Rest_Services_senddiscover_amgtar.pl: Fix for maximumm length f a socket path. 2015-10-26 Jean-Louis Martineau * application-src/amgtar.c (amgtar_discover): Implement the discover API. * client-src/senddiscover.c: Pass --device only if device is provided. * common-src/ammessage.c: Add message for code 3100005, 3100006, 3700012 and 3700013 * perl/Amanda/Rest/Configs.pm: Improve documentation * perl/Amanda/Rest/Services.pm (discover): Many fixes * rest-server/bin/app.pl.in: discover service can be called for a config * rest-server/lib/Amanda/Rest.pm.in: discover service can be called for a config * installcheck/Amanda_Rest_Services_senddiscover.pl: Test the REST senddiscover service * installcheck/Amanda_Rest_Services_senddiscover_amgtar.pl: Test the amgtar REST senddiscover service * installcheck/Makefile.am (server_tests): Add Amanda_Rest_Services_senddiscover and Amanda_Rest_Services_senddiscover_amgtar 2015-10-21 Jean-Louis Martineau * common-src/amutil.c (swap): __builtin_bswap32 is defined only for GCC >= 4.3.0 2015-10-21 Jean-Louis Martineau * common-src/amutil.c (swap): Add missing function 2015-10-21 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm (inventory_unlocked): Can returen all slot (even those not in use-slot) * perl/Amanda/Recovery/Scan.pm (find_volume): Use only allowed slot 2015-10-20 Jean-Louis Martineau * common-src/conffile.c: Do not free current_block 2015-10-19 Jean-Louis Martineau * man/xml-source/amanda-devices.7.xml: Add STANDARD_IA storage_class 2015-10-19 Jean-Louis Martineau * device-src/s3.h (StorageClass): Add S3_SC_STANDARD_IA. * device-src/s3.c: Fix for STANDARD_IA * server-src/amcheck.c: Fix message argument name. 2015-10-19 Jean-Louis Martineau * application-src/amgtar.c Default SPARSE value is NO if tar < 1.28 2015-10-16 Jean-Louis Martineau * application-src/ampgsql.pl: Use '--blocking-factor 64' when creating a tar file 2015-10-15 Jean-Louis Martineau * common-src/ammessage.c: Change message for 2800217. Allow substitution in the hint field * common-src/amutil.c: Change the "running as user \"%s\" instead of \"%s\""" message * server-src/amcheck.c: Fix for running user 2015-10-15 Jean-Louis Martineau * perl/Amanda/FetchDump.pm: Do not look for storage when recovery is from a holding disk 2015-10-14 Jean-Louis Martineau * common-src/security-util.c: Add debugging * perl/Amanda/FetchDump.pm: Send the statefile earlier, trap error 2015-10-13 Jean-Louis Martineau * application-src/ampgsql.pl: Remember the level of the last backup and use it to find the corresponding statefile 2015-10-07 Jean-Louis Martineau * server-src/driver.c: Fix for taper crash * server-src/dumper.c: Fix compatibility issue 2015-10-07 Jean-Louis Martineau * perl/Amanda/FetchDump.pm: Filter /trailing garbage ignored/ 2015-10-02 Jean-Louis Martineau * xfer-src/filter-process.c: gzip exit 2 is not an error * installcheck/Amanda_Xfer.pl: test it 2015-09-29 Jean-Louis Martineau Patch by Orion Poplawski * man/xml-source/tapelist.5.xml: Fix duplicate word 2015-09-28 Jean-Louis Martineau * ndmp-src/ndmjob_main_util.c: Always quote log message. 2015-09-23 Jean-Louis Martineau * perl/Amanda/Label.pm: Fix if the device can't be opened 2015-09-22 Jean-Louis Martineau * common-src/Makefile.am: Fix CFLAGS for compiling amcrc32c.c 2015-09-19 Jean-Louis Martineau * config/amanda/flags.m4: s/gcc/$CC/ 2015-09-18 Jean-Louis Martineau * client-src/client_util.c: Fix compiler error 2015-09-18 Jean-Louis Martineau * common-src/amutil.c (make_crc_table): Remove a bogus fprintf 2015-09-18 Jean-Louis Martineau * common-src/amcrc32chw.c: Fix for 32 bits 2015-09-18 Jean-Louis Martineau * common-src/amcrc32chw.c: Qualify crc32vc_add_hw argument as G_GNUC_UNUSED * common-src/amutil.c: Define get_sse42 only if we use it * common-src/crc32-test.c: Fix if not in 64 bits mode 2015-09-18 Jean-Louis Martineau * client-src/client_util.c: Fix compiler warning * config/amanda/flags.m4: Fix egrep expresion for solaris 2015-09-18 Jean-Louis Martineau * common-src/amutil.c: Fix asm code on i386 2015-09-17 Jean-Louis Martineau * common-src/amutil.c: Use better asm code to detect sse4.2 2015-09-17 Jean-Louis Martineau * common-src/amutil.c (have_sse42): Do not declare static * common-src/amutil.h (have_sse42): Add extern declaration * common-src/crc32-test.c: Do not run hardware crc32 test if the cpu do not have sse4.2 2015-09-17 Jean-Louis Martineau * common-src/Makefile.am (noinst_HEADERS): Add amcrc32chw.h 2015-09-17 Jean-Louis Martineau * common-src/amcrc32chw.c: New file to compute crc32c with sse4.2 instruction * common-src/amcrc32chw.h: New prototype file * common-src/Makefile.am: Code to build amcrc32chw * common-src/amanda.h: Define GCC_VERSION * common-src/amutil.c: Detect if processor hace sse4.2 and use it * common-src/crc32-test.c: Add test for hw version * config/amanda/amanda_configure.m4: Call AMANDA_CHECK_SSE42 * config/amanda/flags.m4 (AMANDA_CHECK_SSE42) New macro to detext if gcc have -msse4.2 * installcheck/chunker.pl, installcheck/taper.pl: Fix for crc32c 2015-09-17 Jean-Louis Martineau * common-src/amutil.c: Chagre the crc32 POLY to 0x82F63B78 2015-09-16 Jean-Louis Martineau * common-src/amutil.c (crc32_add): Use software improvement on big endian machine. 2015-09-15 Jean-Louis Martineau * common-src/amutil.c: Fix compilation 2015-09-15 Jean-Louis Martineau * common-src/amutil.c: Fix compilation 2015-09-15 Jean-Louis Martineau * common-src/amutil.c (crc32_add_16bytes): New faster algorith to compute crc 32 * common-src/amutil.c (crc32_add): Call crc32_add_1byte or crc32_add_16bytes. * common-src/amutil.h (crc32_add_1byte, crc32_add_16bytes): Add new prototypes. * common-src/Makefile.am (TEST): Add crc32-test * common-src/crc32-test.c: New program to test crc32 2015-09-15 Jean-Louis Martineau * common-src/debug.c (debug_ressource_usage): New function to write the system ressource utilization to the debug file * common-src/debug.c (debug_close): Call debug_ressource_usage 2015-09-10 Jean-Louis Martineau * common-src/conffile.h (no_yes_all_t, priority_t, execute_where_t): New enum * common-src/conffile.c, server-src/amcheck.c, server-src/diskfile.c, server-src/server_util.c: Use ne enum constants. * perl/Amanda/Config.swg: Add more function to return enum value * installcheck/Amanda_Config.pl: Add tests 2015-09-09 Jean-Louis Martineau * perl/amglue/constants.swg (amglue_add_enum_and_string_tag_fns, amglue_add_constant_and_string): New macro * perl/Amanda/Config.swg: Add functions to return enum value from a string * installcheck/Amanda_Config.pl: Add tests 2015-09-09 Jean-Louis Martineau * server-src/driver.c (tape_action): Improvement 2015-09-09 Jean-Louis Martineau * server-src/dumper.c: Fix hang on failure 2015-09-03 Jean-Louis Martineau * ndmp-src/ndma_comm_dispatch.c: Send all LOG_MESSAGE * ndmp-src/ndmjob_main_util.c: Quote LOG_MESSAGE * perl/Amanda/Report/human.pm: Fix output 2015-09-01 Jean-Louis Martineau * rest-server/bin/app-dancer2.pl.in: Correctly load multiple applications. * server-src/amanda-rest-server.pl: Always load the same Dancer2 script. 2015-08-31 Jean-Louis Martineau * perl/Amanda/FetchDump.pm: Fix perl warning * server-src/amcheck-device.pl: Fix * installcheck/Amanda_Rest_Amcheck.pl: Fix 2015-08-27 Jean-Louis Martineau * server-src/driver.c (tape_action): More improvement. 2015-08-27 Jean-Louis Martineau * server-src/planner.c: Improve message. 2015-08-24 Jean-Louis Martineau * application-src/amzfs-sendrecv.pl: Fix compratio parsing. 2015-08-20 Jean-Louis Martineau * server-src/amcheck.c: Add the check_host_setting count in the remote_errros when doing only the client check 2015-08-19 Jean-Louis Martineau * config/amanda/dumpers.m4: Default GNUTAR to /usr/bin/tar, STAR to /usr/bin/star, BSDTAR to /usr/bin/bsdtar, SUNTAR to /usr/sbin/tar, SAMBA_CLIENT to /usr/bin/smbclient. * config/amanda/progs.m4: Default SSH to /usr/bin/ssh * config/amanda/ssh-security.m4: Use AMANDA_PROG_SSH 2015-08-19 Jean-Louis Martineau * server-src/driver.c (tape_action): Fix to not send TAPE_ACTION_START_A_FLUSH if we can't guarantee a tape * server-src/driverio.h (struct taper_s): Add sent_first_write 2015-08-17 Jean-Louis Martineau * device-src/device.c (device_allow_take_scribe_from): New function to return the allow_take_scribe_from setting * device-src/device.h (struct Device): Add a gboolean allow_take_scribe_from * device-src/device.h (device_allow_take_scribe_from): Add new prototype * device-src/ndmp-device.c: allow_take_scribe_from is FALSE * perl/Amanda/Device.swg (device_allow_take_scribe_from): swig it * perl/Amanda/Taper/Protocol.pm (TAPER_OK): add allow_take_scribe_from * perl/Amanda/Taper/Scribe.pm: Pass the allow_take_scribe_from value to the callback * perl/Amanda/Taper/Worker.pm (_scribe_started_cb): Include the allow_take_scribe_from in the TAPER_OK reply * server-src/driver.c (handle_taper_result): Parse the *-TAKE-SCRIBE-FROM in the TAPER_OK reply * server-src/driver.c (tape_action): Do not return TAPE_ACTION_MOVE if the taper do not handle allow_take_scribe_from * server-src/driverio.h (struct wtaper_s): Add a gboolean allow_take_scribe_from * installcheck/taper.pl: Fix for *-TAKE-SCRIBE-FROM in TAPER-OK reply 2015-08-17 Jean-Louis Martineau * common-src/amutil.c (interruptible_accept): Take a timeout as argument * common-src/amutil.h (interruptible_accept): New prototype * common-src/stream.c (stream_client): Call interruptible_accept with the timeout argument * xfer-src/element-glue.c (do_directtcp_accept): Call interruptible_accept with the timeout argument 2015-08-11 Jean-Louis Martineau * perl/Amanda/Rest/Configs.pm: Allow 'expand_*' in query parameter * perl/Amanda/Rest/Dles.pm: Allow 'expand_*' in query parameter * installcheck/Amanda_Rest_Configs.pl: Fix installcheck 2015-08-11 Jean-Louis Martineau * application-src/ampgsql.pl: Use 'eq' instead of '==' for filename 2015-08-11 Jean-Louis Martineau * common-src/amcryptsimple.pl, common-src/amgpgcrypt.pl: Add sleep to allow gpg-agent to exit * server-src/amrestore.pl: Add a --continue-on-filter-error option * man/xml-source/amrestore.8.xml: Document --continue-on-filter-error 2015-08-11 Jean-Louis Martineau * perl/Amanda/Rest/Configs.pm (_fields): Must not load the config. 2015-08-10 Jean-Louis Martineau * man/xml-source/amrestore.8.xml: Document that -r do not decrypt dump 2015-08-10 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Fix compression computation. 2015-08-10 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Fix compression computation. 2015-08-07 Jean-Louis Martineau * installcheck/Amanda_Rest_Configs.pl: Take MAILER form config 2015-08-07 Jean-Louis Martineau * rest-server/bin/app.pl.in: Undo bad change. 2015-08-07 Jean-Louis Martineau * perl/Amanda/Rest/Configs.pm: Typo. * installcheck/Amanda_Rest_Configs.pl: Fix check. 2015-08-07 Jean-Louis Martineau * client-src/selfcheck.c, common-src/amanda.h, common-src/match.c, common-src/security-util.c, server-src/driver.c, server-src/dumper.c: Coverity cleanup. 2015-08-07 Jean-Louis Martineau * rest-server/bin/app.pl.in, rest-server/lib/Amanda/Rest.pm.in: Remove 'use Amanda::Rest::Changers;' 2015-08-07 Jean-Louis Martineau * perl/Makefile.am (AmandaRest_DATA): Remove Amanda/Rest/Changers.pm 2015-08-07 Jean-Louis Martineau * common-src/conffile.c (*_key_to_name, *getconf_human, custom_escape): New function * common-src/conffile.h (*_key_to_name, *getconf_human, custom_escape): Add prototypes * perl/Amanda/Config.swg: Add amglue_add_enum_list(*_key) * perl/Amanda/Config.swg (val_t_to_print): Function to convert a val_t to a printable format for human * perl/Amanda/Config.swg (*_key_to_name): Add declarations * perl/Amanda/Config.swg (*_getconf_human): Similar to *_getconf but use val_t_to_print to return a human printable structure * perl/Amanda/Config.swg: Add messages 1500022 to 1500058 * perl/Amanda/Disklist.swg: Add message 1400010 * perl/Amanda/Rest/Configs.pm: Add API to return the list of section and all fields of a named section * perl/Amanda/Rest/Dles.pm: Add API to return the list and setting of Dles * perl/Amanda/Rest/Changers.pm: Remove file (API moved to Configs.pm). * perl/Amanda/Rest/Storages.pm: Remove some API (moved to Configs.pm). * perl/amglue/constants.swg (amglue_add_enum_list): New macro to return an array of values * rest-server/bin/app.pl.in: Add new API * rest-server/lib/Amanda/Rest.pm.in: Add new API * server-src/diskfile.c: Use custom_escape to create custom name. * installcheck/Amanda_Rest_Changers.pl: Remove file * installcheck/Amanda_Rest_Configs.pl: Add many checks * installcheck/Amanda_Rest_Storages.pl: Remove some checks * installcheck/Makefile.am: Remove Amanda_Rest_Changers.pl 2015-08-06 Jean-Louis Martineau * device-src/s3-device.c, device-src/s3-device.h: Change default value for S3-MULTI-DELETE * man/xml-source/amanda-devices.7.xml: Document it 2015-08-03 Jean-Louis Martineau * perl/Amanda/Amdump.pm: Improve debugging. 2015-08-03 Jean-Louis Martineau * common-src/ammessage.c: Add message 2800233 and 2800234 * server-src/amcheck.c: Validate tag * server-src/driver.c: Validate tag 2015-07-15 Jean-Louis Martineau * server-src/dumper.c (process_dumpline): Use full_write instead of write and check the result. 2015-07-15 Jean-Louis Martineau * amandad-src/amandad.c: Add krb5 to exit_on_qlength * application-src/amgtar.c: Improve debugging * perl/Amanda/FetchDump.pm: Uncompress the state file * server-src/amidxtaped.pl: Uncompress the state file * server-src/dumper.c: Compress the state file * xfer-src/dest-application.c: Improve XMSG * xfer-src/filter-process.c: Improve XMSG 2015-07-14 Jean-Louis Martineau * server-src/driver.c (dump_match_selection): A dle without tag must go on all storages 2015-07-14 Jean-Louis Martineau * application-src/ampgsql.pl: chown of archive dir when restoring an incr. 2015-07-13 Jean-Louis Martineau * server-src/driver.c: Start backup event if tape is not ready in CNF_RESERVE == 0; 2015-07-13 Jean-Louis Martineau * application-src/ampgsql.pl: Add FULL-WAL property. * man/xml-source/ampgsql.8.xml: Document FULL-WAL property. 2015-07-13 Jean-Louis Martineau * application-src/ampgsql.pl: Add 'File shrank by \d* bytes; padding with zeros' as normal message from tar. 2015-07-07 Jean-Louis Martineau * device-src/rait-device.c, device-src/tape-device.c, device-src/vfs-device.c: Typo. 2015-06-23 Jean-Louis Martineau * perl/Amanda/Util.swg: disable setenv_init. 2015-06-23 Jean-Louis Martineau * device-src/xfer-source-device.c (pull_buffer_impl): Call device_read_block with a goot max_block value * perl/Amanda/Device.swg (verify_random_from_device): Call device_read_block with a max_block of -1 2015-06-23 Jean-Louis Martineau * application-src/amgtar.c: Use g_ascii_strtoull. 2015-06-22 Jean-Louis Martineau * perl/Amanda/Xfer.swg: break potential reference loop 2015-06-19 Jean-Louis Martineau * server-src/amidxtaped.pl: Temporary fix for protocol bug. 2015-06-19 Jean-Louis Martineau * recover-src/extract_list.c: Fix if not an application 2015-06-19 Jean-Louis Martineau * ndmp-src/ndma_data.c: Undo patch. * recover-src/extract_list.c: Fix compilation 2015-06-18 Jean-Louis Martineau * server-src/dumper.c: Fix compilation 2015-06-18 Jean-Louis Martineau * xfer-src/source-file.c: Fix compilation 2015-06-18 Jean-Louis Martineau * xfer-src/dest-application.c, xfer-src/source-file.c: Add files 2015-06-18 Jean-Louis Martineau * Implement DAR (Direct Access Recovery) 2015-06-16 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm (verify_unlocked): Reload the state and use eject_unload 2015-06-15 Jean-Louis Martineau * application-src/ampgsql.pl: Take another tar of ./pg_tblspc by keeping the symlink. 2015-06-10 Jean-Louis Martineau * device-src/ndmp-device.c: On recovery, set initial window to (0, -1) * installcheck/Installcheck/Mock.pm: Set verbose to YES 2015-06-09 Jean-Louis Martineau * device-src/ndmp-device.c: Set initial window correctly on recovery 2015-06-09 Jean-Louis Martineau * common-src/amssl.pl: SSL_VERIFY_NONE is not defined on older IO::Socket::SSL 2015-06-09 Jean-Louis Martineau * common-src/security-util.h (struct tcp_conn): Remove meth. * common-src/ssl-security.c: Do not use temporary variable for the method. 2015-06-09 Jean-Louis Martineau * server-src/amcheck.c: s/check_auth/check_host_setting/g, check maxdumps is the same for all DLEs of a host * common-src/ammessage.c: Add message 2800232 2015-06-08 Jean-Louis Martineau * common-src/krb5-security.c (krb5_tcpm_recv_token): Remove the fd argument. 2015-06-08 Jean-Louis Martineau * man/Makefile.am: Typo. 2015-06-08 Jean-Louis Martineau Add ssl auth. * config/amanda/amanda_configure.m4: Load AMANDA_SSL_SECURITY * config/amanda/ssl-security.m4 (AMANDA_SSL_SECURITY): Add --with-ssl-security * amandad-src/amandad.c: Add code to support ssl auth, * common-src/Makefile.am (libamanda_la_SOURCES): Add ssl-security.c * common-src/Makefile.am (sbin_SCRIPTS_PERL): Add amssl * common-src/amgetconf.pl: Remove useless space * common-src/amssl.pl: New amssl program * common-src/conffile.c: Add CONF_SSL_FINGERPRINT_FILE, CONF_SSL_CERT_FILE, CONF_SSL_KEY_FILE, CONF_SSL_CA_CERT_FILE, CONF_SSL_CIPHER_LIST, CONF_SSL_CHECK_HOST, CONF_SSL_CHECK_CERTIFICATE_HOST, CONF_SSL_CHECK_FINGERPRINT and CONF_SSL_DIR * common-src/conffile.h: Add CNF_SSL_FINGERPRINT_FILE, CNF_SSL_CERT_FILE, CNF_SSL_KEY_FILE, CNF_SSL_CA_CERT_FILE, CNF_SSL_CIPHER_LIST, CNF_SSL_CHECK_HOST, CNF_SSL_CHECK_CERTIFICATE_HOST, CNF_SSL_DIR and DUMPTYPE_SSL_FINGERPRINT_FILE, DUMPTYPE_SSL_CERT_FILE, DUMPTYPE_SSL_KEY_FILE, DUMPTYPE_SSL_CA_CERT_FILE, DUMPTYPE_SSL_CIPHER_LIST, DUMPTYPE_SSL_CHECK_HOST, DUMPTYPE_SSL_CHECK_CERTIFICATE_HOST, DUMPTYPE_SSL_CHECK_FINGERPRINT * common-src/glib-util.c: Load openssl. * common-src/security-util.c (generic_data_write, generic_data_read): New functions. * common-src/security-util.h (generic_data_write, generic_data_read): Add prototypes. * common-src/security.c: Load ssl_security_driver. * common-src/security.h (struct security_driver): Add data_write and data_read method. * common-src/bsd-security.c, common-src/bsdtcp-security.c, common-src/bsdudp-security.c, common-src/krb5-security.c, common-src/local-security.c, common-src/rsh-security.c, common-src/ssh-security.c: Add generic_data_write and generic_data_read * common-src/ssl-security.c: New ssl auth code * man/Makefile.am (COMMON_MAN_PAGES): Add amanda-auth-ssl.7 and amssl.8 * man/xml-source/amanda-auth-ssl.7.xml: New man page * man/xml-source/amanda-auth.7.xml: Link to amanda-auth-ssl * man/xml-source/amanda.8.xml: Link to amanda-auth-ssl * man/xml-source/amssl.8.xml: New man page * perl/Amanda/Config.swg: Add CNF_SSL_FINGERPRINT_FILE, CNF_SSL_CERT_FILE, CNF_SSL_KEY_FILE, CNF_SSL_CA_CERT_FILE, CNF_SSL_CIPHER_LIST, CNF_SSL_CHECK_HOST, CNF_SSL_CHECK_CERTIFICATE_HOST, CNF_SSL_DIR * server-src/diskfile.h (struct disk_s): Add ssl setting * server-src/diskfile.c: Load ssl setting * server-src/driverio.c: Pass ssl setting. * server-src/dumper.c: Use ssl specific setting. * server-src/server_util.c (amhost_get_security_conf): Add ssl setting. 2015-06-08 Jean-Louis Martineau * example/amanda.conf.in: Fix typo. * common-src/amgetconf.pl, man/xml-source/amanda-auth.7.xml, man/xml-source/amgetconf.8.xml, perl/Amanda/Constants.pm.in.src: Remove krb4 setting. * perl/Amanda/Amdump.pm, perl/Amanda/Amflush.pm, perl/Amanda/CheckDump.pm, perl/Amanda/Chunker/Controller.pm, perl/Amanda/Chunker/Protocol.pm, perl/Amanda/FetchDump.pm, perl/Amanda/Label.pm, perl/Amanda/Message.pm, perl/Amanda/Taper/Controller.pm: Remove useles @PERL@ and @amperldir@; 2015-06-06 Jean-Louis Martineau * rest-server/bin/app-dancer2.pl.in, rest-server/bin/app.pl.in: Use @PERL@ 2015-06-02 Jean-Louis Martineau * perl/Amanda/Vault.pm: Time::HiRes is not available everywhere. 2015-06-02 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Set total_time to the time of amvault on an amvault run. * perl/Amanda/Report.pm: Parse amvault FINISH line. * perl/Amanda/Vault.pm: Log a FINISH line. 2015-06-02 Jean-Louis Martineau * common-src/ammessage.c: Improve hint on message 2800231. 2015-06-01 Jean-Louis Martineau * oldrecover-src/extract_list.c: More fix if SAMBA_CLIENT is not defined. 2015-06-01 Jean-Louis Martineau * recover-src/extract_list.c: More fix if SAMBA_CLIENT is not defined. 2015-06-01 Jean-Louis Martineau * perl/Amanda/Tests.swg: #include "glib-util.h" * client-src/selfcheck.c, common-src/ammessage.c, recover-src/extract_list.c, server-src/driver.c: Fix bug found by coverity. 2015-06-01 Jean-Louis Martineau * ndmp-src/ndmpconnobj.c: #include "glib-util.h", * ndmp-src/ndmpconnobj.c (ndmp_connection_mover_connect): return a gboolean. * perl/Amanda/Tests.swg: #include "glib-init.h" * perl/Amanda/Util.swg: #include "match.h" * perl/Amanda/Util.swg: rename crc32 to crc32_add. 2015-06-01 Jean-Louis Martineau * config/compile, config/config.guess, config/config.sub, config/depcomp, config/install-sh, config/missing, config/test-driver, config/ylwrap: Newer version of files. 2015-05-29 Jean-Louis Martineau * server-src/amcheck.c: Check auth on both local and client check. 2015-05-28 Jean-Louis Martineau * common-src/ammessage.c: Improve message 2800231. * server-src/amcheck.c: message 2800231 is an MSG_ERROR. 2015-05-27 Jean-Louis Martineau * device-src/ndmp-device.c: Fix previous patch. 2015-05-27 Jean-Louis Martineau * device-src/ndmp-device.c: Call ndmp_connection_mover_read with the header size as the offset. 2015-05-22 Jean-Louis Martineau * server-src/amcheck.c: Check all dles of a host have the same auth. * common-src/ammessage.c: Add message 2800231. 2015-05-22 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: Fix $failure_from. 2015-05-21 Jean-Louis Martineau * rest-server/bin/app.pl.in: confdir is in amlibexecdir. 2015-05-21 Jean-Louis Martineau * rest-server/Makefile.am: Install the rest-server in amlibexecdir. * server-src/amanda-rest-server.pl, installcheck/Installcheck/Rest.pm: rest-server installed in amlibexecdir. 2015-05-20 Jean-Louis Martineau * rest-server/Makefile.am (EXTRA_DIST): Add the *.in files 2015-05-20 Jean-Louis Martineau * rest-server/Makefile.am: typo. 2015-05-20 Jean-Louis Martineau * rest-server/Makefile.am (EXTRA_DIST): Add rest server. 2015-05-20 Jean-Louis Martineau * rest-server/Makefile.am: Missing \ 2015-05-20 Jean-Louis Martineau * rest-server/Makefile.in, rest-server/Makefile, rest-server/lib/Amanda/Rest.pm, rest-server/bin/app-dancer2.pl, rest-server/bin/app.pl: Remove files. 2015-05-20 Jean-Louis Martineau * perl/Makefile.am: Fix. 2015-05-20 Jean-Louis Martineau * rest-server/*: Moved the rest-server * Makefile.am (SUBDIRS): Add rest-server * configure.in (AC_CONFIG_FILES): add rest-server/Makefile * server-src/amanda-rest-server.pl: Add --dancer and --dancer2 option. 2015-05-19 Jean-Louis Martineau * perl/Amanda/Script_App.pm (print_to_server_and_die): Always FAILURE 2015-05-15 Jean-Louis Martineau * common-src/conffile.h: Add CNF_REST_SSL_CERT and CNF_REST_SSL_KEY * common-src/conffile.c: Parse rest-ssl-cert and rest-ssl-key * perl/Amanda/Config.swg: Add CNF_REST_SSL_CERT and CNF_REST_SSL_KEY * server-src/amanda-rest-server.pl: Start the REST server with '--enable-ssl --ssl-cert $ssl_cert --ssl-key $ssl_key' if CNF_REST_SSL_CERT and CNF_REST_SSL_KEY are set. * man/xml-so: Document the rest-api-port, rest-ssl-cert and rest-ssl-key setting form /etc/amanda/amanda.conf 2015-05-13 Jean-Louis Martineau * perl/Amanda/FetchDump.pm: Do not pass a changer * perl/Amanda/Recovery/Planner.pm (make_plan): Accept storage instead of changer * perl/Amanda/Vault.pm: Use src_storage_name and dest_storage_name * server-src/amvault.pl: Add --src-storage and --dest-storage arguments * man/xml-source/amvault.8.xml: Document --src-storage and --dest-storage * installcheck/Amanda_Recovery_Planner.pl: Fix for new api 2015-05-13 Jean-Louis Martineau * perl/Amanda/Status.pm: Parse 'requeue write' line, set storage will_retry. * server-src/driver.c: Write 'requeue write' line. * server-src/driver.c: Fix vaulting. * server-src/driverio.c (startup_dump_tape_process, startup_vault_tape_process): New function to replace startup_tape_process. * server-src/driverio.h (startup_dump_tape_process, startup_vault_tape_process): Add prototype. * installcheck/Amanda_Rest_Runs.pl: Add 'will_retry' in status result. * installcheck/Installcheck/Dumpcache.pm: Force level when doing backup. 2015-05-12 Jean-Louis Martineau * common-src/amgetconf.pl: Do not load the disklist if a config is not set. * common-src/conffile.c: load the cwd amanda.conf only if it exist. 2015-05-11 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/config.yml: Remove Dancer2 setting. 2015-05-11 Jean-Louis Martineau * perl/Makefile.am: Typo 2015-05-11 Jean-Louis Martineau * config/automake/scripts.am: Fix checking SCRIPTS_PERL_NO_CHECK. * perl/Makefile.am (SCRIPTS_PERL_NO_CHECK): Add Amanda/Rest.pm 2015-05-11 Jean-Louis Martineau * perl/Amanda/Rest.pm: Remove * perl/Amanda/Rest.pm.in: Server for Dancer2 * perl/Amanda/Rest/Amanda/bin/app-dancer2.pl.in: Start script for using Dancer2 * perl/Amanda/Rest/Amanda/config.yml: Add config for Dancer2 * perl/Makefile.am: Install new files * server-src/amanda-rest-server.pl: Use Dancer2 if available * installcheck/Installcheck/Rest.pm: Use Dancer2 if available 2015-05-11 Jean-Louis Martineau * perl/Amanda/Message.pm (TO_JSON): New method. * perl/Amanda/Rest/Amanda/bin/app.pl.in: Expect a status in function result. * perl/Amanda/Rest/Amcheck.pm, perl/Amanda/Rest/Changers.pm, perl/Amanda/Rest/Configs.pm, perl/Amanda/Rest/Dles.pm, perl/Amanda/Rest/Dumps.pm, perl/Amanda/Rest/Labels.pm, perl/Amanda/Rest/Report.pm, perl/Amanda/Rest/Runs.pm, perl/Amanda/Rest/Services.pm, perl/Amanda/Rest/Status.pm, perl/Amanda/Rest/Storages.pm, perl/Amanda/Rest/Storages/Labels.pm, perl/Amanda/Rest/Version.pm: Function return status and array of Message. 2015-05-11 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/bin/app.pl.in: Parse request body for POST and DELETE request. 2015-05-11 Jean-Louis Martineau * perl/Amanda/Status.pm: Improve worker output. 2015-05-07 Jean-Louis Martineau * application-src/ampgsql.pl: check ARCHIVEDIR is not inside DATADIR. 2015-05-07 Jean-Louis Martineau * server-src/amanda-rest-server.pl: Add a --development option * man/xml-source/amanda-rest-server.8.xml: Document --development 2015-05-07 Jean-Louis Martineau * perl/Amanda/Status.pm: More fix. 2015-05-06 Jean-Louis Martineau * installcheck/Amanda_Rest_Runs.pl: Add retry, retry_level and will_retry. 2015-05-06 Jean-Louis Martineau * perl/Amanda/Status.pm: VAULT-WRITE must reset the retry flag. 2015-05-06 Jean-Louis Martineau * server-src/driver.c: Add a 'requeue' line to the amdump log file. * perl/Amanda/Status.pm: Better handling of retry. 2015-05-06 Jean-Louis Martineau * application-src/amgtar.c, client-src/rundump.c, client-src/runtar.c, client-src/selfcheck.c, client-src/sendbackup.c, client-src/senddiscover.c, xfer-src/filter-process.c: Always free the result of safe_env. 2015-05-06 Jean-Louis Martineau * client-src/amandates.c, client-src/sendsize.c, common-src/ammessage.c: Fix bug found by coverity. * device-src/ndmp-device.c (ndmp_device_eject): Call open_connection. 2015-05-05 Jean-Louis Martineau * client-src/sendbackup.c: Cleanup. 2015-04-30 Jean-Louis Martineau * perl/Amanda/Cleanup.pm: Log the notes * perl/Amanda/Report.pm: Parse amcleanup log line * perl/Amanda/Report/human.pm (PROGRAM_ORDER): Add amcleanup * perl/Amanda/Rest/Runs.pmi (kill): Accept notes argument * server-src/amcleanup.pl: Add --note argument * server-src/logfile.h (logtype_e): Add P_AMCLEANUP * server-src/logfile.c (logtype_str): Add "amcleanup" * perl/Amanda/Logfile.swg: Add P_AMCLEANUP * man/xml-source/amcleanup.8.xml: Document --note argument 2015-04-29 Jean-Louis Martineau * device-src/s3-device.c: Fix progress_func and set timeout to 0. 2015-04-29 Jean-Louis Martineau * NEWS: ADD NEARLINE storage. * man/xml-source/amanda-devices.7.xml: Document NEARLINE storage. 2015-04-29 Jean-Louis Martineau * device-src/s3-device.c (progress_function): Fail on timeout. * device-src/s3-device.h (_S3_by_thread): Add tiemout. * device-src/s3.c (RESULT_HANDLING_ALWAYS_RETRY): Add CURLE_ABORTED_BY_CALLBACK. 2015-04-28 Jean-Louis Martineau * common-src/conffile.c: Fix wrong variable. 2015-04-28 Jean-Louis Martineau * application-src/ampgsql.pl (backup): Create an archive directory with the same permission as the data directory. 2015-04-27 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix status. 2015-04-27 Jean-Louis Martineau * perl/Amanda/Changer.pm: Add new messages. * perl/Amanda/Changer/multi.pm (update): Allow 'error' for the slot range. * perl/Amanda/Changer/robot.pm (update): Allow 'error' for the slot range. * installcheck/Amanda_Changer_robot.pl: Fix. * server-src/amtape.pl: Fix for new messages. * man/xml-source/amanda-changers.7.xml: Add error keyword. 2015-04-27 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm (set_error_to_unknown): New function that allow the tapescan to reset all slots with given error. 2015-04-27 Jean-Louis Martineau * perl/Amanda/Vault.pm: Create timer once. 2015-04-27 Jean-Louis Martineau * recover-src/extract_list.c: Abort a restore if application fail. 2015-04-23 Jean-Louis Martineau * perl/Amanda/Status.pm: Improve parsing if a line is misquoted. 2015-04-22 Xu Han * server-src/amanda-rest-server.pl: exit code 1 when start fails 2015-04-22 Jean-Louis Martineau * common-src/amflock.c: Cleanup * server-src/cmdfile.c: Retry lock on 1. 2015-04-22 Jean-Louis Martineau * installcheck/Installcheck/Config.pm: Set inparallel to 2. * installcheck/Amanda_Rest_Configs.pl: Fix for inparallel value. 2015-04-21 Jean-Louis Martineau * device-src/s3.c: Retry on 429 or 503 error. 2015-04-21 Jean-Louis Martineau * perl/Amanda/Report.pm: Set $dumper->{status} to 'retry' on L_RETRY 2015-04-21 Jean-Louis Martineau * installcheck/Installcheck/Dumpcache.pm: Use --no-taper 2015-04-20 Jean-Louis Martineau * perl/Amanda/Rest/Runs.pm: use File::Glob qw( :glob ); 2015-04-15 Jean-Louis Martineau * server-src/driver.c: Do not send CLOSE_VOLUME request if the worker have no volume. 2015-04-06 Jean-Louis Martineau * server-src/driverio.c, server-src/planner.c: Fix bug found by coverity. 2015-04-03 Jean-Louis Martineau * installcheck/Amanda_Rest_Dumps.pl: Do not hardcoded path * installcheck/amoverview.pl: Increase --diskwidth to 200 2015-04-03 Jean-Louis Martineau * server-src/driver.c: Fix compilation 2015-04-03 Jean-Louis Martineau driver can do vault. * common-src/conffile.c: s/CONF_AMVAULT_STORAGE/CONF_VAULT_STORAGE/, add CONF_VAULT * common-src/conffile.h: Add vault_list_t and CONFTYPE_VAULT_LIST * device-src/xfer-dest-taper-cacher.c: Improve debugging statement * device-src/xfer-dest-taper-directtcp.c: Improve debugging statement * device-src/xfer-dest-taper-splitter.c: Improve debugging statement * device-src/xfer-source-recovery.c: Improve debugging statement * server-src/xfer-dest-holding.c: Improve debugging statement * man/xml-source/amanda.conf.5.xml: Document storage and vault-storage * perl/Amanda/Amflush.pm: s/storage_dest/dst_storage/ * perl/Amanda/Changer/disk.pm: Check $self->{'dir'} is defined * perl/Amanda/Changer/robot.pm: Check $info->{'state'} is defined * perl/Amanda/Cmdfile.swg: Change some field names. * perl/Amanda/Config.swg: Add CONFTYPE_VAULT_LIST. * perl/Amanda/DB/Catalog.pm (_load_tapelist): Always load. * perl/Amanda/Recovery/Clerk.pm (close_volume): New method * perl/Amanda/Recovery/Scan.pmA: Fix message * perl/Amanda/Report.pm: Fix for vault. * perl/Amanda/Report/human.pm: Fix for vault. * perl/Amanda/Status.pm: Fix for vault. * perl/Amanda/Taper/Controller.pm: Add msg_VAULT_WRITE and msg_CLOSE_SOURCE_VOLUME * perl/Amanda/Taper/Protocol.pm: Add VAULT_WRITE, CLOSED_VOLUME, OPENED_SOURCE_VOLUME, CLOSE_SOURCE_VOLUME, CLOSED_SOURCE_VOLUME * perl/Amanda/Taper/Scan.pm: Remove unused code * perl/Amanda/Taper/Scribe.pm (close_volume): Fix * perl/Amanda/Taper/Scribe.pm (close_source_volume): New method. * perl/Amanda/Taper/Worker.pm: Add VAULT_WRITE, CLOSE_SOURCE_VOLUME, recovery_clerk_notif_open_volume, recovery_clerk_notif_close_volume. * perl/Amanda/Taper/Worker.pm: Add vault operation. * perl/Amanda/Vault.pm: Fix for multiple vault_storage. * server-src/amcheck-device.pl: Fix. * server-src/amcheck.c: s/up/status/ * server-src/amvault.pl: Fix message. * server-src/cmdfile.c: Change a few names * server-src/cmdfile.h: Change a few names, many fixes * server-src/diskfile.c: Set status. * server-src/diskfile.h: Remove up, add status. * server-src/driver.c: Data struct change, handle vault command. * server-src/driverio.c: Add new taper commands. * server-src/driverio.h: Change many struct. * server-src/planner.c: Change many struct. * server-src/server_util.c: Add "VAULT-WRITE", "CLOSED-VOLUME", "OPENED-SOURCE-VOLUME", "CLOSE-SOURCE-VOLUME" and "CLOSED-SOURCE-VOLUME" * server-src/server_util.h: Add VAULT_WRITE, CLOSED_VOLUME, OPENED_SOURCE_VOLUME, CLOSE_SOURCE_VOLUME, CLOSED_SOURCE_VOLUME. * server-src/tapefile.c: Fix retention. * installcheck/Amanda_Rest_Amcheck.pl: Fix * installcheck/Amanda_Rest_Dumps.pl: Fix sort. * installcheck/Installcheck/Dumpcache.pm: Force a FULL. * installcheck/amoverview.pl: Fix. * installcheck/amvault.pl: Fix. * installcheck/pp-scripts.pl: Fix. 2015-03-26 Jean-Louis Martineau * installcheck/Amanda_Rest_Runs.pl: Check the {head}->{exit_status} 2015-03-26 Jean-Louis Martineau * server-src/driver.c: Send QUIT to chunker after receiving ABORT-FINISHED. 2015-03-25 Jean-Louis Martineau * perl/Amanda/Report.pm (get_exit_status): New method * perl/Amanda/Report/json.pm: Add {head}->{exit_status} 2015-03-25 Jean-Louis Martineau * config/amanda/tape.m4: Add include for bsd. * device-src/device.c: Improve message 2015-03-24 Jean-Louis Martineau * perl/Amanda/Report/json.pm: Add a timestamp in the head section. * installcheck/Amanda_Rest_Runs.pl: Add timestamp. 2015-03-24 Jean-Louis Martineau * perl/Amanda/Status.pm: Report all size as bytes. * installcheck/Amanda_Rest_Runs.pl, * server-src/amstatus.pl, installcheck/Amanda_Rest_Runs.pl: Fix for bytes size. 2015-03-24 Jean-Louis Martineau * installcheck/Amanda_Rest_Runs.pl, perl/Amanda/Status.pm, server-src/amstatus.pl, server-src/driver.c: s/free_kps/network_free_kps/ s/free_space/holding_free_space/ 2015-03-23 Jean-Louis Martineau * installcheck/Makefile.am: Do not run the gnutar installcheck 2015-03-20 Jean-Louis Martineau * perl/Amanda/Status.pm: Improve documentation. 2015-03-19 Jean-Louis Martineau * device-src/s3-device.c: Fix double g_mutex_unlock. 2015-03-17 Jean-Louis Martineau * server-src/amindexd.c: Fix LISTHOST command. 2015-03-06 Jean-Louis Martineau * server-src/tapefile.c (compute_storage_retention): Fix retentionfor retention_days. * installcheck/Amanda_Tapelist.pl: Add many installcheck for list_retention, list_no_retention, list_new_tapes and volume_is_reusable 2015-03-06 Jean-Louis Martineau * server-src/amstatus.pl: One line by worker. 2015-03-06 Jean-Louis Martineau * server-src/tapefile.c (list_retention, list_no_retention): Do not list datestamp==0 or not in a listed storage. 2015-03-05 Jean-Louis Martineau * common-src/conffile.c, perl/Amanda/Policy.pm, perl/Amanda/Taper/Scan.pm, server-src/tapefile.c: retention_tapes default to tapecycle-1. * man/xml-source/amanda.conf.5.xml: Document it. * installcheck/Amanda_Taper_Scan.pl, installcheck/Amanda_Taper_Scan_lexical.pl, installcheck/Amanda_Taper_Scan_oldest.pl, installcheck/Amanda_Taper_Scan_traditional.pl: Fix. 2015-03-05 Jean-Louis Martineau * server-src/tapefile.c (list_retention, list_no_retention): Fix. 2015-03-05 Jean-Louis Martineau * installcheck/Amanda_Config.pl: Fix: Remove append keyword. 2015-03-04 Jean-Louis Martineau * common-src/conffile.c: Fix parsing dump-selection (remove append). * man/xml-source/amanda.conf.5.xml: Document change. 2015-02-26 Jean-Louis Martineau * common-src/conffile.c (config_print_errors_as_message): Fix message. 2015-02-18 Jean-Louis Martineau * man/xml-source/amadmin.8.xml: Document tape --days. * server-src/amadmin.c: Fix --days intape command. 2015-02-17 Jean-Louis Martineau * common-src/bsdtcp-security.c, common-src/krb5-security.c, * common-src/local-security.c, common-src/rsh-security.c, * common-src/ssh-security.c: Fix bug found by coverity. 2015-02-17 Jean-Louis Martineau * server-src/amadmin.c: Fix crash in tape command. 2015-02-15 Jean-Louis Martineau * perl/Amanda/Xfer.swg: Fix for swig-3.0.5 2015-02-13 Jean-Louis Martineau * packaging/common/post_inst_functions.sh: Use 'command -v' instead of which. 2015-02-13 Jean-Louis Martineau * packaging/common/post_inst_functions.sh: fix for gpg2 and gpg-agent 2015-02-12 Jean-Louis Martineau * packaging/common/common_functions.sh: Use systemctl to restart xinetd. 2015-02-12 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix previous patch. 2015-02-11 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix race. 2015-02-11 Jean-Louis Martineau * perl/Amanda/Amdump.pm: Remove amdump file older than 30 days if there is no corresponding log file. * server-src/amtrmlog.c: Remove amdump file when removing log file. 2015-02-10 Jean-Louis Martineau * Makefile.am: Fix for Solaris find. 2015-02-04 Jean-Louis Martineau * common-src/ssh-security.c (ssh_connect): Use the name from the disklist, no need to find the canonical name. 2015-02-03 Jean-Louis Martineau * device-src/s3-util.c: Fix memory allocation issue. 2015-02-03 Jean-Louis Martineau * application-src/amstar.c: Support include in backup mode. 2015-01-30 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Fix state file update. 2015-01-29 Jean-Louis Martineau * device-src/s3-device.c: Parse new AWS4 STORAGE-API. * device-src/s3-util.c (s3_compute_sha256_hash_ba, s3_compute_sha256_hash, EncodeHMACSHA256, s3_tohex): New function. * device-src/s3-util.h (s3_compute_sha256_hash_ba, s3_compute_sha256_hash, EncodeHMACSHA256, s3_tohex): New prototypes. * device-src/s3.c: Compute signature for AWS4. * device-src/s3.h (S3_api): Add S3_API_UNKNOWN and S3_API_AWS4. * man/xml-source/amanda-devices.7.xml (STORAGE_API): Document AWS4. * server-src/amtape.pl: Fix perl warning. 2015-01-29 Jean-Louis Martineau * server-src/dumper.c: Fix retry handling. 2015-01-28 Jean-Louis Martineau * client-src/selfcheck.c: (print_platform): Do not execute /usr/bin/sw_vers if it doesn't exists. * common-src/amutil.c: Fix debugging statement. 2015-01-27 Jean-Louis Martineau * installcheck/Amanda_Rest_Runs.pl, installcheck/amreport.pl, perl/Amanda/Amdump.pm, perl/Amanda/Amflush.pm, perl/Amanda/CheckDump.pm, perl/Amanda/DB/Catalog.pm, perl/Amanda/FetchDump.pm, perl/Amanda/Logfile.swg, perl/Amanda/Process.pm, perl/Amanda/Rest/Report.pm, perl/Amanda/Rest/Runs.pm, perl/Amanda/Status.pm, perl/Amanda/Vault.pm, server-src/amstatus.pl, server-src/driver.c: CNF_LOGIDR can be relative. 2015-01-27 Jean-Louis Martineau * client-src/selfcheck.c (print_platform): Detect BSD variant. 2015-01-27 Jean-Louis Martineau * server-src/planner.c: Remove useless line. 2015-01-26 Jean-Louis Martineau * config/compile, config/config.guess, config/config.sub, config/missing, config/test-driver: Upgrade to automake 1.14.1 2015-01-26 Jean-Louis Martineau * perl/Amanda/Cmdline.swg, perl/Amanda/Device.swg, perl/Amanda/MainLoop.swg, perl/Amanda/NDMP.swg, perl/Amanda/Util.swg: Fix linking issue. 2015-01-16 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix perl warning. 2015-01-14 Jean-Louis Martineau * config/amanda/components.m4: Remove AMANDA_JSON_SERVER and WANT_JSON_SERVER. * config/amanda/json.m4: Remove file * perl/Amanda/JSON/*: Remove directory. * perl/Amanda/JSON.pm: Remove module. * perl/Makefile.am: Remove Amanda/JSON.pm and Amanda/JSON/* * server-src/Makefile.am: Remove amanda.psgi * server-src/amanda.psgi.pl: Remove file. 2015-01-13 Jean-Louis Martineau * perl/Amanda/Vault.pm: Remove bogus print statement. 2015-01-13 Jean-Louis Martineau * server-src/amvault.pl: Add --src-labelstr argument. * perl/Amanda/DB/Catalog.pm: Match the labelstr. * perl/Amanda/Recovery/Planner.pm: Match the labelstr. * perl/Amanda/Util.swg (match_labelstr_expr): New method. * perl/Amanda/Vault.pm: Match the labelstr. * NEWS: Add new amvault --src-labelstr argument. 2015-01-07 Jean-Louis Martineau * common-src/amfeatures.h: Add fe_sendbackup_rep_retry. * common-src/amfeatures.c: Add fe_sendbackup_rep_retry. * server-src/dumper.c: Accept a RETRY in the REP packet. 2015-01-06 Jean-Louis Martineau * perl/Amanda/Changer/ndmp.pm: Remove bogus confess. 2015-01-06 Jean-Louis Martineau * common-src/debug.c: Add the pid of the process on each line. * perl/Amanda/Changer/disk.pm: Print the pid of the process using the drive. * perl/Amanda/Report/human.pm: Fix perl warning. 2015-01-05 Jean-Louis Martineau * common-src/conffile.c: bumpdays can be 0. 2015-01-03 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix bad status error. 2015-01-02 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/bin/app.pl.in: Die if loading an extensions fail. 2014-12-22 Jean-Louis Martineau * server-src/cmdfile.c (cmdfile_holding_file): Check it is a CMD_FLUSH 2014-12-19 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Report all FAIL. * perl/Amanda/Report/postscript.pm: Fix perl warning. * installcheck/amreport.pl: Change message. 2014-12-18 Jean-Louis Martineau * server-src/dumper.c: Fix RETRY line. 2014-12-18 Jean-Louis Martineau * perl/Amanda/Report.pm: Set dumper filed on RETRY. * perl/Amanda/Report/human.pm: Print RETRY line. 2014-12-18 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix perl warning. 2014-12-17 Jean-Louis Martineau * perl/Amanda/Curinfo/Info.pm (read_infofile_perfs): Report correct error if $skip_blanks fail. 2014-12-17 Jean-Louis Martineau * perl/Amanda/Curinfo/Info.pm (read_infofile): Handle empty file. 2014-12-17 Jean-Louis Martineau * perl/Amanda/DB/Catalog.pm: set $dumps{$dumpkey} on partnum==1. 2014-12-16 Jean-Louis Martineau * perl/Amanda/Vault.pm: Get interactivity. * server-src/amvault.pl: Add --no-interactivity * man/xml-source/amvault.8.xml: Document --no-interactivity argument. 2014-12-16 Jean-Louis Martineau * perl/Amanda/Rest/Runs.pm (list): Do not fail on empty file. 2014-12-15 Jean-Louis Martineau * perl/Amanda/Status.pm: Set $sle->{'status'} on taper eof. * server-src/driverio.h (taper_t): Add down field. * server-src/driverio.c (startup_tape_process): Set down to false. * server-src/driver.c (start_some_dumps): Do not use a taper if it is down. * server-src/driver.c (handle_taper_result): Set it to down on BOGUS. 2014-12-15 Jean-Louis Martineau * application-src/amgtar.c (support): Output "MESSAGE-SELFCHECK-JSON YES". * client-src/client_util.c (run_client_scripts): Output script output in meesage form. * client-src/client_util.h (run_client_scripts): Change proptotype. * client-src/selfcheck.c: Add fprint_message argument to run_client_scripts. * common-src/amfeatures.c: Add fe_sendsize_message, fe_sendbackup_message. * common-src/amfeatures.h: Add fe_sendsize_message, fe_sendbackup_message. * common-src/ammessage.c: Add error code 4600000 and 4600001. * perl/Amanda/Message.pm: Add many code range. * client-src/sendbackup.c: Add NULL argument to run_client_scripts. * client-src/sendsize.c: Add NULL argument to run_client_scripts. * recover-src/extract_list.c: Add NULL argument to run_client_scripts. 2014-12-12 Jean-Louis Martineau * server-src/dumper.c: Print 'data in sum CRC' to debug file. 2014-12-12 Jean-Louis Martineau * common-src/ammessage.c: Fix memory allocation. 2014-12-11 Jean-Louis Martineau * perl/Amanda/Vault.pm: Continue to next dump if src device fail. 2014-12-11 Jean-Louis Martineau * common-src/ammessage.c: Fix. * perl/Amanda/Logfile.swg: Include "amindex.h" 2014-12-11 Jean-Louis Martineau * application-src/amgtar.c: Fix message memory leak. * client-src/client_util.c: Fix message memory leak. * common-src/ammessage.c: Fix memory leak, fix for older glib2. 2014-12-11 Jean-Louis Martineau * perl/Amanda/Rest/Dles.pm: allow set and unset command at the same time. 2014-12-10 Jean-Louis Martineau * common-src/security-util.c: Change debuging level. 2014-12-10 Jean-Louis Martineau * common-src/ammessage.c: Fix for older glib2. 2014-12-10 Jean-Louis Martineau * client-src/senddiscover.c: fix json formating. * common-src/ammessage.c: Parse hash and array in message. 2014-12-09 Jean-Louis Martineau * perl/Amanda/Process.pm (which_process_running): New method to return the list of pid of the running amanda processes. * perl/Amanda/Cleanup.pm (message 3400002): Include the list of pid running. 2014-12-09 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix status. 2014-12-08 Jean-Louis Martineau * client-src/senddiscover.c: Parse application stdout * common-src/ammessage.c: handle null in json message. 2014-12-04 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Use tapelist label only if the slot is in SLOT_UNKNOWN state. 2014-12-04 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Keep an $self->{'oldsize'}. * perl/Amanda/Taper/Scribe.pm (get_bytes_written): Return $self->{'oldsize'} if the xfer is done. * perl/Amanda/Taper/Worker.pm: Truncate the status file after writting to it. 2014-12-02 Jean-Louis Martineau * server-src/amcheck-device.pl: s/writablility/writability/. 2014-11-28 Jean-Louis Martineau * common-src/amflock.c: Set errno. * perl/Amanda/Changer.pm: Print error on lock error. 2014-11-27 Jean-Louis Martineau * amandad-src/amandad.c: Check with getuid since we are not root there. * common-src/krb5-security.c: Drop root privileges, fix typos. 2014-11-26 Jean-Louis Martineau * perl/Amanda/Status.pm: fix status. 2014-11-24 Jean-Louis Martineau * Makefile.am: 'cp -av' => 'cp -fpR' ,-av are not valid on solaris. 2014-11-24 Jean-Louis Martineau * amar-src/amar.c (amar_attr_add_data_fd_thread): Close the file descriptor when there is nothing more to read from. * client-src/sendbackup.c (check_result): Fix a race bug. sendbackup do not always report the exit status of the application. Once amvmware close its socket, an immediate call to waitpid(-1,) might not trap it exited. The patch check all pid we forked until they exit (max 5 seconds), after that they are killed. 2014-11-21 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/bin/app.pl.in: Convert request from utf-8 to user locale. 2014-11-21 Jean-Louis Martineau * perl/Amanda/Message.pm: Convert reply from user locale to utf-8. 2014-11-19 Jean-Louis Martineau * config/amanda/flags.m4: subst AMANDA_FILE_CFLAGS do that in generate the basename of the file. * amandad-src/Makefile.am, amar-src/Makefile.am, application-src/Makefile.am, client-src/Makefile.am, common-src/Makefile.am, device-src/Makefile.am, ndmp-src/Makefile.am, oldrecover-src/Makefile.am, perl/Makefile.am, recover-src/Makefile.am, server-src/Makefile.am, xfer-src/Makefile.am (AM_CFLAGS): Add $(AMANDA_FILE_CFLAGS) * application-src/amgtar.c, client-src/client_util.c, client-src/selfcheck.c, client-src/senddiscover.c, common-src/conffile.c, server-src/amcheck.c: Use AMANDA_FILE in build_message 2014-11-19 Jean-Louis Martineau * config/test-driver: New file for automake-1.14 * config/missing, config/ylwrap, config/install-sh, config/mkinstalldirs, config/depcomp, config/compile, config/config.guess, config/config.sub: Update to automake-1.14 2014-11-19 Jean-Louis Martineau * Makefile.am: Add '-I /usr/share/aclocal' to ACLOCAL_AMFLAGS 2014-11-18 Jean-Louis Martineau * perl/Amanda/Message.pm: Fix code number attribution. 2014-11-18 Jean-Louis Martineau * common-src/amservice.c: Set remote_errors on "ERROR" from the client. To get an exit code with error. 2014-11-18 Jean-Louis Martineau * perl/Amanda/Rest/Services.pm: Add a waitpid of the amservice process. * perl/Amanda/Service.pm: Add messages code. 2014-11-14 Jean-Louis Martineau * perl/Amanda/Process.pm: '' process are dead, process can be "starman". * perl/Amanda/Rest/Runs.pm: Call process_alive with the $pname. 2014-11-13 Jean-Louis Martineau * amar-src/amar.c (amar_attr_add_data_fd): write eoa on size==0. 2014-11-12 Jean-Louis Martineau * autogen: Add "-I /usr/share/aclocal" to includes 2014-11-12 Jean-Louis Martineau * perl/Amanda/Amdump.pm (run): set $self->{'pid'} * perl/Amanda/Amflush.pm (run): set $self->{'pid'} * perl/Amanda/CheckDump.pm (run): set $self->{'pid'} * perl/Amanda/Rest/Runs.pm: Log "fork" line. * perl/Amanda/Vault.pm: Small fix. * server-src/amflush.pl: Log "fork" line. * server-src/amvault.pl: s/config_name/config/g 2014-11-12 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix perl warning. 2014-11-08 Jean-Louis Martineau * xfer-src/filter-process.c (get_err_fd): Remove prototype. * xfer-src/xfer-element.h (get_err_fd): Add prototype. * perl/Amanda/Cmdline.swg: #include "match.h" 2014-11-08 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Fix BROKEN-DRIVE-LOADED-SLOT. 2014-11-08 Jean-Louis Martineau * perl/Amanda/Script_App.pm (print_to_server): Print enssage to debug file. * server-src/amfetchdump.pl: Add severity to messages. 2014-11-07 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Fix BROKEN-DRIVE-LOADED-SLOT. * installcheck/Amanda_Changer_robot.pl: Fix test. 2014-11-07 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Add a BROKEN-DRIVE-LOADED-SLOT property. * man/xml-source/amanda-changers.7.xml: Document it. 2014-11-06 Jean-Louis Martineau * installcheck/amrmtape.pl: Fix diskpath. 2014-11-06 Jean-Louis Martineau * common-src/conffile.c: Generate an error if fopen of config fail. 2014-11-06 Jean-Louis Martineau * server-src/amtrmidx.c: Do not delete index file newer than 7 days. * installcheck/amrmtape.pl: Fix check. 2014-11-05 Jean-Louis Martineau * perl/Amanda/Script_App.pm (do) : Set action with special command. 2014-11-04 Jean-Louis Martineau * server-src/logfile.c: Do no create the log symlink for a checkdump or fetchdump run. 2014-11-04 Jean-Louis Martineau * perl/Amanda/Report.pm: Parse checkdump and fetchdump line. new return an Amanda::Message on error. * perl/Amanda/Rest/Report.pm: Handle Amanda::Report->new returning an Amanda::Message. * server-src/amreport.pl: Handle Amanda::Report->new returning an Amanda::Message. * server-src/logfile.c: Parse checkdump and fetchdump line. 2014-11-03 Jean-Louis Martineau * amar-src/amar.c: Fix hang on eof. * common-src/ammessage (ammessage_encode_json): Improve encoding. * perl/Amanda/Cleanup.pm: Remove trailing '\n'. * perl/Amanda/Rest/Runs.pm: Fix Message module * perl/Amanda/Status.pm: Fix. * server-src/amstatus.pl: Set $pwd before changing the cwd. 2014-10-31 Jean-Louis Martineau * perl/Amanda/Cleanup.pm: Add message 34000010. * perl/Amanda/Process.pm: Return Message if can't open the trace_log. * perl/Amanda/Rest/Runs.pm: Accept multiple trace_log. 2014-10-31 Jean-Louis Martineau * perl/Amanda/Rest/Changers.pm, perl/Amanda/Rest/Configs.pm, perl/Amanda/Rest/Storages.pm: Do not accept comma in fields. * perl/Amanda/Rest/Storages/Labels.pm: Do not accept comma in labels. * installcheck/Amanda_Rest_Changers.pl, installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Storages.pl: Do not use comma. 2014-10-31 Jean-Louis Martineau * perl/Amanda/Status.pm (new): Return error if it can't open the amdump_log file. * perl/Amanda/Rest/Status.pm, server-src/amstatus.pl: Handle error. 2014-10-31 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix perl warnings. 2014-10-31 Jean-Louis Martineau * perl/Amanda/Rest/Changers.pm, perl/Amanda/Rest/Configs.pm, perl/Amanda/Rest/Storages.pm: Parse multiple fields. 2014-10-31 Jean-Louis Martineau * application-src/amgtar.c: Always set argument.host 2014-10-30 Jean-Louis Martineau * common-src/ammessage.c: Improve JSON escaping code. 2014-10-29 Jean-Louis Martineau * application-src/ambsdtar.c: Handle 'x ' lines on stderr for bsdtar restore. 2014-10-28 Jean-Louis Martineau * perl/Amanda/Message.pm: Add Amanda::Extensions::Message 2014-10-28 Jean-Louis Martineau * perl/Amanda/FetchDump.pm: log pid-done line. * perl/Amanda/Rest/Runs.pm: Handle fork from rest server. * server-src/logfile.c: log pid line with pname. 2014-10-28 Jean-Louis Martineau * perl/Amanda/Curinfo/Info.pm: Fix perl warning. 2014-10-28 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix perl warning. 2014-10-27 Jean-Louis Martineau * perl/Amanda/Curinfo.pm (get_dle_info): New method. * perl/Amanda/Rest/Amanda/bin/app.pl.in: Add get '/amanda/v1.0/configs/:CONF/dles/hosts/:HOST' * perl/Amanda/Rest/Dles.pm (info): New method. 2014-10-21 Jean-Louis Martineau * server-src/amanda-rest-server.pl: Typo. * perl/Amanda/Status.pm: Fix. 2014-10-21 Jean-Louis Martineau * perl/Amanda/Status.pm: Set nb_tape to 0. * server-src/amanda-rest-server.pl: print "Stoped the Amanda Rest Server". 2014-10-17 Jean-Louis Martineau * perl/Amanda/FetchDump.pm: $self->{'message_file'}->autoflush, Return $params{'finished_cb'}->(1); * perl/Amanda/Rest/Runs.pm: Add '=' to dumpspec argument. 2014-10-17 Jean-Louis Martineau * perl/Amanda/Status.pm, server-src/amstatus.pl: Fix perl warning. 2014-10-17 Jean-Louis Martineau * perl/Amanda/Rest/Runs.pm, perl/Amanda/CheckDump.pm, perl/Amanda/Device.swg, perl/Amanda/Cleanup.pm, perl/Amanda/Changer/diskflat.pm, perl/Amanda/Changer.pm, perl/Amanda/Vault.pm, perl/Amanda/Index.pm, perl/Amanda/Disklist.swg: Add severity to messages. 2014-10-16 Jean-Louis Martineau * perl/Amanda/Status.pm: Set write_size, and $dle->{'dsize'}. 2014-10-16 Jean-Louis Martineau * server-src/amcleanup.pl: Some fixes. 2014-10-16 Jean-Louis Martineau * client-src/selfcheck.c: Fix compilation if SAMBA_CLIENT is not defined. * common-src/ammessage.c: Add Message 3600087. 2014-10-15 Jean-Louis Martineau * perl/Amanda/CheckDump.pm: Set severity on Message. 2014-10-15 Jean-Louis Martineau * server-src/amcheck.c: Use g_strdup. 2014-10-15 Jean-Louis Martineau * application-src/amgtar.c: Output message for selfcheck * client-src/client_util.c (backup_support_option): Parse "MESSAGE-JSON". * client-src/client_util.h (backup_support_option_s): Add message_json. * client-src/selfcheck.c: Parse message from application. * common-src/ammessage.c: Add amgtar message. * perl/Amanda/Extract.pm (BSU): parse message-json * perl/Amanda/Message.pm: Add amgtar message (3700000). * server-src/amcheck.c: Remove unused code, small cleanup. * installcheck/Installcheck/Application.pm (selfcheck_message): execute application selfcheck with '--message json'. * installcheck/amgtar.pl: Call selfcheck_message. 2014-10-15 Jean-Louis Martineau * common-src/ammessage.h: #ifndef AMMESSAGE_H 2014-10-15 Jean-Louis Martineau * common-src/ammessage.c: Do not use g_ptr_array_new_full. * server-src/amcheck.c: g_ptr_array_free(message_array, TRUE); 2014-10-14 Jean-Louis Martineau * device-src/s3.c (rfc3339_date): Use full_write and fill_read. 2014-10-14 Jean-Louis Martineau * common-src/amfeatures.c: Add fe_selfcheck_message. * common-src/amfeatures.h: Add fe_selfcheck_message. * client-src/client_util.c (check_access_message, check_file_message, check_dir_message, check_suid_message): New function that return a message_t. * client-src/client_util.h: Add prototype. * client-src/selfcheck.c: Return message to server. * common-src/ammessage.c: Many improvement. * common-src/ammessage.c (delete_message_gpointer, get_quoted_message, message_get_code, message_get_severity, message_get_argument, message_add_argument, parse_json_message): New function. * common-src/ammessage.h: Add prototype. * common-src/amservice.c: Take a --features argument. * perl/Amanda/Message.pm: selfcheck message are 3600000 * server-src/amcheck.c: Parse message from selfcheck. * installcheck/Amanda_Rest_Amcheck.pl: Fix message. * installcheck/amservice.pl: Test --features argument. 2014-10-11 Jean-Louis Martineau * config/amanda/device.m4: AC_SUBST(AMANDA_DEVICES) * perl/Amanda/Constants.pm.in.src: Add AMANDA_DEVICES. * installcheck/Amanda_Device.pl: Do not check dvdrw device if it is not compiled in. 2014-10-10 Jean-Louis Martineau * installcheck/Installcheck/Rest.pm: Check if Dancer is installed. 2014-10-10 Jean-Louis Martineau * perl/Amanda/Rest/Amcheck.pm, perl/Amanda/Rest/Report.pm, perl/Amanda/Rest/Runs.pm, perl/Amanda/Rest/Services.pm, perl/Amanda/Rest/Status.pm, perl/Amanda/Rest/Version.pm: * installcheck/Amanda_Rest_Amcheck.pl: Call set_pname. installcheck/Amanda_Rest_Runs.pl: Fix process. 2014-10-10 Jean-Louis Martineau * perl/Amanda/Config.swg: Fix message. 2014-10-10 Jean-Louis Martineau * application-src/ampgsql.pl: Tag 'File removed before we read it' as GOOD. 2014-10-09 Jean-Louis Martineau * common-src/ammessage.c: Fix some messages. * perl/Amanda/CheckDump.pm: Use errnostr. Decode use base64 xml encoding * perl/Amanda/FetchDump.pm: Use errnostr. Decode use base64 xml encoding * perl/Amanda/Label.pm: Use errnostr. * perl/Amanda/Message.pm: Set errnostr. * perl/Amanda/Rest/Runs.pm: Fix open. * server-src/amreindex.pl: Decode use base64 xml encoding. * installcheck/Amanda_Rest_Configs.pl: Add errnostr. 2014-10-06 Jean-Louis Martineau * perl/Amanda/FetchDump.pm: Set severity on many message. * perl/Amanda/Rest/Runs.pm: Fix setting message_filename. 2014-10-06 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Fix perl format. 2014-10-03 Jean-Louis Martineau * installcheck/Makefile.am: Amanda_Rest_Amcheck must be run only if client and sewrver are installed. 2014-10-03 Jean-Louis Martineau * common-src/bsdtcp-security.c: Free res. * common-src/bsdudp-security.c: Free res. * server-src/tapefile.c: Remove unused allocation. 2014-10-03 Jean-Louis Martineau * amar-src/amar.c: Fix loop. * common-src/bsdtcp-security.c: Free res. * common-src/bsdudp-security.c: Free res. * recover-src/extract_list.c: Remove duplicate code. * server-src/amindexd.c: Remove unused allocation. * server-src/dumper.c: Remove always TRUE check. * server-src/tapefile.c: Remove unused allocation. 2014-10-03 Jean-Louis Martineau * perl/Amanda/Cleanup.pm: Add it. 2014-10-03 Jean-Louis Martineau * perl/Amanda/Cleanup.pm: new perl module for amcleanup functionnality. * perl/Makefile.am: Add Amanda/Cleanup.pm. * server-src/amcleanup.pl: Use Amanda::Cleanup * perl/Amanda/Holding.pm (_walk): Do not list 'pid' file. * perl/Amanda/Message.pm: Add Amanda::Cleanup::Message and Amanda::Process::Message. * perl/Amanda/Process.pm: Send Amanda::Message. * perl/Amanda/Rest/Amanda/bin/app.pl.in: Add DELETE /amanda/v1.0/config/:CONF/runs * perl/Amanda/Rest/Runs.pm: Add kill functionnality. 2014-10-02 Jean-Louis Martineau * server-src/amcheck.c: Fix type casting. 2014-10-02 Jean-Louis Martineau * perl/Amanda/Rest/Amcheck.pm: Fix unshift. * perl/Amanda/Rest/Configs.pm: Fix severity. 2014-10-02 Jean-Louis Martineau * client-src/sendbackup.c: Fix small bug found by coverity. * common-src/ammessage.c: typo. * server-src/amcheck.c: typo, remove unused variable. 2014-10-02 Jean-Louis Martineau * common-src/ammessage.c : Print severity as name. * perl/Amanda/Message.pm: severity constant are name. * installcheck/Amanda_Rest_Amcheck.pl, installcheck/Amanda_Rest_Changers.pl, installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Dles.pl, installcheck/Amanda_Rest_Dumps.pl, installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Runs.pl, installcheck/Amanda_Rest_Storages.pl, installcheck/Amanda_Rest_Storages_Labels.pl, installcheck/Amanda_Rest_Version.pl: Use symbol for the severity. 2014-10-02 Jean-Louis Martineau * common-src/ammessage.h: Change severity values. * perl/Amanda/Message.pm: Change severity values. * perl/Amanda/Changer.pm, perl/Amanda/Changer/disk.pm, * perl/Amanda/Changer/diskflat.pm, perl/Amanda/Changer/multi.pm, perl/Amanda/Changer/robot.pm, perl/Amanda/Curinfo.pm, perl/Amanda/Curinfo/Info.pm, perl/Amanda/Label.pm, perl/Amanda/Recovery/Scan.pm, perl/Amanda/Rest/Amcheck.pm, perl/Amanda/Rest/Changers.pm, perl/Amanda/Rest/Configs.pm, perl/Amanda/Rest/Dles.pm, perl/Amanda/Rest/Dumps.pm, perl/Amanda/Rest/Labels.pm, perl/Amanda/Rest/Report.pm, perl/Amanda/Rest/Runs.pm, perl/Amanda/Rest/Services.pm, perl/Amanda/Rest/Storages.pm, perl/Amanda/Rest/Storages/Labels.pm, perl/Amanda/Rest/Version.pm, perl/Amanda/Status.pm, perl/Amanda/Storage.pm, perl/Amanda/Tapelist.swg, perl/Amanda/Vault.pm, server-src/amcheck.c: Set severity. * installcheck/Amanda_Rest_Amcheck.pl, installcheck/Amanda_Rest_Changers.pl, installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Dles.pl, installcheck/Amanda_Rest_Dumps.pl, installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Runs.pl, installcheck/Amanda_Rest_Storages.pl, installcheck/Amanda_Rest_Storages_Labels.pl, installcheck/Amanda_Rest_Version.pl: Change for new severity values. 2014-10-02 Jean-Louis Martineau * common-src/ammessage.c: Change API. Add all messages for amcheck. * common-src/ammessage.h: Change prototype. * server-src/amcheck.c, client-src/senddiscover.c: Use new API. * perl/Amanda/Message.pm: Add message code 2850000. * perl/Amanda/Rest/Amcheck.pm: Add a message with exit_status of amcheck * installcheck/Amanda_Rest_Amcheck.pl: Fix for new message. 2014-10-02 Jean-Louis Martineau * perl/Amanda/Rest/Runs.pm (/amanda/v1.0/configs/:CONF/runs/messages): change from post to get method. 2014-10-02 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/bin/app.pl.in (/amanda/v1.0/configs/:CONF/runs/messages): change from post to get method. 2014-10-01 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix perl warning. * server-src/amstatus.pl: Fix perl warning. 2014-10-01 Jean-Louis Martineau * perl/Amanda/Rest/Labels.pm, perl/Amanda/Rest/Storages/Labels.pm (list): add filter on datestamp. 2014-09-30 Jean-Louis Martineau * common-src/file.c (debug_agets): Fix parsing of comment. 2014-09-30 Jean-Louis Martineau * perl/Amanda/Taper/Scan/lexical.pm, perl/Amanda/Taper/Scan/oldest.pm (last_use_label): Fix for empty tapelist. 2014-09-29 Jean-Louis Martineau * installcheck/Amanda_Rest_Dles.pl: Fix for new message format. 2014-09-29 Jean-Louis Martineau * common-src/ammessage.c: Set component and module. * common-src/amutil.c (set_pcomponent, get_pcomponent, set_pmodule, get_pmodule, push_component_module, pop_component_module): New functions. * common-src/amutil.h: Add prototype. * perl/Amanda/Changer.pm: Call push_component_module and pop_component_module. * perl/Amanda/Message.pm: Set component and module. * server-src/amcheck.c: Set component and module. * application-src/ambsdtar.c, application-src/amgtar.c application-src/amstar.c: Call set_pcomponent and set_pmodule, * perl/Amanda/Util.swg (setup_application): Call set_pcomponent and set_pmodule. * client-src/amdump_client.pl, common-src/amgetconf.pl, device-src/amdevcheck.pl, device-src/amtapetype.pl, perl/Amanda/Rest/Amanda/bin/app.pl.in, perl/Amanda/Script_App.pm, server-src/amadmin_perl.pl, server-src/amanda-rest-server.pl, server-src/amanda.psgi.pl, server-src/amcheck-device.pl, server-src/amcheckdump.pl, server-src/amcleanup.pl, server-src/amcleanupdisk.pl, server-src/amdump.pl, server-src/amdumpd.pl, server-src/amfetchdump.pl, server-src/amflush.pl, server-src/amidxtaped.pl, server-src/amlabel.pl, server-src/amlogroll.pl, server-src/amreindex.pl, server-src/amreport.pl, server-src/amrestore.pl, server-src/amrmtape.pl, server-src/amserverconfig.pl, server-src/amstatus.pl, server-src/amtape.pl, server-src/amvault.pl, server-src/chunker.pl, server-src/taper.pl: Call setup_application with component and module. * installcheck/Amanda_Rest_Amcheck.pl, installcheck/Amanda_Rest_Changers.pl, installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Dumps.pl, installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Runs.pl, installcheck/Amanda_Rest_Storages.pl, installcheck/Amanda_Rest_Storages_Labels.pl, installcheck/Amanda_Rest_Version.pl: Fix for new message format. 2014-09-25 Jean-Louis Martineau * common-src/conffile.c (get_running_on): new function. * common-src/conffile.h (get_running_on): add prototype. * perl/Amanda/Config.swg (get_running_on): swig it. * common-src/ammessage.c, perl/Amanda/Changer.pm, perl/Amanda/Message.pm, server-src/amcheck.c: Add process and running_on in message. * perl/Amanda/Rest/Changers.pm, perl/Amanda/Rest/Configs.pm, perl/Amanda/Rest/Dles.pm, perl/Amanda/Rest/Dumps.pm, perl/Amanda/Rest/Labels.pm, perl/Amanda/Rest/Runs.pm, perl/Amanda/Rest/Storages.pm, perl/Amanda/Rest/Storages/Labels.pm, perl/Amanda/Rest/Version.pm: call Amanda::Util::set_pname. * installcheck/Amanda_Rest_Amcheck.pl, installcheck/Amanda_Rest_Changers.pl, installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Dles.pl, installcheck/Amanda_Rest_Dumps.pl, installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Runs.pl, installcheck/Amanda_Rest_Storages.pl, installcheck/Amanda_Rest_Storages_Labels.pl, installcheck/Amanda_Rest_Version.pl: Fix for new field in message. 2014-09-25 Jean-Louis Martineau * perl/Amanda/Taper/Scan/traditional.pm: Check for DEVICE_STATUS_VOLUME_UNLABELED without volume_header. 2014-09-24 Jean-Louis Martineau * perl/Amanda/Rest/*.pm, perl/Amanda/Rest/Storages/Labels.pm: Fix for html generated pages. * perl/Makefile.am (html): Do not remove html-tmp. 2014-09-24 Jean-Louis Martineau * device-src/diskflat-device.c: Error is DEVICE_STATUS_VOLUME_UNLABELED if the file do not exists. * device-src/vfs-device.c (vfs_device_read_label): Do not reset an error when it is set. * installcheck/Amanda_Rest_Storages.pl: Fix fo device change. * perl/Amanda/Changer/diskflat.pm: Fix perl warning. * perl/Amanda/CheckDump.pm ,perl/Amanda/FetchDump.pm: Create a log..0 file can a checkdump. or fetchdump. * perl/Amanda/Rest/Runs.pm: Do not create the checkdump.$$ or fetchdump.$$. list also list checkdump and fetchdump run. 2014-09-24 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Fix perl warning. * perl/Amanda/Taper/Worker.pm (TAKE_SCRIBE_FROM): Set scribe1->{'cancelled'} to 0. 2014-09-23 Jean-Louis Martineau * server-src/amanda-rest-server.pl: Add '--max-requests 1' to starman arguments. 2014-09-22 Jean-Louis Martineau * application-src/amgtar.c (amgtar_restore): Exit on error if tar fail. * perl/Amanda/Changer/diskflat.pm: fix. * perl/Amanda/FetchDump.pm: New perl module to fetch a dump. * perl/Amanda/Message.pm (full_message): New function. * perl/Amanda/Rest/Amanda/bin/app.pl.in: Add post /amanda/v1.0/configs/:CONF/runs/fetchdump * perl/Amanda/Rest/Runs.pm (fetchdump): New function. * perl/Makefile.am: Add Amanda/FetchDump.pm * server-src/amfetchdump.pl: Use new perl Amanda::Fetchdump module. * server-src/amidxtaped.pl: Use new perl Amanda::Fetchdump module. * installcheck/amfetchdump.pl: Fix for module use. 2014-09-22 Jean-Louis Martineau * installcheck/Amanda_Rest_Storages_Labels.pl: Fix. 2014-09-19 Jean-Louis Martineau * device-src/diskflat-device.c: Unlink file on erase. * perl/Amanda/Changer.pm: Add message 1100066 * perl/Amanda/Changer/diskflat.pm: Do not create files if slot not used. * perl/Amanda/Label.pm: Fix. * installcheck/Amanda_Rest_Storages.pl: Fix. * installcheck/Amanda_Rest_Storages_Labels.pl: Fix. 2014-09-18 Jean-Louis Martineau * perl/Amanda/Taper/Scan/traditional.pm: Continue on invalid. 2014-09-16 Jean-Louis Martineau * perl/Amanda/Changer.pm (verify): Failure to read the label is not an error. * perl/Amanda/Changer.pm: Add message for code 1100065. 2014-09-16 Jean-Louis Martineau * common-src/security-util.c: Compute and print crc32 of each packet if debug_auth >= 6. 2014-09-10 Xu Han * packaging/rpm/amanda.spec.src: CentOS 7 packaging. 2014-09-10 Jean-Louis Martineau * installcheck/gnutar.pl: Fix for rhel7. 2014-09-10 Jean-Louis Martineau * config/amanda/amanda_configure.m4: Fix, s/AMANDA_EXTENSIONS_HOOK/AMANDA_REST_EXTENSIONS/g 2014-09-10 Jean-Louis Martineau * config/amanda/rest-extensions.m4: Fix, s/EXTENSIONS_HOOK_DIR/REST_EXTENSIONS_DIR/g 2014-09-10 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/bin/app.pl.in: Add changers URL. * installcheck/Amanda_Rest_Changers.pl: Typo 2014-09-10 Jean-Louis Martineau * config/amanda/amanda_configure.m4: s/AMANDA_REST_HOOK/AMANDA_EXTENSIONS_HOOK/ * config/amanda/rest-hook.m4: remove file * perl/Amanda/Constants.pm.in.src: s/AMANDA_REST_HOOK/AMANDA_EXTENSIONS_HOOK/ * perl/Amanda/Rest/Amanda/bin/app.pl.in: Use REST_EXTENSIONS_DIR * config/amanda/rest-extensions.m4: Copy of rest-hook.m4, rename AMANDA_REST_HOOK to AMANDA_EXTENSIONS_HOOK, define REST_EXTENSIONS_DIR instead of REST_HOOK_DIR. 2014-09-10 Jean-Louis Martineau * common-src/conffile.c (get_changer_list): New function. * common-src/conffile.h (get_changer_list): Add protoype. * perl/Amanda/Config.swg (get_changer_list) Swig it. * perl/Amanda/Config.swg: Add new message. * perl/Amanda/Changer.pm: Fix typo. * perl/Amanda/Rest/Storages.pm: Fix typo. * perl/Makefile.am: Add Amanda/Rest/Changers.pm * perl/Amanda/Rest/Changers.pm: Add new REST API * installcheck/Makefile.am: Add Amanda_Rest_Changers * installcheck/Amanda_Rest_Changers.pl: Test the new REST API. 2014-09-08 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix for dump to tape. * installcheck/Amanda_Rest_Runs.pl: Fix. 2014-09-08 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: Can changer set_error_to_unknown if a slot previously in error succeed. * perl/Amanda/Taper/Scan/lexical.pm, perl/Amanda/Taper/Scan/oldest.pm: Scan one slot for each error message. * perl/Amanda/Changer/multi.pm (set_error_to_unknown): new function to mark as unknown all slot with a given error message. 2014-09-03 Jean-Louis Martineau * device-src/dvdrw-device.c: dvdrw_growisofs_command, dvdrw_mount_command and dvdrw_umount_command property are G_TYPE_STRING. * installcheck/Amanda_Device.pl: Test parsing dvd properties. 2014-09-03 Jean-Louis Martineau * device-src/s3.c (get_openstack_swift_api_v2_setting): Set hdl->x_auth_token to NULL. 2014-09-02 Jean-Louis Martineau * server-src/amcheck.c: Fix mailto allocation. 2014-09-02 Jean-Louis Martineau * device-src/rait-device.c: Use int value instead of pointer value. 2014-08-28 Jean-Louis Martineau * perl/Amanda/Message.pm: 32xxxxx are for amanda-extensions. 2014-08-27 Jean-Louis Martineau * device-src/xfer-dest-taper-cacher.c: Cast pointer. 2014-08-27 Jean-Louis Martineau * common-src/security-util.c (check_user_amandahosts): Proceed to next line if host and user match but not the service. 2014-08-27 Jean-Louis Martineau Patch by Bill Blough * ndmp-src/ndmjob_args.c, device-src/tape-device.c, server-src/amindexd.c, man/xml-source/amanda.conf.5.xml, man/xml-source/amanda-auth.7.xml, man/xml-source/amzfs-sendrecv.8.xml, man/xml-source/amanda-changers.7.xml, man/xml-source/amzfs-snapshot.8.xml, common-src/amutil.c: Fix typos. 2014-08-27 Jean-Louis Martineau * config/amanda/syshacks.m4: Define NEED_LD_LIBRARY_PATH_ENV on hpux. * common-src/alloc.c (safe_env_full): Add LD_LIBRARY_PATH. * amar-src/amar.c, common-src/ipc-binary.h, device-src/ndmp-device.c, device-src/xfer-dest-device.c, device-src/xfer-dest-taper-cacher.c, device-src/xfer-dest-taper-splitter.c: Change so gpointer to gchar* because hpux compiler can't do arithmetic on gpointer. 2014-08-12 Jean-Louis Martineau * common-src/amservice.c: Print arguments to the debug file. * common-src/conffile.c: Add ctimeout to client config file. * perl/Amanda/Rest/Configs.pm: Fix parsing of config_overrides. * perl/Amanda/Rest/Services.pm: Pass config_overrides to amservice. 2014-08-11 Jean-Louis Martineau * client-src/senddiscover.c: Fix memory use. 2014-08-11 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/config.yml: Add log_path 2014-08-07 Jean-Louis Martineau * example/inetd.conf.amandaclient.in, example/inetd.conf.amandaserver.in example/xinetd.amandaclient.in, example/xinetd.amandaserver.in: Add senddicover service. 2014-08-06 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/bin/app.pl.in: Set log_path to "@AMANDA_DBGDIR@/amanda-rest-server-log" * perl/Amanda/Rest/Amanda/config.yml: Set appname to "amanda". * perl/Makefile.am: Do not create ../Rest/Amanda/logs 2014-08-05 Jean-Louis Martineau * perl/Amanda/Script_App.pm (print_to_server): print CRITICAL message in []. 2014-08-04 Jean-Louis Martineau * client-src/senddiscover.c: fllush(stdout) * perl/Amanda/Service.pm: Add error code 3100005. 2014-08-04 Jean-Louis Martineau * client-src/senddiscover.c: Add the --device argument. * perl/Amanda/Rest/Services.pm: Do not read a config, set diskdevice and esxpass property. 2014-08-01 Jean-Louis Martineau * perl/Makefile.am: Remove duplicate entry. 2014-08-01 Jean-Louis Martineau * client-src/senddiscover.c: Fix. * common-src/ammessage.c: Fix json output. * perl/Amanda/Message.pm: Add Amanda::Service::Message. * perl/Amanda/Rest/Amanda/bin/app.pl.in: Add /amanda/v1.0/services/discover URL * perl/Makefile.am: Add Amanda/Service.pm and Amanda/Rest/Services.pm * perl/Amanda/Service.pm: New perl module * perl/Amanda/Rest/Services.pm: REST API for deicover service. 2014-08-01 Jean-Louis Martineau * perl/Amanda/Application.swg (known_commands: Add discover. * perl/Amanda/Message.pm: Add Amanda::Amvmware::Message. 2014-07-31 Jean-Louis Martineau * common-src/ammessage.c: Fix typedef. 2014-07-31 Jean-Louis Martineau * config/amanda/amanda_configure.m4: Call AMANDA_REST_HOOK * perl/Amanda/Constants.pm.in.src: Add $REST_HOOK_DIR. * config/amanda/rest-hook.m4 (AMANDA_REST_HOOK): --with-rest-hook * perl/Amanda/Rest/Amanda/bin/app.pl.in: Load rest-hook 2014-07-31 Jean-Louis Martineau * common-src/conffile.c, server-src/amcheck.c: Fix bug found by coverity. 2014-07-31 Jean-Louis Martineau * amandad-src/amandad.c: Handle senddiscover service. * client-src/Makefile.am: Build senddiscover. * client-src/client_util.c: Parse DISCOVER backup support option. * client-src/client_util.h (backup_support_option_t): Add discover. * client-src/senddiscover.c: New client service. * common-src/Makefile.am: Add ammessage. * common-src/ammessage.c: Add struct and function to handle Message and print them in JSON format. * common-src/ammessage.h: Add prototype. * common-src/conffile.c: Fix json indentation. * perl/Amanda/Message.pm: Add senddiscover. 2014-07-31 Jean-Louis Martineau * config/amanda/dumpers.m4: Improve error message for bsdtar. 2014-07-30 Jean-Louis Martineau * common-src/conffile.c (config_print_errors_as_message): New function. * common-src/conffile.h (config_print_errors_as_message): New prototype. * perl/Amanda/Config.swg: Add error 1500016. * server-src/amanda-rest-server.pl: s/Amadna/Amanda/ * server-src/amcheck.c: Use printf_message instead of error. 2014-07-30 Jean-Louis Martineau * perl/Amanda/Rest/Amcheck.pm: Use '-c' for client check. 2014-07-29 Jean-Louis Martineau * config/amanda/bsd-security.m4: USE_AMANDAHOSTS must be defined even without bsd security (for bsdudp and bsdtcp). 2014-07-29 Jean-Louis Martineau Patch by Nathan Stratton Treadway * man/xml-source/amgtar.8.xml: Add ": directory is on a different filesystem; not dumped". * man/xml-source/amanda-devices.7.xml: Add amanda-changers man page. * man/xml-source/ambsdtar.8.xml: Typo. * man/xml-source/amanda.conf.5.xml: Typo. 2014-07-28 Jean-Louis Martineau * server-src/amanda-rest-server.pl: Use Amanda::Paths::AMANDA_DBGDIR instead of CNF_LOGDIR for the rest-api-pid file. 2014-07-24 Jean-Louis Martineau * common-src/security-util.c (check_security): service is unused in some compilation path. 2014-07-24 Jean-Louis Martineau * common-src/bsd-security.c, common-src/bsdtcp-security.c, common-src/bsdudp-security.c, common-src/krb5-security.c: Remove "\n" in security_seterror error message. * server-src/amanda-rest-server.pl: Improve error detection. 2014-07-24 Jean-Louis Martineau * common-src/conffile.c (config_is_initialized): Fix declaration. * common-src/conffile.h: Comment typo. 2014-07-24 Jean-Louis Martineau * common-src/conffile.h (config_is_initialized): Fix prototype. 2014-07-23 Jean-Louis Martineau * common-src/security-util.c (check_security): Take a new service argument. * common-src/amanda.h (check_security): Change prototype. * common-src/conffile.c (config_is_initialized): New functionto return if the config is initialized. * common-src/conffile.h (config_is_initialized): New prototype. * common-src/debug.c: (debug_unlink_old): Return if config is not initialized. * server-src/amidxtaped.pl: Add "amidxtaped" as argument to check_bsd_security. * server-src/amindexd.c: Add "amindexd" as argument to check_security. * perl/Amanda/Util.swg (check_security_fd): Take a new service argument, pass it to check_security. * perl/Amanda/ClientService.pm (check_bsd_security): Take a new service argument, pass it to Amanda::Util::check_security. 2014-07-14 Jean-Louis Martineau * ndmp-src/Makefile.am: Fix for building out of tree. 2014-07-14 Jean-Louis Martineau * ndmp-src/Makefile.am: Fix for building out of tree. 2014-07-11 Jean-Louis Martineau Patch by Orion Poplawski * ndmp-src/Makefile.am: Fix for building out of tree. 2014-07-10 Jean-Louis Martineau * application-src/script-email.pl: Remove $args. 2014-07-09 Jean-Louis Martineau * application-src/script-email.pl: Accept all characters in mailto. 2014-07-09 Jean-Louis Martineau * device-src/s3.c: Fix curl version check for CURLE_SSL_CACERT_BADFILE. 2014-07-09 Jean-Louis Martineau * installcheck/Amanda_Rest_Amcheck.pl: Fix for --without-client. 2014-07-09 Jean-Louis Martineau * amandad-src/amandad.c: Use '. * server-src/amcheck.c: Encode " and / in json reply. 2014-07-08 Jean-Louis Martineau * perl/Amanda/Disklist.swg: Fix perl warning. 2014-07-08 Jean-Louis Martineau * installcheck/Amanda_Rest_Runs.pl: Fix. 2014-07-08 Jean-Louis Martineau * perl/Amanda/Rest/*.pm: Improve html formating. 2014-07-08 Jean-Louis Martineau * common-src/conffile.c: s/"/'/ * installcheck/Amanda_Config.pl: Check '. * installcheck/Amanda_Rest_Configs.pl: Check '. * installcheck/Amanda_Rest_Dles.pl: Check '. * installcheck/Amanda_Rest_Runs.pl: Check Amanda::Rest::Runs module. * installcheck/Makefile.am (server_tests): Add Amanda_Rest_Runs. * perl/Amanda/Amdump.pm: Small Improvement. * perl/Amanda/Amflush.pm: Small Improvement. * perl/Amanda/Rest/Runs.pm: Add list method. * perl/Amanda/Status.pm: Improve documentation. * perl/Amanda/Vault.pm: Remove debugging statement. * server-src/amflush.pl: log pid-done line. * server-src/planner.c: s/--exact_match/--exact-match/ 2014-07-08 Jean-Louis Martineau * device-src/s3-device.c: Move some declaration to s3-device.h * device-src/s3-device.h: New file. * device-src/Makefile.am: Add s3-device.h. 2014-07-04 Jean-Louis Martineau * installcheck/Amanda_Rest_Amcheck.pl: Fix. 2014-07-04 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/bin/app.pl.in: Add Amcheck module. 2014-07-03 Jean-Louis Martineau * perl/Amanda/Message.pm: Add amcheck message. * perl/Amanda/Rest/Amcheck.pm: Rest API endpoint to execute amcheck. * perl/Makefile.am (AmandaRest_DATA): Add Amanda/Rest/Amcheck.pm. * server-src/diskfile.c (match_disklist): return a GPtrArray. * server-src/diskfile.h (match_disklist): Change prototype. * server-src/driver.c, server-src/dumper.c: Fix argv0. * server-src/amadmin.c, server-src/planner.c: Use newest match_disklist function. * server-src/amcheck.c, server-src/amcheck-device.pl: new --message argument to format the output in json. * installcheck/Amanda_Rest_Amcheck.pl: Check the Amcheckrest api. * installcheck/Makefile.am: Add Amanda_Rest_Amcheck. 2014-07-03 Jean-Louis Martineau * server-src/driver.c (handle_dumper_result): Call dumper_taper_result if we already get the taper result. 2014-07-02 Jean-Louis Martineau * server-src/driverio.c (update_info_dumper): Do not update if size or csize is 0. * server-src/server_util.c: Do not uses history if size is 0. 2014-06-26 Strong Liang * server-src/driver.c: Updated copyright-info. * ChangeLog: trimed trailing spaces. 2014-06-26 Jean-Louis Martineau * Makefile.am: Use ${MKDIR_P} * device-src/Makefile.am, ndmp-src/Makefile.am, xfer-src/Makefile.am: Use ${SED} 2014-06-25 Jean-Louis Martineau * server-src/driver.c: Remove useless space. 2014-06-19 Jean-Louis Martineau * device-src/Makefile.am, ndmp-src/Makefile.am, xfer-src/Makefile.am: Fix install-build-dependencies. 2014-06-18 Jean-Louis Martineau * common-src/bsdtcp-security.c: Use bloking connect. 2014-06-17 Jean-Louis Martineau * Makefile.am (install-build-dependencies): Copy include and config for client. 2014-06-16 Jean-Louis Martineau * Makefile.am: Create the directory. 2014-06-16 Jean-Louis Martineau * Makefile.am: Fix for client/server install-build-dependencies target. 2014-06-16 Jean-Louis Martineau * Makefile.am, common-src/Makefile.am, device-src/Makefile.am, ndmp-src/Makefile.am, xfer-src/Makefile.am: Add install-build-dependencies target. 2014-06-13 Jean-Louis Martineau * installcheck/Amanda_Rest_Dumps.pl: Sort dumps in reply. 2014-06-12 Jean-Louis Martineau * installcheck/taper.pl: Accept some log lines in varying order. 2014-06-11 Jean-Louis Martineau * configure.in: Split in two files. * config/amanda/amanda_configure.m4: All global settings. * device-src/s3-util.h: Undef _ 2014-06-09 Jean-Louis Martineau * installcheck/Installcheck/Rest.pm (): Better error if starman can't be forked. * installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Dles.pl, installcheck/Amanda_Rest_Dumps.pl, installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Storages.pl, installcheck/Amanda_Rest_Storages_Labels.pl, installcheck/Amanda_Rest_Version.pl: Improve error message. 2014-06-09 Jean-Louis Martineau * installcheck/Installcheck/Rest.pm (remove_source_line): Function to remove the source_line from all Message of a json reply. * installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Dles.pl, installcheck/Amanda_Rest_Dumps.pl, installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Storages.pl, installcheck/Amanda_Rest_Storages_Labels.pl, installcheck/Amanda_Rest_Version.pl: Use remove_source_line. 2014-06-09 Jean-Louis Martineau * installcheck/Installcheck/Rest.pm: Improve rest server startup. 2014-06-09 Jean-Louis Martineau * device-src/diskflat-device.c: Fix erase method. * perl/Amanda/Changer.pm: Many new Amanda::Changer::Message. * perl/Amanda/Label.pm: Allow to assign comment. * perl/Amanda/Rest/Storages/Labels.pm: Allow to assign comment. * installcheck/Amanda_Rest_Storages.pl: source_line change. * installcheck/Amanda_Rest_Storages_Labels.pl: Check The storages/:STORAGE/labels endpoint. * installcheck/Installcheck/Rest.pm: Allow DELETE, improve rest server startup. * installcheck/Makefile.am: Add Amanda_Rest_Storages_Labels. 2014-06-09 Jean-Louis Martineau * installcheck/Amanda_Rest_Dumps.pl: More typos. 2014-06-09 Jean-Louis Martineau * installcheck/Amanda_Rest_Dumps.pl, installcheck/Amanda_Rest_Storages.pl: Typos. 2014-06-09 Jean-Louis Martineau * installcheck/Amanda_Rest_Storages.pl, installcheck/Amanda_Rest_Dumps.pl: Add files. 2014-06-06 Jean-Louis Martineau * installcheck/Amanda_Rest_Dumps.pl: Check the Dumps endpoint * installcheck/Amanda_Rest_Storages.pl: Check the Storages endpoint * installcheck/Installcheck/Config.pm: Add policy and storage. * installcheck/Makefile.am: Add Amanda_Rest_Dumps and Amanda_Rest_Storages. * perl/Amanda/Changer.pm, perl/Amanda/Changer/diskflat.pm, perl/Amanda/Storage.pm: Change many Amanda::Changer::Error to be Amanda::Message compliant. * perl/Amanda/Rest/Storages.pm: Pass the tapelist to the storage. 2014-06-05 Jean-Louis Martineau * server-src/amfetchdump.pl: Pass the tapelist to the Storage. 2014-06-04 Jean-Louis Martineau * perl/Amanda/Report.pm: Fix exit_status. * installcheck/Amanda_Report.pl: Add check for exit_status. * installcheck/amreport.pl: Fix exit_status check. 2014-06-02 Jean-Louis Martineau * installcheck/Amanda_Rest_Configs.pl: Fix line number. 2014-06-02 Jean-Louis Martineau * installcheck/Amanda_Rest_Configs.pl: Fix. * perl/Amanda/Rest/Configs.pm: Fix perl warning. * perl/Amanda/Rest/Labels.pm: Fix perl warning. 2014-06-02 Jean-Louis Martineau * application-src/amgtar.c: Add 'directory is on a different filesystem; not dumped' as a normal message. 2014-05-30 Jean-Louis Martineau * perl/Amanda/Rest/Amanda/bin/app.pl.in: Remove 'use Data::Structure::Util'. 2014-05-30 Jean-Louis Martineau * installcheck/gnutar.pl: Fix for SunOS * perl/Amanda/Interactivity.pm: Do not die if ->new return undef. * perl/Amanda/Interactivity/stdin.pm: Add debugging if can't read STDIN. 2014-05-29 Jean-Louis Martineau * installcheck/Amanda_Rest_Version.pl. installcheck/Amanda_Rest_Configs.pl. installcheck/Amanda_Rest_Dles.pl, installcheck/Amanda_Rest_Labels.pl: Typo. 2014-05-29 Jean-Louis Martineau * installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Dles.pl, installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Version.pl, installcheck/Installcheck/Rest.pm: Use port 5001. * installcheck/amadmin.pl: Fix sort * perl/Amanda/Disklist.swg: Fix sort. 2014-05-29 Jean-Louis Martineau * installcheck/Installcheck/Rest.pm: Retrun error if can't fork starman. * installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Dles.pl, installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Version.pl: SKIP test if forking starman failed. 2014-05-29 Jean-Louis Martineau * installcheck/Installcheck/Rest.pm: Fix to send starman stderr to the debug file. 2014-05-29 Jean-Louis Martineau * installcheck/Amanda_Rest_Configs.pl: Fix. 2014-05-28 Jean-Louis Martineau * perl/Amanda/Changer.pm: Sort to get repeatable result. * perl/Amanda/Disklist.swg: Sort to get repeatable result. * perl/Amanda/Report.pm: Sort to get repeatable result. * perl/Amanda/Report/human.pm: Sort to get repeatable result. * installcheck/amadmin.pl: Fix for new order. * installcheck/catalogs/filesystemstaped.cat: Fix for new order. 2014-05-28 Jean-Louis Martineau * perl/amglue/integers.swg: Fix compiler warnings. * installcheck/Makefile.am: Add Installcheck/Rest.pm 2014-05-28 Jean-Louis Martineau * installcheck/Amanda_Rest_Configs.pl, installcheck/Amanda_Rest_Dles.pl, installcheck/Amanda_Rest_Labels.pl, installcheck/Amanda_Rest_Version.pl: Skip test if WWW::Curl::Easy is not available. 2014-05-27 Jean-Louis Martineau * perl/Amanda/Rest/Runs.pm: Remove Data::Structure::Util dependencies. 2014-05-27 Jean-Louis Martineau * installcheck/Amanda_Rest_Configs.pl: Check Amanda::Rest::Configs * installcheck/Amanda_Rest_Dles.pl: Check Amanda::Rest:Dles * installcheck/Amanda_Rest_Labels.pl: Check Amanda::Rest::Labels * installcheck/Amanda_Rest_Version.pl: Check Amanda::Rest::Version * installcheck/Amanda_Tapelist.pl: Fix for reuse. * installcheck/Installcheck/Dumpcache.pm: Fix for 0_setupcache * installcheck/Installcheck/Rest.pm: New perl modules to start/stop the Rest server. * installcheck/Makefile.am: Add Amanda_Rest_Configs, Amanda_Rest_Dles, Amanda_Rest_Labels and Amanda_Rest_Version * perl/Amanda/Config.swg: Small fix. * perl/Amanda/Curinfo.pm: Add message code 1300030 and 1300031 * perl/Amanda/Curinfo/Info.pm: Fix perl warning. * perl/Amanda/Disklist.swg: Add message code 1400009 * perl/Amanda/Paths.pm.in: Add amperldir. * perl/Amanda/Rest/Dles.pm: Add check and generate message code 1400009, 1300030 and 1300031 * perl/Amanda/Rest/Labels.pm: fix for defined $params. * perl/Amanda/Tapelist.swg: Set reuse to 0. 2014-05-26 Jean-Louis Martineau * perl/Amanda/CheckDump.pm: New perl module for checkdump. * server-src/amcheckdump.pl: Use new Amanda::Checkdump module. * perl/Amanda/JSON/Amdump.pm: Typo. * perl/Amanda/Message.pm: Add Amanda::CheckDump::Message * perl/Amanda/Rest/Amanda/bin/app.pl.in: Add /amanda/v1.0/configs/:CONF/runs/checkdump /amanda/v1.0/configs/:CONF/runs/messages * perl/Amanda/Rest/Runs.pm: Add checkdump and messages methods. * perl/Makefile.am: Add Amanda/CheckDump.pm 2014-05-21 Jean-Louis Martineau * server-src/amtape.pl: Add relabeled case. 2014-05-12 Jean-Louis Martineau * packaging/rpm/amanda.spec.src: Add amazon. 2014-05-09 Jean-Louis Martineau * client-src/sendsize.c: Fix compiler warning. 2014-05-08 Jean-Louis Martineau * installcheck/Amanda_Changer_diskflat.pl: Use File::Path::rmtree. 2014-05-08 Jean-Louis Martineau * device-src/diskflat-device.c: Check result of ftruncate. 2014-05-08 Jean-Louis Martineau * server-src/amrmtape.pl: Add --external-copy argument. * man/xml-source/amrmtape.8.xml: Document --external-copy argument. * perl/Amanda/Label.pm: Implement external_copy argument. * perl/Amanda/Rest/Storages/Labels.pm: Ditto. 2014-05-08 Jean-Louis Martineau * device-src/diskflat-device.c (erase): Add method. * perl/Amanda/Changer/diskflat.pm: New chg-diskflat changer. * perl/Amanda/Changer.pm (label_to_slot): New method. * perl/Makefile.am: Add Amanda/Changer/diskflat.pm. * installcheck/Amanda_Changer_diskflat.pl: Test chg-diskflat. * installcheck/Makefile.am: Add Amanda_Changer_diskflat. * server-src/amreport.pl: Remove degugging. 2014-05-08 Jean-Louis Martineau * config/amanda/libs.m4: Search pkg-config in /opt/csw/bin. 2014-05-07 Jean-Louis Martineau * server-src/xfer-source-holding.c: Allow to rad s SPINT_DUMPFILE from holding disk. 2014-05-07 Jean-Louis Martineau * packaging/sun-pkg/buildpkg: gmake is in /opt/csw/bin 2014-05-06 Jean-Louis Martineau * packaging/sun-pkg/buildpkg: Use /usr/csw/bin/gmake if available. 2014-05-05 Jean-Louis Martineau * server-src/driver.c (start_some_dumps): Fix if a disk is moved to directq. 2014-05-05 Jean-Louis Martineau * perl/Amanda/Interactivity/stdin.pm, server-src/amcheckdump.pl, server-src/amfetchdump.pl, server-src/amvault.pl: Disable interactivity if STDIN can't be read. 2014-05-01 Jean-Louis Martineau * server-src/dumper.c (xml_check_options): Set dumper_kencrypt. 2014-04-30 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: Reload the tapelist at every scan. 2014-04-30 Jean-Louis Martineau * common-src/security-util.c: Improve error message. 2014-04-29 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Fix lock. * perl/Amanda/Changer/robot.pm (_get_state): Return "failed". * server-src/amlabel.pl (user_msg): Fix for string. 2014-04-25 Jean-Louis Martineau * recover-src/uparse.y: Remove unused variable. 2014-04-25 Jean-Louis Martineau * amar-src/amar.c (amar_read_cb): Handle eof correctly. 2014-04-25 Jean-Louis Martineau * config/amanda/config.m4 (AMANDA_CONFIGURE_ARGS): New macro to set CONFIGURE_ARGS. * configure.in: Call AMANDA_CONFIGURE_ARGS * common-src/genversion.c: Print CONFIGURE_ARGS. 2014-04-24 Jean-Louis Martineau * server-src/amcheck-device.pl: Typo. 2014-04-24 Jean-Louis Martineau * common-src/bsdtcp-security.c: Retry all IPs on connection refused. * common-src/security-util.h (struct sec_handle): Add res, next_res, connect_callback, connect_arg, src_ip and port. * common-src/stream.c (stream_client_addr): New function to open a connection to a 'struct addrinfo'. * common-src/stream.h (stream_client_addr): Add prototype. 2014-04-23 Jean-Louis Martineau * perl/Amanda/Interactivity/email.pm: Check permission of the check-file. 2014-04-23 Jean-Louis Martineau * perl/Amanda/Interactivity/email.pm: Do not call remove if resend_delay is 0. 2014-04-23 Jean-Louis Martineau * server-src/amcheck-device.pl: Fix output from tape scan. 2014-04-17 Jean-Louis Martineau * amar-src/amar.c (read_done): Call done_cb withthe error. * amar-src/amar.c (amar_read_cb): Call read_done on error. * amar-src/amar.h (amar_done_callback_t): Add error in prototype. * perl/Amanda/Archive.swg: (read_done_cb): Get error. 2014-04-16 Jean-Louis Martineau * amar-src/amar.c (amar_read_cb): Call amar_stop_read. * amar-src/amar.c (set_amar_read_cb): Call amar_start_read. 2014-04-15 Jean-Louis Martineau * common-src/conffile.c: Fix compiler warning. * config/amanda/syshacks.m4: Compile on s390x-8-linux-* 2014-04-10 Jean-Louis Martineau * perl/Amanda/Tapelist.swg: Fix perl warning. 2014-04-10 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Fix. * perl/Amanda/Interactivity/email.pm: Try to fix memory leak. * perl/Amanda/ScanInventory.pm: Abort the scan on inventory error. 2014-04-10 Jean-Louis Martineau * amar-src/amar.c: Do not use newer glib function. 2014-04-07 Jean-Louis Martineau * installcheck/Amanda_Taper_Scribe.pl (set_write_timestamp): Add method. * perl/Amanda/Taper/Scan.pm: Fix perl warning. 2014-04-07 Jean-Louis Martineau * perl/Amanda/Tapelist.swg (lookup_by_barcode): New method to return a tle from a barcode. 2014-04-07 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm (_get_state): Lookupo label in tapelist file if it is not availbale in bc2lb. 2014-04-01 Jean-Louis Martineau * perl/Amanda/Taper/Scan.pm: Do not se the same tape twice in the same run. * perl/Amanda/Taper/Scribe.pm: Set taperscan write_timestamp. 2014-03-31 Jean-Louis Martineau * amar-src/amar.c (amar_read, set_amar_read_cb): Add a done_cb. * amar-src/amar.c (amar_set_error): New function to set an error. * amar-src/amar.h: New prototype. * amar-src/amarchiver.c: Use NULL done_cb. * amar-src/amar-test.c: Pass a NULL done_cb. * installcheck/Amanda_Archive.pl: Test set_read_cb with done_cb. * perl/Amanda/Archive.swg: Handle done_cb and error. * perl/Amanda/MainLoop.swg (run_until_empty): Remove method. 2014-03-28 Jean-Louis Martineau * amar-src/amar.c: Stop processing input file on stopped mode. 2014-03-28 Jean-Louis Martineau * amar-src/amar.c: Fix memory leak. 2014-03-28 Jean-Louis Martineau * amar-src/amar.c (amar_stop_read, amar_start_read): New function. * amar-src/amar.h (amar_stop_read, amar_start_read): Add prototype. * perl/Amanda/Archive.swg: Swig them. 2014-03-27 Jean-Louis Martineau * application-src/ampgsql.pl: Do not close STDIN and STDERR. 2014-03-27 Jean-Louis Martineau * amar-src/amar.c: Add read function that use the mainloop. * amar-src/amar.h: Add read function that use the mainloop. * amar-src/amarchiver.c: Use new event interface. * perl/Amanda/Archive.swg: Swig new event interface. * perl/Amanda/MainLoop.swg (run_until_empty): New method. 2014-03-25 Jean-Louis Martineau * common-src/conffile.c: Add CNF_REST_API_PORT * common-src/conffile.h: Add CNF_REST_API_PORT * perl/Amanda/Config.swg: Add CNF_REST_API_PORT * server-src/amanda-rest-server.pl: New script to start/stop the rest server. * server-src/Makefile.am (sbin_SCRIPTS_PERL): Add amanda-rest-server. * man/xml-source/amanda-rest-server.8.xml: New man page. * man/Makefile.am (SERVER_MAN_PAGES): Add amanda-rest-server.8 2014-03-25 Jean-Louis Martineau * amar-src/amar.c (amar_file_size, amar_attr_size): New function to return file and attribute size. * amar-src/amar.h (amar_file_size, amar_attr_size): Add prototype. * perl/Amanda/Archive.swg: Make them available to perl. * perl/Amanda/Archive.pod: Document them. * installcheck/Amanda_Archive.pl: Test the new method. 2014-03-24 Jean-Louis Martineau * server-src/amtrmidx.c, server-src/planner.c: Fix memmory leak. 2014-03-24 Jean-Louis Martineau * server-src/amcheck.c: Warn if tapecycle <= runtapes. 2014-03-24 Jean-Louis Martineau * installcheck/taper.pl: Fix count of test. 2014-03-21 Jean-Louis Martineau * amar-src/amarchiver.c: Create parent directory on extraction. 2014-03-14 Jean-Louis Martineau * server-src/driver.c: Do not try to find holding space when no holding disk are used. 2014-03-12 Jean-Louis Martineau * common-src/bsdtcp-security.c: Make a non blocking connection. 2014-03-12 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Log empty part. * server-src/amreport.pl: Fix. * installcheck/Amanda_Taper_Scribe.pl: Fix for Scribe change. * installcheck/taper.pl: Fix for Scribe change. 2014-03-11 Jean-Louis Martineau * amar-src/amar.h: Fix constant. * amar-src/amarchiver.c: Do not append attribute id (16) to filename on extraction. * installcheck/Amanda_Archive.pl: Add check. * installcheck/amarchiver.pl: Add check. * perl/Amanda/Archive.swg: Document and export attribute id. 2014-03-05 Jean-Louis Martineau * device-src/diskflat-device.c: Check lseek result. 2014-03-05 Jean-Louis Martineau * perl/Amanda/Util.swg (setup_application): Call glib_init. 2014-03-04 Jean-Louis Martineau * server-src/diskfile.h (struct disk_s): Add orig_holdingdisk. * server-src/diskfile.c: Set orig_holdingdisk. * server-src/driver.c: Use orig_holdingdisk to report error. * server-src/planner.c: Improve message. 2014-03-03 Jean-Louis Martineau * device-src/Makefile.am: Add diskflat-device.c and diskflat-device.h * device-src/device.c: Call diskflat_device_register * device-src/diskflat-device.c: New diskflat device. * device-src/diskflat-device.h: New diskflat device header file. * device-src/vfs-device.c: Refactoring. * device-src/vfs-device.h: Refactoring. * installcheck/Amanda_Device.pl: Check the diskflat device. * man/xml-source/amanda-devices.7.xml: Document the diskflat device. 2014-02-28 Jean-Louis Martineau * device-src/ndmp-device.c, device-src/s3-device.c, device-src/tape-device.c, device-src/xfer-dest-device.c, device-src/xfer-source-device.c, device-src/xfer-source-recovery.c, xfer-src/element-glue.c, xfer-src/filter-crc.c: Correctly report memory allocation error for large buffer. 2014-02-28 Jean-Louis Martineau * perl/Amanda/Taper/Protocol.pm: Add READY Message. * perl/Amanda/Taper/Scribe.pm: Call $self->{'feedback'}->scribe_ready(); * perl/Amanda/Taper/Worker.pm (scribe_ready): New method to send the READY message. * perl/Amanda/Vault.pm (scribe_ready): New method that do nothing. * server-src/driver.c: Send dumper result to taper only after it sent the READY message. * server-src/driverio.h (wtaper_t): Add ready. * server-src/server_util.c (cmdstr): Add READY. * server-src/server_util.h (enum): Add READY. * installcheck/Amanda_Taper_Scribe.pl, installcheck/taper.pl: Fix check. 2014-02-25 Jean-Louis Martineau * common-src/Makefile.am: Do not fail if ../perl/Amanda already exists. 2014-02-25 Jean-Louis Martineau * perl/Makefile.am: Fix intallation in DESTDIR. 2014-02-14 Jean-Louis Martineau * device-src/dvdrw-device.c: Fix. 2014-02-14 Jean-Louis Martineau * common-src/amflock.c: Check return value of truncate. 2014-02-13 Jean-Louis Martineau * common-src/amfeatures.c, common-src/amfeatures.h, perl/Amanda/Logfile.swg: Add fe_sendbackup_retry, fe_sendbackup_retry_delay, fe_sendbackup_retry_level, fe_sendbackup_retry_message. * perl/Amanda/Report.pm: Handle RETRY line from dumper. * perl/Amanda/Report/human.pm: Handle RETRY line from dumper. * perl/Amanda/Status.pm: Handle RETRY line from dumper. * server-src/amstatus.pl: Remove unneeded print statement. * server-src/driver.c: Handle RETRY result from dumper. * server-src/dumper.c: Handle 'sendbackup: retry' line. * server-src/logfile.c, server-src/logfile.h: Add L_RETRY * server-src/server_util.c, server-src/server_util.h: Add RETRY 2014-02-13 Jean-Louis Martineau * server-src/dumper.c: Check the size section of the CRC. 2014-02-12 Jean-Louis Martineau * common-src/amflock.c: Detect failure to write the file and ftruncate it to 0. * perl/Amanda/Changer.pm: Detect failure to read the state file and do like if it was empty. 2014-02-06 Jean-Louis Martineau * amar-src/amar.c, application-src/ambsdtar.c: Coverity fix. 2014-02-05 Jean-Louis Martineau * perl/Amanda/Amflush.pm: Fix message. * perl/Amanda/Rest/Runs.pm: Add amdump and amflush * perl/Amanda/Rest/Storages.pm: Fix documentation. * perl/Amanda/Rest/Storages/Labels.pm: Fix documentation. * perl/Amanda/Rest/Amanda/bin/app.pl.in: Add many methods. 2014-02-05 Jean-Louis Martineau * perl/Amanda/Report/human.pm (divzero, divzero_wide, divzero_col, hrmn, mnsc): Function must be dalled from the package. * perl/Amanda/Report/json.pm (divzero, divzero_wide, divzero_col, hrmn, mnsc): Add functions in package. * perl/Amanda/Rest/Amanda/config.yml: Add allow_nonref * perl/Amanda/Rest/Report.pm: Fix documentation. 2014-02-05 Jean-Louis Martineau * perl/Amanda/Rest/Status.pm: Fix documentation. 2014-02-05 Jean-Louis Martineau * perl/Amanda/Rest/Dumps.pm: Fix documentation. 2014-02-04 Jean-Louis Martineau * device-src/ndmp-device.c, ndmp-src/ndmpconnobj.c, ndmp-src/ndmpconnobj.h: Undo previous patch. * device-src/ndmp-device.c: ndmp_connection_wait_for_notify_with_cond returning 1 is a valid result. 2014-02-04 Jean-Louis Martineau * device-src/ndmp-device.c: Call ndmp_connection_mover_get_state before calling ndmp_connection_wait_for_notify_with_cond to verify the mover state. * ndmp-src/ndmpconnobj.c (ndmp_connection_mover_get_state): Return pause_reason and halt_reason * ndmp-src/ndmpconnobj.h (ndmp_connection_mover_get_state): Change prototype. 2014-02-03 Jean-Louis Martineau * installcheck/amlabel.pl: Fix. 2014-02-03 Jean-Louis Martineau * common-src/conffile.c (get_storage_list): New function. * common-src/conffile.h (get_storage_list): Add prototype. * perl/Amanda/Config.swg (get_storage_list): Swig function. * perl/Amanda/Changer/aggregate.pm, perl/Amanda/Changer/multi.pm perl/Amanda/Changer/robot.pm: Fix for some arguments. * perl/Amanda/Curinfo/Info.pm: Fix. * perl/Amanda/DB.pm: New module. * perl/Amanda/Label.pm: Add messages. * perl/Amanda/Message.pm: Add messages. * perl/Amanda/Rest.pm: New module. * perl/Amanda/Rest/Amdump.pm: Fix message. * perl/Amanda/Rest/Configs.pm, perl/Amanda/Rest/Dles.pm, perl/Amanda/Rest/Dumps.pm, perl/Amanda/Rest/Labels.pm, perl/Amanda/Rest/Runs.pm, perl/Amanda/Rest/Status.pm, perl/Amanda/Rest/Storages.pm, perl/Amanda/Rest/Storages/Labels.pm, perl/Amanda/Rest/Version.pm: Implement REST API and document it. * perl/Amanda/ScanInventory.pm: Fix. * perl/Amanda/Tapelist.swg: Fix messages. * perl/Makefile.am: Add Amanda/DB.pm and Amanda/Rest.pm. 2014-01-30 Jean-Louis Martineau * perl/Amanda/Rest/Storages.pm: Fix update command. * perl/Makefile.am: Fix installation of Amanda/Rest/Amanda/config.yml 2014-01-29 Jean-Louis Martineau * common-src/Makefile.am, perl/Makefile.am: Fix build. 2014-01-29 Jean-Louis Martineau * perl/Makefile.am (EXTRA_DIST): Add Amanda/Constants.pm.in.src 2014-01-29 Jean-Louis Martineau * device-src/device.c (device_create): New function. * device-src/device.h (device_create): Add prototype. * device-src/s3-device.c (s3_device_create): New function. * perl/Amanda/Device.swg: Swig device_create. * perl/Amanda/Changer.pm (create): New method. * perl/Amanda/Changer/disk.pm (create): New create method. * perl/Amanda/Changer/multi.pm (create): New create method. * perl/Amanda/JSON/Changer.pm: Add create method. * perl/Amanda/Rest/Storages.pm (create): Add method to the Rest API. * perl/Amanda/Rest/Storages/Labels.pm: Remove debugging message. * perl/Amanda/Storage.pm: Add no_validate argument. * server-src/amtape.pl: Add create subcommand that call the changer create method. * man/xml-source/amtape.8.xml: Document create subcommand. 2014-01-28 Jean-Louis Martineau * client-src/selfcheck.c: fix for /usr/bin/lsb_release 2014-01-28 Jean-Louis Martineau * recover-src/extract_list.c: Do not uncompress/decrypt if server do not have fe_amrecover_receive_unfiltered. 2014-01-28 Jean-Louis Martineau * client-src/selfcheck.c: Fix distro. 2014-01-28 Jean-Louis Martineau * perl/Makefile.am: Fix check and installation of dancer module 2014-01-28 Jean-Louis Martineau * client-src/calcsize.c: Take root privilege to call get_fs_usage. 2014-01-27 Jean-Louis Martineau * perl/Makefile.am: Install Dancer generated file only. 2014-01-27 Jean-Louis Martineau * common-src/Makefile.am: Make perl/Amanda/Constants.pm.in from perl/Amanda/Constants.pm.in.src * config/amanda/config.m4: Set BUILT_REV and BUILR_BRANCH * perl/Amanda/Constants.pm.in: Removed * perl/Amanda/Constants.pm.in.src: New file * perl/Amanda/Rest/Version.pm: Return BYUILT_DARA, BUILT_REV and BUILT_BRANCH. * perl/Makefile.am: Make perl/Amanda/Constants.pm.in from perl/Amanda/Constants.pm.in.src 2014-01-27 Jean-Louis Martineau * common-src/conffile.c (config_init_with_global): New function. * common-src/conffile.h: Add CONFIG_INIT_GLOBAL and config_init_with_global prototype. * man/xml-source/amanda.conf.5.xml: Document /etc/amanda/amanda.conf is loaded. * perl/Amanda/Config.swg: Swig CONFIG_INIT_GLOBAL and config_init_with_global. * installcheck/Amanda_Config.pl: Use CONFIG_INIT_GLOBAL and/or config_init_with_global. * installcheck/amgetconf.pl: Fix for amandates. * */*.c, */*.pl: Use CONFIG_INIT_GLOBAL and/or config_init_with_global. 2014-01-22 Jean-Louis Martineau * Amanda/Rest/Amanda/bin/app.pl.in: Replace app.pl with substituted value. * Amanda/Rest/Amanda/bin/app.pl: Remove * Amanda/Rest/Amanda/logs/deployment.log: Remove * Amanda/Rest/Dumps.pm: Fix. 2014-01-22 Jean-Louis Martineau * server-src/amvault.pl: Use the perl Amanda::Vault Module. * perl/Amanda/Vault.pm: New module for vaulting. * perl/Amanda/Report/human.pm: Fix for vaulting. * perl/Amanda/Message.pm: Add Message number for Amanda::Vault. * perl/Amanda/Amflush.pm: Remove unused module. * perl/Amanda/Label.pm: Fix typo. * perl/Amanda/Status.pm: Fix for vaulting. * perl/Amanda/Config.swg: Add messages. * perl/Amanda/Rest/*: The new REST-API * perl/Amanda/JSON/Config.pm: Add list. * perl/Amanda/JSON/Label.pm: Fix typo. * perl/Makefile.am: Add Amanda/Rest * installcheck/amvault.pl: Fix for stdout/stderr change. * installcheck/Installcheck/Run.pm: Add run_out. 2014-01-16 Jean-Louis Martineau * client-src/selfcheck.c (print_platform): Run /usr/bin/lsb_release if it exist. 2014-01-14 Jean-Louis Martineau * man/xml-source/amcleanup.8.xml: Add amvault. * server-src/amcleanup.pl: Add amvault. 2014-01-11 Jean-Louis Martineau * common-src/glib-util.c: Fix for curl and gnutls. 2014-01-10 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Retry on MTX 'No Sense'. 2014-01-09 Jean-Louis Martineau * amar-src/amar.c, amar-src/amar.h, perl/Amanda/Archive.pod, perl/Amanda/Archive.swg: Add amar_size and amar_attr_add_data_fd_in_thread * installcheck/Amanda_Archive.pl: Test amar_size. 2014-01-06 Jean-Louis Martineau * gnulib/group-member.c, gnulib/xalloc-oversized.h, gnulib/euidaccess.c, gnulib/getgroups.c, gnulib/root-uid.h, config/gnulib/getgroups.m4, config/gnulib/group-member.m4, config/gnulib/euidaccess.m4: Missing file gnulib euidaccess. 2014-01-03 Jean-Louis Martineau * application-src/amgtar.c: Check gnutar_listdir before uid to 0. * client-src/client_util.c: Use EUIDACCESS. * common-src/amanda.h: Define EUIDACCESS. * configure.in: Check for euidaccess and eaccess. * config/gnulib/euidaccess.m4, config/gnulib/getgroups.m4, config/gnulib/gnulib-cache.m4, config/gnulib/gnulib-comp.m4, config/gnulib/group-member.m4, gnulib/Makefile.am, gnulib/euidaccess.c, gnulib/getgroups.c, gnulib/group-member.c, gnulib/regenerate/regenerate, gnulib/root-uid.h, gnulib/xalloc-oversized.h: Add euidaccess module. 2014-01-02 Jean-Louis Martineau * server-src/planner.c: Use server estimate on estimate timeout. 2014-01-02 Jean-Louis Martineau * installcheck/catalogs/chunker-partial.cat, installcheck/catalogs/normal.cat, installcheck/catalogs/quoted.cat, installcheck/catalogs/taper-parallel-write.cat: Fix for maxdumps in PORT-DUMP line. 2014-01-02 Jean-Louis Martineau * perl/Amanda/Status.pm: Fix for maxdumps in PORT-DUMP line. 2014-01-02 Jean-Louis Martineau * server-src/driverio.c: Send maxdumps to dumper. * server-src/dumper.c: Parse maxdumps, add maxdumps in REQ packet. 2013-12-30 Jean-Louis Martineau * server-src/amcheck.c: Do not report DATA-PATH error if a device is not found. 2013-12-20 Jean-Louis Martineau * application-src/ambsdtar.c: Add a trailling '/' on directory entry in the index. * man/xml-source/ambsdtar.8.xml: Say that restore never remove files. 2013-12-20 Jean-Louis Martineau * perl/Amanda/Changer/multi.pm: Get current slot from current_slot_csc. * server-src/driver.c: Correctly parse PARTDONE message. 2013-12-20 Jean-Louis Martineau * device-src/s3.c: Fix for CURLE_SSL_CACERT_BADFILE. 2013-12-18 Jean-Louis Martineau * client-src/selfcheck.c: Run sw_vers to find Mac platform. 2013-12-18 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Change state if now loaded. * server-src/amtape.pl (inventory): Print empty slot. 2013-12-18 Jean-Louis Martineau * application-src/ambsdtar.c: Some fixes. 2013-12-16 Jean-Louis Martineau * application-src/Makefile.am: Add ambsdtar. * application-src/ambsdtar.c: New application script for BSD tar * application-src/amgtar.c: Call dbclose() * application-src/amstar.c: Call dbclose() * client-src/calcsize.c: Handle BSDTAR * config/amanda/dumpers.m4 (AMANDA_PROG_BSDTAR): function to find bsdtar binary. * configure.in: Call AMANDA_PROG_BSDTAR * man/Makefile.am: Add ambsdtar.8 * man/entities/global.entities.in: Add bsdtar. * man/xml-source/ambsdtar.8.xml: New ambsdtar man page * perl/Amanda/Constants.pm.in: Add $BSDTAR * NEWS, ReleaseNotes: Add ambsdtar 2013-12-16 Jean-Louis Martineau * client-src/client_util.c (backup_support_option): Do pass pass the --config, --host, --disk and --device * client-src/client_util.h (backup_support_option): Change prototype. * client-src/selfcheck.c, client-src/sendbackup.c, client-src/sendsize.c, recover-src/extract_list.c: Use new backup_support_option arguments. 2013-12-12 Jean-Louis Martineau * server-src/amfetchdump.pl: Fix if header have only one application property. 2013-12-12 Jean-Louis Martineau * recover-src/extract_list.c: Fix read from applicaiton stderr. 2013-12-12 Jean-Louis Martineau * server-src/disk_history.c: Fix storage setting. 2013-12-06 Jean-Louis Martineau * server-src/driverio.c(update_info_taper): Log a message if label is not set. 2013-12-06 Jean-Louis Martineau * server-src/amflush.pl: Fix parsing of letter argument. 2013-11-27 Jean-Louis Martineau * device-src/s3-device.c: Always use the prefix when accessing the bucket. * device-src/s3.c (s3_is_bucket_exists): Add prefix as argument. * device-src/s3.h (s3_is_bucket_exists): Change prototype. 2013-11-21 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm, perl/Amanda/Changer, perl/Amanda/JSON/Changer.pm: s/look to be/looks to be/. 2013-11-21 Jean-Louis Martineau * server-src/amindexd.c: Fix bug found by coverity. 2013-11-21 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Speedup by checking all devices. 2013-11-20 Jean-Louis Martineau * perl/Amanda/Changer.pm: Add message 1100025 * perl/Amanda/Changer/robot.pm (verify): Report drive error. * server-src/amtape.pl: Handle message 1100025. 2013-11-20 Jean-Louis Martineau * perl/Amanda/Changer.pm: Add message 1100024 * perl/Amanda/Changer/robot.pm (verify): Report non-existant drive. * server-src/amtape.pl: Handle message 1100024. 2013-11-20 Jean-Louis Martineau * server-src/amfetchdump.pl: Allow multiple values for the one property. 2013-11-18 Dan Locks * example/Makefile.am: update xml file names * example/amandaclient-tcp.xml.in: rename this * example/amandaclient.xml.in: to this * example/amandaserver-tcp.xml.in: rename this * example/amandaserver.xml.in: to this 2013-11-18 Dan Locks * example/Makefile.am: include new files in dist tarball * example/amandaclient-tcp.xml.in, example/amandaserver-tcp.xml.in: smf manifests for solaris >= 10 2013-11-18 Jean-Louis Martineau * config/amanda/progs.m4: AC_SUBST(SORT_PATH) * perl/Amanda/Constants.pm.in: Add SORT_PATH * perl/Amanda/Logfile.swg: Add getindexfname * perl/Amanda/Message.pm: Add Amanda::Index::Message * perl/Amanda/Status.pm:: s/Message/Amanda::Status::Message/ * perl/Amanda/Index.pm: New perl module to return index file and header from index directory. * perl/Amanda/JSON/Index.pm: New JSON module. * perl/Amanda/JSON.pm: Add missing JSON modules. * perl/Makefile.am: Add Amanda/JSON/Index.pm and Amanda/Index.pm * server-src/amanda.psgi.pl: Add Amanda::JSON::Index::* methods. 2013-11-15 Jean-Louis Martineau * application-src/amgtar.c, application-src/ampgsql.pl, * application-src/amraw.pl, application-src/amsamba.pl, * application-src/amstar.c, application-src/amsuntar.pl, * application-src/amzfs-sendrecv.pl: Implement index command. * perl/Amanda/Application.swg: Enable index command * server-src/amcheckdump.pl, server-src/amreindex.pl: Pass --config, --host, --disk, --device and --level to the application. 2013-11-15 Jean-Louis Martineau * common-src/fileheader.c (parse_heredoc): print message to debug if end of heredoc is not found. * server-src/amfetchdump.pl: Trap failure on XML::Simple::XMLin. 2013-11-14 Jean-Louis Martineau * perl/Amanda/Curinfo/Info.pm: Small fix. 2013-11-14 Jean-Louis Martineau * server-src/amreindex.pl: Compress the index file if compress-index is set. 2013-11-14 Jean-Louis Martineau * NEWS: Add erase-on-full And many missing storage setting. * common-src/conffile.c: Add CONF_ERASE_ON_FULL in storage. * common-src/conffile.h: Add STORAGE_ERASE_ON_FULL. * device-src/device.c: Add device_reset(), device_write_block() now return DeviceWriteResult. * device-src/device.h: Add DeviceWriteResult and prototype. * device-src/ndmp-device.c, device-src/null-device.c, device-src/rait-device.c, device-src/s3-device.c, device-src/tape-device.c (*_device_write_block): return WRITE_FAILED or WRITE_SUCCEED. * device-src/vfs-device.c (vfs_device_write_block): return WRITE_FAILED, WRITE_SUCCEED, WRITE_FULL or WRITE_SPACE. * device-src/xfer-dest-device.c, device-src/xfer-dest-taper-cacher.c: Handle new return value from device_write_block. * device-src/xfer-dest-taper-splitter.c: Also handle WRITE_FULL or WRITE_SPACE. * device-src/xfer-dest-taper.c (xfer_dest_taper_new_space_available): New method * device-src/xfer-dest-taper.h: Add prototype * man/xml-source/amanda.conf.5.xml: Document erase-on-full storage setting * perl/Amanda/Changer/aggregate.pm: Add slot_in_same_changer method. * perl/Amanda/Changer/disk.pm: Set global_space to 1. * perl/Amanda/Config.swg: Add STORAGE_ERASE_ON_FULL. * perl/Amanda/Device.swg: Add device_reset(). * perl/Amanda/Curinfo/Info.pm: Fix. * perl/Amanda/Label.pm: Some fix. * perl/Amanda/Storage.pm: Set erase_on_full. * perl/Amanda/Taper/Scribe.pm: Handle XMSG_NO_SPACE, try to erase volume and call element new_space_available method. * perl/Amanda/Xfer.swg: Add XMSG_NO_SPACE. * perl/Amanda/XferServer.swg: Add xfer_dest_taper_new_space_available * server-src/tapefile.c (read_tapelist): Set retention_computed=FALSE * xfer-src/xmsg.c (xmsg_repr): Add XMSG_NO_SPACE * xfer-src/xmsg.h (xmsg_type): Add XMSG_NO_SPACE 2013-11-14 Jean-Louis Martineau * server-src/amtrmidx.c: Do not use temporary files. * server-src/dumper.c: Always compress the index if required. 2013-11-13 Jean-Louis Martineau * server-src/amindexd.c: Fix gcc warnings. 2013-11-13 Jean-Louis Martineau * perl/Amanda/Changer.pm: Fix pod. 2013-11-11 Jean-Louis Martineau * server-src/amindexd.c: More fix. 2013-11-11 Jean-Louis Martineau * server-src/amindexd.c: Fix typo. 2013-11-08 Jean-Louis Martineau * application-src/amgtar.c: Implement the index command. * man/Makefile.am: Add amreindex.8 * man/xml-source/amanda.8.xml: Add amreindex.8 * man/xml-source/amreindex.8.xml: Document the new amreindex program. * perl/Amanda/Logfile.swg: Add getindex_*_fname and getheaderfname methods. * server-src/Makefile.am: Add amreindex. * server-src/amreindex.pl: New program to reindex dumps. * server-src/amtrmidx.c: Unlink a few more index files. 2013-11-08 Jean-Louis Martineau * common-src/conffile.c: Add compress-index and sort-index * common-src/conffile.h: Add CNF_COMPRESS_INDEX and CNF_SORT_INDEX * perl/Amanda/Config.swg: Add CNF_COMPRESS_INDEX and CNF_SORT_INDEX * man/xml-source/amanda.conf.5.xml: Document compress-index and sort-index * server-src/amindex.c (getindex_unsorted_fname, getindex_unsorted_gz_fname, getindex_sorted_fname, getindex_sorted_gz_fname): New methods to retrieve the various names of the index files. * server-src/amindex.h: Add prototype. * server-src/amindexd.c: Read un/sorted un/compressed index file. * server-src/amtrmidx.c: sort and un/compress index files. * server-src/dumper.c: Do not compress the index stream if it must be sorted. * NEWS: Document it. 2013-11-06 Jean-Louis Martineau * device-src/s3-device.c (delete_file): Check for no objects. * installcheck/Amanda_Device.pl: Use different bucket name for each test. 2013-11-06 Jean-Louis Martineau * perl/Amanda/Report/human.pm (USAGE BY TAPE): Add more space for the Time. 2013-11-05 Jean-Louis Martineau * device-src/s3-device.c: Check for S3_ERROR_NoSuchBucket error. * device-src/s3.c: Do not free hdl->user_token twice. 2013-11-05 Jean-Louis Martineau * */*.c: Cleanup found by cppcheck. 2013-11-04 Jean-Louis Martineau * installcheck/Amanda_Xfer.pl, installcheck/Installcheck/Mock.pm, installcheck/amvault.pl: installcheck do not do indirect ndmp. 2013-11-04 Jean-Louis Martineau * server-src/amcheck.c: Use full_write instead of write. 2013-11-01 Jean-Louis Martineau * server-src/amcheck.c: Check return value of fdopen, fclose(dev_outf). * server-src/driver.c, server-src/planner.c: Check return value of holding_file_get_dumpfile. 2013-10-31 Jean-Louis Martineau * server-src/find.c: Use hash table instead of re-scanning a list. 2013-10-31 Jean-Louis Martineau * server-src/amcheck-device.pl: Output DATA-PATH * server-src/amcheck.c: Check device data-path against dle data-path. 2013-10-30 Jean-Louis Martineau * device-src/ndmp-device.c: Unlock the abort_mutex when wait waiting for the wait_thread thread. 2013-10-29 Jean-Louis Martineau * device-src/ndmp-device.c: INDIRECT property default ot yes. * man/xml-source/amanda-devices.7.xml: Document it. 2013-10-28 Jean-Louis Martineau * common-src/amfeatures.h: Change features order to match 3.3 branch. 2013-10-28 Jean-Louis Martineau * perl/Amanda/Changer.pm: Fix perl warning. * perl/Amanda/ScanInventory.pm: Check for label not in tapelist. 2013-10-25 Jean-Louis Martineau * perl/Amanda/Changer.pm: amandaify property name. 2013-10-22 Jean-Louis Martineau * common-src/Makefile.am: Add dependencis for genversion.$(OBJEXT) 2013-10-16 Jean-Louis Martineau * application-src/ampgsql.pl: Tag 'file changed as we read it' as GOOD. 2013-10-16 Jean-Louis Martineau * server-src/amadmin.c: Do not load the config for version subcommand. 2013-10-16 Jean-Louis Martineau * common-src/amcryptsimple.pl: Fix for no gpg-agent or gpg2. 2013-10-15 Jean-Louis Martineau * installcheck/gnutar.pl: Fix for fc19. 2013-10-15 Jean-Louis Martineau Patch by Benjamin Kerensa * oldrecover-src/extract_list.c: Typo. 2013-09-18 Jean-Louis Martineau * perl/Amanda/Process.pm: Use Amanda::Debug. 2013-09-18 Jean-Louis Martineau * device-src/s3.c: Add SESSION-TOKEN property. * device-src/s3.h (s3_open): Add session_token argument. * device-src/s3-device.c: Add SESSION-TOKEN property. * man/xml-source/amanda-devices.7.xml: Document the new property. 2013-09-18 Jean-Louis Martineau * common-src/conffile.c: Fix parsing of config override. 2013-09-13 Jean-Louis Martineau * perl/Amanda/Amflush.pm: Fix. * perl/Amanda/Cmdfile.swg: Fix for newer swig. * server-src/cmdfile.c: Cleanup. 2013-09-13 Jean-Louis Martineau * perl/Amanda/Amflush.pm: Perl module with amflush functionnality. * perl/Amanda/JSON/Amflush.pm: New JSON module for running a flush. * perl/Amanda/Message.pm: Add Amanda::Amflush::Message. * perl/Makefile.am: Add Amanda/Amflush.pm, Amanda/JSON/Amflush.pm * server-src/amflush.c: Remove. * server-src/amflush.pl: New amflush programthat use the perl module. * server-src/Makefile.am: Add amflush perl script. * server-src/amanda.psgi.pl: Register Amanda::JSON::Amflush::run. 2013-09-13 Jean-Louis Martineau * perl/Amanda/Amdump.pm: Add message code 2000002. * perl/Amanda/Config.swg: Add message code 1500002. * perl/Amanda/JSON/Amdump.pm: Use message code 2000002. * perl/Amanda/JSON/Config.pm: Use message code 1500002. * perl/Amanda/Message.pm: Fix documentation. 2013-09-13 Jean-Louis Martineau * perl/Amanda/Disklist.swg: Fix. 2013-09-12 Jean-Louis Martineau * perl/Amanda/Cmdfile.swg: Fix. 2013-09-12 Jean-Louis Martineau * perl/amglue/integers.swg: Add pid_t. 2013-09-12 Jean-Louis Martineau * perl/Amanda/Holding.pm: Typo. 2013-09-12 Jean-Louis Martineau * perl/Amanda/Disklist.swg (match_disklist, reset_disklist, add_holding_to_disklist): New methods. * perl/Amanda/Disklist.pod: Document them. * installcheck/Amanda_Disklist.pl: Create a debug file. 2013-09-12 Jean-Louis Martineau * server-src/cmdfile.c (add_cmd_in_memory, cmdfile_get_ids_for_holding): New functions. * server-src/cmdfile.h (add_cmd_in_memory, cmdfile_get_ids_for_holding): Prototype for new functions. * perl/Amanda/Cmdfile.swg: Perlify server-src/cmdfile.c * perl/Amanda/Cmdfile.pod: Document it. * perl/Makefile.am: Add Cmdfile module. 2013-09-11 Jean-Louis Martineau * server-src/amstatus.pl: Handle displayunit, add --detail, --summary --stats and --locale-independent-date-format, remove --dumping, --waitdumping, --waittaper, --dumpingtape, --writingtape, --finished, --failed, --estimate, --gestimate * perl/Amanda/Status.pm: Set $self->{'starttime-locale-independent'} * man/xml-source/amstatus.8.xml: Document them. 2013-09-11 Jean-Louis Martineau * perl/Amanda/Label.pm: Fix. * server-src/tapefile.c: Speedup parsing. 2013-09-05 Jean-Louis Martineau * server-src/driver.c: Fix use of NULL pointer. 2013-09-05 Jean-Louis Martineau * perl/Amanda/Amdump.pm: cleanup. * server-src/amanda.psgi.pl: Add Amanda::JSON::Amdump::run * server-src/amdump.pl: cleanup. 2013-09-05 Jean-Louis Martineau * server-src/amfetchdump.pl: Fix previous patch. 2013-09-05 Jean-Louis Martineau * perl/Amanda/JSON/Report.pm: Take a trace_log as argument. * perl/Amanda/JSON/Status.pm: Take a amdump_log as argument. * perl/Amanda/Message.pod: Amndmp use 200000 message code. * perl/Makefile.am: Add perl/Amanda/Amdump.pm and perl/Amanda/JSON/Amdump.pm * server-src/amdump.pl: Move all codes to a perl module. * perl/Amanda/Amdump.pm: New module for running a dump. * perl/Amanda/JSON/Amdump.pm: New JSON module for running a dump. 2013-09-05 Jean-Louis Martineau * server-src/amfetchdump.pl: Parse header without dle_str. 2013-09-04 Jean-Louis Martineau * perl/Amanda/Label.pm: Merge Label.pod. * perl/Amanda/Message.pm: Merge Message.pod. * perl/Amanda/Label.pod, perl/Amanda/Message.pod: Remove files. * perl/Makefile.am (EXTRA_DIST): Remove Label.pod and Message.pod. 2013-09-03 Jean-Louis Martineau * server-src/amvault.pl: Add the "ST:storage" in many taper log lines. 2013-08-30 Jean-Louis Martineau * device-src/s3-device.c: Remove double increment of count. * server-src/amcheck.c: Do not set pw which is never used. * server-src/find.c: Do not set dp which is never used. 2013-08-28 Jean-Louis Martineau * server-src/amrmtape.pl, server-src/taper.pl: Remove useless debugging. 2013-08-28 Jean-Louis Martineau * common-src/conffile.c: Fix STORAGE_DEVICE_OUTPUT_BUFFER_SIZE init. * device-src/xfer-dest-taper-splitter.c: Abort with better message if memory allocation fail. * server-src/amcheck.c: Check device-output-buffer-size is nmot larger than physical memory. 2013-08-28 Jean-Louis Martineau * perl/Amanda/Message.pm: Add a 'severity' to a message. * perl/Amanda/Message.pod: Document severity. * perl/Amanda/Tapelist.swg (new): Return an array of two elements, The first is the Amanda::Tapelist object, the second is a message. * server-src/amadmin_perl.pl, server-src/amtape.pl: Handle new return value of Amanda::Tapelist->new, continue if it is a warning severity. * perl/Amanda/DB/Catalog.pm, perl/Amanda/JSON/Tapelist.pm, perl/Amanda/Recovery/Planner.pm, perl/Amanda/Report/human.pm, perl/Amanda/Report/json.pm, server-src/amcheck-device.pl, server-src/amcheckdump.pl, server-src/amidxtaped.pl, server-src/amlabel.pl, server-src/amreport.pl, server-src/amrestore.pl, server-src/amrmtape.pl, server-src/amvault.pl, server-src/taper.pl: Handle new return value of Amanda::Tapelist->new, abort on any message. * installcheck/Amanda_Changer.pl, installcheck/Amanda_Logfile.pl, installcheck/Amanda_Recovery_Clerk.pl, installcheck/Amanda_Tapelist.pl, installcheck/Amanda_Taper_Scan.pl, installcheck/Amanda_Taper_Scan_lexical.pl, installcheck/Amanda_Taper_Scan_oldest.pl, installcheck/Amanda_Taper_Scan_traditional.pl, installcheck/amlabel.pl, installcheck/amrmtape.pl, installcheck/amtape.pl: Handle new return value of Amanda::Tapelist->new. 2013-08-27 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Check error result from _get_state. 2013-08-26 Jean-Louis Martineau * xfer-src/element-glue.c (do_directtcp_connect): Do not free unallocated memory. 2013-08-23 Jean-Louis Martineau * server-src/amvault.pl: s/g_debug/debug/ 2013-08-21 Jean-Louis Martineau * server-src/amvault.pl: Print progress to debug file if not on a tty. 2013-08-21 Jean-Louis Martineau * application-src/amsamba.pl: Add REGEX-MATCH property. * man/xml-source/amsamba.8.xml: Document REGEX-MATCH property. 2013-08-21 Jean-Louis Martineau * server-src/amvault.pl: Print progress status. 2013-08-21 Jean-Louis Martineau * server-src/driver.c (start_some_dumps): Set dumper->job and wtaper->job for dup direct to tape. 2013-08-19 Jean-Louis Martineau * client-src/selfcheck.c: fix double free. 2013-08-14 Jean-Louis Martineau * device-src/tape-device.c: Fix for not supported platform. 2013-08-14 Jean-Louis Martineau * application-src/amgtar.c, client-src/client_util.c, client-src/selfcheck.c, client-src/sendbackup.c, client-src/sendsize.c, common-src/conffile.c, server-src/diskfile.c, server-src/driver.c, server-src/driverio.c: Fix memory leak. 2013-08-14 Jean-Louis Martineau * device-src/tape-device.c: Get in error state if the tape drive is in fixed block size and it is different than the tapetype size. 2013-08-12 Jean-Louis Martineau * server-src/amfetchdump.pl: Print applicationstdout to debug file and stderr. 2013-08-12 Jean-Louis Martineau * perl/Amanda/Process.pm: Be less scrict on perl binary name. 2013-08-09 Jean-Louis Martineau * server-src/cmdfile.c (cmdfile_write): Cast pid_t to int for printf. 2013-08-09 Jean-Louis Martineau * device-src/tape-device.c (tape_device_check_writable): Declare get conditionaly. 2013-08-09 Jean-Louis Martineau * application-src/amgtar.c, server-src/holding.c: Cast getpid() to int before printing it. 2013-08-09 Jean-Louis Martineau * server-src/holding.c: s/g_slist_free_full/slist_free_full/ 2013-08-05 Jean-Louis Martineau * application-src/amgtar.c, common-src/conffile.c, perl/Amanda/Header.swg, perl/Amanda/Logfile.swg, server-src/dumper.c, server-src/find.c, server-src/holding.c, server-src/planner.c: Fix memory leak. 2013-08-01 Jean-Louis Martineau * server-src/amindexd.c: Initialize invalid_stotage to NULL. 2013-08-01 Jean-Louis Martineau * common-src/amfeatures.h: Add fe_amindexd_STORAGE. * common-src/amfeatures.c: Add fe_amindexd_STORAGE. * recover-src/amrecover.h (add_storage_value, set_storage): Add prototype. * recover-src/help.c: Add storage command. * recover-src/set_commands.c (add_storage_value, set_storage): New function. * recover-src/uparse.y: Parse storage command. * recover-src/uscan.l: Parse storage keyword, * server-src/amadmin.c (find): Add new 's' sort order for storage. * server-src/amidxtaped.pl: Fix filter issue. * server-src/amindexd.c: Accept STORAGE command from amrecover. * server-src/disk_history.c: Check storage. * server-src/find.c: Sort by storage. * server-src/find.h (DEFAULT_SORT_ORDER): Now "hkdlspbfw". * man/xml-source/amadmin.8.xml (find): Add new 's' sort order. * man/xml-source/amrecover.8.xml: Add new storage command. 2013-08-01 Jean-Louis Martineau * perl/Amanda/Changer/aggregate.pm: Small fix. * server-src/amadmin_perl.pl: Do not use XML::Simple. 2013-08-01 Jean-Louis Martineau * perl/Amanda/Disklist.swg: Fix perl warning. * perl/Amanda/Report.pm: Set the storage. * perl/Amanda/Report/human.pm: Fix perl warning. * perl/Amanda/Status.pm: Fix perl warning. * server-src/amstatus.pl: Fix perl warning. * installcheck/Amanda_Curinfo.pl: Fix perl warning. * installcheck/Amanda_Report.pl: Add the storage. * installcheck/catalogs/filesystemstaped.cat, installcheck/catalogs/multi-taper.cat. installcheck/catalogs/normal.cat: Add the storage in taper DONE. 2013-08-01 Jean-Louis Martineau * server-src/driver.c (handle_chunker_result): Remove dumper variable. 2013-08-01 Jean-Louis Martineau Add a job_t struct tolink dumper/chunker and taper. * server-src/driver.c: Use it. * server-src/driverio.c: Use it. * server-src/driverio.h: Define job_t. 2013-08-01 Jean-Louis Martineau * perl/Amanda/Changer.pm (show): fix. * perl/Amanda/Changer/robot.pm: Set slot on some error. 2013-08-01 Jean-Louis Martineau * perl/Amanda/Changer/aggregate.pm, perl/Amanda/Changer/disk.pm, perl/Amanda/Changer/multi.pm, perl/Amanda/Changer/null.pm, perl/Amanda/Changer/rait.pm, perl/Amanda/Changer/robot.pm, perl/Amanda/Changer/single.pm: info can return the slots list. * perl/Amanda/Changer.pm (show): Use the slot list returned by info. 2013-08-01 Jean-Louis Martineau * perl/Amanda/Status.pm: Some fix. 2013-07-31 Jean-Louis Martineau * perl/Amanda/Changer.pm: Set storage_name to "NO-STORAGE" if there is no storage. * perl/Amanda/Changer/aggregate.pm, perl/Amanda/Changer/disk.pm, perl/Amanda/Changer/multi.pm, perl/Amanda/Changer/robot.pm: Keep a current slot by config/storage/changer. 2013-07-31 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm (set_dump_cb): New method. * perl/Amanda/Taper/Worker.pm: return FAILED if $self->{'xfer_source'}->get_addrs failed. * server-src/driver.c: Accept a FAILED immediately after a PORT-WRITE. 2013-07-30 Jean-Louis Martineau * server-src/amanda.psgi.pl: Add missing JSON method. 2013-07-30 Jean-Louis Martineau * perl/Amanda/Report/json.pm: Fix doc formating. 2013-07-30 Jean-Louis Martineau * perl/Amanda/JSON.pm: Add missing Amanda::JSON modules. 2013-07-30 Jean-Louis Martineau * perl/amglue/bigint.c (amglue_Sv*): Theses functions take a new err argument to be able to return error message. * perl/amglue/amglue.h (amglue_Sv*): Change prototypes. * perl/amglue/integers.swg: Add new amglue_Sv* argument and croak on error. * perl/Amanda/Device.swg (set_gvalue_from_sv): return FALSE if amglue_Sv* return an error. * perl/Amanda/NDMP.swg: Use new amglue_SvU64 err argument. 2013-07-29 Jean-Louis Martineau * perl/Amanda/JSON/Report.pm: add it. 2013-07-29 Jean-Louis Martineau * perl/Amanda/JSON/Device.pm, perl/Amanda/JSON/Dle.pm, perl/Amanda/JSON/Label.pm, perl/Amanda/JSON/Status.pm: Fix Copyright to 2013. * perl/Amanda/JSON/RPC/Dispatcher.pm: Use pretty json output. * perl/Amanda/JSON/Report.pm: New perl module. * perl/Amanda/Message.pod: Report use 190000 message code. * perl/Amanda/Report.pm: Add Amanda::Report::Message. * perl/Amanda/Report/human.pm: Use new Amanda::Tapelist::list_new_tapes output. * perl/Amanda/Report/json.pm: Document json format, add a generate_report method, jsonify the output_tapeinfo method. * perl/Amanda/Tapelist.swg: New binding for list_new_tapes. * perl/Makefile.am: Add Amanda/JSON/Report.pm * server-src/amadmin.c: Use new list_new_tapes output. * server-src/tapefile.c (list_new_tapes): Output an array of string. * server-src/tapefile.h: new prototype for list_new_tapes. 2013-07-29 Jean-Louis Martineau * perl/Amanda/Status.pm, server-src/amstatus.pl: Fix for perl 5.10 2013-07-29 Jean-Louis Martineau * server-src/amfetchdump.pl: Run application after filters. 2013-07-29 Jean-Louis Martineau * application-src/amsuntar.pl (command_estimate): Change order for reading the pipe. Fix perl warnings. 2013-07-25 Jean-Louis Martineau * server-src/amstatus.pl: Use Amanda::Status module * perl/Amanda/Status.pm: New perl module, rewrite of amstatus. * perl/Amanda/Config.swg: require Amanda::Config::FoldingHash. * perl/Amanda/Config/FoldingHash.pm: s/use/require/ * perl/Amanda/JSON/RPC/Dispatcher.pm: Handle streaming reply. * perl/Amanda/JSON/Status.pm: New JSON perl module. * perl/Amanda/Message.pod: 1800000 Amanda::Status::Message * perl/Amanda/Taper/Protocol.pm: Add taper_name and storage on START-TAPER. * perl/Amanda/Taper/Worker.pm (new): Taper taper_name as argument. * perl/Amanda/Taper/Controller.pm: Add taper_name argument to Controller. * perl/Makefile.am: Add Amanda/Status.pm and Amanda/JSON/Status.pm * server-src/amanda.psgi.pl: Register Amanda::JSON::Status::current * server-src/amflush.c: Add storage in FLUSH line. * server-src/planner.c: Add storage in FLUSH line. * server-src/driver.c: Add more date in stdout file. * server-src/driverio.c: Add taper and storage in START-TAPER line. * installcheck/amstatus.pl: Fix for new amstatus output. * installcheck/catalogs/chunker-partial.cat, installcheck/catalogs/normal.cat, installcheck/catalogs/taper-parallel-write.cat, installcheck/catalogs/quoted.cat: Fix for new amdump.X format. * installcheck/taper.pl: Fx for new amdump.X format. 2013-07-18 Jean-Louis Martineau * device-src/s3.c: Undo previous patch. * device-src/s3-device.c: Verify the bucket can be used as a subdomain if S3-SUBDOMAIN is set. 2013-07-17 Jean-Louis Martineau * device-src/s3.c: lowercase the bucket for the auth_string. 2013-07-16 Jean-Louis Martineau * perl/Amanda/JSON/*: json server interface. * perl/Amanda/*: Add many functionnalities of the servewr program. Modified to return Amanda::Message * server-src/*: Mv functionalities to perl Modules. * installcheck/*: Change for modified interface. 2013-07-04 Jean-Louis Martineau * device-src/device.c: register types at initialization. 2013-07-03 Jean-Louis Martineau * server-src/planner.c: Remove from correct queue. 2013-06-28 Jean-Louis Martineau * NEWS, ReleaseNotes: Changes in 3.3.4 2013-06-28 Jean-Louis Martineau * server-src/dumper.c: Fix use of NULL dereference. 2013-06-28 Jean-Louis Martineau * server-src/holding.c (holding_cleanup_dir): fclose pid_FILE. 2013-06-28 Jean-Louis Martineau * server-src/holding.c: Fix. 2013-06-28 Jean-Louis Martineau * perl/Amanda/Changer/multi.pm: Keep a current_slot by config. 2013-06-27 Jean-Louis Martineau * perl/Amanda/Changer/rait.pm: Fix perl warning. 2013-06-27 Jean-Louis Martineau * perl/Amanda/Changer/rait.pm: Set barcode in a reservation. 2013-06-27 Jean-Louis Martineau * perl/Amanda/Changer/rait.pm: Set chg in a reservation. 2013-06-27 Jean-Louis Martineau * config/amanda/progs.m4: Set LPRFLAG. 2013-06-26 Jean-Louis Martineau * server-src/amflush.c, server-src/planner.c: Call holding_cleanup. * server-src/holding.c: ignore tmp file, add pid file in holding disk to prevent parallel use. 2013-06-25 Jean-Louis Martineau * server-src/amreport.pl: Fix send-amreport-on. 2013-06-25 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Always get a status initially. 2013-06-17 Jean-Louis Martineau * common-src/glib-util.c, device-src/s3-device.c, device-src/s3.c, ndmp-src/ndmpconnobj.h, perl/Amanda/Util.swg, server-src/amflush.c, server-src/driver.c, server-src/holding.c, server-src/tapefile.c: Fix memory leak. 2013-06-13 Jean-Louis Martineau * server-src/dumper.c: Fail with good error message if the dataport-list is empty. 2013-06-13 Jean-Louis Martineau * perl/Amanda/Changer/ndmp.pm: s/destiation/destination/ * perl/Amanda/Changer/robot.pm: (eject) Return an error if the drive is empty. 2013-06-13 Jean-Louis Martineau * xfer-src/filter-process.c (xfer_filter_process): Add must_drain, cancel_on_success and ignore_broken_pipe flag). * xfer-src/filter-process.c (child_watch_callback): Send XMSG_INFO. * xfer-src/xfer-element.c: Initialize new flags. * xfer-src/xfer-element.h (XferElement): Add must_drain, drain_mode, cancel_on_success and ignore_broken_pipe. * xfer-src/element-glue.c: Handle new flags. * perl/Amanda/Xfer.swg (xfer_filter_process): Add new flags. * installcheck/Amanda_Xfer.pl: Test new flags. * server-src/amcheckdump.pl: Use new flags. * server-src/amfetchdump.pl: Use new flags. * server-src/amidxtaped.pl: Use new flags. * server-src/amrestore.pl: Use new flags. 2013-06-12 Jean-Louis Martineau * common-src/conffile.c: Global changerfile is deprecated. * device-src/vfs-device.c: Add USE-DATA property. * device-src/vfs-device.h (VfsDevice): Add use_data. * man/xml-source/amanda-devices.7.xml: Document USE-DATA property. * man/xml-source/amanda.conf.5.xml: Global changerfile is deprecated. * perl/Amanda/Changer.pm: Do not set changerfile from global. * perl/Amanda/Changer/disk.pm: Do not create symlink. * perl/Amanda/Changer/multi.pm: Use global changerfile. * installcheck/Amanda_Changer_disk.pl, * installcheck/Amanda_Changer_multi.pl, * installcheck/Amanda_Changer_rait.pl, * installcheck/Amanda_Taper_Scan_traditional.pl, * installcheck/amdevcheck.pl: Fixes for changes. 2013-06-12 Jean-Louis Martineau * device-src/s3.c: Call curl_easy_setopt(hdl->curl, CURLOPT_NOSIGNAL, TRUE))) 2013-06-11 Jean-Louis Martineau * device-src/s3-device.c: Do not save catalog if not label or header. * perl/Amanda/Changer/multi.pm (reset): Remove th slots hash. 2013-06-11 Jean-Louis Martineau * common-src/glib-util.c: Undo previous patch, debugging is not yet enabled. * device-src/s3-device.c: Do it here. 2013-06-11 Jean-Louis Martineau * common-src/glib-util.c: Print to debug the ssl version amanda is compiled for. 2013-06-11 Jean-Louis Martineau * installcheck/catalogs/*.cat: Fix for previous change. 2013-06-10 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Center 'DUMPER STATS'. 2013-06-07 Jean-Louis Martineau * server-src/find.c: Do not enqueue_disk, add_disk already do it. 2013-06-07 Jean-Louis Martineau * server-src/driver.c: Degraded dles only for degraded storage. * server-src/driverio.c: Set default degraded_mode. * server-src/driverio.h (taper_t): Add degraded_mode. 2013-06-06 Jean-Louis Martineau * device-src/ndmp-device.c, device-src/null-device.c, device-src/rait-device.c, device-src/s3-device.c, device-src/tape-device.c, device-src/vfs-device.c (*device__finish_file): Set in_file even when already on error. * device-src/xfer-dest-taper-directtcp.c: Always call device_finish_file(). 2013-06-05 Jean-Louis Martineau * perl/Amanda/Changer.pm (make_new_tape_label): Return a not_fatal bit for some error. * perl/Amanda/ScanInventory.pm: Continue the scan on not_fatal make_new_tape_label error. 2013-06-05 Jean-Louis Martineau * server-src/amrmtape.pl: Use the itapelist pool to find the storage if the storage is not in the tapelist. 2013-06-05 Jean-Louis Martineau * installcheck/Amanda_Taper_Scan_lexical.pl, installcheck/Amanda_Taper_Scan_oldest.pl, installcheck/Amanda_Taper_Scan_traditional.pl: Quit the storage. * perl/Amanda/Report/human.pm: Fix perl warning. * perl/Amanda/Storage.pm: Do not create the storage on failure. * perl/Amanda/Taper/Controller.pm: Keep the storage, quit the storage. * perl/Amanda/Taper/Worker.pm: Use controller's storage. * server-src/amcheck-device.pl, server-src/amidxtaped.pl, server-src/amlabel.pl, server-src/amrmtape.pl, server-src/amtape.pl, server-src/amvault.pl: Quit the Storage. 2013-06-05 Jean-Louis Martineau * common-src/conffile.c: Add ERASE_ON_FAILURE storage setting. * common-src/conffile.h: Add STORAGE_ERASE_ON_FAILURE. * man/xml-source/amanda.conf.5.xml: add erase-on-failure. * perl/Amanda/Config.swg: Add STORAGE_ERASE_ON_FAILURE. * perl/Amanda/Report.pm: Parse new taper line, add storage in %part. * perl/Amanda/Report/human.pm: Take care of storage. * perl/Amanda/Storage.pm: Set erase_on_failure. * perl/Amanda/Taper/Scribe.pm: Erase a volume if nothing good written to it. * perl/Amanda/Util.swg (marshal_tapespec): Fix storage. * server-src/driver.c: Fix to not do two flush in parallel. * server-src/driverio.c: Add comment. * installcheck/Amanda_Report.pl: Fix for new report format. 2013-06-03 Jean-Louis Martineau * server-src/diskfile.c (unload_disklist): New function. * server-src/diskfile.h (unload_disklist): New prototype. * perl/Amanda/Disklist.swg: swig unload_disklist. * server-src/amadmin.c, server-src/amtrmidx.c, server-src/amtrmlog.c: Call unload_disklist(). * installcheck/Amanda_Disklist.pl: Test unload_disklist. 2013-05-31 Jean-Louis Martineau * device-src/s3-device.c: Add TIMEOUT property. * device-src/s3.c: Set CURLOPT_TIMEOUT with timeout value. * device-src/s3.h (s3_open): Add timeout argument. * man/xml-source/amanda-devices.7.xml: Add TIMEOUT property. 2013-05-30 Jean-Louis Martineau * application-src/ampgsql.pl: Add --dereference to all gtar command. 2013-05-29 Jean-Louis Martineau * common-src/tapelist.c: Do not use g_strcmp0. 2013-05-29 Jean-Louis Martineau * installcheck/Amanda_Util.pl, installcheck/amidxtaped.pl: Fix. 2013-05-29 Jean-Louis Martineau * common-src/amfeatures.h: Add fe_amrecover_storage_in_marshall and fe_amrecover_storage_in_marshall amfeatures. * common-src/amfeatures.c: Add fe_amrecover_storage_in_marshall and fe_amrecover_storage_in_marshall amfeatures. * common-src/tapelist.h (tapelist_t): Add storage. * common-src/tapelist.h: Many prototy change for storage. * common-src/tapelist.c: Marshall and unmarshall storage. * oldrecover-src/extract_list.c: Handle storage in marshall list. * recover-src/extract_list.c: Handle storage in marshall list. * perl/Amanda/Chunker/Scribe.pm: Typo. * perl/Amanda/DB/Catalog.pm: handle storage. * perl/Amanda/Logfile.swg (find_result_t): Add storage. * perl/Amanda/Recovery/Planner.pm (make_plan): Add storage_list, all_copy and only_in_storage parameters. * perl/Amanda/Recovery/Scan.pm: Handle Storage in log line. * perl/Amanda/Report.pm: Handle Storage in log lines. * perl/Amanda/Storage.pm: Add DESTROY method. * perl/Amanda/Taper/Scribe.pm: Typo. * perl/Amanda/Taper/Worker.pm: Add Storage to log lines. * perl/Amanda/Util.swg (marshal_tapespec, unmarshal_tapespec): Handle storage, new with_storage argument. * server-src/amcheckdump.pl: Check the dumps on all storages. * server-src/amfetchdump.pl: Fetch from the specified storage. * server-src/amidxtaped.pl: Fetch from the specified storage. * server-src/amindexd.c: Send storage to amrecover. * server-src/disk_history.h (DUMP_ITEM): Add storage. * server-src/disk_history.c: Handle storage. * server-src/find.c: Return storage, print storage. * server-src/find.h (find_result_t): Add storage and storage_id. * installcheck/Amanda_DB_Catalog.pl, installcheck/Amanda_Recovery_Planner.pl, installcheck/Amanda_Report.pl, installcheck/Amanda_Util.pl, installcheck/Installcheck/Catalogs.pm, installcheck/amidxtaped.pl, installcheck/catalogs/amflush.cat, installcheck/catalogs/bigdb.cat, installcheck/catalogs/bigestimate.cat, installcheck/catalogs/doublefailure.cat, installcheck/catalogs/filesystemstaped.cat, installcheck/catalogs/flush-noorigsize.cat, installcheck/catalogs/flush-origsize.cat, installcheck/catalogs/longstrange.cat, installcheck/catalogs/multi-taper.cat, installcheck/catalogs/normal.cat, installcheck/catalogs/resultsmissing.cat, installcheck/catalogs/retried-nofinish.cat, installcheck/catalogs/retried-strange.cat, installcheck/catalogs/retried.cat, installcheck/catalogs/shortstrange.cat, installcheck/catalogs/skipped.cat, installcheck/catalogs/spanned.cat, installcheck/catalogs/strontium.cat, installcheck/taper.pl: Change for new log format and API. 2013-05-24 Jean-Louis Martineau * server-src/driver.c (start_some_dumps): Fix when multiple storage in use. 2013-05-23 Jean-Louis Martineau * ndmp-src/ndmpconnobj.c: Fix SU_SET_PORT argument. 2013-05-22 Jean-Louis Martineau * application-src/ampgsql.pl: Parse psql version with four numbers. 2013-05-21 Jean-Louis Martineau * installcheck/gnutar.pl: Fix for fc18. 2013-05-21 Jean-Louis Martineau * device-src/ndmp-device.c: Parse the LEOM property. 2013-05-17 Jean-Louis Martineau * perl/Amanda/Changer/ndmp.pm (get_device): Return the Amanda::Changer::Error on error. 2013-05-17 Jean-Louis Martineau * device-src/s3.c (s3_make_bucket): Init add_create to FALSE. 2013-05-17 Jean-Louis Martineau * server-src/amrmtape.pl: Try to locate the label in all storage if the storage is not in the tapelist. 2013-05-17 Jean-Louis Martineau * device-src/s3-device.c: Do not abort partial upload if multi-part-upload is not set. * device-src/s3.c: Handle DURABLE_REDUCED_AVAILABILITY for OAUTH2. * man/xml-source/amanda-devices.7.xml: Document DURABLE_REDUCED_AVAILABILITY for google storage. 2013-05-16 Jean-Louis Martineau * server-src/amidxtaped.pl: untaint input variable. 2013-05-16 Jean-Louis Martineau * application-src/ampgsql.pl: Add a VERBOSE property. * man/xml-source/ampgsql.8.xml: Document VERBOSE property. 2013-05-15 Jean-Louis Martineau * config/amanda/ps.m4: use one AC_MSG_RESULT. 2013-05-15 Jean-Louis Martineau * config/amanda/json.m4: Improve check for perl module. 2013-05-15 Jean-Louis Martineau * xfer-src/element-glue.c: Add debugging statement. 2013-05-15 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Do not confess if device not available. * perl/Amanda/Taper/Worker.pm: Fix device_errors. 2013-05-15 Jean-Louis Martineau * server-src/dumper.c: Fix data_host memory handling. 2013-05-15 Jean-Louis Martineau * server-src/tapefile.c: Memory leak. 2013-05-15 Jean-Louis Martineau * server-src/cmdfile.c: Memory leak. 2013-05-15 Jean-Louis Martineau * man/xml-source/ampgsql.8.xml: Add disklist example. 2013-05-13 Jean-Louis Martineau * application-src/amsuntar.pl: Remove perl warning. 2013-05-13 Jean-Louis Martineau * amandad-src/amandad.c: Check return value of system calls. * oldrecover-src/extract_list.c: Check return value of system calls. * oldrecover-src/amrecover.c: Call dbrename after config is set. 2013-05-13 Jean-Louis Martineau * gnulib/*, config/gnulib/*: upgrade gnulib to 3fe906e98202a591a6a14010aec1538adfd821b6. 2013-05-08 Jean-Louis Martineau * man/xml-source/amanda.conf.5.xml: Add that both flush-threshold-dumped and flush-threshold-scheduled must be met. 2013-05-08 Jean-Louis Martineau * perl/Amanda/Recovery/Planner.pm (make_plan): Handle latest_fulls. * server-src/amvault.pl: Add --latest-fulls option, pass latest_fulls to Amanda::Recovery::Planner::make_plan(). * man/xml-source/amvault.8.xml: Document --latest-fulls option. 2013-05-07 Jean-Louis Martineau * man/xml-source/ampgsql.8.xml: Add an example. 2013-05-06 Jean-Louis Martineau * server-src/amcheck.c: Cleanup. 2013-04-29 Jean-Louis Martineau * perl/Amanda/Config.swg (val_t_to_sv): Do not set tag if not set. * installcheck/Amanda_Config.pl: Fix for tag not set instead of undef. 2013-04-29 Jean-Louis Martineau * config/automake/scripts.am: Add SCRIPTS_PERL_NO_CHECK * config/amanda/json.m4: Define AMANDA_JSON_SERVER. Add --with-json-server, check for json-server and check perl module rependencies. * config/amanda/components.m4: Invoke AMANDA_JSON_SERVER * perl/Makefile.am: Check json server module conditionally. * server-src/Makefile.am: Check amanda.psgi conditionally. * perl/Amanda/JSON/RPC/Dispatcher.pm, perl/Amanda/JSON/RPC/Dispatcher/App.pm, perl/Amanda/JSON/RPC/Dispatcher/Procedure.pm, server-src/amanda.psgi.pl: Undo previous patches. 2013-04-26 Jean-Louis Martineau * perl/Amanda/JSON/RPC/Dispatcher/Procedure.pm: Do not require Moose. 2013-04-26 Jean-Louis Martineau * perl/Amanda/JSON/RPC/Dispatcher.pm: Do not require Moose. 2013-04-26 Jean-Louis Martineau * server-src/amanda.psgi.pl: Do not require Dispacher.pm 2013-04-26 Jean-Louis Martineau * device-src/s3.c: CURLE_SSL_CACERT_BADFILE is not defined on older curl. 2013-04-26 Jean-Louis Martineau * perl/Amanda/JSON/RPC/Dispatcher.pm: Do not require Log::Any. * perl/Amanda/JSON/RPC/Dispatcher/App.pm: Do not require Dispatcher.pm. 2013-04-26 Jean-Louis Martineau * perl/Amanda/JSON/RPC/Dispatcher.pm: Do not require Plack::Request at compile time. 2013-04-25 Jean-Louis Martineau * device-src/s3.c: Retry on CURLE_SSL_CACERT_BADFILE. 2013-04-25 Jean-Louis Martineau * perl/Amanda/JSON/Config.pm, perl/Amanda/JSON/Changer.pm: Remove dependency of Digest/SHA1. 2013-04-24 Jean-Louis Martineau * server-src/amvault.pl: Add --incrs-only argument. * man/xml-source/amvault.8.xml: Document --incrs-only argument. 2013-04-23 Jean-Louis Martineau * amandad-src/amandad.c: Do not hopelessly wait 5 seconds if waitpid return -1. 2013-04-19 Jean-Louis Martineau * server-src/amvault.pl: Use DLE allow-split and device LEOM property. 2013-04-18 Jean-Louis Martineau * common-src/conffile.c: Fix parsing command overwrite with '-'. Fix small --print-source bug. 2013-04-15 Jean-Louis Martineau * server-src/amdump.pl: Keep amflush as a relative symlink. * server-src/logfile.c: Keep log as a relative symlink. 2013-04-13 Dan Locks * packaging/sun-pkg/buildpkg: remove "use warnings" for solaris 8 compatibility 2013-04-12 Jean-Louis Martineau * man/xml-source/amanda.conf.5.xml: Document many storage setting. 2013-04-12 Jean-Louis Martineau * installcheck/Amanda_Config.pl: Add append keyword for dump-selection check. 2013-04-12 Jean-Louis Martineau * common-src/conffile.c: Add APPEND keyword to tag and dump-selection. * man/xml-source/amanda.conf.5.xml: Document tag and dump-selection. 2013-04-12 Jean-Louis Martineau * common-src/conffile.c: Parse erase-volume in a storage. * common-src/conffile.h: Add STORAGE_ERASE_VOLUME. * man/xml-source/amanda.conf.5.xml: Document erase-volume. * perl/Amanda/Config.swg: Add STORAGE_ERASE_VOLUME. * perl/Amanda/Changer.pm: Fix warning when meta not set. * perl/Amanda/IPC/LineProtocol.pm:Allow delayed start of reading. * perl/Amanda/Storage.pm: New erase_no_retention method. * perl/Amanda/Taper/Controller.pm: Call $storage->erase_no_retention(). * perl/Amanda/Taper/Scan.pm: Use Debug qw( debug ). * server-src/amrmtape.pl: hanlde multiple storage. 2013-04-12 Jean-Louis Martineau * server-src/amadmin.c: Add force-level-1 command. * man/xml-source/amadmin.8.xml: Document force-level-1 command. * server-src/infofile.h: Add FORCE_LEVEL_1. * server-src/planner.c: Handle FORCE_LEVEL_1. 2013-04-11 Jean-Louis Martineau * common-src/conffile.c, common-src/conffile.h: Add tag in dumptype and dump-selection in storage. * perl/Amanda/Config.swg: Add new configuration setting. * installcheck/Amanda_Config.pl: Check parsing dump-selection. * server-src/diskfile.h: Add tags to disk_t. * server-src/diskfile.c: set disk_t->tags. * server-src/driver.c: Use tags and dump-selection. * perl/Amanda/Storage.pm: Set $self->{'dump_selection'}. 2013-04-09 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Add await_device method and handle cancelling a dump before the device is set. * perl/Amanda/Taper/Worker.pm: Call scribe wait_device before starting the dump. 2013-04-09 Jean-Louis Martineau * ndmp-src/Makefile.am: Fix for solaris sed. * packaging/sun-pkg/buildpkg: Do not run rpcgen, just remove the file and let make do it. 2013-04-08 Jean-Louis Martineau * server-src/planner.c: Declare flush_ptr locally. 2013-04-08 Jean-Louis Martineau * server-src/amflush.c server-src/planner.c: NULL terminate the flush_ptr array. 2013-04-08 Jean-Louis Martineau * common-src/conffile.c, common-src/conffile.h: Change val_t.size to be a size_t. 2013-04-08 Jean-Louis Martineau * client-src/sendbackup.c, common-src/amutil.c, common-src/amutil.h, device-src/xfer-dest-taper-cacher.c, device-src/xfer-dest-taper-splitter.c, device-src/xfer-source-recovery.c, recover-src/extract_list.c, server-src/dumper.c, server-src/xfer-dest-holding.c, server-src/xfer-source-holding.c, xfer-src/dest-null.c, xfer-src/element-glue.c, xfer-src/filter-crc.c: Rename crc32 to crc32_add. 2013-04-05 Jean-Louis Martineau * common-src/glib-util.c: Use g_list_alloc. 2013-04-05 Jean-Louis Martineau * server-src/amflush.c, server-src/cmdfile.c, server-src/planner.c: Do not use g_ptr_array_new_full. 2013-03-28 Jean-Louis Martineau * common-src/conffile.c: Add set-no-reuse in the storage. * common-src/conffile.h: Add STORAGE_SET_NO_REUSE and storage_get_set_no_reuse. * perl/Amanda/Config.swg: Add STORAGE_SET_NO_REUSE. * perl/Amanda/Storage.pm: Set $self->{'set_no_reuse'}. * perl/Amanda/Taper/Scribe.pm: Mark the tape as no-reuse and call the changer no_reuse method if set-no-reuse is set in the storage. 2013-03-28 Jean-Louis Martineau * device-src/s3-device.c: Print the curl version to the debug file. * common-src/conffile.c, server-src/amcheck.c, server-src/cmdfile.c, server-src/diskfile.c, server-src/driver.c: Fix bug found by coverity. 2013-03-27 Jean-Louis Martineau * Many files: Add eject-volume, device-output-buffer-size, autoflush, flush-threshold-dumped, flush-threshold-scheduled, taperflush, report-use-media, report-next-media and interactivity to the storage section. * perl/Amanda/Taper/Worker.pm: Add the storage name to the START log line. 2013-03-25 Jean-Louis Martineau * server-src/cmdfile.c, server-src/cmdfile.h: Add files. 2013-03-25 Jean-Louis Martineau * NEWS, common-src/amflock.c, common-src/conffile.c, * common-src/conffile.h, common-src/glib-util.c, * common-src/glib-util.h, common-src/match.c, * installcheck/Amanda_Changer.pl, installcheck/Amanda_Taper_Scan.pl, * installcheck/Installcheck/Dumpcache.pm * installcheck/amcheck-device.pl, installcheck/amcheckdump.pl * installcheck/amreport.pl, installcheck/amrmtape.pl, * installcheck/catalogs/chunker-partial.cat, * installcheck/catalogs/normal.cat, installcheck/catalogs/quoted.cat, * installcheck/catalogs/taper-parallel-write.cat, * installcheck/taper.pl, perl/Amanda/Config.swg, * perl/Amanda/Disklist.swg, perl/Amanda/Report.pm, * perl/Amanda/Report/human.pm, perl/Amanda/Report/postscript.pm, * perl/Amanda/Storage.pm, perl/Amanda/Tapelist.swg, * perl/Amanda/Taper/Controller.pm, perl/Amanda/Taper/Protocol.pm, * perl/Amanda/Taper/Worker.pm, server-src/Makefile.am, * server-src/amadmin.c, server-src/amcheck-device.pl, * server-src/amcheck.c, server-src/amflush.c, * server-src/amindexd.c, server-src/amreport.pl, * server-src/amstatus.pl, server-src/amtrmidx.c, * server-src/cmdfile.c, server-src/cmdfile.h, * server-src/diskfile.c, server-src/diskfile.h, * server-src/driver.c, server-src/driverio.c, * server-src/driverio.h, server-src/planner.c, * server-src/server_util.c, server-src/server_util.h, * server-src/tapefile.c, server-src/tapefile.h, * server-src/taper.pl: Set multiple storage. Use a 'command_file' in the config directory to keep track of what must be done. 2013-03-21 Jean-Louis Martineau * server-src/amadmin_perl.pl: Add pool, storage and config arguments to the add_tapelabel method. 2013-03-19 Jean-Louis Martineau * perl/Amanda/Changer.pm: Improve error message, * perl/Amanda/Config.swg, perl/Amanda/Util.swg: EXTEND stack when returning an array. 2013-03-18 Jean-Louis Martineau * common-src/glib-util.c: Checkrunning version of glib instaed of compiled version. 2013-03-13 Jean-Louis Martineau * perl/Amanda/Report/human.pm: typo. 2013-03-13 Jean-Louis Martineau * server-src/amstatus.pl: Parse CRC in amdump file. 2013-03-08 Jean-Louis Martineau * installcheck/taper.pl: PARTIAL reply can compute the CRC from varying size. 2013-03-07 Jean-Louis Martineau * installcheck/taper.pl: PARTIAL reply can compute the CRC from varying size. 2013-03-06 Jean-Louis Martineau * common-src/amutil.c: Renamed from common-src/util.c * common-src/amutil.h: Renamed from common-src/util.h To avoid conflich with perl util.h * *.*: #include "amutil.h" 2013-03-06 Jean-Louis Martineau * perl/Amanda/Storage.pm: Add file. * perl/Amanda/Policy.pm: Add file. 2013-03-06 Jean-Louis Martineau * Too many files to list them. * tape pool label are assigned to a tape pool, the 'labelstr' is used only for tape that are not in a pool. * retention policies amanda will never rewrite a tape if it is required to satisfy a retention policies. * storage, include many global setting. * tapelist file: include POOL, STORAGE and CONFIG. 2013-03-06 Jean-Louis Martineau * common-src/amanda.h: Remove the debug variable. * common-src/util.c: Use maxint_t to parse the crc size. 2013-03-05 Jean-Louis Martineau * ndmp-src/ndmjob_job.c: Call jndex_merge_environment() after reading the index file. 2013-03-05 Jean-Louis Martineau * device-src/device.c: Add the device_sync_catalog function. * device-src/device.h: Add prototype for the sync_catalog function. * device-src/property.c: Add global properties * device-src/property.h: Add global properties * device-src/s3-device.c: Remove local properties. * device-src/xfer-dest-taper-splitter.c: indentation fix. * perl/Amanda/Changer.pm: Add the sync_catalog method. * perl/Amanda/Changer/multi.pm:Add the sync_catalog method. * perl/Amanda/Device.swg: Add the sync_catalog method. * server-src/amrmtape.pl: Do not die if erase() fail. * server-src/amtape.pl: Add the sync-catalog subcommand. * man/xml-source/amtape.8.xml: Document the sync-catalog subcommand. 2013-03-04 Jean-Louis Martineau * installcheck/taper.pl: PARTIAL reply can compute the CRC from varying size. 2013-02-26 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: Remove leading and trailing space in message from interactivity module. Use $self->{'chg'} instead of $self->{'changer'}, * perl/Amanda/Taper/Scribe.pm: Fix perl warning. 2013-02-25 Jean-Louis Martineau * perl/Amanda/Changer/single.pm: Keep an inventory. * perl/Amanda/Interactivity/email.pm: Some fix. * perl/Amanda/Recovery/Scan.pm: Update the changer if required. * perl/Amanda/ScanInventory.pm: Update the changer if required. * installcheck/Amanda_Changer_single.pl: Test changes. * installcheck/Amanda_Recovery_Scan.pl: Test changes. 2013-02-25 Jean-Louis Martineau * server-src/diskfile.c: Do not empties what is al;ready read when doing an includefile in the disklist. 2013-02-22 Jean-Louis Martineau * device-src/tape-device.c: Do not retry if !self->leom. * perl/Amanda/Taper/Protocol.pm: PARTIAL reply include de server-crc. 2013-02-22 Jean-Louis Martineau * server-src/logfile.c (make_logname): Fix race. 2013-02-22 Jean-Louis Martineau * client-src/sendbackup.c: close(compout). 2013-02-22 Jean-Louis Martineau * client-src/sendbackup.c: Add debugging statement. * common-src/sockaddr-util.c (str_sockaddr_r, str_sockaddr_no_port_r): New thread safe function. * common-src/sockaddr-util.h (str_sockaddr_r, str_sockaddr_no_port_r): New prototype. * server-src/dumper.c: Open indirecttcp connection. * xfer-src/element-glue.c (do_directtcp_connect): Open indirecttcp connection. 2013-02-22 Jean-Louis Martineau * server-src/driver.c: Handle holdingdisk NEVER and taperflush > 0. 2013-02-20 Jean-Louis Martineau * common-src/amfeatures.c: Add fe_sendbackup_state amfeature. * common-src/amfeatures.h: Add fe_sendbackup_state amfeature. * client-src/client_util.c: Parse RECOVER-DUMP-STATE-FILE application feature. * ndmp-src/ndma_noti_calls.c (ndma_send_logmsg): return if !from_conn. * perl/Amanda/Extract.pm: Parse recover-dump-state-file application feature. * server-src/amfetchdump.pl: Pass --recover-dump-state-file to application. * server-src/driver.c (short_dump_state): Add directq. * server-src/dumper.c: Parse 'sendbackup state' line and put them in the dump state file. 2013-02-18 Jean-Louis Martineau * gnulib/regenerate/regenerate: Add the nanosleep module. * config/gnulib/dup2.m4, config/gnulib/gnulib-cache.m4, config/gnulib/gnulib-comp.m4, config/gnulib/nanosleep.m4, config/gnulib/select.m4, config/gnulib/sigaction.m4, config/gnulib/signalblocking.m4, config/gnulib/sys_select_h.m4: New config files. * gnulib/Makefile.am: Update for new modules. * gnulib/alloca.c, gnulib/dup2.c, gnulib/intprops.h, gnulib/nanosleep.c, gnulib/select.c, gnulib/sig-handler.c, gnulib/sig-handler.h, gnulib/sigaction.c, gnulib/sigprocmask.c, gnulib/sys_select.in.h: New files. 2013-02-13 Jean-Louis Martineau * server-src/dumper.c: Do not crash if stdin if closed while a backup is running. 2013-02-11 Jean-Louis Martineau * server-src/logfile.c (get_logname): Return a new allocated string. * server-src/logfile.c (set_logname): Store a new allocated string. 2013-02-11 Jean-Louis Martineau * server-src/logfile.c: Check return of symlink. 2013-02-11 Jean-Louis Martineau * server-src/driver.c: Check return of ftruncate. 2013-02-11 Jean-Louis Martineau * common-src/conffile.c: Deprecate usetimestamps, it is always "yes" * example/amanda.conf.in: Remove usetimestamps. * example/template.d/advanced.conf.in: Remove usetimestamps. * man/xml-source/amanda.conf.5.xml: Deprecate usetimestamps. * server-src/logfile.c (make_logname, get_logname, set_logname) New function. * server-src/logfile.h (make_logname, get_logname, set_logname) Add prototype. * perl/Amanda/Logfile.swg (make_logname, get_logname, set_logname) Add function. * server-src/amdump.pl, server-src/amflush.c, server-src/amvault.pl: Create a log..0 file and use it. Do not check for a 'log' file. * server-src/amcheck.c: Do not check for a 'log' file. * server-src/driverio.c: Pass --log-filename argument to sub process. * server-src/driverio.h: add log_filename variable. * server-src/chunker.pl, server-src/driver.c, server-src/dumper.c, server-src/planner.c, server-src/taper.pl: Use logfile from --log-filename argument. * installcheck/Amanda_Config.pl, installcheck/Amanda_Logfile.pl, installcheck/amdump.pl, installcheck/chunker.pl, installcheck/taper.pl: Fix. 2013-02-11 Jean-Louis Martineau * Many Files: Compute CRC on backup and verify it on restore. 2013-02-11 Jean-Louis Martineau * autogen: Invoke automake with --add-missing. * config/compile, config/config.guess, config/config.sub, * config/depcomp, config/install-sh, config/missing, * config/mkinstalldirs, config/ylwrap: Upgrade from automake-1.11.6 2013-02-11 Jean-Louis Martineau * perl/Amanda/Changer/disk.pm: Return slot with invalid slot. * perl/Amanda/Changer/robot.pm: Return slot with invalid slot. * server-src/amtape.pl: Continue on invalid slot. 2013-02-07 Jean-Louis Martineau * client-src/amdump_client.pl: Pass the -o arguments to amservice. 2013-02-06 Jean-Louis Martineau * installcheck/0_setupcache.pl: Rename from =setupcache.pl * installcheck/Makefile.am: Ditto. 2013-02-05 Jean-Louis Martineau * device-src/s3.c: s/g_slist_free_full/slist_free_full/ 2013-01-29 Jean-Louis Martineau * application-src/amraw.pl: Check return value of POSIX::open. 2013-01-25 Jean-Louis Martineau * device-src/s3-device.c: Fix memory leak and check return value of mkdir. * device-src/s3.c: Fix dereferencing NULL pointer. 2013-01-25 Jean-Louis Martineau * gnulib/regenerate/regenerate, config/gnulib/gnulib-cache.m4, config/gnulib/gnulib-comp.m4, gnulib/Makefile.am: Remove ftruncate. 2013-01-25 Jean-Louis Martineau * config/snippet: Add directory. 2013-01-25 Jean-Louis Martineau * gnulib/* config/gnulib/*: UPgrade gnulib to 09b8fa6cb737f6e091931c494cbd56d12b3ad08d. * gnulib/regenerate/regenerate: Remove ftruncate module. * ndmp-src/Makefile.am: Workaround to '#include "config.h"' in ndmp?_xdr.c 2013-01-24 Jean-Louis Martineau * amandad-src/amandad.c: Use nanosleep. 2013-01-24 Jean-Louis Martineau * server-src/amadmin.c: Add a --prepend-prefix argument. * common-src/conffile.c (config_dir_relative): Prepend prepend-prefix to path. * common-src/conffile.h: extern char *prepend_prefix; 2013-01-24 Jean-Louis Martineau * application-src/ampgsql.pl: Do not use a default DB. 2013-01-23 Jean-Louis Martineau * perl/Makefile.am: Amanda/Feature.c depend on ../common-src/amfeatures.h 2013-01-22 Jean-Louis Martineau * device-src/s3-device.c: Check result of fgets. 2013-01-22 Jean-Louis Martineau * installcheck/Installcheck/Dumpcache.pm: Fix for exit status of amdump. 2013-01-22 Jean-Louis Martineau * server-src/amdump.pl: Exit with the ored value of the exit code of all subprocess. 2013-01-21 Jean-Louis Martineau * device-src/s3-device.c: Keep a catalog of the labels. New READ-FROM-GLACIER and TRANSITION-TO-GLACIER properties. Implement set_reuse and set_no_reuse to remove/add lifecycle. * device-src/device.c: New device_have_set_reuse and device_set_reuse functions. * device-src/device.h: new set_reuse and set_no_reuse. * device-src/s3.c: Implement init_restore, get and set lifecycle. * device-src/s3.h: Lifecycle. * man/xml-source/amanda-devices.7.xml: Document new READ-FROM-GLACIER and TRANSITION-TO-GLACIER S3 properties. * perl/Amanda/Changer.pm: Add set_reuse and set_no_reuse method. * perl/Amanda/Changer/multi.pm: Implement set_reuse and set_no_reuse. * perl/Amanda/Device.swg: Add set_reuse and set_no_reuse method. * server-src/Makefile.am (amlibexec_SCRIPTS_PERL) Add amadmin_perl. * server-src/amadmin.c: Call perl program for the reuse and no-reuse commands. * server-src/amadmin_perl.pl: Implementthe reuse and no-reuse commands of amadmin. 2013-01-21 Jean-Louis Martineau * application-src/amraw.pl: Correctly parse the --directory argument. 2013-01-16 Jean-Louis Martineau * common-src/security-util.h (struct tcp_conn): Add child_watch. * common-src/rsh-security.c: Add a child_watch for the rsh process. * common-src/ssh-security.c: Add a child_watch for the ssh process. 2013-01-15 Jean-Louis Martineau * device-src/s3.c: Fix for chunked transfer-encoding. 2013-01-15 Jean-Louis Martineau * device-src/s3.h: Add all S3 error. * perl/Amanda/ScanInventory.pm: Set err. 2013-01-14 Jean-Louis Martineau * common-src/conffile.c: Add CONF_REPORT_FORMAT. * common-src/conffile.h: Add CNF_REPORT_FORMAT. * man/xml-source/amanda.conf.5.xml: Document report-foramt. * man/xml-source/amreport.8.xml: Document new --format argument. * perl/Amanda/Config.swg: Add CNF_REPORT_FORMAT. * perl/Amanda/Report.pm (xml_output): Remove function. * perl/Amanda/Report/human.pm: change api * perl/Amanda/Report/json.pm: New report format. * perl/Amanda/Report/json_raw.pm: New report format. * perl/Amanda/Report/xml.pm: Change api * perl/Makefile.am (AmandaReport_DATA): Add Amanda/Report/json.pm and Amanda/Report/json_raw.pm * server-src/amreport.pl: New --format argument, change API to call module. 2013-01-11 Jean-Louis Martineau * application-src/Makefile.am, client-src/Makefile.am, installcheck/Makefile.am, server-src/Makefile.am: Use '+=' to set DISTCLEANFILES * gnulib/regenerate/no-error.patch: Improved patch. * gnulib/Makefile.am: Applied patch. 2013-01-11 Jean-Louis Martineau * perl/Amanda/Extract.pm: Change Zmanda licensing to GPLv2+. 2013-01-10 Jean-Louis Martineau * perl/Amanda/JSON/Config.pm: Fix perl warning. 2013-01-08 Jean-Louis Martineau * ndmp-src/ndmjob_args.c: Handle more than 1000 arguments. 2013-01-07 Jean-Louis Martineau * common-src/conffile.c: Set labelstr template from autolabel. * perl/Amanda/ScanInventory.pm: Use the labelstr template. * perl/Amanda/Taper/Scan.pm: Check for match_labelstr. 2013-01-07 Jean-Louis Martineau * perl/Amanda/Taper/Scan.pm (oldest_reusable_volume): Check the labelstr. * installcheck/Amanda_Taper_Scan.pl: Test it. 2013-01-04 Jean-Louis Martineau * server-src/amrmtape.pl: Do not check the 'log' file. 2013-01-03 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Return slot in error for: the requested volume is in drive $drive, which this changer instance cannot access * perl/Amanda/Taper/Scan/traditional.pm: Continue scan if this error. * perl/Amanda/Taper/Scribe.pm: log message. * installcheck/Amanda_Taper_Scan_lexical.pl, installcheck/Amanda_Taper_Scan_oldest.pl, installcheck/Amanda_Taper_Scan_traditional.pl: Check it. 2013-01-03 Jean-Louis Martineau * device-src/s3-device.c, device-src/s3.c: hanlde chunked transfer-encoding, * device-src/s3.h (s3_upload): Add chunked argument. * man/xml-source/amanda-devices.7.xml: Document new CHUNKER s3 device-property. 2013-01-03 Jean-Louis Martineau * recover-src/extract_list.c: Display the size restored. 2012-12-27 Jean-Louis Martineau * server-src/amrmtape.pl: Add the pid on the temporary filename. 2012-12-27 Jean-Louis Martineau * common-src/util.c (make_amanda_tmpdir): New function to create the AMANDA_TMPDIR directory. * common-src/util.h (make_amanda_tmpdir): Add prototype. * common-src/debug.c (debug_open): Call make_amanda_tmpdir(). 2012-12-24 Jean-Louis Martineau * server-src/driver.c (tape_action): Do not count free tape space if exceed max-dle-by-volume. 2012-12-19 Jean-Louis Martineau * common-src/conffile.c: Add a new RETRY-DUMP setting in a dumptype. * common-src/conffile.h: Define DUMPTYPE_RETRY_DUMP. * man/xml-source/amanda.conf.5.xml: Document it * perl/Amanda/Config.swg: Add DUMPTYPE_RETRY_DUMP. * server-src/diskfile.h (disk_t): Add retry_dump. * server-src/diskfile.c: Set disk->retry_dump. * server-src/driver.c: Use retry_dump * NEWS: Add it. 2012-12-19 Jean-Louis Martineau * NEWS: Add MATCH-AUTOLABEL labelstr. 2012-12-19 Jean-Louis Martineau * common-src/conffile.c: labelstr can be the MATCH-AUTOLABEL keyword. Add all hook to handle the new labelstr_t typedef. * common-src/conffile.h: Add new labelstr_t typedef. * perl/Amanda/Config.swg: Handle new labelstr_t typedef. * common-src/match.c (match_labelstr): New method. The labelstr template can have all autolabel variable. * common-src/match.h (match_labelstr): Add prototype. * perl/Amanda/Util.swg: Add match_labelstr and the required typemap. * installcheck/Amanda_Changer.pl: Remove test for emoved Changer method volume_is_labelable * man/xml-source/amanda.conf.5.xml: Explain new labelstr setting * perl/Amanda/Changer.pm: Remove volume_is_labelable method, handle new autolabel setting, use match_labelstr. * perl/Amanda/Changer/disk.pm: Add meta to the reservation. * perl/Amanda/ScanInventory.pm, perl/Amanda/Taper/Scan/lexical.pm, * perl/Amanda/Taper/Scan/oldest.pm, * perl/Amanda/Taper/Scan/traditional.pm, server-src/amlabel.pl, * server-src/amtape.pl, server-src/tapefile.c: Handle new autolabel setting, use match_labelstr. 2012-12-18 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Fix for older perl. 2012-12-18 Jean-Louis Martineau * NEWS, ReleaseNotes: Changes in 3.3.3 2012-12-18 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: Ignore duplicate DONE/FAILED messages. 2012-12-14 Jean-Louis Martineau * perl/Amanda/Changer.pm: Pass the %params to changer. * perl/Amanda/Changer/aggregate.pm: Pass the %params to child changer. * perl/Amanda/Changer/aggregate.pm (make_new_tape_label, make_new_meta_label): Call the child changer. 2012-12-14 Jean-Louis Martineau * server-src/amtape.pl: Add a verify subcommand. * man/xml-source/amtape.8.xml: Document the verify subcommand. * perl/Amanda/Changer.pm: Add default verify method. * perl/Amanda/Changer/robot.pm (verify): Verify the drive and device matches. * perl/Amanda/Device.pod: Typo. 2012-12-13 Dan Locks * packaging/common/post_inst_functions.sh: revoke rw permissions for group and other * packaging/common/post_rm_functions.sh: fix function name to match usage. * packaging/common/test_sh_libs.sh: update test. 2012-12-13 Jean-Louis Martineau * server-src/amrmtape.pl: Die if opening CURINFO for writing fail. 2012-12-12 Dan Locks * packaging/common/post_inst_functions.sh: don't use uuencode -m for solaris 8 compatibility. 2012-12-11 Jean-Louis Martineau * perl/Amanda/Changer/multi.pm, server-src/amcheck-device.pl: Fix perl warning. 2012-12-10 Jean-Louis Martineau * server-src/logfile.c (log_rename): Donot abort if the log do not exists. 2012-12-10 Jean-Louis Martineau * man/xml-source/amanda-devices.7.xml: Typo, s/SWITF/SWIFT/. 2012-12-10 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Log FAILED if nothing is written to tape. * server-src/amstatus.pl: Check ntape is defined. 2012-12-07 Dan Locks * packaging/common/post_inst_functions.sh: use amandausers's .gnupg/ instead of installing user's, and suppress warnings about permissions. 2012-12-07 Dan Locks * common_z/post_inst_functions.sh: head and tail invocation may only use "-#", not "-n #" for solaris 8 compatibility 2012-12-07 Jean-Louis Martineau * contrib/convert-zd-mtx-to-robot.sh: set tpchanger instead of tapedev. 2012-12-07 Jean-Louis Martineau * server-src/driver.c: Fix 32 bits overflow. 2012-12-06 Dan Locks * packaging/common/post_inst_functions.sh: use --passphrase-fd to support older versions of gpg. 2012-12-06 Jean-Louis Martineau * server-src/amstatus.pl: Parse new PORT-DUMP format. 2012-12-05 Jean-Louis Martineau * server-src/amstatus.pl: Fix exit status. * installcheck/amstatus.pl: Fix for previous patch. 2012-12-05 Jean-Louis Martineau * server-src/amstatus.pl: Show taping status after dump failure. 2012-12-05 Jean-Louis Martineau * installcheck/taper.pl: Add check for previous patch. 2012-12-05 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: Do it at the right place. 2012-12-05 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: Use header is_partial to get dump status for FILE-WRITE. 2012-12-04 Dan Locks * common_z/post_inst_functions.sh: in get_random_lines(): fix line padding, use dd instead of head -c * common_z/test_common.sh: fix quoting so blank test condition is still printed. 2012-12-04 Jean-Louis Martineau * client-src/client_util.c: print script output for backup with the "| " prefix. 2012-12-04 Jean-Louis Martineau * server-src/amvault.pl: Missing return statement. 2012-12-03 Dan Locks * packaging/common/post_inst_functions.sh: add get_random_lines() and use it to generate random passwords * packaging/common/test_sh_libs.sh: test and use get_random_lines(), use static log file name, enforce order on tests using (get_random_lines, create_gnupg, create_ampassphrase, and create_amkey. * packaging/deb/postinst.src, packaging/rpm/amanda.spec.src, packaging/sun-pkg/client/postinstall.src: use command -v instead of unportable which. 2012-12-03 Jean-Louis Martineau * server-src/logfile.c (get_logline): Parse each line separately. 2012-11-28 Jean-Louis Martineau * common-src/conffile.c: Add a SRC-IP in the interface section. * common-src/conffile.h: Define INTER_SRC_IP. * man/xml-source/amanda.conf.5.xml: Add src-ip. * common-src/sockaddr-util.h: Define SU_SET_INADDR. * common-src/stream.c (stream_client_internal, stream_client_privileged, stream_client_internal): Add a src_ip argument. * common-src/stream.h: Changed prototype, * client-src/sendbackup.c, common-src/bsd-security.c, common-src/bsdtcp-security.c, common-src/security-util.c, oldrecover-src/amrecover.c, oldrecover-src/extract_list.c: Use new stream_client. * server-src/driverio.c (dumper_cmd): Add src-ip in PORT-WRITE command. * server-src/dumper.c: Parse src-ip. * server-src/server_util.c (amhost_get_security_conf): Return src-ip. 2012-11-28 Jean-Louis Martineau * device-src/s3.c: Force new connection after RequestTimeout. 2012-11-24 Dan Locks * packaging/rpm/amanda.spec.src: fix comparison operator 2012-11-23 Jean-Louis Martineau * installcheck/Amanda_Config.pl, installcheck/Amanda_DB_Catalog.pl, installcheck/Installcheck/Config.pm, perl/Amanda/Report/human.pm, perl/Amanda/Taper/Worker.pm, server-src/amtape.pl: Fix perl warning. 2012-11-23 Dan Locks * packaging/rpm/amanda.spec.src: fix awk SuSE detection syntax 2012-11-23 Dan Locks * common_z/post_inst_functions.sh: add --no-use-agent option to gpg invocation to avoid problems with uninitialized gpg keyrings. 2012-11-23 Jean-Louis Martineau * device-src/null-device.c: Return DEVICE_STATUS_VOLUME_UNLABELED | DEVICE_STATUS_VOLUME_ERROR on open for reading. * installcheck/amdevcheck.pl: Fix. 2012-11-22 Jean-Louis Martineau * config/amanda/flags.m4: Swig is always compiled with -Wno-deprecated-declarations * common-src/amflock.h: s/file_lock_/file_lock/ * device-src/directtcp-connection.h: s/DirectTCPConnection_/DirectTCPConnection/ * ndmp-src/ndmpconnobj.h: s/NDMPConnection_/NDMPConnection/ * server-src/cmdline.h: s/dumpspec_s/dumpspec_t/ 2012-11-22 Jean-Louis Martineau * perl/Amanda/Cmdline.swg: Undo previous patch. 2012-11-22 Jean-Louis Martineau * config/amanda/libs.m4: remove deprecated warning for glib > 2.34.0 * perl/Amanda/Cmdline.swg: s/dumpspec_t/dumpspec_s/ 2012-11-22 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: return 'all slots are empty'. * perl/Amanda/Taper/Scan/traditional.pm: Call _user_msg on error. 2012-11-22 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Keep a different current_slot for each config. 2012-11-21 Jean-Louis Martineau * common-src/bsd-security.c (stream_read_callback): Do not cancel the event in case of successful read. * common-src/security-util.c: Typo. 2012-11-15 Jean-Louis Martineau * server-src/amfetchdump.pl: Add --init --no-restore arguments. * man/xml-source/amfetchdump.8.xml: Document them. 2012-11-15 Jean-Louis Martineau * perl/Amanda/Changer/aggregate.pm, perl/Amanda/Changer/disk.pm, perl/Amanda/Changer/multi.pm, perl/Amanda/Changer/robot.pm: Add LOCK-TIMEOUT property. * perl/Amanda/Changer.pm: Handle lock-timeout property. * man/xml-source/amanda-changers.7.xml: Document new LOCK-TIMEOUT properties. 2012-11-14 Jean-Louis Martineau * application-src/amsamba.pl: Password can be encoded. 2012-11-14 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Do not print failure for config setting. * perl/Amanda/Taper/Worker.pm: Send TAPE-CONFIG. * server-src/amflush.c: Do not add L_DISK if nothing to flush. * server-src/amstatus.pl: Parse TAPE-CONFIG and print appropriate message. * server-src/driver.c: Parse TAPE-CONFIG. * installcheck/taper.pl: Check new TAPE-CONFIG in protocol. * installcheck/catalogs/amflush.cat: Fix for new format. 2012-11-05 Jean-Louis Martineau * man/xml-source/amanda-devices.7.xml: Add 'OAUTH2' and 'CASTOR' for value of the storage-api property. 2012-10-25 Jean-Louis Martineau * common-src/event.c: Disable -Wmissing-field-initializers when using G_STATIC_MUTEX_INIT because of warning with glib-2.32. 2012-10-25 Jean-Louis Martineau * man/xml-source/amfetchdump.8.xml: Document --extract, --directory, --data-path and --application-property. 2012-10-25 Jean-Louis Martineau * common-src/event.c: Use a GStaticMutex. 2012-10-25 Jean-Louis Martineau * ndmp-src/ndmpconnobj.c: Use a GStaticMutex. 2012-10-24 Jean-Louis Martineau * installcheck/Amanda_Device.pl: Fix count. 2012-10-23 Jean-Louis Martineau * ndmp-src/ndmpconnobj.c: Use event_create and event_activate. Create static notify_data_t. 2012-10-23 Jean-Louis Martineau * common-src/event.c (event_create, event_activate): New function, it split event_register in two. * common-src/event.h (event_create, event_activate): New prototype. 2012-10-22 Jean-Louis Martineau * device-src/device.c (device_accept, device_connect, device_write_from_connection, device_read_to_connection): They take (int *, GMutex *, GCond *) new arguments to be able to interupt them. * device-src/device.h: Change prototype. * device-src/ndmp-device.c: Implement new functionnality. * device-src/xfer-dest-taper-directtcp.c, device-src/xfer-source-recovery.c: Use the new API. * installcheck/Amanda_Device.pl: Remove directtcp test. * ndmp-src/ndmpconnobj.c (ndmp_connection_wait_for_notify_with_cond): Allow to be cancelled. * ndmp-src/ndmpconnobj.h: Change prototype. * perl/Amanda/Device.swg: Remove accept, connect, write_from_connection and read-to_connection. 2012-10-22 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm (abort_setup): New method. * perl/Amanda/Taper/Scribe.pm (_dump_done): Return if $dump_cb is not set. * perl/Amanda/Taper/Worker.pm: Call abort_setup if setup failed. 2012-10-22 Jean-Louis Martineau * server-src/amfetchdump.pl: typo, remove '.' in argv. 2012-10-22 Jean-Louis Martineau * server-src/dumper.c (do_dump): Make the header file only HEADER_DONE. 2012-10-22 Jean-Louis Martineau * perl/Amanda/Taper/Controller.pm: Reverse taper/driver in log. 2012-10-22 Jean-Louis Martineau * ndmp-src/ndmjob_args.c (handle_long_option): Close the fd. 2012-10-22 Jean-Louis Martineau * common-src/event.c: Make the code thread safe. 2012-10-19 Jean-Louis Martineau * common-src/match.c: Handle '=' as first characters of expression. * man/xml-source/amanda-match.7.xml: Document new '=' as first character of expression. * man/xml-source/amadmin.8.xml, man/xml-source/amcheck.8.xml, * man/xml-source/amdump.8.xml, man/xml-source/amfetchdump.8.xml, * man/xml-source/amflush.8.xml, man/xml-source/amrestore.8.xml, * man/xml-source/amvault.8.xml: Document new '--exact-match' argument. * perl/Amanda/Cmdline.swg: Add CMDLINE_EXACT_MATCH * server-src/diskfile.c (match_disklist, match_dumpfile): New exact_match argument. * server-src/diskfile.h (match_disklist, match_dumpfile): Change prototype. * server-src/cmdline.c (cmdline_parse_dumpspecs): CMDLINE_EXACT_MATCH. * server-src/cmdline.h: New CMDLINE_EXACT_MATCH. * server-src/amadmin.c, server-src/amcheck.c, server-src/amdump.pl, server-src/amfetchdump.pl, server-src/amflush.c, server-src/amrestore.pl, server-src/amvault.pl, server-src/planner.c: Add --exact-match argument. * installcheck/Amanda_Cmdline.pl: Check '='. * installcheck/amadmin.pl: Check --exact-match and '='. 2012-10-19 Jean-Louis Martineau * server-src/amfetchdump.pl: Fix for compressed dump. 2012-10-19 Jean-Louis Martineau * server-src/amfetchdump.pl: Add [--extract --directory directory [--data-path (amanda|directtcp)] [--application-property='NAME=VALUE']*] * man/xml-source/amfetchdump.8.xml: Document them. * perl/Amanda/Extract.pm: New utilities torun application from perl. * perl/Makefile.am: Add Amanda/Extract.pm * perl/Amanda/Recovery/Clerk.pm: Small fix. 2012-10-18 Jean-Louis Martineau * All files: Change Zmanda licensing to GPLv2+ and LGPLv2+, Add Zmanda copyright to files modified by Zmanda. 2012-10-15 Jean-Louis Martineau * common-src/conffile.c: New REPORT-USE-MEDIA and REPORT-NEXT-MEDIA. * common-src/conffile.h: And CNF_REPORT_USE_MEDIA and CNF_REPORT_NEXT_MEDIA * man/xml-source/amanda.conf.5.xml: Document REPORT-USE-MEDIA and REPORT-NEXT-MEDIA. * perl/Amanda/Config.swg: Add CNF_REPORT_USE_MEDIA and CNF_REPORT_NEXT_MEDIA. * perl/Amanda/Report/human.pm: Use them. 2012-10-15 Jean-Louis Martineau * device-src/device.c (device_init_seek_file): New method to do setup before a seek_file. * device-src/device.h (init_seek_file): Add method. * perl/Amanda/Device.pod (init_seek_file): Document it. * perl/Amanda/Device.swg (init_seek_file): New method. 2012-10-15 Jean-Louis Martineau * device-src/device.c: Load a device driver at run time. 2012-10-15 Jean-Louis Martineau * ndmp-src/ndma_comm_session.c, perl/Amanda/Util.swg: Use inet_ntop instead of inet_ntoa. 2012-10-15 Jean-Louis Martineau * common-src/amanda.h: Remove MAX_DUMPERS. * common-src/conffile.c (validate_inparallel): Remov function. * example/amanda.conf.in: Remove comment for MAX_DUMPERS. * server-src/driverio.c: Allocation dynamic table for dmptable and chktable. * server-src/driverio.h (init_driverio): New prototype. * server-src/driver.c: Use new init_driverio. 2012-10-12 Jean-Louis Martineau * server-src/amstatus.pl (showtime): Use calandar days. 2012-10-12 Jean-Louis Martineau * device-src/s3.c: Always set CURLOPT_CAINFO. 2012-10-12 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: Add data_path to %splitting_args. * perl/Amanda/Taper/Scribe.pm: Correctly set part_* for DIRECTTCP data_path. 2012-10-11 Jean-Louis Martineau * amandad-src/amandad.c: Add a timeout. * common-src/event.c: List all event in debug mode. * common-src/security-util.c: Call the accept_fn on connection close. 2012-10-11 Jean-Louis Martineau * common-src/amcryptsimple.pl: Add '-z 0' to gpg argument when encrypting. 2012-10-11 Jean-Louis Martineau * common-src/amservice.c, device-src/ndmp-device.c, server-src/dumper.c, xfer-src/xfer-test.c: Fix bug found by Coverity. 2012-10-10 Jean-Louis Martineau * */*.c: Fix bug found by Coverity. 2012-10-10 Jean-Louis Martineau * */*.c: Fix bug found by Coverity. 2012-10-09 Jean-Louis Martineau * oldrecover-src/amrecover.c: Solaris do not have sa_restorer. 2012-10-09 Jean-Louis Martineau * amandad-src/amandad.c, amar-src/amarchiver.c, client-src/selfcheck.c, common-src/bsd-security.c, common-src/util.c, device-src/device.c, device-src/ndmp-device.c, device-src/s3.c, device-src/tape-device.c, oldrecover-src/amrecover.c, recover-src/extract_list.c, recover-src/set_commands.c, server-src/diskfile.c, server-src/driver.c, server-src/planner.c: Fix bug found by Coverity. 2012-10-09 Jean-Louis Martineau * example/Makefile.am: Build amanda-CAStor.conf from amanda-CAStor.conf.in * example/template.d/amanda-CAStor.conf: Remove * example/template.d/amanda-CAStor.conf.in: New file. 2012-10-05 Jean-Louis Martineau * common-src/security-util.c: Change the security_stream_read callback to not release the event if the read succeed. * amandad-src/amandad.c, common-src/amservice.c, recover-src/extract_list.c, server-src/dumper.c: Do not restart security_stream_read if the read succeeded. * server-src/dumper.c: Handle timeout without starting too much event. 2012-10-05 Jean-Louis Martineau * device-src/tape-device.c: Solaris do not have GMT_WR_PROT. 2012-10-05 Jean-Louis Martineau * device-src/device.c (device_check_writable): New method. * device-src/device.h (device_check_writable): Prototype. * device-src/tape-device.c (tape_device_check_writable): Implement new method. * perl/Amanda/Device.swg (check_writable): New method. * server-src/amcheck-device.pl: Call check_writable. * server-src/amtape.pl: Call check_writable. 2012-10-05 Jean-Louis Martineau * server-src/driver.c (tape_action): Fix handling of taper-parallel-write. * server-src/driver.c: Go in degraded mode only after all taper failed. 2012-10-05 Jean-Louis Martineau * server-src/amstatus.pl: Fix for TAKE-SCRIBE-FROM command, handle multiple taper status files. 2012-10-05 Jean-Louis Martineau * server-src/planner.c: Missing space. 2012-10-02 Jean-Louis Martineau * device-src/s3.c, device-src/s3-device.c: Typo. 2012-10-02 Jean-Louis Martineau * device-src/s3-device.c: Handle multi-part write * device-src/s3.c: Handle multi-part write * device-src/s3.h: Handle multi-part write * man/xml-source/amanda-devices.7.xml: Document new S3_MULTI_PART_UPLOAD property. * perl/Amanda/Recovery/Clerk.pm: do not call seek_file two times. 2012-10-02 Jean-Louis Martineau * server-src/amstatus.pl: Fix for (eof) from dumper/chunker or taper. 2012-09-27 Dan Locks * Bug reported by Jon LaBadie for fedora 17: spurious requirement of libtermcap.so.2. * packaging/rpm/amanda.spec.src: massage fedora detection to remove spurious requirement 2012-09-27 Jean-Louis Martineau * device-src/s3-device.c: Fix reps and reps_bucket name. 2012-09-26 Jean-Louis Martineau * common-src/conffile.c (get_multiplier): Fix for for CONF_END. 2012-09-25 Jean-Louis Martineau * device-src/xfer-dest-taper-splitter.c: Do not increase partnum if the size is 0. * installcheck/Amanda_Xfer.pl: Fix partnum check. * perl/Amanda/Taper/Scribe.pm: Improve debugging. 2012-09-25 Jean-Louis Martineau * common-src/amflock.c, common-src/util.c, perl/Amanda/Header.swg, perl/Amanda/Taper/Worker.pm, perl/Amanda/Util.swg, server-src/xfer-dest-holding.c: Fix small memory leak. 2012-09-25 Jean-Louis Martineau * perl/Amanda/Taper/Scan/lexical.pm, perl/Amanda/Taper/Scan/oldest.pm: Fix perl warning. 2012-09-24 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Fix for header not read. 2012-09-24 Jean-Louis Martineau * man/xml-source/amanda.conf.5.xml (part-size): Improve documentation. 2012-09-24 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm (device_started): Can get non-numeric result. 2012-09-21 Jean-Louis Martineau * man/xml-source/tapelist.5.xml: Add BLOCKSIZE. 2012-09-21 Jean-Louis Martineau * perl/Amanda/Tapelist.swg: die() if tapelist is not valid. * server-src/tapefile.c: exit if tapelist is not valid. * installcheck/Amanda_Tapelist.pl: Add more check. * perl/Amanda/Changer.pm: Add $err->device * perl/Amanda/Changer/robot.pm: Return error if barcode do not match with tapelist. * server-src/amtape.pl (inventory): Print if barcode do not match. 2012-09-21 Jean-Louis Martineau * installcheck/Makefile.am (catalogs): Add catalogs/taper-parallel-write.cat. 2012-09-21 Jean-Louis Martineau * device-src/s3.c: Fix date_sync_regex. 2012-09-20 Jean-Louis Martineau * server-src/amstatus.pl: Fix for taper-parallel-write > 1. * installcheck/amstatus.pl: Checkit. * installcheck/catalogs/taper-parallel-write.cat: New catalog. 2012-09-19 Jean-Louis Martineau * device-src/s3.c: Castor require libcurl 7.19.1. 2012-09-18 Jean-Louis Martineau * device-src/s3-device.c, device-src/s3.c: Castor require libcurl 7.19.1. 2012-09-17 Jean-Louis Martineau * device-src/s3-device.c, device-src/s3.c device-src/s3.h: Add CASTOR S3_API. * example/template.d/amanda-CAStor.conf: Example config for castor. 2012-09-17 Jean-Louis Martineau * application-src/amgtar.c: Set gnutar_listdir after the config for the backup set is read. 2012-09-17 Jean-Louis Martineau * common-src/amxml.c (amstart_element): Set data_user->dle->property. 2012-09-05 Jean-Louis Martineau * server-src/amcheckdump.pl: s/correclty/correctly/g 2012-08-24 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Correctly set f_type and device_error in state. * perl/Amanda/ScanInventory.pm (volume_is_labelable): Set labelstr for does_not_match_labelstr. * perl/Amanda/Taper/Scan/lexical.pm, perl/Amanda/Taper/Scan/oldest.pm (analyze): Check label match labelstr. * server-src/amcheck-device.pl (_user_msg_fn): print message when res is not set. * server-src/amtape.pl: Fix for device returning empty error. * installcheck/Amanda_Changer_ndmp.pl, installcheck/Amanda_Changer_robot.pl: Fix for f_type set. 2012-08-24 Jean-Louis Martineau * installcheck/gnutar.pl: fc17 gnutar is like fc15. 2012-08-24 Jean-Louis Martineau * installcheck/Amanda_Device.pl: Print error if nc, nc6 or netcat is not installed. 2012-08-23 Jean-Louis Martineau * perl/Amanda/Changer/disk.pm: Use the changerfile for the statefile. 2012-08-22 Jean-Louis Martineau * server-src/amdump.pl: Create amdump., amdump and amdump.1 are maintained as symlink. 2012-08-21 Jean-Louis Martineau * server-src/planner.c (handle_result): Correctly log some error. 2012-07-24 Jean-Louis Martineau * device-src/s3-device.c: New REUSE-CONNECTION property. * device-src/s3.c: Do not reuse connection if REUSE-CONNECTION is FALSE. * device-src/s3.h (s3_open): New reuse_connection argument. * man/xml-source/amanda-devices.7.xml: Document REUSE-CONNECTION property. * ReleaseNotes, NEWS: Add REUSE-CONNECTION. 2012-07-24 Jean-Louis Martineau * device-src/s3-device.c: Fix a big memory leak. 2012-07-23 Jean-Louis Martineau * man/xml-source/amanda.conf.5.xml: Typo. 2012-07-23 Jean-Louis Martineau * ReleaseNotes, NEWS: Add new features in 3.3.2. 2012-07-20 Dan Locks * perl/Amanda/Feature.pod, perl/Amanda/MainLoop.swg, perl/Amanda/Script.pm, perl/Amanda/NDMP.pod, perl/Amanda/Logfile.swg, perl/Amanda/Curinfo.pm, perl/Amanda/Changer.pm, perl/Amanda/Tests.pod, perl/Amanda/Application.pod, perl/Amanda/Debug.swg, perl/Amanda/Disklist.swg, perl/Amanda/Report.pm, perl/Amanda/Config.pod, perl/Amanda/Header.swg, perl/Amanda/Feature.swg, perl/Amanda/BigIntCompat.pm, perl/Amanda/NDMP.swg, perl/Amanda/Recovery/Scan.pm, perl/Amanda/Recovery/Planner.pm, perl/Amanda/Recovery/Clerk.pm, perl/Amanda/Util.pod, perl/Amanda/Tests.swg, perl/Amanda/Archive.pod, perl/Amanda/Application.swg, perl/Amanda/Config.swg, perl/Amanda/Curinfo/Info.pm, perl/Amanda/Tapelist.pod, perl/Amanda/Changer/disk.pm, perl/Amanda/Changer/multi.pm, perl/Amanda/Changer/null.pm, perl/Amanda/Changer/ndmp.pm, perl/Amanda/Changer/rait.pm, perl/Amanda/Changer/single.pm, perl/Amanda/Changer/robot.pm, perl/Amanda/Changer/aggregate.pm, perl/Amanda/Report/human.pm, perl/Amanda/Report/postscript.pm, perl/Amanda/Report/xml.pm, perl/Amanda/IPC/Binary.swg, perl/Amanda/IPC/LineProtocol.pm, perl/Amanda/IPC/Binary.pod, perl/Amanda/XferServer.pod, perl/Amanda/Util.swg, perl/Amanda/ScanInventory.pm, perl/Amanda/Script_App.pm, perl/Amanda/Device.pod, perl/Amanda/Archive.swg, perl/Amanda/Tapelist.swg, perl/Amanda/Xfer.pod, perl/Amanda/DB/Catalog.pm, perl/Amanda/Process.pm, perl/Amanda/XferServer.swg, perl/Amanda/Constants.pm.in, perl/Amanda/Cmdline.pod, perl/Amanda/Device.swg, perl/Amanda/Interactivity/stdin.pm, perl/Amanda/Interactivity/email.pm, perl/Amanda/Interactivity/tty_email.pm, perl/Amanda/Interactivity/tty.pm, perl/Amanda/MainLoop.pod, perl/Amanda/Holding.pm, perl/Amanda/Paths.pm.in, perl/Amanda/Logfile.pod, perl/Amanda/Application/Zfs.pm, perl/Amanda/Xfer.swg, perl/Amanda/Debug.pod, perl/Amanda/Disklist.pod, perl/Amanda/Interactivity.pm, perl/Amanda/Header.pod, perl/Amanda/Cmdline.swg, perl/Amanda/ClientService.pm, perl/Amanda/Taper/Protocol.pm, perl/Amanda/Taper/Controller.pm, perl/Amanda/Taper/Scan.pm, perl/Amanda/Taper/Scribe.pm, perl/Amanda/Taper/Scan/oldest.pm, perl/Amanda/Taper/Scan/traditional.pm, perl/Amanda/Taper/Scan/lexical.pm, perl/Amanda/Taper/Worker.pm, perl/amglue/objwrap.c, perl/amglue/bigint.c, perl/amglue/amglue.h, perl/amglue/dumpspecs.swg, perl/amglue/exports.swg, perl/amglue/amglue.swg, perl/amglue/constants.swg, perl/amglue/glib.swg, perl/amglue/filehandles.swg, perl/amglue/integers.swg, perl/amglue/xferwrap.c, perl/amglue/directtcp.swg, perl/amglue/source.c, perl/amglue/ghashtable.c, perl/make_html.pl, installcheck/amoverview.pl, installcheck/Amanda_Holding.pl, installcheck/Amanda_Disklist.pl, installcheck/Amanda_Taper_Scan_oldest.pl, installcheck/amlabel.pl, installcheck/Amanda_NDMP.pl, installcheck/amflush.pl, installcheck/Amanda_ClientService.pl, installcheck/run-ndmp.pl, installcheck/amstatus.pl, installcheck/Amanda_Taper_Scribe.pl, installcheck/Amanda_Recovery_Scan.pl, installcheck/Amanda_Curinfo.pl, installcheck/Amanda_Changer.pl, installcheck/Amanda_Changer_single.pl, installcheck/Amanda_Taper_Scan_traditional.pl, installcheck/bigint.pl, installcheck/Amanda_Cmdline.pl, installcheck/Amanda_Changer_robot.pl, installcheck/amservice.pl, installcheck/Amanda_Recovery_Clerk.pl, installcheck/Amanda_Taper_Scan_lexical.pl, installcheck/amarchiver.pl, installcheck/amrecover.pl, installcheck/Amanda_Changer_ndmp.pl, installcheck/Installcheck/ClientService.pm, installcheck/Installcheck/Application.pm, installcheck/Installcheck/Run.pm, installcheck/Installcheck/Config.pm, installcheck/Installcheck/Changer.pm, installcheck/Installcheck/Dumpcache.pm, installcheck/Installcheck/Mock.pm, installcheck/Installcheck/Catalogs.pm, installcheck/example.pl, installcheck/gnutar.pl, installcheck/amrestore.pl, installcheck/amgetconf.pl, installcheck/pp-scripts.pl, installcheck/Amanda_IPC_LineProtocol.pl, installcheck/amtape.pl, installcheck/amraw.pl, installcheck/amserverconfig.pl, installcheck/amgtar.pl, installcheck/taper.pl, installcheck/Amanda_Util.pl, installcheck/Amanda_Recovery_Planner.pl, installcheck/mock/mail.pl, installcheck/mock/mtx.pl, installcheck/mock/lpr.pl, installcheck/Amanda_IPC_Binary.pl, installcheck/=setupcache.pl, installcheck/amcheckdump.pl, installcheck/amdump_client.pl, installcheck/Amanda_Tapelist.pl, installcheck/Amanda_Debug.pl, installcheck/Amanda_Changer_rait.pl, installcheck/amcheck-device.pl, installcheck/Amanda_Header.pl, installcheck/amdevcheck.pl, installcheck/Amanda_Device.pl, installcheck/Amanda_Changer_null.pl, installcheck/ampgsql.pl, installcheck/Installcheck.pm, installcheck/amadmin.pl, installcheck/amvault.pl, installcheck/Amanda_Report.pl, installcheck/amidxtaped.pl, installcheck/mock_mtx.pl, installcheck/Amanda_Changer_disk.pl, installcheck/Amanda_Logfile.pl, installcheck/Amanda_Changer_multi.pl, installcheck/amdump.pl, installcheck/catalogs/bigdb.cat, installcheck/amreport.pl, installcheck/amcheck.pl, installcheck/Amanda_Feature.pl, installcheck/amfetchdump.pl, installcheck/chunker.pl, installcheck/Amanda_Xfer.pl, installcheck/amrmtape.pl, installcheck/Amanda_Config.pl, installcheck/amtapetype.pl, installcheck/noop.pl, installcheck/Amanda_Config_FoldingHash.pl, installcheck/Amanda_Process.pl, installcheck/Amanda_MainLoop.pl, installcheck/Amanda_DB_Catalog.pl, installcheck/Amanda_Archive.pl, amar-src/amar.c, amar-src/amarchiver.c, amar-src/amar.h, config/automake/scripts.am, config/automake/vars.am, config/macro-archive/docbook-xslt.m4, config/macro-archive/docbook-dtd.m4, config/macro-archive/docbook-xslt-min.m4, config/macro-archive/xsltproc.m4, common-src/directtcp.h, common-src/amgetconf.pl, common-src/sockaddr-util.c, common-src/sockaddr-util.h, common-src/glib-util.c, common-src/glib-util.h, common-src/ipc-binary.c, common-src/event-test.c, common-src/ipc-binary.h, common-src/match-test.c, common-src/amsemaphore-test.c, common-src/simpleprng.c, common-src/simpleprng.h, common-src/amsemaphore.c, common-src/quoting-test.c, common-src/fileheader-test.c, common-src/amsemaphore.h, common-src/amcryptsimple.pl, common-src/amaespipe.sh, common-src/testutils.c, common-src/match.h, common-src/testutils.h, common-src/amgpgcrypt.pl, application-src/script-email.pl, application-src/amsuntar.pl, application-src/amzfs-snapshot.pl, application-src/amlog-script.pl, application-src/amsamba.pl, application-src/ampgsql.pl, application-src/amraw.pl, application-src/amzfs-sendrecv.pl, contrib/amreport.rnc, client-src/amdump_client.pl, ndmp-src/ndmpconnobj.c, ndmp-src/ndmpconnobj.h, device-src/xfer-device.h, device-src/s3-device.c, device-src/property.c, device-src/s3.c, device-src/property.h, device-src/xfer-dest-taper-directtcp.c, device-src/s3.h, device-src/rait-device.c, device-src/device.c, device-src/amtapetype.pl, device-src/device.h, device-src/null-device.c, device-src/xfer-dest-taper.c, device-src/directtcp-connection.c, device-src/xfer-dest-taper-splitter.c, device-src/xfer-dest-taper.h, device-src/amdevcheck.pl, device-src/directtcp-connection.h, device-src/tape-device.c, device-src/ndmp-device.c, device-src/vfs-device.c, device-src/xfer-dest-taper-cacher.c, device-src/xfer-dest-device.c, device-src/xfer-source-recovery.c, device-src/xfer-source-device.c, device-src/s3-util.c, device-src/vfs-device.h, device-src/s3-util.h, packaging/rpm/amanda.spec.src, xfer-src/xfer-element.h, xfer-src/filter-process.c, xfer-src/xfer.c, xfer-src/dest-directtcp-connect.c, xfer-src/dest-buffer.c, xfer-src/source-directtcp-connect.c, xfer-src/dest-null.c, xfer-src/xfer.h, xfer-src/dest-directtcp-listen.c, xfer-src/source-pattern.c, xfer-src/source-directtcp-listen.c, xfer-src/source-random.c, xfer-src/xmsg.c, xfer-src/xfer-test.c, xfer-src/xmsg.h, xfer-src/element-glue.c, xfer-src/dest-fd.c, xfer-src/amxfer.h, xfer-src/source-fd.c, xfer-src/element-glue.h, xfer-src/filter-xor.c, xfer-src/xfer-element.c, server-src/amcheckdump.pl, server-src/amoverview.pl, server-src/amdumpd.pl, server-src/amcheck-device.pl, server-src/amlogroll.pl, server-src/xfer-source-holding.c, server-src/amlabel.pl, server-src/amvault.pl, server-src/amcleanupdisk.pl, server-src/amidxtaped.pl, server-src/cmdline.c, server-src/amdump.pl, server-src/xfer-server.h, server-src/cmdline.h, server-src/amreport.pl, server-src/amfetchdump.pl, server-src/amrestore.pl, server-src/amcleanup.pl, server-src/amaddclient.pl, server-src/amrmtape.pl, server-src/amtape.pl, server-src/amserverconfig.pl, server-src/taper.pl: update copyright dates 2012-07-20 Jean-Louis Martineau * common-src/timestamp.c (get_time_from_timestamp): Initialize to 0. 2012-07-19 Jean-Louis Martineau Patch by crocket. * perl/Makefile.am: Fix cygwin build. 2012-07-18 Jean-Louis Martineau * device-src/s3.c: Parse application/json reply from cloudena. 2012-07-18 Jean-Louis Martineau * installcheck/Amanda_IPC_LineProtocol.pl: Add synchonization to fix race. 2012-07-17 Dan Locks * packaging/sun-pkg/buildpkg: * packaging/sun-pkg/client/postremove.src, packaging/sun-pkg/server/postremove.src: remove redundant usage of basedir. * packaging/sun-pkg/client/postinstall.src, packaging/sun-pkg/server/postinstall.src: same as above, plus fix case statement. * packaging/sun-pkg/server/preinstall.src, packaging/sun-pkg/client/preinstall.src: remove redundant basedir, use new check_user_* functions. * packaging/rpm/amanda.spec.src: refactor to use common functions * packaging/rpm/buildpkg: check for ./configure, and exit if substitute.pl fails. * packaging/deb/rules: use FULL_VERSION file to fill AMVER var, use * concatenation trick for postinst, rm trailing whitespace * packaging/deb/buildpkg: process postinst.src postrm.src preinst.src with substitute.pl * packaging/deb/postinst.src: refactor to use common functions. * packaging/deb/amanda-backup-server.postrm, packaging/deb/amanda-backup-client.postrm, packaging/deb/amanda-backup-client.postinst, packaging/deb/amanda-backup-server.postinst: delete everything, add variables pkg_type and other_pkg_type. * packaging/deb/preinst: moved to... * packaging/deb/preinst.src: here. refactor using common functions * packaging/deb/postrm: moved to... * packaging/deb/postrm.src: here. refactor using common functions. * packaging/common/common_functions.sh: remove trailing whitespace, remove redundant usage of ${BASEDIR} in solaris functions, avoid potentially non-portable test invocations. * packaging/common/test_sh_libs.sh: fix some log messages, redirect some unused output, split check_user_* tests into shorter testsr, add tests for supplemental groups, fix running single test. * packaging/common/mock_utils.sh: change id to error if any flags are given, add mock for groups. * packaging/common/post_inst_functions.sh: remove redundant leading / * packaging/common/post_rm_functions.sh: rm trailing whitespace. * packaging/common/pre_inst_functions.sh: use variable for user shell, clarify log messages regarding user accounts, split check_user into separate functions, mostly to ease testing, add check_user_supplemental_group. 2012-07-17 Jean-Louis Martineau * server-src/amcheckdump.pl: Wait for all filters to terminate before going to next image. Do not use '--ignore-zeros' for SMBCLIENT backup. Pass the dump size to $xfer->start(). * server-src/amfetchdump.pl: Wait for all filters to terminate before going to next image. 2012-07-12 Jean-Louis Martineau * device-src/s3-device.c: Do not free ca_info if use_ssl is not set. * device-src/s3.c:: Set CURLOPT_CAINFO even if use_ssl is not set. 2012-07-10 Jean-Louis Martineau * server-src/amstatus.pl: Print 'dump done' if the dump succeeded. 2012-07-09 Jean-Louis Martineau * common-src/conffile.c (val_t_display_strs): Add a print_unit argument. * common-src/conffile.h (val_t_display_strs): Change prototype. * perl/Amanda/Config.swg (getconf_byname_strs): Use val_t_display_strs with a FALSE print_unit. 2012-07-09 Jean-Louis Martineau * common-src/conffile.c: Correctly parse byte suffix. * common-src/conffile.h: Add confunit_t. * installcheck/amgetconf.pl: Fix for byte parsing. 2012-07-09 Jean-Louis Martineau * server-src/driver.c (tape_action): Fix for flush_*. Change debug level. 2012-06-29 Jean-Louis Martineau * perl/Amanda/JSON.pm: Fix comment. 2012-06-29 Jean-Louis Martineau * perl/Amanda/Taper/Scan/traditional.pm, perl/Amanda/Taper/Scribe.pm: Correctly report error. 2012-06-29 Jean-Louis Martineau * configure.in: Small fix. * perl/Amanda/BigIntCompat.pm: Add TO_JSON to return anumber. * perl/Amanda/JSON.pm: documention * perl/Amanda/JSON/Changer.pm, perl/Amanda/JSON/Config.pm, perl/Amanda/JSON/DB/Catalog.pm, perl/Amanda/JSON/Tapelist.pm: amanda SON perl modules. * perl/Amanda/JSON/RPC/Dispatcher.pm perl/Amanda/JSON/RPC/Dispatcher/App.pm perl/Amanda/JSON/RPC/Dispatcher/Procedure.pm: perl modules for JSON. * perl/Amanda/Tapelist.swg: Set $datestamp to 0 if !defined. * perl/Makefile.am: Compile new modules. * server-src/Makefile.am: Compile amanda.psgi. * server-src/amanda.psgi.pl: The amanda psgi. 2012-06-29 Jean-Louis Martineau * common-src/glib-util.c: Remove debug statements. 2012-06-28 Jean-Louis Martineau * common-src/glib-util.c: Do not compile ssl initialization code if libcurl is not linked. 2012-06-28 Jean-Louis Martineau * device-src/s3.c: Fix compiler warning. 2012-06-28 Jean-Louis Martineau * common-src/glib-util.c: Fix for openssl and preprocessor. 2012-06-28 Jean-Louis Martineau * common-src/glib-util.c: Add initialization code for openssl and gnutls. * config/amanda/libs.m4: Detect ssl library used by libcurl. 2012-06-28 Jean-Louis Martineau * device-src/s3.c: Renew swift v2 x-auth-token before it expires, use glib if >= 2.26. 2012-06-27 Dan Locks * configure.in: update ac_prereq to 2.64 2012-06-27 Jean-Louis Martineau * device-src/s3.c: remove code to Renew swift v2 x-auth-token, it require glib 2.26. 2012-06-27 Jean-Louis Martineau * device-src/s3-device.c: New CREATE-BUCKET property. * device-src/s3.c: Improving error message parsing. * man/xml-source/amanda-devices.7.xml: document new CREATE-BUCKET property. 2012-06-26 Jean-Louis Martineau * device-src/s3.c: Remove bogus code. 2012-06-26 Jean-Louis Martineau * device-src/s3.c: Renew swift v2 x-auth-token before it expires. 2012-06-26 Jean-Louis Martineau * common-src/conffile.c: Fix crash when parsing an invalid config file. 2012-06-26 Jean-Louis Martineau * device-src/s3.c: Cloudena do not have xml_version of html tag in their reply. 2012-06-26 Jean-Louis Martineau * device-src/s3.c: Renew OAUTH2 token. 2012-06-21 Jean-Louis Martineau * perl/Amanda/Report/human.pm: Change the default columspec to: HostName=0:-12:12,Disk=1:-11:11,Level=1:-1:1,OrigKB=1:-7:0,OutKB=1:-7:0,Compress=1:-6:1,DumpTime=1:-7:7,Dumprate=1:-6:1,TapeTime=1:-6:6,TapeRate=1:-6:1 * man/xml-source/amanda.conf.5.xml: Document new default columnspec. * installcheck/catalogs/bigestimate.cat, installcheck/catalogs/doublefailure.cat, installcheck/catalogs/filesystemstaped.cat, installcheck/catalogs/longstrange.cat, installcheck/catalogs/multi-taper.cat, installcheck/catalogs/normal.cat, installcheck/catalogs/plannerfail.cat, installcheck/catalogs/resultsmissing.cat, installcheck/catalogs/retried-nofinish.cat, installcheck/catalogs/retried-strange.cat, installcheck/catalogs/retried.cat, installcheck/catalogs/shortstrange.cat, installcheck/catalogs/skipped.cat, installcheck/catalogs/spanned.cat, installcheck/catalogs/strontium.cat: fix for new default columnspec. 2012-06-21 Jean-Louis Martineau * device-src/s3.c: OAUTH2 use 'max-keys'. 2012-06-20 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: Fix update of the status file. 2012-06-20 Jean-Louis Martineau * common-src/security-util.c: Fix memory corruption. 2012-06-20 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Cancel call dump_cb. * perl/Amanda/Taper/Worker.pm: Cancel the header xfer. 2012-06-20 Jean-Louis Martineau * server-src/planner.c: Fix 32 bits overflow. 2012-06-19 Jean-Louis Martineau * amandad-src/amandad.c, common-src/amxml.c, common-src/security-util.c, common-src/util.c, server-src/tapefile.c: Fix small memory leak. * perl/Amanda/Config.swg: Mark amandaify_property_name as %newobject * perl/Amanda/Header.swg: Mark C_from_string as %newobject * perl/Amanda/Tapelist.swg: Mark list_new_tapes as %newobject * perl/Amanda/Util.swg: Mark sanitise_filename, quote_string, unquote_string and split_quoted_strings as %newobject * xfer-src/xfer-element.c: lock elt->xfer->status_mutex before looking at elt->xfer->status. * device-src/device.h (Device): Add a GMutex device_mutex to protect method with concurent access. * device-src/device.c, device-src/ndmp-device.c, device-src/null-device.c, device-src/rait-device.c, device-src/s3-device.c, device-src/tape-device.c, device-src/vfs-device.c: Use the mutex to protext some Device field. 2012-06-18 Jean-Louis Martineau * server-src/planner.c: Coorectly delay full dump if it doesn't fit in the schedule. 2012-06-14 Dan Locks * packaging/common/mock_utils.sh: update id mock to handle -Gn flags, add groupadd mock, add usermod mock, correct silent errors in inetd and install mocks * packaging/common/pre_inst_functions.sh: add_group now attempts to create a potentially missing suppmemental group, add_group does not use -A or -a, instead generates a list of current groups from id -Gn, update error_group_member to use the name of the group passed to add_group. * packaging/common/test_sh_libs.sh: add 2 add_group unit tests, update check_user_group test. 2012-06-13 Jean-Louis Martineau * application-src/amgtar.c: Check gtar support --no-check-device. 2012-06-08 Jean-Louis Martineau * perl/Amanda/Changer/aggregate.pm, perl/Amanda/Changer/disk.pm, perl/Amanda/Changer/ndmp.pm perl/Amanda/Changer/rait.pm, perl/Amanda/Changer/robot.pm, perl/Amanda/Changer/single.pm, perl/Amanda/Chunker/Controller.pm, perl/Amanda/Chunker/Scribe.pm, perl/Amanda/Recovery/Clerk.pm, perl/Amanda/Recovery/Planner.pm, perl/Amanda/Recovery/Scan.pm, perl/Amanda/Report/human.pm, perl/Amanda/Taper/Scribe.pm, perl/Amanda/Taper/Worker.pm: Change many die by confess. 2012-06-07 Jean-Louis Martineau * device-src/s3.c: Parse message attribute in cloudena error reply. Parse details in HP error reply. 2012-06-04 Jean-Louis Martineau * server-src/amrestore.pl: Typo. 2012-06-01 Jean-Louis Martineau * server-src/amrestore.pl: Use the blocksize argument. 2012-06-01 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Print to debug if bc2lb change the label for a barcode. Print to debug the mtx output. * perl/Amanda/Taper/Scribe.pm: Do not use a tape if the barcode from tapelist differ from the changer. 2012-05-28 Jean-Louis Martineau * application-src/amzfs-sendrecv.pl: fix print_to_server argument. 2012-05-24 Jean-Louis Martineau * application-src/amsamba.pl: Do not send a chomped line to index. 2012-05-24 Jean-Louis Martineau * perl/Amanda/Application.swg: Use IO::Handle to open mesgout. 2012-05-23 Jean-Louis Martineau * device-src/s3-device.c: Add project_id. * device-src/s3.c: Add project_id. Add x-goog-project-id and x-goo-api-version to headers. * device-src/s3.h (s3_make_bucket, s3_is_bucket_exists) Add project_id argument. * man/xml-source/amanda-devices.7.xml: Document project-id property. 2012-05-23 Jean-Louis Martineau * device-src/s3-device.c: Call s3_open2 after setting properties. * device-src/s3.c (s3_open2): New function. * device-src/s3.h (s3_open2): Prototype. 2012-05-17 Dan Locks * packaging/sun-pkg/buildpkg: add missing --with-libcurl= for server 2012-05-17 Jean-Louis Martineau * common-src/event.c: Add missing "\n" in debugging. * perl/Amanda/Application.swg: Make mesgout autoflush. 2012-05-15 Jean-Louis Martineau * installcheck/Amanda_Device.pl: Correctly count NDMP test. 2012-05-15 Jean-Louis Martineau * server-src/amvault.pl: Abort if log file already exists. 2012-05-15 Jean-Louis Martineau * server-src/find.c: Fix crash when log are corrupted. 2012-05-15 Jean-Louis Martineau * perl/Amanda/Recovery/Planner.pm (make_plan_from_filelist): Use the changer inventory to try to use an already available dump. * server-src/amidxtaped.pl: Pass the changer to make_plan. 2012-05-14 Jean-Louis Martineau * common-src/util.c, device-src/s3.c: Fix for pragma and gcc-4.5.2. 2012-05-11 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm (FAILED): Do it correctly. 2012-05-11 Jean-Louis Martineau * server-src/amstatus.pl: Improve output on taper error. 2012-05-11 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm (FAILED): Ignore if dump is already cancelled. 2012-05-11 Jean-Louis Martineau * common-src/event.c: Improve debugging. * server-src/dumper.c: Close data output in stop_dump. 2012-05-10 Jean-Louis Martineau * perl/Amanda/Constants.pm.in: Add NC, NC6 and NETCAT. 2012-05-10 Dan Locks * configure.in: update AC_INIT usage, specify tar-ustar and minimum automake version. * config/amanda/version.m4: create new AMANDA_INIT_VERSION macro to read FULL_VERSION or VERSION before AC_INIT. 2012-05-10 Jean-Louis Martineau * config/amanda/progs.m4: Define AMANDA_PROG_NC, set NC, NC6 and NETCAT. * configure.in: use AMANDA_PROG_NC. * installcheck/Amanda_Device.pl: Use them. 2012-05-10 Dan Locks * Makefile.am: update required automake version 2012-05-08 Jean-Louis Martineau * installcheck/Amanda_Device.pl: sleep to allow other process the time to start listening. 2012-05-08 Jean-Louis Martineau * common-src/amflock.c, common-src/match.c, common-src/util.c, device-src/s3.c: Fix for deprecated G_STATIC_MUTEX_INIT. 2012-05-08 Jean-Louis Martineau * client-src/sendbackup.c: Handle indirect tcp. * device-src/ndmp-device.c: Add INDIRECT property. * installcheck/Amanda_Device.pl: Test indirect tcp. * man/xml-source/amanda-devices.7.xml: Document INDIRECT property. * ndmp-src/ndmp4_translate.c: remove debugging statement. 2012-05-08 Jean-Louis Martineau * application-src/amzfs-snapshot.pl: Typo. 2012-05-02 Jean-Louis Martineau * installcheck/*.pl: use lib '@amperldir@'; 2012-05-01 Jean-Louis Martineau * man/xml-source/amfetchdump.8.xml: Add --decrypt, --no-decrypt, --server-decrypt, --client-decrypt, --compress, --no-compress, --server-compress, --client-compress. * server-src/amfetchdump.pl: Document new options. 2012-05-01 Jean-Louis Martineau * config/amanda/s3-device.m4: Improve output. * config/amanda/device.m4: Add AMANDA_CHECK_DEVICES and AMANDA_SHOW_DEVICES_SUMMARY * config/amanda/summary.m4: Use AMANDA_SHOW_DEVICES_SUMMARY. * configure.in: Use AMANDA_CHECK_DEVICES. 2012-04-25 Jean-Louis Martineau * ndmp-src/ndmos.h: Define NDMOS_MACRO_FREE * ndmp-src/ndmos_glib.h: Define NDMOS_MACRO_FREE * ndmp-src/ndmp_translate.h: define CNVT_FREE. * ndmp-src/ndmp4_translate.c:#Add many free function. 2012-04-20 Jean-Louis Martineau * server-src/amfetchdump.pl: Fix. 2012-04-20 Jean-Louis Martineau * server-src/amadmin.c: Fix handling of optional arguments. * installcheck/amadmin.pl: Check it. 2012-04-19 Jean-Louis Martineau * client-src/amdump_client.pl: Fix warning. 2012-04-18 Jean-Louis Martineau * server-src/amfetchdump.pl: add --decompress and --decrypt options. * man/xml-source/amfetchdump.8.xml: Document new options. 2012-04-18 Jean-Louis Martineau * common-src/conffile.c: Parse MAX_WARNINGS in dumptype. * common-src/conffile.h: Add DUMPTYPE_MAX_WARNINGS and dumptype_get_max_warnings * man/xml-source/amanda.conf.5.xml: Document max_warning in dumptype. * perl/Amanda/Config.swg: Add DUMPTYPE_MAX_WARNINGS. * server-src/diskfile.c (add_disk): Copy max_warnings from dumptype. * server-src/diskfile.h: Add max_warnings in disk_t. * server-src/driverio.c (dumper_cmd): Send max_warnings to dumper. * server-src/dumper.c: Use max_warnings. 2012-04-18 Jean-Louis Martineau * ndmp-src/ndmpconnobj.c: Remove useless g_source_is_destroyed check. 2012-04-17 Jean-Louis Martineau * common-src/amgetconf.pl: Read the disklist. * common-src/conffile.h (seen_t): Add block. * common-src/conffile.c: Set seen.block * common-src/conffile.c (dump_configuration): New print_default and print_source arguments. * installcheck/Amanda_Config.pl: Fix dump_configuration call. * server-src/amadmin.c: Add --no-default and --print-source arguments for config and disklist command. * man/xml-source/amadmin.8.xml: Document new arguments. * perl/Amanda/Chunker/Scribe.pm: Do load Amanda::Device. * perl/Amanda/Config.swg: Fix for new dump_configuration arguments. 2012-04-16 Jean-Louis Martineau * application-src/amstar.c: Remove spurious space on directory entry. 2012-04-13 Jean-Louis Martineau * common-src/conffile.c: Add TMPDIR. * common-src/conffile.h: Add CNF_TMPDIR. * man/xml-source/amanda.conf.5.xml: Document TMPDIR. * perl/Amanda/Config.swg: Add CNF_TMPDIR. * server-src/amindexd.c: Use CNF_TMPDIR. 2012-04-12 Jean-Louis Martineau * application-src/amsamba.pl: Create incremental empty archive. 2012-04-11 Jean-Louis Martineau * perl/Amanda/Changer.pm (make_new_tape_label): Fix error return. * perl/Amanda/Taper/Scribe.pm ($_user_msg_fn): Improve message if tape is relabeled with a new label. * perl/Amanda/ScanInventory.pm: Set relabeled. * installcheck/Amanda_Changer.pl: Fix for new message. 2012-04-11 Jean-Louis Martineau Patch by Nathan Stratton Treadway * device-src/vfs-device.c: Improve message for MAX_VOLUME_USAGE. * installcheck/taper.pl: Fix. 2012-04-11 Jean-Louis Martineau * man/xml-source/amgtar.8.xml: s/APPLCIATION/APPLICATION/ 2012-04-06 Jean-Louis Martineau * application-src/ampgsql.pl: psql /could not connect to server/ message result in STRANGE. 2012-04-06 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: Fix for label not matching labelstr. 2012-04-06 Jean-Louis Martineau * device-src/device.c (device_get_bytes_written): New function. * device-src/device.h (device_get_bytes_written): New prototype. * device-src/ndmp-device.c, device-src/rait-device.c, device-src/s3-device.c, device-src/tape-device.c, device-src/vfs-device.c: Implement get_bytes_written. * device-src/xfer-dest-taper-cacher.c, device-src/xfer-dest-taper-splitter.c: Use device_get_bytes_written. * perl/Amanda/Device.swg: Swig device_get_bytes_written. 2012-04-05 Jean-Louis Martineau * device-src/s3-device.c: New CLIENT_ID, CLIENT_SECRET and REFRESH_TOKEN properties. Handle OAUTH2. * device-src/s3.c: Handle OAUTH2. * device-src/s3.h (S3_api): Add S3_API_OAUTH2. * man/xml-source/amanda-devices.7.xml: Document new CLIENT_ID, CLIENT_SECRET and REFRESH_TOKEN properties. 2012-04-05 Jean-Louis Martineau * man/xml-source/amfetchdump.8.xml: Document -l do not unencrypt. 2012-04-05 Jean-Louis Martineau * device-src/device.c (device_accept_with_cond, device_connect_with_cond): New functions. * device-src/device.h (device_accept_with_cond, device_connect_with_cond): New prototypes. * device-src/ndmp-device.c (accept_with_cond_impl, connect_with_cond_impl): new functions. * device-src/xfer-dest-taper-directtcp.c: Use device_accept_with_cond. * ndmp-src/ndmpconnobj.c (ndmp_connection_wait_for_notify_with_cond): new function. * ndmp-src/ndmpconnobj.h (ndmp_connection_wait_for_notify_with_cond): new prototype. * perl/Amanda/Device.swg: swig accept_with_cond and connect_with_cond. * perl/Amanda/Taper/Worker.pm: Ignore duplicate DONe message. * server-src/driver.c (handle_dumper_result): Always send dumper result to taper. * server-src/dumper.c: Remove debugging statement. * xfer-src/element-glue.c: Add debugging statement. * xfer-src/xfer.c (xfer_cancel): Ignore duplicate cancel. * xfer-src/xfer.h (struct Xfer): Add cancelled field. 2012-04-05 Jean-Louis Martineau * common-src/amcryptsimple.pl: Use gpg if available. * common-src/amgpgcrypt.pl: Use gpg-agent and/or gpg2 if available. * server-src/dumper.c: Log compression/encryption executed. 2012-04-05 Jean-Louis Martineau * device-src/s3-device.c: New S3_MULTI_DELETE property. * device-src/s3.c: New S3_MULTI_DELETE property. * device-src/s3.h (s3_multi_delete): New prototype. * man/xml-source/amanda-devices.7.xml: Document new S3_MULTI_DELETE s3 device property. 2012-04-05 Jean-Louis Martineau * device-src/s3-device.c: New PASSWORD, USERNAME, TENANT_ID, TENANT_NAME and STORAGE_API property. Handle SWIFT-2. * device-src/s3.c: Handle SWIFT-2. * device-src/s3.h (s3_open): New prototype. * device-src/s3.h (S3_api): New enum. * man/xml-source/amanda-devices.7.xml: Document new PASSWORD, USERNAME, TENANT_ID, TENANT_NAME and STORAGE_API S3 device properties. 2012-04-03 Jean-Louis Martineau * application-src/amsamba.pl: Do not set unc prematurely. 2012-03-29 Dan Locks * packaging/sun-pkg/buildpkg: add missing GLIB_LIBS variable to intel builds. Add flags to make invocation to reduce output. 2012-03-29 Jean-Louis Martineau * server-src/driver.c: Fix hang if taper crash. 2012-03-29 Jean-Louis Martineau * device-src/s3.c: Retry on {500, S3_ERROR_None} error. Improving debugging. 2012-03-28 Jean-Louis Martineau * server-src/amadmin.c: Fix bumpsize. 2012-03-22 Jean-Louis Martineau * common-src/fileheader.c: header type for non-amanda header is F_WEIRD. * server-src/amcheck-device.pl, server-src/amtape.pl: Improve output for non-Amanda volume. 2012-03-22 Jean-Louis Martineau * perl/Amanda/Chunker/Scribe.pm: do not call _start_chunk if the transfer is finished. * server-src/driver.c: Fix hang. 2012-03-19 Jean-Louis Martineau * application-src/amgtar.c: Use "TAR-BLOCKSIZE" on restore. 2012-03-16 Jean-Louis Martineau * application-src/ampgsql.pl: Use statefile to find end_wal on estimate. 2012-03-15 Jean-Louis Martineau * application-src/amgtar.c: Add IGNORE-ZEROS property. * man/xml-source/amgtar.8.xml: Document IGNORE-ZEROS property. 2012-03-13 Jean-Louis Martineau * perl/Makefile.am: touch $@ 2012-03-13 Jean-Louis Martineau * application-src/ampgsql.pl: Do not Execute pg_start_backup for estimate. 2012-03-11 Jean-Louis Martineau * common-src/glib-util.c: g_thread_supported always return TRUE on newer version. 2012-03-10 Jean-Louis Martineau * common-src/glib-util.c, common-src/glib-util.h: Remove g_queue_free_full. 2012-03-09 Jean-Louis Martineau * common-src/Makefile.am, common-src/am_sl.c: typo. 2012-03-09 Jean-Louis Martineau * client-src/client_util.c, client-src/selfcheck.c, client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c, client-src/sendbackup.c, client-src/sendsize.c, common-src/amxml.c, common-src/amxml.h, recover-src/extract_list.c: s/level_t/am_level_t/g * client-src/calcsize.c, common-src/amxml.h, common-src/conffile.c, common-src/conffile.h, common-src/sl.c, common-src/sl.h, perl/Amanda/Header.swg: s/sl_t/am_sl_t/g * amandad-src/amandad.h, client-src/calcsize.c, client-src/client_util.h, common-src/Makefile.am: s/sl.h/am_sl.h * common-src/am_sl.h: renamed from common-src/sl.h * common-src/am_sl.c: renamed from common-src/sl.c 2012-03-09 Jean-Louis Martineau * server-src/amfetchdump.pl: Print progress. * device-src/device.c (device_get_bytes_read ): New API method. * device-src/device.h (Device): Add bytes_read. * device-src/device.h (_DeviceClass): Add get_bytes_read. * device-src/device.h (device_get_bytes_read): Add prototype. * device-src/ndmp-device.c: Set bytes_read. * device-src/rait-device.c: Set bytes_read. * device-src/s3-device.c: Use curl progress callback to set bytes_read. * device-src/s3.c: Set a progress callback. * device-src/tape-device.c: Set bytes_read. * device-src/vfs-device.c: Set bytes_read. * device-src/xfer-device.h (xfer_source_recovery_get_bytes_read): Add prototype. * device-src/xfer-source-recovery.c (xfer_source_recovery_get_bytes_read): new function. * perl/Amanda/Device.swg (device_get_bytes_read): New function. * perl/Amanda/Recovery/Clerk.pm: Call get_bytes_read. * perl/Amanda/XferServer.swg: (xfer_source_holding_get_bytes_read, * xfer_source_recovery_get_bytes_read): New prototypes. * server-src/xfer-server.h (xfer_source_holding_get_bytes_read): New protoype. * server-src/xfer-source-holding.c (xfer_source_holding_get_bytes_read): New function. 2012-03-09 Jean-Louis Martineau * perl/Amanda/Recovery/Scan.pm: Do not rescan the same slot indefinitely. 2012-03-09 Jean-Louis Martineau * perl/Amanda/Changer/multi.pm: Fix warning. 2012-03-09 Jean-Louis Martineau * device-src/s3-device.c: New PROXY property. * device-src/s3.c: Set CURLOPT_PROXY from PROXY property. * device-src/s3.h (s3_open): Add proxy argument. * man/xml-source/amanda-devices.7.xml: Document PROXY property. 2012-03-08 Jean-Louis Martineau * perl/Amanda/Header.swg (get_dle): Return undef if not set. * server-src/amidxtaped.pl: Check dle is set. 2012-03-08 Jean-Louis Martineau * server-src/amvault.pl: Use the write-timestamp, not the dump-timestamp. 2012-03-08 Jean-Louis Martineau * common-src/ssh-security.c: use default port if client-port is not set. 2012-03-07 Jean-Louis Martineau * application-src/amsamba.pl: Fix use of subdir for restore, prepend subdir on include for restore. 2012-03-07 Jean-Louis Martineau * ndmp-src/ndmjob_args.c: Add '-o D-agent-fd' argument. 2012-03-07 Jean-Louis Martineau * application-src/ampgsql.pl: Do not execute pg_start_backup and pg_stop_backup on selfcheck. 2012-02-23 Jean-Louis Martineau * man/xml-source/amzfs-sendrecv.8.xml: Typo. 2012-02-23 Jean-Louis Martineau * man/xml-source/disklist.5.xml: Document includefile directive. 2012-02-16 Jean-Louis Martineau * server-src/amadmin.c (disklist_one): print the filename. * server-src/diskfile.c: Add includefile directive. * server-src/diskfile.h (disk_t): Add filename. 2012-02-14 Jean-Louis Martineau * perl/Makefile.am: Add '--homeurl "$(POD_HOME_URL)"' to make_html * perl/make_html.pl: Improved modules list. 2012-02-13 Jean-Louis Martineau * perl/make_html.pl: Add link to index page. 2012-02-13 Jean-Louis Martineau * perl/make_html.pl: More fix. 2012-02-13 Jean-Louis Martineau * perl/make_html.pl: Make relative link. 2012-02-13 Jean-Louis Martineau * perl/make_html.pl: Fix for beta release. 2012-02-13 Jean-Louis Martineau * man/xml-source/amanda.conf.5.xml: Fix default netusage. 2012-02-13 Jean-Louis Martineau * perl/Amanda/Recovery/Clerk.pm: Typo. 2012-02-13 Jean-Louis Martineau * perl/make_html.pl: Fix html for relative link. 2012-02-10 Jean-Louis Martineau * device-src/s3.c: Do not print the data to the debug file. 2012-02-08 Jean-Louis Martineau * application-src/ampgsql.pl: Do not use temporary disk space while doing backup or recovery. 2012-02-08 Jean-Louis Martineau * perl/Amanda/DB/Catalog.pm: filenum must be sorted numerically. 2012-02-07 Jean-Louis Martineau * application-src/ampgsql.pl: pg_version 802000 => 80200. 2012-02-01 Jean-Louis Martineau * application-src/ampgsql.pl: Do not print normal pg_xlogfile_name_offset output to MESG stream. 2012-01-31 Dan Locks * packaging/deb/preinst, packaging/rpm/amanda.spec.src: change /bin/sh to /bin/bash. 2012-01-27 Jean-Louis Martineau * application-src/ampgsql.pl: Call pg_switch_xlog() only for backup. 2012-01-27 Jean-Louis Martineau * application-src/ampgsql.pl: Run pg_switch_xlog() and wait for the archived WAl before doing an incremental backup. 2012-01-26 Jean-Louis Martineau * device-src/s3.c: Fix compilation. 2012-01-23 Jean-Louis Martineau * device-src/s3.c: Set xmlns for IIJ. 2012-01-23 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm, server-src/amlabel.pl:use the block_size instead of the header-block_size to write the BLOCK_SIZE in the tapelist. 2012-01-19 Jean-Louis Martineau * device-src/s3-device.c: Add support for openstack swift api. * device-src/s3.c: Add support for openstack swift api. * device-src/s3.h: Add support for openstack swift api. * man/xml-source/amanda-devices.7.xml: Add openstack-swift-api property. 2012-01-13 Jean-Louis Martineau * device-src/s3-device.c: Fix deleting files. 2012-01-09 Jean-Louis Martineau * server-src/amtape.pl: Fix amtape show for non numeric slot. 2012-01-04 Jean-Louis Martineau * recover-src/extract_list.c: Fix for compilation on AIX. 2012-01-04 Dan Locks * packaging/sun-pkg/buildpkg: Add GLIB_* flags to sun packages * config/amanda/libs.m4: fix "exit when explicit flags are given" error, and require all flags when one is given. 2012-01-03 Jean-Louis Martineau * device-src/s3-device.c: Report DEVICE ERROR if s3_is_bucket_exists response with curl error CURLE_COULDNT_CONNECT or CURLE_COULDNT_RESOLVE_HOST. 2012-01-02 Jean-Louis Martineau * perl/Amanda/Changer/multi.pm: Print the state filename to the debug file. 2012-01-02 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: Correctly set 'err'. * server-src/amtape.pl: quit the changer even on error. 2011-12-24 Dustin J. Mitchell Patch by Nathan Stratton Treadway. * man/xml-source/amgetconf.8.xml: a typo in the amgetconf.8 man page 2011-12-24 Dustin J. Mitchell Patch by Nathan Stratton Treadway. * common-src/conffile.c: minor problem with an error message in conffile.c, this time in the read_confline() function. It's just a mention of "APPLICATION-TOOL"/"SCRIPT-TOOL" that was missed in SVN revision 2028/git commit d0d9425b5d1e5a535719e754243c8f9f12a0ecf1 (in which those names were changed to "APPLICATION" and "SCRIPT" instead). 2011-12-23 Jean-Louis Martineau Patch by Nathan Stratton Treadway. * common-src/conffile.c (read_int_or_str): Fix error message. 2011-12-22 Jean-Louis Martineau * server-src/planner.c: Fix force-bump with overdue filesystem. 2011-12-22 Jean-Louis Martineau * server-src/amlabel.pl: --asign require --meta or --barcode. 2011-12-20 Jean-Louis Martineau * installcheck/amserverconfig.pl: Remove holding disk and vtapes. 2011-12-14 Jean-Louis Martineau * installcheck/Amanda_Xfer.pl: Load Amanda::Changer only with server component. 2011-12-14 Jean-Louis Martineau * installcheck/Installcheck/Run.pm (load_vtape): Use $sbindir to execute amtape. 2011-12-14 Jean-Louis Martineau * device-src/s3.c (s3_is_bucket_exists): Set max-keys=1. 2011-12-14 Jean-Louis Martineau * perl/Amanda/Recovery/Scan.pm (new): Return changer error. 2011-12-12 Jean-Louis Martineau * Makefile.am (SERVER_SUBDIRS): Remove changer-src. * changer-src: Remove subdirectoy. * configure.in (AC_CONFIG_FILES): Remove changer-src/Makefile. * man/xml-source/amanda-changers.7.xml: Remove all older changer api. * perl/Amanda/Changer.pm: Remove check for older changer api. * perl/Amanda/Changer/compat.pm: Remove file. * perl/Makefile.am (AmandaChanger_DATA): Remove Amanda/Changer/compat.pm * installcheck/Amanda_Changer.pl: Remove test of older changer api. * installcheck/Amanda_Changer_compat.pl: Remove file. * installcheck/Amanda_DB_Catalog.pl: Fix typo. * installcheck/Amanda_Recovery_Planner.pl: Fix typo. * installcheck/Amanda_Recovery_Scan.pl: Use new changer api. * installcheck/Amanda_Xfer.pl: Use new changer api. * installcheck/Installcheck/Run.pm: Remove code to create older vtapes. * installcheck/Makefile.am (server_tests): Remove Amanda_Changer_compat. * installcheck/amdevcheck.pl: Use new changer api. * installcheck/amlabel.pl: Use new changer api. * installcheck/amtape.pl: Use new changer api. * installcheck/amtapetype.pl: Use new changer api. * installcheck/taper.pl: Use new changer api. 2011-12-12 Jean-Louis Martineau * device-src/amdevcheck.pl: Use current slot. 2011-12-12 Jean-Louis Martineau * common-src/amfeatures.c: Add fe_dumptype_property. * common-src/amfeatures.h: Add fe_dumptype_property. * common-src/amxml.c: Parse dumptype properties. * common-src/amxml.h (dle_t): Add property field. * perl/Amanda/Disklist.swg: Add clean_dle_str_for_client. * perl/Amanda/Feature.pod: Add fe_dumptype_property. * perl/Amanda/Feature.swg: Add Amanda::Feature::Set::features * server-src/amidxtaped.pl: Call clean_dle_str_for_client. * server-src/diskfile.c (xml_dumptype_properties): New function toi return dumptype propertyes. * server-src/diskfile.h (xml_dumptype_properties) Add prototype. * server-src/driverio.c: Add xml_dumptype_properties to dumper cmd. * server-src/dumper.c: Call clean_dle_str_for_client. 2011-12-09 Jean-Louis Martineau * config/config.guess config/config.sub: new updates from FSF. 2011-12-08 Jean-Louis Martineau * example/template.d/amanda-harddisk.conf.in: fix for installcheck. 2011-12-08 Jean-Louis Martineau * NEWS, ReleaseNotes: Update for 3.3.1 2011-12-08 Jean-Louis Martineau * server-src/amindex.c (getheaderfname): New function. * server-src/amindex.h (getheaderfname): New prototype. * server-src/dumper.c: Wrtie header to a file in indexdir. 2011-12-07 Jean-Louis Martineau * example/template.d/amanda-S3.conf.in, example/template.d/amanda-harddisk.conf.in, example/template.d/amanda-single-tape.conf.in, example/template.d/amanda-tape-changer.conf.in: Use new changer api. * server-src/amserverconfig.pl: Use new changer api. 2011-12-07 Jean-Louis Martineau * man/xml-source/amvault.8.xml: Improve. 2011-12-07 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm (volume_is_labelable): New method. * perl/Amanda/Taper/Scan/lexical.pm, perl/Amanda/Taper/Scan/oldest.pm: Use volume_is_labelable from ScanInventory. * perl/Amanda/Taper/Scan/traditional.pm: Fix bad logging. * perl/Amanda/Taper/Scribe.pm: Print "autolabel disabled". * perl/Amanda/Taper/Worker.pm: Add debugging. * server-src/amvault.pl: Quit both changer, add debugging. 2011-12-07 Jean-Louis Martineau * server-src/amcleanup.pl, server-src/amcleanupdisk.pl: use Amanda::Debug. 2011-12-05 Jean-Louis Martineau Fix for previous patch. * application-src/amlog-script.pl, application-src/ampgsql.pl, application-src/amraw.pl, application-src/amsamba.pl, application-src/amsuntar.pl, application-src/amzfs-sendrecv.pl, application-src/amzfs-snapshot.pl, application-src/script-email.pl: Undo previous patch, * perl/Amanda/Script_App.pm: Do it here instead. server-src/amlogroll.pl, server-src/amvault.pl server-src/chunker.pl, server-src/taper.pl: Import the debug method. * server-src/amoverview.pl, server-src/amserverconfig.pl, server-src/amstatus.pl: Undo previous patch, they do not use the debug file. 2011-12-05 Jean-Louis Martineau * application-src/amlog-script.pl, application-src/ampgsql.pl, application-src/amraw.pl, application-src/amsamba.pl, application-src/amsuntar.pl, application-src/amzfs-sendrecv.pl, application-src/amzfs-snapshot.pl, application-src/script-email.pl, client-src/amdump_client.pl, common-src/amgetconf.pl, device-src/amdevcheck.pl, device-src/amtapetype.pl, server-src/amcheckdump.pl, server-src/amcleanup.pl, server-src/amcleanupdisk.pl, server-src/amdump.pl, server-src/amfetchdump.pl, server-src/amlabel.pl, server-src/amlogroll.pl, server-src/amoverview.pl, server-src/amreport.pl, server-src/amrestore.pl, server-src/amrmtape.pl, server-src/amserverconfig.pl, server-src/amstatus.pl, server-src/amtape.pl, server-src/amvault.pl, server-src/chunker.pl, server-src/taper.pl: Print command line arguments to debug file. 2011-12-05 Jean-Louis Martineau * device-src/device.c, device-src/ndmp-device.c, device-src/tape-device.c: Call device_set_error if setting a property fail. * perl/Amanda/Changer.pm: Use device error message. 2011-12-02 Jean-Louis Martineau * device-src/s3-device.c, device-src/vfs-device.c (*_device_erase): set the device state to unlabeled. * perl/Amanda/Changer/compat.pm, perl/Amanda/Changer/multi.pm (set_label): works with undefined label. * perl/Amanda/Changer/robot.pm: small cleanup. * server-src/amrmtape.pl: Call reservation set_label method to remove the label from the state. 2011-12-02 Jean-Louis Martineau * man/xml-source/amanda.conf.5.xml (autolabel): Document it must match labelstr. 2011-12-01 Jean-Louis Martineau * device-src/s3-device.c (delete_file): Use multiple threads. 2011-11-30 Jean-Louis Martineau * device-src/xfer-dest-taper-splitter.c: Set the xmsg even if the xfer is cancelled. * perl/Amanda/Taper/Scribe.pm: result is PARTIAL|FAILED if !last_part_successful. 2011-11-30 Jean-Louis Martineau * device-src/xfer-source-recovery.c (pull_buffer_impl): Release lock before calling wait_until_xfer_cancelled. 2011-11-28 Jean-Louis Martineau * server-src/amfetchdump.pl: Fix usage. * man/xml-source/amfetchdump.8.xml: Fix synopsis. 2011-11-25 Jean-Louis Martineau * installcheck/Makefile.am: Fix typo. 2011-11-25 Jean-Louis Martineau * installcheck/gnutar.pl: Change expectations to an array that can be scanned in order, fix for tar-1.25 on fc15. 2011-11-22 Jean-Louis Martineau * installcheck/Makefile.am: rm with '-f'. 2011-11-22 Jean-Louis Martineau * device-src/s3.c (build_url): curl is G_GNUC_UNUSED. 2011-11-21 Jean-Louis Martineau * server-src/amtape.pl: Fix 'amtape show' with one slot. * installcheck/amtape.pl: Test it. 2011-11-21 Jean-Louis Martineau * server-src/amreport.pl: Check if executable before open3(). * installcheck/amreport.pl: Fix for new message. 2011-11-21 Jean-Louis Martineau * server-src/amtape.pl: Add [slots] argument to amtape show. * man/xml-source/amtape.8.xml: Document it. 2011-11-21 Jean-Louis Martineau * device-src/s3.c: Disable the service_path if it is set to an empty string or '/', also remove trailing slash. 2011-11-21 Jean-Louis Martineau * server-src/amdump.pl: Log a 'START planner date' line on error'. 2011-11-15 Jean-Louis Martineau * device-src/s3.c: Use curl_easy_escape. 2011-11-15 Jean-Louis Martineau * amplot/Makefile.am, application-src/Makefile.am, client-src/Makefile.am, common-src/Makefile.am, device-src/Makefile.am, server-src/Makefile.am: Add $(SCRIPTS_PERL) $(SCRIPTS_SHELL) and $(SCRIPTS_AWK) to CLEANFILES. Add config.log to DISTCLEANFILES. * installcheck/Makefile.am: Add $(all_tests) $(mocks) $(noinst_SCRIPTS) to CLEANFILES. Add config.log to DISTCLEANFILES (installcheck-local): Remove $(CONFIG_DIR)/amanda-client.conf, $(CONFIG_DIR)/template.d/dumptypes and $(CONFIG_DIR)/template.d/tapetypes is they were not present. 2011-11-14 Jean-Louis Martineau * installcheck/gnutar.pl: Fix for fc16. 2011-11-10 Jean-Louis Martineau * installcheck/mock/mtx.pl: Fix qw. 2011-11-10 Jean-Louis Martineau * server-src/amstatus.pl: Use Getopt::Long 2011-11-10 Jean-Louis Martineau * device-src/s3.c: Use CURLOPT_MAX_RECV_SPEED_LARGE. 2011-11-10 Jean-Louis Martineau * perl/Amanda/Logfile.pod: Remove match_* functions * perl/Amanda/Logfile.swg: Remove match_* functions * perl/Amanda/Util.pod: Add match_* functions * perl/Amanda/Util.swg: Add match_* functions * client-src/amdump_client.pl, perl/Amanda/DB/Catalog.pm, server-src/amdumpd.pl, server-src/amidxtaped.pl, server-src/amvault.pl: Use match_* functions for Amanda::Util 2011-11-10 Jean-Louis Martineau * perl/Amanda/Report.pm: Always report the first 100 strange lines. * installcheck/catalogs/longstrange.cat: Fix test. 2011-11-09 Jean-Louis Martineau * server-src/amreport.pl: Fix for perl-5.14 * installcheck/amreport.pl: Add test. 2011-11-09 Jean-Louis Martineau * installcheck/Installcheck/Changer.pm: Fix warnign for perl 5.14. 2011-11-09 Jean-Louis Martineau * application-src/ampgsql.pl: Print state filename to debug file. 2011-11-07 Jean-Louis Martineau * device-src/s3-device.c: Add S3_SERVER_SIDE_ENCRYPTION property. * device-src/s3.c: Add server_side_encryption. * device-src/s3.h: Add server_side_encryption. * man/xml-source/amanda-devices.7.xml: Document S3_SERVER_SIDE_ENCRYPTION property 2011-11-07 Jean-Louis Martineau * perl/Amanda/Changer.pm (release): Always call finished_cb. * installcheck/amcheck-device.pl: Add a check. 2011-10-12 Jean-Louis Martineau * server-src/driverio.c (update_info_dumper): Set date to 0 if datestamp is 0. 2011-10-07 Jean-Louis Martineau * application-src/ampgsql.pl: If datadir is not set, use the disk argument. 2011-10-07 Jean-Louis Martineau * common-src/conffile.c: Do not free cwd. * common-src/amgetconf.pl: Allow to get one property. * installcheck/amgetconf.pl: Test it. 2011-10-05 Jean-Louis Martineau * device-src/s3.c: Retry in case of CURLE_SSL_CONNECT_ERROR error. 2011-10-04 Jean-Louis Martineau * installcheck/gnutar.pl: Add support for fc14 and fc15. 2011-10-04 Jean-Louis Martineau * recover-src/extract_list.c: Do not crahs if amidxtaped close the connection. 2011-10-04 Jean-Louis Martineau * device-src/s3.c: Correctly set thunk->next_marker. 2011-09-30 Dan Locks * packaging/common/substitute.pl: fix PKG_REV missing message. * packaging/sun-pkg/buildpkg, packaging/deb/buildpkg, packaging/rpm/buildpkg: create PKG_REV file until the machinery to process svn tags for PKG_REV is in place 2011-09-29 Dan Locks * packaging/sun-pkg: sun package subdirectories * packaging/sun-pkg/buildpkg: sun package building script * packaging/common/mock_utils.sh: mocked utilities used by pre/post scripts * packaging/common/post_inst_functions.sh, packaging/common/post_rm_functions.sh, packaging/common/pre_inst_functions.sh, packaging/common/common_functions.sh: shared shell functions for pre/post scripts. * packaging/common/substitute.pl: update to handle sun packages and shell functions * packaging/common/test_sh_libs.sh: unit tests for shell functions * packaging/common/shunit2: unit test framework * packaging/Makefile.am: add sun package to dist tarball. * note: S3 device is not enabled; solaris compilation has me stumped. 2011-09-21 Jean-Louis Martineau Patch by Sam Stuck * man/xml-source/amanda-changers.7.xml: Typo. 2011-09-20 Jean-Louis Martineau * man/Makefile.am (SERVER_MAN_PAGES): Add amcleanupdisk.8 * man/xml-source/amcleanup.8.xml:Add -r option. * man/xml-source/amcleanupdisk.8.xml: New man page. * perl/Amanda/Holding.pm (all_files, merge_all_files, rename_tmp): New methods. * server-src/Makefile.am (amlibexec_PROGRAMS): Remove amcleanupdisk. * server-src/Makefile.am (sbin_SCRIPTS_PERL): Add amcleanupdisk. * server-src/amcleanup.pl: Add -r option. * server-src/amcleanupdisk.c: Remove file * server-src/amcleanupdisk.pl: New perl version. * server-src/holding.c: Fix max level to 399. 2011-09-07 Jean-Louis Martineau * installcheck/Amanda_Device.pl: Check setting a property with an invalid name. 2011-09-07 Jean-Louis Martineau * perl/Amanda/Device.swg: Do not g_value_unset an uninitialized value. 2011-09-07 Jean-Louis Martineau * application-src/amzfs-sendrecv.pl: restore works without --device. 2011-09-06 Jean-Louis Martineau * common-src/amcryptsimple.pl: Do not use gpg-agent if it is not available. 2011-09-02 Jean-Louis Martineau * client-src/selfcheck.c (print_platform): Another fix. 2011-09-02 Jean-Louis Martineau * common-src/amcryptsimple.pl: Use gpg-agent. 2011-09-02 Jean-Louis Martineau * client-src/selfcheck.c (print_platform): Fix. 2011-09-01 Jean-Louis Martineau * server-src/amadmin.c (export) parse version without patch number. 2011-09-01 Jean-Louis Martineau * perl/Amanda/ScanInventory.pm: Get the meta label before calling make_new_tape_label. * perl/Amanda/Taper/Scan/traditional.pm: Get the meta label before calling make_new_tape_label. * perl/Amanda/Taper/Scribe.pm: Return the reservation on error. * server-src/amcheck-device.pl: Release the reservation on error. * server-src/amtape.pl: Release the reservation on error, change 'amtape taper' output to be the same as amcheck. * installcheck/amtape.pl: Fix for new amtape output. 2011-08-31 Jean-Louis Martineau * common-src/debug.c (debug_printf): Print a thread id. * device-src/xfer-dest-taper-cacher.c, device-src/xfer-dest-taper-directtcp.c, device-src/xfer-dest-taper-splitter.c, device-src/xfer-source-recovery.c, server-src/xfer-dest-holding.c: Remove printing of thread id. 2011-08-31 Jean-Louis Martineau * server-src/dumper.c: filter stderr make result strange, filter exit_code != 0 make it fail. 2011-08-31 Jean-Louis Martineau * application-src/amgtar.c: Do not rename gnutar-list if record is not set. 2011-08-31 Jean-Louis Martineau * server-src/tapefile.h (struct tape_s): Add blocksize. * server-src/tapefile.c: Print and parse blocksize in tapelist file. * perl/Amanda/Tapelist.swg: Print and parse blocksize in tapelist file. * perl/Amanda/Taper/Scribe.pm: Add blocksize argument to add_tapelabel. * server-src/amlabel.pl: Add blocksize argument to add_tapelabel. * installcheck/Amanda_Tapelist.pl: Fix for tapelist file format. * installcheck/amlabel.pl: Fix for tapelist file format. 2011-08-31 Jean-Louis Martineau * device-src/device.h (struct Device): Add header_block_size. * device-src/null-device.c, device-src/rait-device.c, device-src/s3-device.c, device-src/tape-device.c, device-src/vfs-device.c: Set header_block_size. * perl/Amanda/Device.swg: Swig header_block_size. 2011-08-31 Jean-Louis Martineau * installcheck/Amanda_Device.pl: Fix number of skipped test for S3. 2011-08-31 Jean-Louis Martineau * server-src/planner.c: Print why a disk is skip if DS_NOINC. 2011-08-30 Jean-Louis Martineau * installcheck/Amanda_Device.pl: Check invalid location on s3 device. 2011-08-30 Jean-Louis Martineau * device-src/s3.c (s3_is_bucket_exists): Do not retry if bucket do not exists. 2011-08-30 Jean-Louis Martineau * device-src/s3.c (s3_is_bucket_exists): New function to check if a bucket exists. * device-src/s3.h (s3_is_bucket_exists): Prototype. * device-src/s3-device.c: Call s3_is_bucket_exists before s3_make_bucket. 2011-08-29 Jean-Louis Martineau * perl/Amanda/Changer/multi.pm: Keep the device_error in the state file. * perl/Amanda/Changer/robot.pm: Keep the device_error in the state file. * server-src/amtape.pl (inventory): Print inventory device error. * installcheck/Amanda_Changer_multi.pl, installcheck/Amanda_Changer_ndmp.pl, installcheck/Amanda_Changer_robot.pl: Fix for device_error in state file. 2011-08-29 Jean-Louis Martineau * perl/Amanda/Changer.pm: Fix warning. 2011-08-29 Jean-Louis Martineau * installcheck/Amanda_Changer_ndmp.pl, installcheck/Amanda_Changer_robot.pl: Fix for previous patch. 2011-08-29 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: return a reservation even on error. 2011-08-29 Jean-Louis Martineau Patch by Gunar Gunnarsson * server-src/amvault.pl: Cast $dump->{'kb'} to int. 2011-08-24 Jean-Louis Martineau * man/xml-source/amanda-devices.7.xml: Update S3 location url. 2011-08-24 Jean-Louis Martineau * common-src/match.c: Fix for 'Trailing backslash' error * common-src/match-test.c: Add test 2011-07-27 Jean-Louis Martineau * amandad-src/amandad.c, client-src/calcsize.c, client-src/killpgrp.c, client-src/noop.c, client-src/rundump.c, client-src/runtar.c, client-src/selfcheck.c, client-src/sendbackup.c, client-src/sendsize.c, ndmp-src/amndmjob_main.c, server-src/amcleanupdisk.c, server-src/amindexd.c, server-src/amtrmidx.c, server-src/amtrmlog.c, server-src/driver.c, server-src/dumper.c, server-src/planner.c: Add a --version argument. 2011-07-27 Jean-Louis Martineau * common-src/amservice.c, recover-src/amrecover.c, server-src/amflush.c: #include "getopt.h" 2011-07-27 Jean-Louis Martineau * application-src/ampgsql.pl: add ARCHIVEDIR, CLEANUPWAL, DB, HOST, MAX-WAL-WAIT, PASSFILE, PORT, PSQL-PATH and USER properties. * man/xml-source/ampgsql.8.xml: Document them. 2011-07-27 Jean-Louis Martineau * common-src/amservice.c, recover-src/amrecover.c, server-src/amcheck.c, server-src/amflush.c: Add a --version argument. 2011-07-27 Jean-Louis Martineau * client-src/selfcheck.c: Check return value of fgets. 2011-07-27 Jean-Louis Martineau * many */*.pl: add --version option. 2011-07-27 Jean-Louis Martineau * application-src/ampgsql.pl: print to debug file and server if unlink fail. 2011-07-25 Jean-Louis Martineau * man/xml-source/amgtar.8.xml, man/xml-source/amraw.8.xml, man/xml-source/amsamba.8.xml, man/xml-source/amstar.8.xml, man/xml-source/amsuntar.8.xml, man/xml-source/amzfs-sendrecv.8.xml: Document the diskdevice. 2011-07-25 Jean-Louis Martineau * server-src/amcheck.c: new '--client-verbose' option. * man/xml-source/amcheck.8.xml: Document --client-verbos * config/amanda/progs.m4 (AMANDA_PROG_UNAME): new macro to find uname path. * configure.in: call AMANDA_PROG_UNAME. * client-src/client_util.c (check_access, check_file, check_dir, check_suid): return a gboolean. * client-src/client_util.h: Change prototypes. * client-src/selfcheck.c: Print the platform. * common-src/util.c (get_first_line): new function to return the first output line of a command. * common-src/util.h (get_first_line): add prototype. * application-src/amgtar.c, application-src/ampgsql.pl, application-src/amraw.pl, application-src/amsamba.pl, application-src/amstar.c, application-src/amsuntar.pl, application-src/amzfs-sendrecv.pl: print version of program. 2011-07-22 Jean-Louis Martineau * perl/Amanda/Changer.pm: Fix warning if $s is not used. 2011-07-22 Jean-Louis Martineau * perl/Amanda/Changer.pm: Support minimun number of digit in $3s autolabel template. * man/xml-source/amanda.conf.5.xml: Document it. 2011-07-21 Jean-Louis Martineau * perl/Amanda/Changer/multi.pm (do_release): Support eject params. * perl/Amanda/Changer/single.pm (do_release): Do the eject correctly. 2011-07-21 Jean-Louis Martineau * man/xml-source/amanda-taperscan.7.xml: Typo. 2011-07-20 Jean-Louis Martineau * common-src/conffile.h: Add CONF_EJECT_VOLUME * common-src/conffile.c: Add CNF_EJECT_VOLUME * man/xml-source/amanda.conf.5.xml: Document eject-volume. * perl/Amanda/Config.swg: Add CNF_EJECT_VOLUME. * perl/Amanda/Changer/single.pm: Eject the device if the eject params is set in $res->release() * perl/Amanda/Taper/Scribe.pm (new): Get eject_volume params. * perl/Amanda/Taper/Scribe.pm (_release_reservation): Call $res->release with the eject params if needed. * perl/Amanda/Taper/Worker.pm: Make the Scribe with the eject_volume params set to $CNF_EJECT_VOLUME 2011-07-20 Jean-Louis Martineau * perl/Amanda/Changer.pm (make_error): callback is optional. * perl/Amanda/Changer/disk.pm: Check if disk is mounted before locking. * perl/Amanda/ScanInventory.pm (_scan): fail only on fatal error. * perl/Amanda/Taper/Controller.pm: Put error message in double quote. * perl/Amanda/Taper/Worker.pm: Put message in double quote. 2011-07-19 Jean-Louis Martineau * server-src/driver.c (tape_action): consider number of dle on volume and max-dle-by-volume for allowing use of new volume. 2011-07-15 Jean-Louis Martineau * man/xml-source/amanda-changers.7.xml: Add chg-single documentation. 2011-07-14 Jean-Louis Martineau * device-src/s3-device.c:Increase S3_DEVICE_MAX_BLOCK_SIZE to 3GiB. 2011-07-14 Jean-Louis Martineau * device-src/s3-device.c:Increase S3_DEVICE_MAX_BLOCK_SIZE to 5TiB. 2011-07-13 Jean-Louis Martineau * common-src/conffile.c: Add CONF_MAX_DLE_BY_VOLUME. * common-src/conffile.h: Add CNF_MAX_DLE_BY_VOLUME. * man/xml-source/amanda.conf.5.xml: Document max-dle-by-volume. * perl/Amanda/Config.swg: Add CNF_MAX_DLE_BY_VOLUME. * perl/Amanda/Taper/Controller.pm: Add msg_CLOSE_VOLUME method. * perl/Amanda/Taper/Protocol.pm: Add CLOSE_VOLUME. * perl/Amanda/Taper/Scribe.pm: Add close_volume method, call _get_new_volume() is close_volume was called. * perl/Amanda/Taper/Worker.pm: Add CLOSE_VOLUME method. * server-src/driver.c: Send CLOSE_VOLUME command to taper if the number of dle on a volume is larger than max-dle-by-volume * server-src/driverio.c: Send CLOSE_VOLUME command. * server-src/driverio.h: Add nb_dle to taper_t. * server-src/server_util.c: Add "CLOSE-VOLUME" to cmdstr. * server-src/server_util.h: Add CLOSE_VOLUME. 2011-07-12 Jean-Louis Martineau * config/amanda/libs.m4: Fix use of AC_LINK_IFELSE. 2011-07-12 Jean-Louis Martineau * common-src/match.c (match_word): better matching for anchored expression. * common-src/match-test.c: Add new tests. 2011-07-11 Jean-Louis Martineau Add '$s' substitution to autolabel. * perl/Amanda/Changer.pm (make_new_tape_label): Handle $s. * perl/Amanda/Taper/Scan/lexical.pm, perl/Amanda/Taper/Scan/oldest.pm, perl/Amanda/Taper/Scribe.pm: Call make_new_tape_label with the slot. * man/xml-source/amanda.conf.5.xml: Document $s substitution. 2011-07-08 Jean-Louis Martineau * perl/Amanda/Changer.pm: Fix compuation of npercents and nexclamations. 2011-07-07 Jean-Louis Martineau * config/ltmain.sh, config/lt~obsolete.m4, config/ltoptions.m4, config/ltsugar.m4, config/ltversion.m4: Upgrade libtool to 2.4 2011-07-07 Jean-Louis Martineau * config/amanda/libs.m4: Fix for newer aclocal * config/libtool.m4: Upgrade for compatibility with newwe aclocal 2011-07-07 Jean-Louis Martineau * Many *.c files: Fix for gcc-4.6.0 warning: variable ‘NAME’ set but not used. 2011-07-07 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Keep the barcode when relabeling a tape 2011-07-05 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Retry up to 120 seconds if the sense key is 'Not Ready' 2011-07-05 Jean-Louis Martineau * perl/Amanda/Changer.pm: Add letter based sequence to autolabel and meta-autolabel. * man/xml-source/amanda.conf.5.xml: Document them. 2011-06-29 Jean-Louis Martineau * application-src/amstar.c: s/stralloc/g_strdup/ 2011-06-29 Jean-Louis Martineau * application-src/amstar.c: typo. 2011-06-29 Jean-Louis Martineau * server-src/driver.c: Call short_dump_state on all state change. 2011-06-29 Jean-Louis Martineau Patch by p_michalczyk * application-src/amstar.c: Place command_options at the and of command line. 2011-06-29 Jean-Louis Martineau Replace semaphore by amsemaphore. * common-src/Makefile.am: Remove semaphore.*, add amsemaphore.* * common-src/amsemaphore-test.c: New copy of semaphore-test.c * common-src/amsemaphore.c: New copy of semaphore.c * common-src/amsemaphore.h: New copy of semaphore.h * common-src/semaphore-test.c: Removed file. * common-src/semaphore.c: Removed file. * common-src/semaphore.h: Removed file. * device-src/rait-device.c: s/semaphore_/amsemaphore_/g * xfer-src/element-glue.c: s/semaphore_/amsemaphore_/g * xfer-src/element-glue.h: s/semaphore_/amsemaphore_/g 2011-06-28 Jean-Louis Martineau * server-src/driver.c: Check holding file is in a holding directory. 2011-06-27 Jean-Louis Martineau * man/xml-source/amanda-devices.7.xml: s/Witout/Without/ 2011-06-27 Jean-Louis Martineau * server-src/xfer-dest-holding.c: Check return value of ftruncate. * perl/Amanda/Logfile.swg: Remove debugging statement. 2011-06-21 Jean-Louis Martineau * common-src/amanda.h: Remove KAMANDA_SERVICE_NAME, SERVICE_SUFFIX, AMANDA_SERVICE_DEFAULT and KAMANDA_SERVICE_DEFAULT. * common-src/bsd-security.c: Use AMANDA_SERVICE_NAME. * common-src/bsdtcp-security.c: Use AMANDA_SERVICE_NAME. * common-src/bsdudp-security.c: Use AMANDA_SERVICE_NAME. * common-src/util.c: Use AMANDA_SERVICE_NAME. * config/amanda/debugging.m4: Remove AMANDA_WITH_TESTING * configure.in: Remove AMANDA_WITH_TESTING. * oldrecover-src/amrecover.c: Remove SERVICE_SUFFIX. * oldrecover-src/extract_list.c: Remove SERVICE_SUFFIX. * client-src/patch-system.sh: Set SERVICE_SUFFIX to "". 2011-06-21 Jean-Louis Martineau * server-src/chunker.c: Remove file. * server-src/chunker.pl: New perl chunker. * perl/Amanda/Chunker/Controller.pm, perl/Amanda/Chunker/Protocol.pm, perl/Amanda/Chunker/Scribe.pm: Perl object for chunker. * perl/Amanda/Logfile.swg (make_chunker_stats): New function. * perl/Amanda/XferServer.swg: Add Amanda::Xfer::Dest::Holding. * perl/Amanda/Xfer.pod: Document Amanda::Xfer::Dest::Holding. * perl/Amanda/Xfer.swg: Add XMSG_CHUNK_DONE and new xmsg arguments. * perl/Makefile.am: Add Amanda::Chunker::* * server-src/Makefile.am (amlibexec_PROGRAMS): Remove chunker. * server-src/Makefile.am (amlibexec_SCRIPTS_PERL): Add chunker. * server-src/driver.c: Fix for new protocol with chunker. * server-src/driverio.c: Fix for new protocol with chunker. * server-src/driverio.h: Add sendresult in chunker_t. * server-src/xfer-dest-holding.c: New xfer destination for holding disk * server-src/xfer-server.h: Add function for xfer_dest_holding. * xfer-src/xmsg.h: Add XMSG_CHUNK_DONE in xmsg_type. Add header_size, data_size and no_room in XMsg. * installcheck/chunker.pl: Check new chunker protocol. 2011-06-21 Jean-Louis Martineau * man/xml-source/amanda-client.conf.5.xml: Add amdump-server. * man/xml-source/amdump_client.8.xml: Fix doc. 2011-06-21 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Fix add_tapelabel call. 2011-06-20 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Correcly make label with meta and barcode 2011-06-20 Jean-Louis Martineau * man/xml-source/amrecover.8.xml: Document new settranslate command. * recover-src/amrecover.c: Add disk_tpath, * recover-src/amrecover.c (translate_octal): New function. * recover-src/amrecover.h: Add tpath to DIR_ITEM. * recover-src/display_commands.c: Set and use tpath. * recover-src/extract_list.c: Use tpath * recover-src/help.c: Add settranslate command. * recover-src/set_commands.c: Set and tpath. * recover-src/uparse.y: Parse settranslate command. * recover-src/uscan.l: Add SETTRANSLATE keyword. 2011-06-17 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm, perl/Amanda/Recovery/Planner.pm, perl/Amanda/Recovery/Clerk.pm, perl/Amanda/Taper/Scribe.pm: Fix for qw syntax in perl 5.14. 2011-06-13 Francis Galiegue * common-src/match.c: implement regex caching with two mutex-protected GHashTables (one for REG_NEWLINE, one for !REG_NEWLINE) 2011-06-13 Francis Galiegue * common-src/match.c: rename do_validate_regex() to do_regex_compile() 2011-06-13 Francis Galiegue * common-src/match.c: match_word(): earlier init of static data 2011-06-13 Francis Galiegue * common-src/match.c: static corner case regex definitions for match_word() 2011-06-13 Francis Galiegue * common-src/match.c: match_word(): push down nglob variable, rename it to glob_copy 2011-06-13 Francis Galiegue * common-src/match.c: move word wrapping out of match_word() into new helper wrap_word() 2011-06-13 Francis Galiegue * common-src/match.c: ambloc_to_regex(): calculate worst case expansion dynamically 2011-06-13 Francis Galiegue * common-src/match.c: ambloc_to_regex(): pass beginning and end of regex as arguments 2011-06-13 Francis Galiegue * common-src/match.c: group functions logically together, add comments 2011-06-13 Jean-Louis Martineau * perl/Amanda/Taper/Worker.pm: s/messsage/message/. 2011-06-09 Dustin J. Mitchell * client-src/selfcheck.c: Push down tmpbuf and remove some duplicate code; fixes compiles with SAMBA_VERSION not defined 2011-06-09 Francis Galiegue * gnulib/*: revert blind perl one-liner replacement of alloc to g_malloc, by doing the reverse transform exactly 2011-06-09 Francis Galiegue * oldrecover-src/amrecover.c: fix one more wrong g_str_has_prefix() usage 2011-06-09 Jean-Louis Martineau * oldrecover-src/extract_list.c, recover-src/extract_list.c: Fix g_str_has_prefix. * server-src/amtrmlog.c: Revert g_str_has_prefix. fix. 2011-06-09 Jean-Louis Martineau * server-src/amindexd.c: Fix g_str_has_prefix. 2011-06-09 Francis Galiegue * Many files (77): use g_str_equal() insteadl of strcmp(...) == 0 (and reverse),use g_str_has_prefix() instead of strncmp(...) == 0 (and reverse) 2011-06-09 Francis Galiegue * common-src/alloc.c, common-src/amanda.h: goodbye vstrextend() and internal_vstralloc() 2011-06-09 Francis Galiegue * server-src/tapefile.c: list_new_tapes(): replace vstrextend() usage with a GString; rework exit paths 2011-06-09 Francis Galiegue * server-src/dumper.c: delay_one_dump(): replace vstrextend() with a GPtrArray/GString combination; create one local variable 2011-06-09 Francis Galiegue * server-src/dumper.c: startup_dump(): replace vstrextend() with a GString; fix boolean usage 2011-06-09 Francis Galiegue * server-src/driverio.c: dumper_cmd(): replace vstrextend() usage with a GPtrArray, and replace some g_strjoin() usages with g_strdup_printf() 2011-06-09 Francis Galiegue * server-src/diskfile.c: match_disklist(): replace vstrextend() with a GString; fix spelling mistake * installcheck/amadmin.pl: account for spelling mistake 2011-06-09 Francis Galiegue * server-src/diskfile.c: xml_scripts(): replace vstrextend() with a GString 2011-06-09 Francis Galiegue * server-src/diskfile.c: xml_application(): replace vstrextend() with a GString 2011-06-09 Francis Galiegue * server-src/diskfile.c: xml_property(): replace vstrextend() with a GString 2011-06-09 Francis Galiegue * server-src/diskfile.c: xml_estimate(): replace vstrextend() with a GString 2011-06-09 Francis Galiegue * server-src/diskfile.c: xml_optionstr(): replace vstrextend() with a GPtrArray and a GString 2011-06-09 Francis Galiegue * server-src/diskfile.c: optionstr(): replace vstrextend() with a GPtrArray 2011-06-09 Francis Galiegue * server-src/amindexd.c: main(): replace vstrextend() with a GString 2011-06-09 Francis Galiegue * server-src/amcheck.c: start_host(): replace vstrextend() with a GString 2011-06-09 Francis Galiegue * recover-src/extract_list.c: read_amidxtaped_data(): replace vstrextend() with g_strdup_printf() 2011-06-07 Jean-Louis Martineau * application-src/amgtar.c: Do not check optarg, we know it is not null * common-src/conffile.c: Do not check key_ovr, we know it is not null 2011-06-06 Satya Ganga * perl/Amanda/Application/Zfs.pm: Use correct device name, we have to use user provided Disk device name. 2011-06-06 Jean-Louis Martineau * client-src/rundump.c: Fix cast of g_ptr_array_free to (gchar **). 2011-06-04 Francis Galiegue * common-src/util.c: remove usage of vstrextend() by using a GString. No choice here, we have to peek into the GPtrArray. 2011-06-04 Francis Galiegue * common-src/tapelist.c: remove usages of vstrextend() with a GPtrArray/GString combination 2011-06-04 Francis Galiegue * common-src/pipespawn.c: remove usage of vstrextend() with a GPtrArray 2011-06-04 Francis Galiegue * common-src/fileheader.c: remove usage of vstrextend() with a GPtrArray 2011-06-04 Francis Galiegue * common-src/conffile.c: replace the third and final usage of vstrextend() in exinclude_display_str() 2011-06-04 Francis Galiegue * common-src/conffile.c: replace the second usage of vstrextend() in proplist_display_str_foreach_fn() using a GPtrArray 2011-06-04 Francis Galiegue * common-src/conffile.c: replace one usage of vstrextend() in val_t_display_strs() with a GString 2011-06-04 Francis Galiegue * common-src/amservice.c: use a GString in replacement of vstrextend() 2011-06-04 Francis Galiegue * server-src/planner.c: use a GPtrArray to collect client estimate strings 2011-06-04 Francis Galiegue * server-src/planner.c: shortcut when no client estimates are to be done - one less indendation level 2011-06-04 Francis Galiegue * server-src/planner.c: get text-based estimate string generation out of getsize() 2011-06-04 Francis Galiegue * server-src/planner.c: remove variables qname and qdevice 2011-06-04 Francis Galiegue * server-src/planner.c: push down variables qname and qdevice 2011-06-04 Francis Galiegue * server-src/planner.c: use the previously create GString all along to append to the request 2011-06-04 Francis Galiegue * server-src/planner.c: check for the number of estimates available rather than the string concatenation of them 2011-06-04 Francis Galiegue * server-src/planner.c: push up optionstr() check 2011-06-04 Francis Galiegue * server-src/planner.c: rework DLE estimate string generation in the non XML case 2011-06-04 Francis Galiegue * server-src/planner.c: extripate XML DLE estimate generation out of getsize() into a new helper function 2011-06-03 Francis Galiegue * client-src/sendsize.c: remove the second usage of vstrextend() by using g_ptr_array_free(..., FALSE) and g_strjoinv() on an existing GPtrArray; avoid accessing its ->ptr member: you shouldn't do that 2011-06-03 Francis Galiegue * client-src/sendsize.c: remove one usage of vstrextend() by using g_ptr_array_free(..., FALSE) and g_strjoinv() on an existing GPtrArray; avoid accessing its ->ptr member: you shouldn't do that 2011-06-03 Francis Galiegue * client-src/selfcheck.c: build the command line using a GPtrArray instead of vstrextend(); don't peek into the original GPtrArray 2011-06-03 Francis Galiegue * client-src/runtar.c: build the command line using a GPtrArray instead of vstrextend() 2011-06-03 Francis Galiegue * client-src/rundump.c: build the command line using a GPtrArray instead of vstrextend() 2011-06-03 Francis Galiegue * client-src/client_util.c: don't peek into the GPtrArray directly, but use g_ptr_array_free(..., FALSE) and g_strjoinv() instead; this removes a usage of vstrextend() 2011-06-03 Francis Galiegue * application-src/amgtar.c: use a GString to build the error buffer instead of vstrextend() 2011-06-03 Francis Galiegue * amandad-src/amandad.c: replace vstrextend() usage by using a GString 2011-06-03 Francis Galiegue * server-src/planner.c: variable renaming and type change: "time_t estimates" is now "int total_estimates"; new local variable "estimates_for_client" as placeholder for "i" when appropriate 2011-06-03 Francis Galiegue * server-src/planner.c: use g_strdup_printf() instead of g_strjoin() to build various strings; remove 4 local variables in the process 2011-06-03 Francis Galiegue * server-src/planner.c: write the beginning of a request using a GString instead of using g_strjoin() 2011-06-03 Francis Galiegue * server-src/planner.c: deal with noop first, jump to a new label "send", and reindent - one less indentation level 2011-06-03 Francis Galiegue * server-src/planner.c: Define nb_client, nb_server and has_* earlier. This is a preparation for the next commit. 2011-06-03 Francis Galiegue * server-src/planner.c: remove two unused variables 2011-06-02 Francis Galiegue * client-src/sendbackup-dump.c: fix compile error due to undeclared tmpbuf, remove tmpbuf entirely 2011-06-02 Francis Galiegue * Many files (12): remove unndeeded uses of the temporary variable tmpbuf in the g_strdup_printf(e1, e2, ..., NULL) case 2011-06-02 Francis Galiegue * Many files (15): remove unndeeded uses of the temporary variable tmpbuf in the g_strconcat(e1, e2, ..., NULL) case 2011-06-02 Francis Galiegue * Many files (14): remove unndeeded uses of the temporary variable tmpbuf in the g_strconcat(e1, e2, NULL) case 2011-06-02 Francis Galiegue * Many files (14): Get rid of newvstrallocf() * common-src/amanda.h, common-src/alloc.c: remove macro, prototypes, implementation 2011-06-02 Francis Galiegue * Many files (20): Get rid of newvstralloc() * common-src/amanda.h, common-src/alloc.c: remove macro, prototypes, implementation 2011-06-02 Francis Galiegue * Many files (6): Get rid of newstralloc2() * common-src/amanda.h: remove macro 2011-06-02 Francis Galiegue * Many files (28): Get rid of stralloc2() * common-src/amanda.h: remove macro 2011-06-02 Francis Galiegue * Many files (30): Get rid of newstralloc() * common-src/alloc.c, common-src/amanda.h: remove macros, prototypes, implementation 2011-06-02 Francis Galiegue * client-src/getfsent.c: remove dev2rdev() and remnant artifacts in search_fstab() and samefile() * common-src/genversion.c, installcheck/catalogs/chunker-partial.cat: remove RDEV_PREFIX references * config/amanda/devprefix.m4: remove RDEV_PREFIX detection 2011-06-02 Francis Galiegue * common-src/conffile.c: use execute_on_to_string() in val_t_display_strs() 2011-06-02 Francis Galiegue * common-src/conffile.c: use execute_on_to_string() in val_t_display_strs() 2011-06-02 Francis Galiegue * common-src/conffile.c: add execute_on_to_string() helper 2011-06-02 Francis Galiegue * common-src/conffile.h: harden EXECUTE_ON_* macro definitions 2011-06-02 Francis Galiegue * server-src/dumper.c: fix a missing switch of default auth to BSDTCP 2011-06-01 Dustin J. Mitchell * perl/Amanda/Holding.pm: fix _is_datestamp regexp to be anchored and handle errors better (logging and ignoring) 2011-06-01 Francis Galiegue * server-src/diskfile.c: fix a memory leak in xml_scripts() 2011-06-01 Francis Galiegue * server-src/diskfile.c: fix a memory leak in xml_application() 2011-06-01 Francis Galiegue * server-src/cmdline.c: fix braino with g_strjoinv() usage, g_strjoinv("xx", { NULL, }) will return an empty string, not NULL 2011-05-31 Francis Galiegue * server-src/diskfile.[ch]: change method signature for validate_optionstr(), it now returns a gchar ** instead of a GPtrArray *, and the result is dynamicallu allocated * server-src/amcheck.c, server-src/amindexd.c, server-src/driver.c, server-src/planner.c: adapt call sites; fix memory leak for the two latter, and wrong behaviour for all of them (you cannot g_ptr_array_free(..., TRUE) on statically allocated members) 2011-05-31 Jean-Louis Martineau * configure.in: Move AMANDA_S3_DEVICE to do libcurl detection later. 2011-05-31 Jean-Louis Martineau * NEWS, ReleaseNotes: Update for 3.3.0 release. 2011-05-31 Francis Galiegue * server-src/diskfile.c: fix unbalanced tag in xml_estimate() 2011-05-31 Francis Galiegue * server-src/diskfile.c: avoid potential SIGSEGV by trying to assign to local variables "their_features" too soon in optionstr() and xml_optionstr(); also remove an unneeded local variable in both functions 2011-05-31 Francis Galiegue * server-src/diskfile.c: remove unneeded if(var) test in xml_optionstr(), the variable tested was never NULL 2011-05-30 Jean-Louis Martineau * server-src/list_dir.c: fix add_dir_list_item. 2011-05-27 Dan Locks * packaging/rpm/amanda.spec.src: replace enable-as-needed rpm macro with enable_as_needed. 2011-05-24 Dan Locks * packaging/deb/rules: use --enable-as-needed * packaging/rpm/amanda.spec.src: use --enable-as-needed except on sles9, where ld does not have the --as-needed flag. 2011-05-23 Francis Galiegue * common-src/debug.c: debug_unlink_old(): the realloc was meant to happen each time the loop was entered and dbfilename was not NULL, fix 2011-05-24 Jean-Louis Martineau * application-src/ampgsql.pl: Parse and filter stdout/stderr of commands. 2011-05-23 Francis Galiegue * common-src/conffile.c: the prototype for str_keyword() was defined twice, remove one definition 2011-05-23 Francis Galiegue * common-src/krb5-security.c: use cpp's #error to signal the lack of atexit() 2011-05-23 Francis Galiegue * common-src/genversion.c: use do { ... } while(0) to #define the startline() macro 2011-05-23 Francis Galiegue * server-src/cmdline.c: [GLib] rewrite cmdline_format_dumpspec_components() using a GPtrArray and g_strjoinv() 2011-05-23 Francis Galiegue * client-src/sendbackup-dump.c, common-src/debug.c, common-src/krb5-security.c, common-src/security-util.c, recover-src/amrecover.c, recover-src/extract_list.c, server-src/dumper.c, server-src/planner.c: use newstralloc() where possible instead of /^newvstrallocf?/() 2011-05-23 Francis Galiegue * common-src/debug.c: remove tests for failled allocations and allocate directly, failed allocations would make the program abort anyway 2011-05-23 Francis Galiegue * common-src/amanda.h, common-src/alloc.c: remove dead function and prototypes of newalloc() 2011-05-23 Francis Galiegue * common-src/arglist.h: remove * common-src/amanda.h: define the arglist_{start,val,end} macros here * various *.[ch]: redeclare header/static function prototypes using G_GNUC_PRINTF() 2011-05-22 Dustin J. Mitchell * installchecks/Amanda_Config.pl: add columnspec validation tests 2011-05-22 Francis Galiegue * common-src/conffile.c: implement columnspec validation * server-src/amcheck.c: remove columnspec validation in start_server_check() * common-src/columnar.[ch]: remove; update Makefile.am accordingly 2011-05-18 Jean-Louis Martineau * Fix for default BSDTCP auth. 2011-05-18 Jean-Louis Martineau * amandad-src/amandad.c, common-src/conffile.c: Change default auth to bsdtcp. * NEWS, ReleaseNotes: Change default auth to bsdtcp. * example/amanda-client.conf.in, example/amanda.conf.in: Change default auth to bsdtcp. * man/xml-source/amanda-auth.7.xml, man/xml-source/amanda-client.conf.5.xml, man/xml-source/amanda.conf.5.xml, man/xml-source/amrecover.8.xml: Change default auth to bsdtcp. 2011-05-18 Dustin J. Mitchell * common-src/event.c common-src/event.h: add event_loop_run and event_loop_quit to mirror g_main_loop_run/quit * perl/Amanda/MainLoop.swg: use them from Amanda::MainLoop 2011-05-18 Francis Galiegue * amandad-src/amandad.c: remove a stralloc() leftover :( 2011-05-18 Francis Galiegue * amandad-src/amandad.c: use switch instead of if ... else if ... to handle error buffer appends 2011-05-18 Francis Galiegue * amandad-src/amandad.c: append to errbuf when a read error occurs on errfd - the message was created but never used 2011-05-18 Francis Galiegue * amandad-src/amandad.c: ensure NETWORK_BLOCK_BYTES are available to read replies 2011-05-18 Francis Galiegue * amandad-src/amandad.c: factorize reply buffer offset handling, it is the same for n >= 0 2011-05-18 Francis Galiegue * amandad-src/amandad.c: handle reply buffer extension in only one place 2011-05-18 Francis Galiegue * common-src/file.c: GLib: rewrite sanitise_filename() as a simple wrapper over g_strdelimit() 2011-05-18 Francis Galiegue * Many files (51): GLib: change vstralloc(...) for g_strjoin(NULL, ...) * common-src/alloc.c, common-src/amanda.h: remove prototypes/macros of vstralloc() * server-src/driverio.c: add one missing NULL to the list of arguments along the way 2011-05-18 Francis Galiegue * Many files (31): GLib: change vstrallocf() for g_strdup_printf(); change to a simple g_strup() when possible * common-src/alloc.c, common-src/amanda.h: remove prototypes/macros of vstrallocf() 2011-05-18 Francis Galiegue * Many files (54): GLib: change alloc() for g_malloc() * common-src/alloc.c, common-src/amanda.h: remove prototypes/macros of alloc() 2011-05-18 Francis Galiegue * Many files (79): GLib: change stralloc() for g_strdup() * common-src/alloc.c, common-src/amanda.h: remove prototypes/macros of stralloc() 2011-05-17 Jean-Louis Martineau * installcheck/gnutar.pl: Fix gnutar pattern matching for gtar 1.25. 2011-05-17 Jean-Louis Martineau * device-src/ndmp-device.c: s/NDMP4_/NDMP9_/g 2011-05-17 Jean-Louis Martineau * man/xml-source/amrecover.8.xml: Add an AUTH section. 2011-05-13 Francis Galiegue * amandad-src/amandad.c: in recv_errfd(): two more NETWORK_BLOCK_BYTES usages and a fix: g_snprintf() conforms to C99 and the C99 standard states that the result string will always be nul terminated 2011-05-13 Francis Galiegue * amandad-src/amandad.c: in recv_errfd(): fix 'buf' local variable handling (you should write to buf, not &buf, and when n bytes have been read, you should zero byte[n], not byte[n+1]) 2011-05-13 Francis Galiegue * amandad-src/amandad.c: use the NETWORK_BLOCK_BYTES constant to declare the size of local variable 'buf' in recv_errfd() 2011-05-13 Jean-Louis Martineau * perl/Amanda/Taper/Controller.pm, perl/Amanda/Taper/Protocol.pm, perl/Amanda/Taper/Worker.pm: Remove uneeded '#! @PERL@' first line. 2011-05-12 Jean-Louis Martineau * server-src/amdump.pl: s/Catched/Caught/ 2011-05-11 Francis Galiegue * Many files (19): get rid of custom array size calculations, use GLib's G_N_ELEMENTS() instead; some minor cleanups along the way. NOTE: gnulib's sources UNTOUCHED 2011-05-11 Francis Galiegue * Many files (63): get rid of the SIZEOF() macro, replace with sizeof() everywhere 2011-05-11 Francis Galiegue * device-src/device.c: further simplify device name validation; the errmsg argument to validate_device_name() was not necessary anymore, remove and adapt device_open() accordingly 2011-05-12 Jean-Louis Martineau * server-src/amdump.pl: Trap ctrl-c while backup is running, resume by sending email and log rotation. 2011-05-11 Francis Galiegue * server-src/chunker.c: in do_chunk(): full_read() error checking was done only after two calls to amclose(), which potentially sets errno; fix by using read_fully(), capture a possible read error, and check it at the correct place instead 2011-05-11 Francis Galiegue * ndmp-src/amndma_tape_simulator.c: "full_read() vs read(2)" behavior confusion fix; check only for errors 2011-05-11 Francis Galiegue * device-src/xfer-dest-taper-splitter.c: "full_read() vs read(2)" behavior confusion fix; ignore error checking 2011-05-11 Francis Galiegue * amar-src/amar.c: fix "full_read() vs read(2)" behavior confusion, full_read does NOT return -1 on error. Rework the function as to avoid goto. Comment on the fact that we want to read as much as possible even if an error occurs. 2011-05-11 Francis Galiegue * xfer-src/element-glue.c: use read_fully(), and modify error reporting. Since the read operation output can be captured straight on by read_fully(), use that opportunity here instead of grabbing a saved errno 2011-05-11 Francis Galiegue * amar-src/amar.c, common-src/amflock.c, device-src/xfer-dest-taper-cacher.c, server-src/amcheck.c, server-src/chunker.c, server-src/driver.c, server-src/holding.c, server-src/xfer-source-holding.c, xfer-src/element-glue.c, xfer-src/xfer-element.c, xfer-src/xfer-test.c: straight replacement of full_read(...) with read_fully(..., NULL) since in these usages error checking was not done 2011-05-11 Francis Galiegue * common-src/file.[ch]: new read_fully() function, designed to replace usages of full_read() which, even though it shares its prototype with read(2), behaves very differently and leads (and has led) to convoluted codes in some places, and bugs in other places 2011-05-11 Jean-Louis Martineau * perl/Amanda/Script_App.pm: Call finish_application before exit, exit as last statement of the do method. * application-src/amlog-script.pl, application-src/ampgsql.pl, application-src/amraw.pl, application-src/amsamba.pl, application-src/amsuntar.pl, application-src/amzfs-sendrecv.pl, application-src/amzfs-snapshot.pl, application-src/script-email.pl: Add --version option, do not exit at end of command_* method. 2011-05-10 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Call $device->finish() before $device->read_label(), A device must be in ACCESS_NULL for read_label. 2011-05-09 Francis Galiegue * device-src/device.c: rework full device name validation 2011-05-08 Francis Galiegue * device-src/device.c: add missing regfree() in case or regex compile failure 2011-05-07 Francis Galiegue * device-src/ndmp-device.c: fix gcc 4.5.x warnings with enums 2011-05-06 Jean-Louis Martineau * application-src/amgtar.c: Fix errors/warnings found by klocwork * application-src/amstar.c: Fix errors/warnings found by klocwork 2011-05-06 Jean-Louis Martineau * common-src/security-util.c: Fix klocwork bug. 2011-05-05 Jean-Louis Martineau * common-src/conffile.c: Do not crash on unterminated quoted string. 2011-05-05 Jean-Louis Martineau * application-src/amzfs-sendrecv.pl: Implement restore. Generate index with only '/'. * perl/Amanda/Application/Zfs.pm: Add $self->{filesystem} on some command, improve zfs_build_snapshotname. * server-src/list_dir.c (add_dir_list_item): Check if same dump. 2011-05-05 Jean-Louis Martineau * common-src/local-security.c: Call initgroups before executing amandad 2011-05-05 Jean-Louis Martineau * server-src/driver.c: Do not count dup to tape when checking space on holdingdisk. 2011-05-02 Jean-Louis Martineau Fix many errors/warnings found by klocwork * Many files. 2011-04-29 Jean-Louis Martineau * device-src/s3.c: Do not get "location" if bucket_location is not set. 2011-04-29 Jean-Louis Martineau * server-src/driver.c: Reply immediately a NO_NEW_TAPE if taper ask REQUEST_NEW_TAPE after it is in TAPER_STATE_DONE. 2011-04-27 Jean-Louis Martineau * perl/Amanda/Device.swg: Do not crash if an unknown device-property is set. 2011-04-26 Jean-Louis Martineau Fix many errors/warnings found by klocwork * Many files. 2011-04-26 Jean-Louis Martineau * device-src/s3-device.c: Split the threads property in nb_threads_backup and nb_treads_recovery. * man/xml-source/amanda-devices.7.xml: Document it. 2011-04-20 Jean-Louis Martineau * server-src/planner.c: Improve balancing if some dle have strategy noinc or a smaller dumpcycle. 2011-04-19 Jean-Louis Martineau * server-src/amidxtaped.pl: Do the uncompress if client can't do it. 2011-04-19 Jean-Louis Martineau * perl/Amanda/Changer.pm: new changer error: empty. * perl/Amanda/Changer/robot.pm: return empty slot. * perl/Amanda/Taper/Scan/traditional.pm: Handle empty slot. 2011-04-19 Jean-Louis Martineau Make s3 works with Eucalyptus. * device-src/s3-device.c: Add S3_HOST, S3_SERVICE_PATH and S3_SUBDOMAIN properties. Handle NoSuchEntity and BucketAlreadyOwnedByYou error. * device-src/s3.c: Build url from new properties. * device-src/s3.h: New s3_open prototype. * man/xml-source/amanda-devices.7.xml: Document S3_HOST, S3_SERVICE_PATH and S3_SUBDOMAIN properties. 2011-04-18 Jean-Louis Martineau * perl/Amanda/Changer.pm: Check generated label and meta-label. 2011-04-18 Jean-Louis Martineau * man/xml-source/amlabel.8.xml: Improve doc. * server-src/amlabel.pl: Remove spurious print. 2011-04-16 Jean-Louis Martineau * device-src/s3-device.c: Remove volative for s3. 2011-04-15 Jean-Louis Martineau * device-src/s3-device.c: Use multiple threads to do read ahead. 2011-04-12 Jean-Louis Martineau * server-src/amadmin.c: Do not free find result string. * server-src/find.c: Use GStringChunk to store all find_dump string. 2011-04-11 Jean-Louis Martineau * device-src/s3-device.c: Check NULL before freeing self->thread_pool, free self->thread_idle_mutex and self->thread_idle_cond. 2011-04-11 Jean-Louis Martineau * configure.in: Use AMANDA_AS_NEEDED. * config/amanda/as_needed.m4: Add --as-needed, set AS_NEEDED_FLAGS. * client-src/Makefile.am, amandad-src/Makefile.am, ndmp-src/Makefile.am, device-src/Makefile.am, application-src/Makefile.am, xfer-src/Makefile.am, server-src/Makefile.am, amar-src/Makefile.am, common-src/Makefile.am: Add AS_NEEDED_FLAGS to many *_LDFLAGS. 2011-04-11 Jean-Louis Martineau * device-src/s3-device.c: Call device_set_error only from main thread. 2011-04-11 Jean-Louis Martineau * device-src/s3-device.c: Add S3 "THREADS" property, use multiple threads to write to the s3 device. * man/xml-source/amanda-devices.7.xml: Document "THREADS" property for s3 device. 2011-04-11 Jean-Louis Martineau * perl/Amanda/DB/Catalog.pm: Parse negative kb and orig-kb. * perl/Amanda/Logfile.swg: Do not write negative orig-kb. 2011-04-06 Jean-Louis Martineau * man/xml-source/amanda-devices.7.xml: Typo. 2011-04-06 Jean-Louis Martineau * perl/Amanda/Interactivity.pm: Add documentation. 2011-04-06 Jean-Louis Martineau * server-src/driver.c: Fix Computation of data_lost on current and next tape. 2011-04-01 Jean-Louis Martineau * amplot/amplot.awk: Fix for new log format, fix small -t display, fix 'set key' syntax. * amplot/amplot.g: Fix 'set data' and 'plot' syntax. 2011-03-30 Jean-Louis Martineau * installcheck/taper.pl: Fix installcheck for 'splitting not enabled'. 2011-03-30 Jean-Louis Martineau * VERSION: 4.0.0alpha 2011-03-30 Jean-Louis Martineau * device-src/vfs-device.c: LEOM property default to TRUE. 2011-03-30 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Log 'splitting not enabled' on write failure. 2011-03-30 Jean-Louis Martineau * NEWS, ReleaseNotes: Update for 3.3.0 2011-03-30 Jean-Louis Martineau * common-src/conffile.c: Add client-name option to application and script * common-src/conffile.h: Add client-name option to application and script * perl/Amanda/Config.swg: Add APPLICATION_CLIENT_NAME and PP_SCRIPT_CLIENT_NAME. * common-src/amfeatures.c: Add fe_application_client_name and fe_script_client_name. * common-src/amfeatures.h: Add fe_application_client_name and fe_script_client_name. * common-src/amxml.c: Pares client_name * common-src/amxml.h: Add application_client_nake in dle_t and client_name in script_t. * server-src/diskfile.c: Put client-name in xml output. * server-src/amcheck.c: Check client-name and fe_*_client_name. * client-src/client_util.c (merge_properties, merge_dles_properties): new function. * client-src/client_util.h (merge_properties, merge_dles_properties): new prototype. * client-src/selfcheck.c, client-src/sendbackup.c, client-src/sendsize.c: Call merge_dles_properties to merge properties * man/xml-source/amanda-client.conf.5.xml, man/xml-source/amanda.conf.5.xml: Document client-name. * recover-src/extract_list.c: merge properties. * NEWS: Add new features. 2011-03-28 Jean-Louis Martineau * application-src/amlog-script.pl: Remove warning of unused variable. 2011-03-28 Jean-Louis Martineau * server-src/amcheckdump.pl, server-src/amfetchdump.pl, server-src/amidxtaped.pl, server-src/amrestore.pl: Use int(). 2011-03-28 Jean-Louis Martineau * xfer-src/filter-process.c: Call g_critical if pipe() fail. 2011-03-28 Jean-Louis Martineau Change the Amanda:Xfer::Filter::Process api, it always create a pipe for the process stderr, the callers must read from it. Callers can send it to debug file, stderr or to amrecover. * installcheck/Amanda_Xfer.pl: Change for new AXF::Process API. * perl/Amanda/Xfer.pod: Document new AXF::Process API. * perl/Amanda/Xfer.swg: Change for new AXF::Process API. * server-src/amcheckdump.pl, server-src/amfetchdump.pl, server-src/amrestore.pl: Use new AXF::Process API, send it to stderr and debug file. * server-src/amidxtaped.pl: Use new AXF::Process API, send it to debug file and amrecover. * xfer-src/filter-process.c: Remove log_stderr argument of xfer_filter_process, add new get_err_fd method. * xfer-src/xfer-element.h: Change xfer_filter_process prototype. 2011-03-27 Dustin J. Mitchell * perl/Amanda/Util.swg: revert previous patch * gnulib/Makefile.am gnulib/fsusage.h gnulib/regenerate/fsusage-no-bool.patch gnulib/regenerate/regenerate: patch fsusage.h to not use stdbool * device-src/vfs-device.c: don't use 'false' and 'true' (from stdbool) 2011-03-26 Dustin J. Mitchell * perl/Amanda/Util.swg: include fsusage.h early in the generated C to avoid problems with SWIG #undefine-ing 'bool' on Mac OS X with the system-installed Perl 2011-03-25 Jan Görig * config/amanda/krb5-security.m4: fix linking against wrong libraries on systems where krb5 directory is libdir and amanda is installed 2011-03-25 Jean-Louis Martineau * server-src/driver.c: Fix iteration over a list it modify. 2011-03-22 Jean-Louis Martineau * application-src/amstar.c: read include_list and pass each line as argument for restore operation. 2011-03-22 Jean-Louis Martineau * application-src/amgtar.c: Cast with off_t. * application-src/amstar.c: Cast with off_t. 2011-03-21 Jean-Louis Martineau * application-src/amstar.c: Add ACL property. * man/xml-source/amstar.8.xml: Document ACL property. 2011-03-21 Jean-Louis Martineau * config/amanda/dumpers.m4: Add AMANDA_PROG_SUNTAR, --with-suntar=?? * configure.in: Use AMANDA_PROG_SUNTAR. * perl/Amanda/Constants.pm.in: Define $Amanda::Constants::SUNTAR * application-src/amsuntar.pl: Use $Amanda::Constants::SUNTAR, Add SUNTAR-PATH property. * man/xml-source/amsuntar.8.xml: Document SUNTAR-PATH property. 2011-03-15 Jean-Louis Martineau * server-src/find.c: Compute maxparts from the list of part. 2011-03-11 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: If leom is supported by device, then the dle can be split. * perl/Amanda/Taper/Worker.pm: Send leom setting to get_splitting_args_from_config. * server-src/planner.c: dle can use more than one tape if allow-split is set, this is to handle leom device where splitsize can be 0. 2011-03-10 Jean-Louis Martineau * perl/Amanda/Changer/disk.pm: Use -l to check symlink existance. 2011-03-10 Jean-Louis Martineau * server-src/amadmin.c: export quote host and disk name, import parse quoted host and disk name. 2011-03-09 Jean-Louis Martineau * ReleaseNotes, NEWS: Add changes for 3.2.2 and 3.3.0. 2011-03-08 Jean-Louis Martineau * application-src/amsamba.pl: Use smbclient -TF for restore. 2011-03-07 Jean-Louis Martineau * server-src/amtrmidx.c: Fix memory leak. 2011-03-02 Jean-Louis Martineau * common-src/amservice.c; Moved from server-src/amservice.c * server-src/amservice.c: Moved to server-src/amservice.c * common-src/Makefile.am: Add amservice * man/Makefile.am: Install amservice man page on client. * server-src/Makefile.am: Remove amservice 2011-03-01 Jean-Louis Martineau * perl/Amanda/Changer.pm (make_new_tape_label): Fix if $tle is undef. * perl/Amanda/ScanInventory.pm: Call _user_msg with label argument. * perl/Amanda/Taper/Scan.pm: Document new user_msg_fn argument. * perl/Amanda/Taper/Scan/traditional.pm: Call _user_msg on various tape error. * perl/Amanda/Taper/Scribe.pm (_user_msg_fn): Call scribe_notif_log_info with error message. * perl/Amanda/Taper/Worker.pm: Log error in scribe_notif_new_tape. * installcheck/Installcheck/Config.pm: Add taperscan definition. * installcheck/taper.pl: Test new log. 2011-03-01 Jean-Louis Martineau * perl/Amanda/Header.swg: Remove bogus %module. 2011-03-01 Jean-Louis Martineau * common-src/amfeatures.c: Add fe_amrecover_receive_unfiltered. * common-src/amfeatures.h: Add fe_amrecover_receive_unfiltered. * perl/Amanda/Feature.pod: Add fe_amrecover_receive_unfiltered. * perl/Amanda/Header.swg: Add get_dle method, handle dle_t. * recover-src/extract_list.c: Pipe decompression or decyption. * server-src/amidxtaped.pl: Do not decompress/decrypt if amrecover can do it. 2011-02-14 Jean-Louis Martineau * server-src/driver.c: flush even if flush threshold are not met if it save tape space. 2011-02-03 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: get_splitting_args_from_config() always return 'allow_split', get_xfer_dest() take a allow_split param, set $self->{'allow_split'}, Abort a dump on EOM if splitting is not allowed. * perl/Amanda/Taper/Worker.pm: Do not set can_cache_inform if splitting is not allowed. * installcheck/Amanda_Taper_Scribe.pl: Fix for previous change. * installcheck/taper.pl: Test that dump are aborted on EOM. 2011-02-01 Jean-Louis Martineau Patch by Jan Görig * server-src/amrestore.pl: Allow to go to next file with -p. 2011-01-26 Jean-Louis Martineau * perl/Amanda/Logfile.swg: "%lld" do not works with perl-5.6. 2011-01-26 Jean-Louis Martineau * server-src/amdumpd.pl: Add CHECK command. * client-src/amdump_client.pl: Add check command. * man/xml-source/amdump_client.8.xml: Document check command. 2011-01-26 Jean-Louis Martineau * server-src/driver.c: Parse 'bytes' in reply. 2011-01-25 Jean-Louis Martineau * server-src/driver.c: Fix taperalog *FIT no going to second volume. 2011-01-25 Jean-Louis Martineau * perl/Amanda/Logfile.swg: print 'bytes' with 64 bits type. 2011-01-25 Jean-Louis Martineau * perl/Amanda/Logfile.swg: kb must be integer. 2011-01-24 Jean-Louis Martineau * server-src/amcheckdump.pl: Do not quit the clerk if it is not defined 2011-01-22 Jean-Louis Martineau * server-src/amdumpd.pl: Execute "$sbindir/amdump" 2011-01-22 Jean-Louis Martineau * installcheck/Amanda_Config.pl: Check recovery-limit, dump-limit, amdump-server, index-server, tape-server. * installcheck/Makefile.am: Add amdump_client. * installcheck/amdump_client.pl: Test new amdump_client program. 2011-01-22 Jean-Louis Martineau * client-src/Makefile.am: Add amdump_client. * client-src/amdump_client.pl: New client program. * common-src/conffile.c: Add amdump-server in client config file. * common-src/conffile.h: Add CNF_AMDUMP_SERVER * perl/Amanda/Config.swg: Add CNF_AMDUMP_SERVER * man/Makefile.am: Add amdump_client.8. * man/xml-source/amdump_client.8.xml: New man page for amdump_client. 2011-01-22 Jean-Louis Martineau * amandad-src/amandad.c: Add SERVICE_AMDUMPD, All service are active by default for rsh, ssh and local auth. * common-src/conffile.c: Add dump-limit dumptype option. * common-src/conffile.h: Add dump-limit dumptype option. * man/xml-source/amanda.conf.5.xml: Document new dump-limit option. * common-src/local-security.c, common-src/rsh-security.c, common-src/ssh-security.c: Do not add the service on the command line * perl/Amanda/Config.swg: swig dump-limt * server-src/Makefile.am: Add amdumpd perl script. * server-src/amadmin.c (disklist_one): Print dump-limit. * server-src/amdumpd.pl: New deamon script. * server-src/amdump.pl: New --from-client option. * server-src/diskfile.h: Add dump_limit in disk_t. * server-src/diskfile.c: Set dump_limit. * server-src/driver.c: New --from-client option. * server-src/planner.c: New --from-client option. 2011-01-22 Jean-Louis Martineau * common-src/conffile.c: Rename *recovery_limit* *host_limit*, add 'server' in a host-limit. * common-src/conffile.h: Rename. * common-src/local-security.c: Use sec_get_authenticated_peer_name_gethostname. * common-src/security-util.c: New sec_get_authenticated_peer_name_gethostname function to return gethostname. * common-src/security-util.h: New prototype. * man/xml-source/amanda.conf.5.xml: Document 'server' for recovery-limit. * perl/Amanda/Config.swg: Return $Amanda::Config::LIMIT_SAMEHOST same-host, return $Amanda::Config::LIMIT_SERVER for server. * server-src/amidxtaped.pl: Use $Amanda::Config::LIMIT_SAMEHOST and $Amanda::Config::LIMIT_SERVER. * server-src/amindexd.c: Use 'server' value. * installcheck/Amanda_Config.pl: Fix for change. 2011-01-22 Jean-Louis Martineau * server-src/driver.c: Fix driver doing nothing if taper crash early. 2011-01-20 Francis Galiegue * xfer-src/source-pattern.c: remove duplicate test 2011-01-20 Dustin J. Mitchell * man/xml-source/amanda-interactivity.7.xml man/xml-source/amanda-taperscan.7.xml man/xml-source/amanda.conf.5.xml: copyediting * perl/Amanda/Interactivity/tty_email.pm: fix POD to indicate the nature of the class 2011-01-20 Jean-Louis Martineau * man/xml-source/amservice.8.xml: typo, must be at the beginning of a line. 2011-01-20 Jean-Louis Martineau * server-src/amservice.c: Use full_write, check for error. 2011-01-20 Jean-Louis Martineau * server-src/diskfile.c: Do not report error if a dle is listed twice in argument list. * installcheck/amadmin.pl: Test it. 2011-01-20 Jean-Louis Martineau * server-src/amservice.c: Add -s option. * man/xml-source/amservice.8.xml: Document -s option. 2011-01-20 Jean-Louis Martineau * installcheck/Amanda_Taper_Scan_lexical.pl, installcheck/Amanda_Taper_Scan_oldest.pl: Fix for perl-5.6. 2011-01-20 Jean-Louis Martineau * common-src/conffile.c: Add interactivity and taperscan section. * common-src/conffile.h: Add interactivity and taperscan section. * perl/Amanda/Config.swg: Add interactivity and taperscan. * example/amanda.conf.in: Add interactivity and taperscan example. * man/Makefile.am: Add new amanda-interactivity.7 * man/xml-source/amanda-interactivity.7.xml: Document interactivity. * man/xml-source/amanda-taperscan.7.xml: Document new taperscan. * man/xml-source/amanda.8.xml: Add link to amanda-interactivity man page. * man/xml-source/amanda.conf.5.xml: Document interactivity and taperscan section. * perl/Amanda/Changer.pm (new): Take tapelist, labelstr, autolabel and meta_autolabel arguments. * perl/Amanda/Changer.pm (volume_is_labelable, make_new_meta_label, make_new_tape_label, have_inventory: New method. * perl/Amanda/Interactive.pm: Renamed * perl/Amanda/Interactive/stdin.pm: Renamed * perl/Amanda/Interactivity.pm: Copy of Interactive.pm: * perl/Amanda/Interactivity/stdin.pm: Copy of Interactive/stdin.pm. * perl/Amanda/Interactivity/email.pm: New interactivity module. * perl/Amanda/Interactivity/tty.pm: New interactivity module. * perl/Amanda/Interactivity/tty_email.pm: New interactivity module. * perl/Amanda/Recovery/Scan.pm: s/Interactive/Interactivity/. * perl/Amanda/ScanInventory.pm: Base class for scan algorithm. * perl/Amanda/Tapelist.swg (add_tapelabel): Do the add in order. * perl/Amanda/Taper/Controller.pm: Use interactivity and taperscan. * perl/Amanda/Taper/Scan.pm: Allow plugable module. * perl/Amanda/Taper/Scan/lexical.pm: new scan algorithm. * perl/Amanda/Taper/Scan/oldest.pm: new scan algorithm. * perl/Makefile.am: Add new files. * server-src/amcheck-device.pl: Use interactivity and taperscan. * server-src/amcheckdump.pl: Use interactivity and taperscan. * server-src/amfetchdump.pl: Use interactivity and taperscan. * server-src/amidxtaped.pl: Use interactivity and taperscan. * server-src/amtape.pl: Use interactivity and taperscan. * server-src/amvault.pl: Use interactivity and taperscan. * installcheck/Amanda_Changer.pl: Test new methods. * installcheck/Amanda_Changer_compat.pl: Test have_inventory. * installcheck/Amanda_Changer_disk.pl: Test have_inventory. * installcheck/Amanda_Changer_multi.pl: Test have_inventory. * installcheck/Amanda_Changer_ndmp.pl: Test have_inventory. * installcheck/Amanda_Changer_null.pl: Test have_inventory. * installcheck/Amanda_Changer_rait.pl: Test have_inventory. * installcheck/Amanda_Changer_robot.pl: Test have_inventory. * installcheck/Amanda_Config.pl: Test new interactivity and taperscan section. * installcheck/Amanda_Recovery_Scan.pl: s/Interactive/Interactivity/ * installcheck/Amanda_Tapelist.pl: test new add_tapelabel behavior. * installcheck/Amanda_Taper_Scan_lexical.pl: Test new module. * installcheck/Amanda_Taper_Scan_oldest.pl: Test new module. * installcheck/Installcheck/Config.pm (add_interactivity, add_taperscan): New methods. * installcheck/Makefile.am: Add new files. 2011-01-17 Francis Galiegue * xfer-src/element-glue.c: fix memory leak in read_and_push() 2011-01-16 Francis Galiegue * xfer-src/element-glue.c xfer-src/filter-xor.c xfer-src/xfer-element.c xfer-src/xfer-element.h: xfer: rename xfer_element_drain* utility functions - Both functions are used to pulling data from an upstream element, either buffers or reading a file descriptor, until it is "empty". 2011-01-14 Jean-Louis Martineau * ndmp-src/amndma_tape_simulator.c: Use full_read. * ndmp-src/ndma_tape.c: Use ndmchan_n_avail_record to guarantee space for a record. * ndmp-src/ndml_chan.c (ndmchan_n_avail_record): New function. * ndmp-src/ndmlib.h (ndmchan_n_avail_record): New prototype. 2011-01-13 Francis Galiegue * xfer-src/source-pattern.c: xfer-src/source-pattern.c: externalize pattern copying 2011-01-13 Francis Galiegue * xfer-src/element-glue.c: xfer-src/element-glue.c: fix memory leak in pull_buffer_impl() 2011-01-11 Francis Galiegue * xfer-src/xfer-element.h: xfer: define XFER_NROPS() and XFER_NTHREADS() macros * xfer-src/dest-buffer.c xfer-src/dest-directtcp-connect.c xfer-src/dest-directtcp-listen.c xfer-src/dest-fd.c xfer-src/dest-null.c xfer-src/element-glue.c xfer-src/filter-process.c xfer-src/filter-xor.c xfer-src/source-directtcp-connect.c xfer-src/source-directtcp-listen.c xfer-src/source-fd.c xfer-src/source-pattern.c xfer-src/source-random.c xfer-src/xfer-test.c: use them 2011-01-11 Francis Galiegue * common-src/match.c: match.c: rename ammtch_to_regex() into amglob_to_regex() 2011-01-11 Francis Galiegue * common-src/match.c: match.c: rename full_regex_from_expression() to full_amglob_from_expression() 2011-01-11 Jean-Louis Martineau * server-src/planner.c: Change message of "timeout waiting for REP" to "Some estimate timeout on %s, using server estimate if possible". 2011-01-11 Jean-Louis Martineau * man/xml-source/amanda-scripts.7.xml: Document script output property. 2011-01-10 Francis Galiegue * common-src/match.c: match.c: rework regex generation from globs 2011-01-10 Francis Galiegue * common-src/match.c: match.c: match_word(): change the way regex begin and end are calculated/copied 2011-01-10 Francis Galiegue * common-src/match.c: match.c: better handling of "separator only" globs in match_word() 2011-01-10 Francis Galiegue * common-src/match.c: match.c: move glob/disk backslash substitution out of match_word() 2011-01-10 Francis Galiegue * common-src/match.c: match.c: factorize regex construction from expression 2011-01-10 Francis Galiegue * common-src/match.c: match.c: factorize character escaping in make_exact_*_expression() 2011-01-10 Francis Galiegue * common-src/match.c: match.c: factorize regex matching * common-src/match.h: make match and match_no_newline into macros calling do_match 2011-01-10 Francis Galiegue * common-src/match.c: match.c: factorize regex compile 2011-01-10 Francis Galiegue * common-src/match.c: match.c: match_host(): use g_ascii_strdown() to convert to lowercase 2011-01-10 Francis Galiegue * common-src/match.c: match.c: fix '*' and '?' expansion in match_word() 2011-01-10 Francis Galiegue * common-src/match.c: match.c: define a macro to recognize regex metacharacters 2011-01-10 Francis Galiegue * common-src/match.c: match.c: match_host(): remove unneeded cast 2011-01-10 Francis Galiegue * common-src/match.c: match.c: match_word(): rename "i" local variable to "ret" 2011-01-10 Francis Galiegue * common-src/match.c: match.c: match_word(): rename two local variables. Rename r to dst, and w to src, in order to clarify their roles. 2011-01-10 Francis Galiegue * common-src/match.c: match.c: match_word(): remove unused assignment 2011-01-07 Jean-Louis Martineau * application-src/amgtar.c, application-src/amstar.c: Do not call amname_to_dirname. 2011-01-07 Jean-Louis Martineau * common-src/bsd-security.c: Check input fd is a socket. 2011-01-07 Dustin J. Mitchell * common-src/testutils.c: use %ju instead of %lu to print big numbers 2011-01-07 Francis Galiegue * testutils.c: report time of execution for each test 2011-01-07 Francis Galiegue * common-src/testutils.c: add -c option to run tests more than once 2011-01-07 Francis Galiegue * testutils.c: create a run_one_test() function The way to run a test is the same, whether we fork() or not. Make that a function. 2011-01-06 Francis Galiegue * common-src/testutils.c: testutils.c: externalize test behaviour variables 2011-01-06 Francis Galiegue * common-src/amflock-test.c common-src/event-test.c common-src/fileheader-test.c common-src/hexencode-test.c common-src/ipc-binary-test.c common-src/match-test.c common-src/quoting-test.c: Ensure all tests return gbooleans. Most, if not all, tests returned ints, and quite a few of them returned TRUE or FALSE. While the effect is basically the same as a gboolean, make all tests return a gboolean for coherency, since this is what callinfork() expects anyway. * common-src/testutils.c: Also enforce that callinfork() return that type, which, in turn, allows the "success" local variable in testutil_run_tests() to also be converted. 2011-01-06 Francis Galiegue * common-src/testutils.c: convert ints to gbooleans where appropriate; run_all, tu_debugging_enabled and ignore_timeouts are all used as gbooleans in the code even though they are declared as ints. Convert them to booleans, and also change declarations. 2011-01-05 Jean-Louis Martineau * perl/Amanda/Xfer.pod: new offset and size arguments of xfer->start. * perl/Amanda/Xfer.swg: Add xfer_element_set_size. 2011-01-04 Jean-Louis Martineau * device-src/xfer-source-recovery.c: Never send more than the number of bytes requested. * perl/Amanda/Xfer.swg (xfer_start): New offset and size arguments. * xfer-src/xfer-element.c: Add set_size method. * xfer-src/xfer-element.h (XferElement): Add size field. * xfer-src/xfer-test.c: Add offset=0 and size=0 to xfer_start call. * xfer-src/xfer.c (xfer_start): Add offset and size arguments. Call xfer_element_set_size for the first element if size is set. * xfer-src/xfer.h (xfer_start): New prototype. * server-src/amfetchdump.pl, server-src/amidxtaped.pl, server-src/amvault.pl: Call xfer->start() with offset and size arguments. 2011-01-04 Jean-Louis Martineau * perl/Amanda/Logfile.swg: Print size in bytes for taper log. * server-src/find.h (find_result_t): Add bytes. * server-src/find.c: Parse 'bytes' in 'log' file. * perl/Amanda/Report.pm: Parse 'bytes' in 'log' file. * perl/Amanda/DB/Catalog.pm: Parse 'bytes' in 'log' file. * server-src/amstatus.pl: Parse 'bytes' in 'amdump' log file. * installcheck/Amanda_DB_Catalog.pl: Fix for log file format change. * installcheck/taper.pl: Fix for log file format change. 2011-01-03 Jean-Louis Martineau * example/template.d/advanced.conf.in: Remove dumpuser. * server-src/amaddclient.pl: mkdir -p * server-src/amserverconfig.pl: Print dumpuser, Print the authorized_keys file location based on $amhomedir 2010-12-27 Dan Locks * packaging/deb/rules, packaging/rpm/amanda.spec.src: add missing amservice entry to set perms at install time. Thanks to vpatton for finding this. 2010-12-23 Dustin J. Mitchell * client-src/client_util.c: improve error message when no includes match on disk 2010-12-23 Jean-Louis Martineau * perl/Amanda/Script_App.pm: Add FAILURE. 2010-12-21 Jean-Louis Martineau * perl/Amanda/Taper/Scribe.pm: Use 'blocksize' to compute the available space. 2010-12-20 Jean-Louis Martineau * server-src/find.c: Fix parsing 'PARTIAL taper' line with no part. * perl/Amanda/DB/Catalog.pm: Ditto 2010-12-16 Jean-Louis Martineau * amar-src/amar.c: Don't fail on trailing NUL bytes. 2010-12-14 Jean-Louis Martineau * common-src/ssh-security.c: Use client_port. 2010-12-14 Daniel Néri * application-src/ampgsql.pl: Don't assume that gtar is configured to use stdin/stdout as default archive. 2010-12-14 Jean-Louis Martineau * server-src/amidxtaped.pl: Don't crash if same-host doesn't match. 2010-12-13 Jean-Louis Martineau * perl/Amanda/Interactive.pm: rename finished_cb to request_cb. * installcheck/Amanda_Recovery_Scan.pl, perl/Amanda/Interactive/stdin.pm, perl/Amanda/Recovery/Scan.pm, server-src/amcheckdump.pl, server-src/amfetchdump.pl, server-src/amidxtaped.pl, server-src/amvault.pl: s/finished_cb/request_cb/ 2010-12-12 Jean-Louis Martineau * perl/Amanda/Changer/disk.pm: inventory must return the same as read_label. * server-src/amtape.pl: Fix for new inventory. * installcheck/Amanda_Changer_disk.pl: Fix for new inventory. * installcheck/Amanda_Changer_rait.pl: Fix for new inventory. 2010-12-11 Daniel Néri * application-src/ampgsql.pl: Don't assume that gtar is configured to use stdin/stdout as default archive 2010-12-11 Daniel Néri * application-src/ampgsql.pl: Use diskname, not devicename, as prefix when checking for properties. Now works as documented in the ampgsql man page. 2010-12-10 Dan Locks * packaging/deb/control: move gnuplot to Suggests: and swap the order 2010-12-10 David Bogen * server-src/amoverview.pl: fix amoverview's argument parsing 2010-12-10 Jean-Louis Martineau * server-src/amcheck-device.pl: Fix possible hang if Amanda::MainLoop::quit is called before Amanda::MainLoop::run. * perl/Amanda/Changer.pm: Return the error. 2010-12-09 Jean-Louis Martineau * server-src/driver.c: Check if taper is flushing something before moving a dle to directq. 2010-12-09 Jean-Louis Martineau * device-src/xfer-dest-taper-cacher.c: Print why the malloc failed. 2010-12-08 Dustin J. Mitchell * common-src/glib-util.c common-src/glib-util.h: do not define symbol g_slist_free_full, as it exists in glib-2.27 and higher; use slist_free_full, and alias that to g_slist_free_full when building against glib-2.28 or higher. * client-src/client_util.c: make g_slist_free_full_gpointer into a local, static function * common-src/amxml.c common-src/conffile.c recover-src/extract_list.c server-src/amadmin.c server-src/amflush.c server-src/cmdline.c server-src/cmdline.h server-src/find.c server-src/holding.c server-src/planner.c: rename function 2010-12-07 Dan Locks * packaging/rpm/amanda.spec.src: remove manual library requires and set curl vs libcurl based on distro. 2010-12-07 Jean-Louis Martineau * common-src/util.c: s/HAVE_READLINE/HAVE_LIBREADLINE/ * config/amanda/readline.m4: s/HAVE_READLINE/HAVE_LIBREADLINE/ 2010-12-07 Jean-Louis Martineau * config/amanda/readline.m4: Merge with latest AX_LIB_READLINE. * common-src/util.h: Fix for latest AX_LIB_READLINE. 2010-12-06 Dan Locks * packaging/rpm/amanda.spec.src: remove libtermcap.so.2 requirement for newer distros. 2010-12-06 Jean-Louis Martineau * server-src/server_util.c (internal_server_estimate): Do not use level 0 estimate if is not available. 2010-12-04 Jean-Louis Martineau * server-src/dumper.c: Put them in AMANDA_DBGDIR/log.error 2010-12-03 Jean-Louis Martineau * server-src/dumper.c: Put error message in separate files to reduce the size of the log file. 2010-12-01 Jean-Louis Martineau * server-src/chunker.c, xfer-src/element-glue.c: Prefer IPV4 over IPV6. 2010-12-01 Jean-Louis Martineau * common-src/directtcp.h: DirectTCPAddr is a sockaddr_union. * common-src/sockaddr-util.c (str_sockaddr_no_port): new function. * common-src/sockaddr-util.h (str_sockaddr_no_port): New prototype. * perl/amglue/directtcp.swg: Swig new DirectTCPAddr. * server-src/dumper.c: Parse IPV6 in dataport_list. * ndmp-src/ndmpconnobj.c, perl/Amanda/Device.swg, perl/Amanda/Taper/Worker.pm, perl/Amanda/Xfer.swg, server-src/chunker.c, xfer-src/dest-directtcp-connect.c, xfer-src/element-glue.c, xfer-src/source-directtcp-connect.c, xfer-src/source-directtcp-listen.c, xfer-src/xfer-element.h, xfer-src/xfer-test.c: Use new DirectTCPAddr. 2010-11-30 Jean-Louis Martineau * common-src/conffile.c: Add pre-amcheck, post-amcheck, pre-estimate, post-estimate, pre-backup and post-backup to execute-on of script. * common-src/conffile.h: Add EXECUTE_ON_* constants. * application-src/amlog-script.pl: Add new execute-on. * common-src/amxml.c: Parse new execute-on. * man/xml-source/amanda.conf.5.xml: Document them. * perl/Amanda/Config.swg: Add new EXECUTE_ON_* constants. * perl/Amanda/Script.pm: Add new execute-on. * server-src/amcheck.c: Call run_server_global_scripts. * server-src/diskfile.c (get_hostlist): Return the host list. * server-src/diskfile.h (get_hostlist): Add prototype. * server-src/driver.c: Call run_server_global_scripts. * server-src/planner.c: Call run_server_global_scripts. * server-src/server_util.c (run_server_global_scripts): New function. * server-src/server_util.h (run_server_global_scripts): Prototype. 2010-11-30 Jean-Louis Martineau * server-src/server_util.c: Search scripts in APPLICATION_DIR, CONFIG_DIR//application and CONFIG_DIR/application. 2010-11-30 Jean-Louis Martineau * common-src/conffile.c: Add SINGLE-EXECUTION in scripts. * common-src/conffile.h: Add pp_script_get_single_execution. * installcheck/pp-scripts.pl: Test single-execution. * man/xml-source/amanda.conf.5.xml: Document single-execution. * perl/Amanda/Config.swg: Add PP_SCRIPT_SINGLE_EXECUTION. * server-src/server_util.c: Add run_server_host_scripts, rename run_server_scripts to run_server_dle_scripts. * server-src/server_util.h: New prototype. * server-src/amcheck.c, server-src/driver.c, server-src/planner.c: Call new functions. 2010-11-26 Jean-Louis Martineau * installcheck/amreport.pl: Fix for previous patch. 2010-11-26 Jean-Louis Martineau * man/xml-source/amadmin.8.xml, man/xml-source/amcheck.8.xml, man/xml-source/amcheckdump.8.xml, man/xml-source/amdevcheck.8.xml, man/xml-source/amdump.8.xml, man/xml-source/amfetchdump.8.xml, man/xml-source/amflush.8.xml, man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml, man/xml-source/amoverview.8.xml, man/xml-source/amrecover.8.xml, man/xml-source/amreport.8.xml, man/xml-source/amservice.8.xml, man/xml-source/amstatus.8.xml, man/xml-source/amtape.8.xml: Fix synopsis. * device-src/amdevcheck.pl, server-src/amadmin.c, server-src/amcheckdump.pl, server-src/amlabel.pl, server-src/amoverview.pl, server-src/amreport.pl, server-src/amstatus.pl, server-src/amtape.pl: Fix usage. 2010-11-26 Jean-Louis Martineau * common-src/conffile.c: Print configuration option with '-'. * installcheck/Amanda_Config.pl: Fix for '-'. 2010-11-25 Jean-Louis Martineau * perl/make_html.pl: make relative url in index.html. 2010-11-25 Jean-Louis Martineau * perl/make_html.pl: Add amanda version in html headers and footers. 2010-11-25 Jean-Louis Martineau * man/xslt/html.xsl.in: Include Amanda version in HTML headers. 2010-11-22 Jean-Louis Martineau * device-src/Makefile.am: activate-devpay needs gnulib. 2010-11-18 Dan Locks * packaging/rpm/amanda.spec.src: quote both items in boolean comparison to avoid type mismatch. 2010-11-17 Jean-Louis Martineau * common-src/conffile.c: Add CONFTYPE_NO_YES_ALL, change type for autoflush. * common-src/conffile.h: Add CONFTYPE_NO_YES_ALL. * man/xml-source/amanda.conf.5.xml: New autoflush option. * perl/Amanda/Config.swg: Add CONFTYPE_NO_YES_ALL. * server-src/amcheck.c: Use new value of autoflush. * server-src/planner.c: Use new value of autoflush. 2010-11-17 Jean-Louis Martineau * server-src/driver.c: Correctly handle INPUT-ERROR and TAPE-ERROR. 2010-11-17 Jean-Louis Martineau * device-src/xfer-dest-taper-cacher.c, device-src/xfer-dest-taper-splitter.c: Cancel in correct order. Other thread own self->state_mutex while it wait for self->ring* or self->slab* 2010-11-17 Jean-Louis Martineau * device-src/xfer-dest-taper-cacher.c, device-src/xfer-dest-taper-splitter.c: Always call device_finish_file if device_start_file succeed. 2010-11-16 Dan Locks * packaging/rpm/amanda.spec.src: add rhel6 stanza to distro detection 2010-11-16 Jean-Louis Martineau * installcheck/Amanda_Changer_single.pl: Typo. * server-src/amtape.pl: Typo. 2010-11-16 Jean-Louis Martineau * server-src/find.c: Keep the complete error message. 2010-11-16 Jean-Louis Martineau * perl/Amanda/Changer/disk.pm: new MOUNT, UMOUNT, UMOUNT-LOCKFILE and UMOUNT-IDLE properties. * man/xml-source/amanda-changers.7.xml: Add new chg-disk property. * NEWS: Add new chg-disk property. 2010-11-16 Jean-Louis Martineau * perl/Amanda/Changer.pm: Add quit method. * perl/Amanda/Changer/aggregate.pm: Add quit method. * perl/Amanda/Changer/rait.pm: Add quit method. * perl/Amanda/Recovery/Clerk.pm: Call scan quit method. * perl/Amanda/Recovery/Scan.pm: Add quit method. * perl/Amanda/Taper/Controller.pm: Call scan quit method. * perl/Amanda/Taper/Scan.pm: Add quit method. * perl/Amanda/Taper/Scribe.pm: finished_cb to Add scribe_notif_tape_done * server-src/amcheck-device.pl, server-src/amcheckdump.pl, server-src/amidxtaped.pl, server-src/amlabel.pl, server-src/amrestore.pl, server-src/amrmtape.pl, server-src/amtape.pl: Call scan/changer quit method. * server-src/amvault.pl scribe_notif_tape_done with finished_cb. * installcheck/Amanda_Changer.pl, installcheck/Amanda_Changer_compat.pl, installcheck/Amanda_Changer_disk.pl, installcheck/Amanda_Changer_multi.pl, installcheck/Amanda_Changer_ndmp.pl, installcheck/Amanda_Changer_null.pl, installcheck/Amanda_Changer_rait.pl, installcheck/Amanda_Changer_robot.pl, installcheck/Amanda_Changer_single.pl, installcheck/Amanda_Recovery_Clerk.pl, installcheck/Amanda_Recovery_Scan.pl, installcheck/Amanda_Taper_Scan.pl, installcheck/Amanda_Taper_Scan_traditional.pl, installcheck/Amanda_Taper_Scribe.pl, installcheck/amvault.pl: Add call to scan/changer quit method. 2010-11-12 Jean-Louis Martineau * server-src/driverio.c: Don't update last_level/consecutive_runs if the dump failed. 2010-11-11 Nikhil Bhupale * server-src/amtape.pl: Remove call to set_label. * server-src/amrestore.pl: Remove call to set_label. 2010-11-10 Jean-Louis Martineau * config/amanda/progs.m4(AMANDA_PROG_MOUNT, AMANDA_PROG_UMOUNT): find mount and umount binaries * configure.in: Use AMANDA_PROG_MOUNT and AMANDA_PROG_UMOUNT. * perl/Amanda/Constants.pm.in: Define MOUNT and UMOUNT. 2010-11-10 Jean-Louis Martineau * device-src/tape-device.c: Accept LEOM property. 2010-11-10 Jean-Louis Martineau * perl/Amanda/Changer/robot.pm: Fix use of Amanda::Changer->make_error 2010-11-10 Jean-Louis Martineau * common-src/amflock.c (lock_wr, lock_rd, lock_locked): New function * common-src/amflock.h: Add their prototype. * perl/Amanda/Util.swg: Swig them. * perl/Amanda/Util.pod: Docuemnt them. 2010-11-10 Jean-Louis Martineau * perl/Amanda/Changer.pm: Remove the changer cache. * installcheck/Amanda_Taper_Scan_traditional.pl, installcheck/Amanda_Changer_robot.pl, installcheck/Amanda_Changer_ndmp.pl: Do not reset the changer cache. 2010-11-10 Jean-Louis Martineau * perl/Amanda/MainLoop.swg: Add finalize in define_step. * perl/Amanda/MainLoop.pod: Document finalize. 2010-11-10 Jean-Louis Martineau * application-src/amstar.c: Support 'exclude file' and 'exclude list'. * man/xml-source/amstar.8.xml: Document exclude limitation. 2010-11-08 Jean-Louis Martineau * server-src/driver.c: Better handling of dump to tape. Set force_flush to 0 as soon as the runq is empty. * server-src/dumper.c: Improving debugging. 2010-11-08 Jean-Louis Martineau * perl/Amanda/Report.pm: Report driver FAIL as FAILED (not missing). * perl/Amanda/Report/human.pm: Do not report driver error if there is a try. 2010-11-05 Jean-Louis Martineau * man/xml-source/tapelist.5.xml: Document BARCODE and META. 2010-11-05 Jean-Louis Martineau * server-src/amdump.pl: Execute subprocess with the config overwrite. * server-src/amvault.pl: Execute subprocess with the config overwrite. 2010-11-04 Jean-Louis Martineau * server-src/amreport.pl: Set date correctly for amvault run. * perl/Amanda/Report/human.pm: Fix warning. 2010-11-04 Jean-Louis Martineau * perl/Amanda/Changer/aggregate.pm: New changer. * man/xml-source/amanda-changers.7.xml: Document chg-aggregate. * perl/Makefile.am: Add it. * server-src/amtape.pl: Print better message if inventory is not implemented. 2010-11-04 Jean-Louis Martineau * perl/Amanda/Changer.pm: $o $c $m $b in autolabel. * perl/Amanda/Changer.pm: $o $c in meta-autolabel. * server-src/amlabel.pl: New --barcode option,