Merge tag 'upstream/3.3.3'
authorBdale Garbee <bdale@gag.com>
Wed, 20 Feb 2013 17:36:38 +0000 (10:36 -0700)
committerBdale Garbee <bdale@gag.com>
Wed, 20 Feb 2013 17:36:38 +0000 (10:36 -0700)
Upstream version 3.3.3

13 files changed:
1  2 
client-src/amandates.c
client-src/selfcheck.c
installcheck/Amanda_Config.pl
man/amaddclient.8
man/amanda-auth.7
man/amanda.conf.5
man/amgpgcrypt.8
man/amserverconfig.8
man/amsuntar.8
man/disklist.5
man/xml-source/amanda.conf.5.xml
server-src/amserverconfig.pl
server-src/diskfile.h

diff --combined client-src/amandates.c
index cdeafe3d2bc92e58c771e33308c6325c9e97c56e,f7a3c640ffb0b72d3a042ea4e69935fa72714c05..e19d1d5bc973f94a67826cda8515ed682f7de664
@@@ -1,6 -1,7 +1,7 @@@
  /*
   * 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.
   * All Rights Reserved.
   *
   * Permission to use, copy, modify, distribute, and sell this software and its
@@@ -26,7 -27,7 +27,7 @@@
  /*
   * $Id: amandates.c,v 1.21 2006/07/25 18:35:21 martinea Exp $
   *
 - * manage amandates file, that mimics /etc/dumpdates, but stores
 + * manage amandates file, that mimics /var/lib/dumpdates, but stores
   * GNUTAR dates
   */
  
@@@ -314,7 -315,7 +315,7 @@@ import_dumpdates
  
      devname = amname_to_devname(amdp->name);
  
 -    if((dumpdf = fopen("/etc/dumpdates", "r")) == NULL) {
 +    if((dumpdf = fopen("/var/lib/dumpdates", "r")) == NULL) {
        amfree(devname);
        return;
      }
diff --combined client-src/selfcheck.c
index 746093b571367d0f70803533ddd781cc1eaefdc0,7716c89468e8ed656563d49708213ec9a6c2e442..dfffe2e3c8c214fe3b9b337d97c7ae88dd089f29
@@@ -1,6 -1,7 +1,7 @@@
  /*
   * 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.
   * All Rights Reserved.
   *
   * Permission to use, copy, modify, distribute, and sell this software and its
@@@ -1137,8 -1138,8 +1138,8 @@@ check_overall(void
        check_file(COMPRESS_PATH, X_OK);
  
      if (need_dump || need_xfsdump ) {
 -      if (check_file_exist("/etc/dumpdates")) {
 -          check_file("/etc/dumpdates",
 +      if (check_file_exist("/var/lib/dumpdates")) {
 +          check_file("/var/lib/dumpdates",
  #ifdef USE_RUNDUMP
                       F_OK
  #else
        } else {
  #ifndef USE_RUNDUMP
            if (access("/etc", R_OK|W_OK) == -1) {
 -              g_printf(_("ERROR [dump will not be able to create the /etc/dumpdates file: %s]\n"), strerror(errno));
 +              g_printf(_("ERROR [dump will not be able to create the /var/lib/dumpdates file: %s]\n"), strerror(errno));
            }
  #endif
        }
      }
  
      if (need_vdump) {
 -      if (check_file_exist("/etc/vdumpdates")) {
 -            check_file("/etc/vdumpdates", F_OK);
 +      if (check_file_exist("/var/lib/vdumpdates")) {
 +            check_file("/var/lib/vdumpdates", F_OK);
        }
      }
  
      check_space(AMANDA_DBGDIR, (off_t)64);    /* for amandad i/o */
  #endif
  
 +    check_space("/var/lib", (off_t)64);               /* for /var/lib/dumpdates writing */
      check_space("/etc", (off_t)64);           /* for /etc/dumpdates writing */
      }
  }
@@@ -1233,8 -1233,7 +1234,7 @@@ print_platform(void
        FILE *release = fopen("/etc/lsb-release", "r");
        distro = "Ubuntu";
        if (release) {
-           char *result;
-           while ((result = fgets(line, 1024, release))) {
+           while (fgets(line, 1024, release)) {
                if (strstr(line, "DESCRIPTION")) {
                    platform = strchr(line, '=');
                    if (platform) platform++;
                    if (result) {
                        platform = line;
                    }
+                   fclose(release);
                }
-               fclose(release);
            }
            amfree(uname);
        }
index 27c1ace8e5a2a5f8ef8782c59ffcd6ac3e6d93cf,db6e1225be28179b6fb80c01c41c9d9dd2d4849e..0aac704037a33df665b15fc18c03fa7707753dbb
@@@ -1,8 -1,9 +1,9 @@@
  # Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
  #
- # This program is free software; you can redistribute it and/or modify it
- # under the terms of the GNU General Public License version 2 as published
- # by the Free Software Foundation.
+ # This program is free software; you can redistribute it and/or
+ # modify it under the terms of the GNU General Public License
+ # as published by the Free Software Foundation; either version 2
+ # of the License, or (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful, but
  # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
@@@ -212,7 -213,7 +213,7 @@@ $testconf->add_script('my_script', 
    'plugin' => '"script-email"',
    'execute-on' => 'pre-host-backup, post-host-backup',
    'execute-where' => 'client',
 -  'property' => '"mailto" "amandabackup" "amanda"',
 +  'property' => '"mailto" "backup" "amanda"',
  ]);
  $testconf->add_device('my_device', [
    'comment' => '"my device is mine, not yours"',
@@@ -1134,7 -1135,7 +1135,7 @@@ my $properties = getconf($CNF_PROPERTY)
      );
  
  for my $pn (@prop_names) {
-     is_deeply($properties->{$pn->{'val'}}->{values}, [ "VALUE" ]);
+     is_deeply($properties->{$pn->{'val'}}->{values}, [ "VALUE" ], "property $pn->{'val'}");
  }
  
  $testconf = Installcheck::Config->new();
diff --combined man/amaddclient.8
index 8a892bd24decfcf1ffb0c3b562e0289990b47714,b2759504136e5b94a6249561b656c99a902a3af4..2c947a4b638785ad586ecaea86b07367919b16cd
@@@ -2,12 -2,12 +2,12 @@@
  .\"     Title: amaddclient
  .\"    Author: Kevin Till <kevin.till@zmanda.com>
  .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
- .\"      Date: 07/25/2012
+ .\"      Date: 01/10/2013
  .\"    Manual: System Administration Commands
- .\"    Source: Amanda 3.3.2
+ .\"    Source: Amanda 3.3.3
  .\"  Language: English
  .\"
- .TH "AMADDCLIENT" "8" "07/25/2012" "Amanda 3\&.3\&.2" "System Administration Commands"
+ .TH "AMADDCLIENT" "8" "01/10/2013" "Amanda 3\&.3\&.3" "System Administration Commands"
  .\" -----------------------------------------------------------------
  .\" * Define some portability stuff
  .\" -----------------------------------------------------------------
@@@ -56,7 -56,7 +56,7 @@@ for detail\&.
  .PP
  
  \fBamaddclient\fR
 -must be run by user amandabackup\&.
 +must be run by user backup\&.
  .PP
  \-\-config, \-\-client and \-\-diskdev must be specified\&.
  .SH "OPTIONS"
@@@ -172,7 -172,7 +172,7 @@@ Amanda configuration template files ins
  .PP
  \fB/var/lib/amanda\fR
  .RS 4
 -amandabackup home directory
 +backup home directory
  .RE
  .PP
  \fB/var/lib/amanda/\&.amandahosts\fR
diff --combined man/amanda-auth.7
index d44f5b0456abc7ab1675a0cbc3fbb9761d257283,818e593ac0bfc9a766b6a766cc21acf0cc482fd4..557f093a5524d3428845b15fcbc359812a162c1d
@@@ -2,12 -2,12 +2,12 @@@
  .\"     Title: amanda-auth
  .\"    Author: Jean-Louis Martineau <martineau@zmanda.com>
  .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
- .\"      Date: 07/25/2012
+ .\"      Date: 01/10/2013
  .\"    Manual: Miscellanea
- .\"    Source: Amanda 3.3.2
+ .\"    Source: Amanda 3.3.3
  .\"  Language: English
  .\"
- .TH "AMANDA\-AUTH" "7" "07/25/2012" "Amanda 3\&.3\&.2" "Miscellanea"
+ .TH "AMANDA\-AUTH" "7" "01/10/2013" "Amanda 3\&.3\&.3" "Miscellanea"
  .\" -----------------------------------------------------------------
  .\" * Define some portability stuff
  .\" -----------------------------------------------------------------
@@@ -124,7 -124,7 +124,7 @@@ parameter selects a communication/authe
  .PP
  When Amanda is built, a username is specified with the
  \fB\-\-with\-user\fR
 -option\&. Most Amanda processes run under this user\*(Aqs identity, to minimize security risks\&. In binary distributions, this username is usually one of \*(Aqamanda\*(Aq, \*(Aqamandabackup\*(Aq, or \*(Aqbackup\*(Aq\&. The examples below use \*(Aqamandabackup\*(Aq since it is unambiguous\&. You may need to adjust accordingly for your system\&.
 +option\&. Most Amanda processes run under this user\*(Aqs identity, to minimize security risks\&. In binary distributions, this username is usually one of \*(Aqamanda\*(Aq, \*(Aqbackup\*(Aq, or \*(Aqbackup\*(Aq\&. The examples below use \*(Aqbackup\*(Aq since it is unambiguous\&. You may need to adjust accordingly for your system\&.
  .SS "Authenticated Peer Hostnames"
  .PP
  Amanda\*(Aqs authentication mechanisms provide an authenticated hostname of the system on the other end of the connection, which is used to restrict access to only particular hosts\&. The degree of "authentication" performed on this hostname varies with the authentication mechanism, and is discussed below\&.
@@@ -192,10 -192,10 +192,10 @@@ If service is omitted, it defaults t
  (which is equivalent to
  \fBamdump\fR)\&.
  .PP
 -Example of the \&.amandahosts file on an Amanda client, where \*(Aqamandabackup\*(Aq is the Amanda dumpuser\&.
 +Example of the \&.amandahosts file on an Amanda client, where \*(Aqbackup\*(Aq is the Amanda dumpuser\&.
  .sp
  .nf
 -    \fBamandaserver\&.example\&.com   amandabackup   amdump\fR
 +    \fBamandaserver\&.example\&.com   backup   amdump\fR
  .fi
  .PP
  Example of the \&.amandahosts file on an Amanda server
@@@ -211,7 -211,7 +211,7 @@@ The authentication is done using \&.ama
  The authentication is done using \&.amandahosts files in the Amanda user\*(Aqs home directory\&. It uses UDP protocol between Amanda server and client for data and hence the number of DLEs is limited by the UDP packet size\&. It uses one TCP port to establish the connection and multiplexes all data streams using one port on the server (see PORT USAGE below)\&.
  .SS "bsdtcp communication and authentication"
  .PP
 -The authentication is done using \&.amandahosts files in the backup user\*(Aqs (for example: amandabackup) home directory\&. It uses TCP protocol between Amanda server and client\&. On the client, two reserved ports are used\&. On the server, all data streams are multiplexed to one port (see PORT USAGE below)\&.
 +The authentication is done using \&.amandahosts files in the backup user\*(Aqs (for example: backup) home directory\&. It uses TCP protocol between Amanda server and client\&. On the client, two reserved ports are used\&. On the server, all data streams are multiplexed to one port (see PORT USAGE below)\&.
  .SS "USING INETD SERVER"
  .PP
  Template for Amanda client inetd service entry
  .PP
  Client example of using
  \fBbsd\fR
 -authorization for inetd server given Amanda user is "amandabackup":
 +authorization for inetd server given Amanda user is "backup":
  .sp
  .nf
 -\fB   amanda dgram udp wait amandabackup /path/to/amandad amandad \-auth=bsd amdump\fR
 +\fB   amanda dgram udp wait backup /path/to/amandad amandad \-auth=bsd amdump\fR
  .fi
  .PP
  The same could be used for
@@@ -234,10 -234,10 +234,10 @@@ if specifying \-auth=bsdudp instead of 
  .PP
  Client example of using
  \fBbsdtcp\fR
 -authorization for inetd server given Amanda user is "amandabackup":
 +authorization for inetd server given Amanda user is "backup":
  .sp
  .nf
 -\fB   amanda stream tcp nowait amandabackup /path/to/amandad amandad \-auth=bsdtcp amdump\fR
 +\fB   amanda stream tcp nowait backup /path/to/amandad amandad \-auth=bsdtcp amdump\fR
  .fi
  .PP
  \fBamindexd\fR
@@@ -249,10 -249,10 +249,10 @@@ server arguments for an Amanda server\&
  .PP
  Server example of using
  \fBbsdtcp\fR
 -authorization for inetd server given Amanda user is "amandabackup":
 +authorization for inetd server given Amanda user is "backup":
  .sp
  .nf
 -\fB   amanda stream tcp nowait amandabackup /path/to/amandad amandad \-auth=bsdtcp amdump amindexd amidxtaped\fR
 +\fB   amanda stream tcp nowait backup /path/to/amandad amandad \-auth=bsdtcp amdump amindexd amidxtaped\fR
  .fi
  .PP
  For Amanda version 2\&.5\&.0 and earlier, remember that neither
@@@ -286,8 -286,8 +286,8 @@@ instead and, again, the server must be 
  Example of amindexd and amidxtaped Amanda daemon services configured as their own network services for a 2\&.5\&.0 or earlier server or a newer server having 2\&.5\&.0 or earlier clients
  .sp
  .nf
 -\fB   amandaidx stream tcp nowait amandabackup /usr/local/libexec/amanda/current/amindexd   amindexd\fR
 -\fB   amidxtape stream tcp nowait amandabackup /usr/local/libexec/amanda/current/amidxtaped amidxtaped\fR
 +\fB   amandaidx stream tcp nowait backup /usr/local/libexec/amanda/current/amindexd   amindexd\fR
 +\fB   amidxtape stream tcp nowait backup /usr/local/libexec/amanda/current/amidxtaped amidxtaped\fR
  .fi
  .SS "USING XINETD SERVER"
  .PP
@@@ -315,7 -315,7 +315,7 @@@ parameter can be used with xinetd but i
  .PP
  Client example of using
  \fBbsd\fR
 -authorization for xinetd server and for Amanda user "amandabackup":
 +authorization for xinetd server and for Amanda user "backup":
  .sp
  .nf
  service amanda
        socket_type     = dgram
        protocol        = udp
        wait            = yes
 -      user            = amandabackup
 +      user            = backup
        group           = disk
        groups          = yes
        server          = /path/to/amandad
@@@ -339,7 -339,7 +339,7 @@@ if specifying \-auth=bsdudp instead of 
  .PP
  Client example of using
  \fBbsdtcp\fR
 -authorization for xinetd server and for Amanda user "amandabackup":
 +authorization for xinetd server and for Amanda user "backup":
  .sp
  .nf
  service amanda
        socket_type     = stream
        protocol        = tcp
        wait            = no
 -      user            = amandabackup
 +      user            = backup
        group           = disk
        groups          = yes
        server          = /path/to/amandad
@@@ -589,7 -589,7 +589,7 @@@ For example
  define dumptype rsh_example {
           \&.\&.\&.
           auth "rsh"
 -         client\-username "amandabackup"
 +         client\-username "backup"
           amandad\-path "/usr/lib/exec/amandad"
           \&.\&.\&.
  }
@@@ -616,7 -616,7 +616,7 @@@ When you use a public key on the clien
  Enable SSH authentication and set the \fBssh\-keys\fR option in all DLEs for that host by adding the following to the DLE itself or to the corresponding dumptype in amanda\&.conf:
  
    auth "ssh"
 -  ssh\-keys "/home/amandabackup/\&.ssh/id_rsa_amdump"
 +  ssh\-keys "/home/backup/\&.ssh/id_rsa_amdump"
  
  \fBssh\-keys\fR is the path to the private key on the client\&. If the username to which Amanda should connect is different from the default, then you should also add
  
diff --combined man/amanda.conf.5
index a909f2047ffec4bf161f7ea602c8fca6c35223fd,d26aab2cccd2a52df1a6c7e0d6630f152ed7835d..111c0e074c97c8ff660ac3b015e0de3f25cc4eb7
@@@ -2,12 -2,12 +2,12 @@@
  .\"     Title: amanda.conf
  .\"    Author: James da Silva <jds@amanda.org>
  .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
- .\"      Date: 07/25/2012
+ .\"      Date: 01/10/2013
  .\"    Manual: File formats and conventions
- .\"    Source: Amanda 3.3.2
+ .\"    Source: Amanda 3.3.3
  .\"  Language: English
  .\"
- .TH "AMANDA\&.CONF" "5" "07/25/2012" "Amanda 3\&.3\&.2" "File formats and conventions"
+ .TH "AMANDA\&.CONF" "5" "01/10/2013" "Amanda 3\&.3\&.3" "File formats and conventions"
  .\" -----------------------------------------------------------------
  .\" * Define some portability stuff
  .\" -----------------------------------------------------------------
@@@ -287,6 -287,28 +287,28 @@@ Never send an email\&
  .RE
  .RE
  .PP
+ \fBreport\-use\-media\fR \fIboolean\fR
+ .RS 4
+ Default:
+ \fITrue\fR
+ if
+ \fBmax\-dle\-by\-volume\fR
+ is not set,
+ \fIFalse\fR
+ if it is set\&. If the reporter must print the list of media used in the run\&.
+ .RE
+ .PP
+ \fBreport\-next\-media\fR \fIboolean\fR
+ .RS 4
+ Default:
+ \fITrue\fR
+ if
+ \fBmax\-dle\-by\-volume\fR
+ is not set,
+ \fIFalse\fR
+ if it is set\&. If the reporter must print the list of media expected for the next run\&.
+ .RE
+ .PP
  \fBmax\-dle\-by\-volume\fR \fIint\fR
  .RS 4
  Default:
@@@ -1713,8 -1735,8 +1735,8 @@@ keyword append the values to the list o
  \fBrecord\fR \fIboolean\fR
  .RS 4
  Default:
 -\fByes\fR\&. Whether to ask the backup program to update its database (e\&.g\&.
 -/etc/dumpdates
 +\fIyes\fR\&. Whether to ask the backup program to update its database (e\&.g\&.
 +/var/lib/dumpdates
  for DUMP or
  /usr/local/var/amanda/gnutar\-lists
  for GNUTAR) of time stamps\&. This is normally enabled for daily backups and turned off for periodic archival runs\&.
@@@ -1967,9 -1989,7 +1989,7 @@@ The default unit is Kbytes if it is no
  .PP
  \fBpart\-size\fR \fIint\fR
  .RS 4
- Default: none\&. This is the size (in KB if no units are specified) of each split part written to the volume\&. It is reduced to
- \fBpart\-cache\-max\-size\fR
- when part caching is required\&. If this is set to zero, then no splitting will take place; in this case, some devices can span dumps from volume to volume, while others will cause the entire dump to fail if they encounter end\-of\-medium before the dump is complete\&. See "Dump Splitting Configuration" below\&.
+ If this is set to zero (default), then no splitting will take place, and the entire dump will fail, if end\-of\-medium is encountered before the dump is complete, unless the device property LEOM is true, and the device can detect EOM\&. See "Dump Splitting Configuration" below\&.
  .RE
  .PP
  \fBpart\-cache\-type\fR [ \fBnone\fR | \fBdisk\fR | \fBmemory\fR ]
diff --combined man/amgpgcrypt.8
index 3ea03b2670375716b7b7e012dc0bfd8cc547f8cf,3b7fdb1f02416505224f32b7fbfc9af0aeb693b8..83053a34e215bf05e16bdce424f5f8be3d9c6dba
@@@ -2,12 -2,12 +2,12 @@@
  .\"     Title: amgpgcrypt
  .\"    Author: Kevin Till <kevin.till@zmanda.com>
  .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
- .\"      Date: 07/25/2012
+ .\"      Date: 01/10/2013
  .\"    Manual: System Administration Commands
- .\"    Source: Amanda 3.3.2
+ .\"    Source: Amanda 3.3.3
  .\"  Language: English
  .\"
- .TH "AMGPGCRYPT" "8" "07/25/2012" "Amanda 3\&.3\&.2" "System Administration Commands"
+ .TH "AMGPGCRYPT" "8" "01/10/2013" "Amanda 3\&.3\&.3" "System Administration Commands"
  .\" -----------------------------------------------------------------
  .\" * Define some portability stuff
  .\" -----------------------------------------------------------------
@@@ -98,11 -98,11 +98,11 @@@ You need a User\-ID to identify your ke
  from Real Name, Comment and Email Address in this form:
      "Heinrich Heine (Der Dichter) (heinrichh@duesseldorf\&.de)"
  
 -Real name: amandabackup
 +Real name: backup
  Email address:
 -Comment: gpg keys for amandabackup
 +Comment: gpg keys for backup
  You selected this USER\-ID:
 -    "amandabackup (gpg keys for amandabackup)"
 +    "backup (gpg keys for backup)"
  
  Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
  You need a Passphrase to protect your secret key\&.
@@@ -120,7 -120,7 +120,7 @@@ generator a better chance to gain enoug
  public and secret key created and signed\&.
  key marked as ultimately trusted\&.
  
 -pub  1024D/4417A8CB 2006\-02\-07 amandabackup (gpg keys for amandabackup)
 +pub  1024D/4417A8CB 2006\-02\-07 backup (gpg keys for backup)
       Key fingerprint = 139C 6369 44FC 7F1A 655C  E5E9 7EAA 515A 4417 A8CB
  sub  1024g/8C3A6A78 2006\-02\-07 [expires: 2006\-08\-06]
  .fi
diff --combined man/amserverconfig.8
index b6d433effdd40a6a6fbfb4a6135f369b81745faf,06b3715153acd4a0f1bcd651e315cce7550e5fd8..f2973464079bfe11a48dad571866e5240c385ac6
@@@ -2,12 -2,12 +2,12 @@@
  .\"     Title: amserverconfig
  .\"    Author: Kevin Till <kevin.till@zmanda.com>
  .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
- .\"      Date: 07/25/2012
+ .\"      Date: 01/10/2013
  .\"    Manual: System Administration Commands
- .\"    Source: Amanda 3.3.2
+ .\"    Source: Amanda 3.3.3
  .\"  Language: English
  .\"
- .TH "AMSERVERCONFIG" "8" "07/25/2012" "Amanda 3\&.3\&.2" "System Administration Commands"
+ .TH "AMSERVERCONFIG" "8" "01/10/2013" "Amanda 3\&.3\&.3" "System Administration Commands"
  .\" -----------------------------------------------------------------
  .\" * Define some portability stuff
  .\" -----------------------------------------------------------------
@@@ -40,7 -40,7 +40,7 @@@ will setup initial Amanda configuratio
  \fBamserverconfig\fR
  does not change existing Amanda configurations\&.
  \fBamserverconfig\fR
 -must be run by user amandabackup\&.
 +must be run by user backup\&.
  .SH "OPTIONS"
  .PP
  Options may be abbreviated, as long as the abbreviation is not ambiguous\&. Option argument can either separated by \*(Aq=\*(Aq or a space\&. Example: \-\-templ=harddisk \-\-tapedev /dev/nst0
@@@ -61,7 -61,7 +61,7 @@@ are the valid inputs for this option\&
  .sp
  If tape\-changer is chosen for this option, program mtx is required\&.
  \fBamserverconfig\fR
 -will search for mtx in the following directory: "/usr/sbin", "/usr/local/sbin", "/usr/local/bin", "/usr/bin", "/bin" and amandabackup\*(Aqs PATH\&.
 +will search for mtx in the following directory: "/usr/sbin", "/usr/local/sbin", "/usr/local/bin", "/usr/bin", "/bin" and backup\*(Aqs PATH\&.
  .sp
  If harddisk is chosen and \-\-no\-vtape is not specified,
  \fBamserverconfig\fR
@@@ -107,7 -107,7 +107,7 @@@ The type of tape drive associated with 
  .PP
  \fB\-\-mailto mailto\fR
  .RS 4
 -A space separated list of recipients for mail reports\&. default [amandabackup]
 +A space separated list of recipients for mail reports\&. default [backup]
  .RE
  .PP
  \fB\-\-dumpcycle dumpcycle\fR
@@@ -143,7 -143,7 +143,7 @@@ Amanda configuration template files ins
  .PP
  \fB/var/lib/amanda\fR
  .RS 4
 -amandabackup home directory
 +backup home directory
  .RE
  .PP
  \fB/var/lib/amanda/gnutar\-lists\fR
diff --combined man/amsuntar.8
index 54da0f06b2f216ff51d5f3150b610dd4f549dc92,67d79e57a8297256c181ebaf6cdfa00cab08389f..0c015a94a8726fa775c240929dac02592abebce5
@@@ -2,12 -2,12 +2,12 @@@
  .\"     Title: amsuntar
  .\"    Author: Satya Ganga <gast@zmanda.com>
  .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
- .\"      Date: 07/25/2012
+ .\"      Date: 01/10/2013
  .\"    Manual: System Administration Commands
- .\"    Source: Amanda 3.3.2
+ .\"    Source: Amanda 3.3.3
  .\"  Language: English
  .\"
- .TH "AMSUNTAR" "8" "07/25/2012" "Amanda 3\&.3\&.2" "System Administration Commands"
+ .TH "AMSUNTAR" "8" "01/10/2013" "Amanda 3\&.3\&.3" "System Administration Commands"
  .\" -----------------------------------------------------------------
  .\" * Define some portability stuff
  .\" -----------------------------------------------------------------
@@@ -37,7 -37,7 +37,7 @@@ Th
  \fBdiskdevice\fR
  in the disklist (DLE) must be the directory to backup\&.
  .PP
 -Solaris 10 supports Role Based Access Control(RBAC) which is enabled by default\&. To run backup operations using sun tar utility by under privileged user like amandabackup, amandabackup user need to have proper roles and profiles, specially "Media Backup" profile/role\&. This can be done using \*(Aqusermod \-P "Media Backup" amandabackup\*(Aq command\&.
 +Solaris 10 supports Role Based Access Control(RBAC) which is enabled by default\&. To run backup operations using sun tar utility by under privileged user like backup, backup user need to have proper roles and profiles, specially "Media Backup" profile/role\&. This can be done using \*(Aqusermod \-P "Media Backup" backup\*(Aq command\&.
  .SH "PROPERTIES"
  .PP
  This section lists the properties that control amsuntar\*(Aqs functionality\&. See
diff --combined man/disklist.5
index 6200b136465ded1387d9d1e35ae5482ceee72a25,b33b9d01e3cdb71de10eb1cbd66482ccb93fc8ff..f66ea8fc264e7fd7437285f266852d36fcb57d69
@@@ -2,12 -2,12 +2,12 @@@
  .\"     Title: disklist
  .\"    Author: James da Silva <jds@amanda.org>
  .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
- .\"      Date: 07/25/2012
+ .\"      Date: 01/10/2013
  .\"    Manual: File formats and conventions
- .\"    Source: Amanda 3.3.2
+ .\"    Source: Amanda 3.3.3
  .\"  Language: English
  .\"
- .TH "DISKLIST" "5" "07/25/2012" "Amanda 3\&.3\&.2" "File formats and conventions"
+ .TH "DISKLIST" "5" "01/10/2013" "Amanda 3\&.3\&.3" "File formats and conventions"
  .\" -----------------------------------------------------------------
  .\" * Define some portability stuff
  .\" -----------------------------------------------------------------
@@@ -110,7 -110,7 +110,7 @@@ defined in th
  \fBamanda\&.conf\fR
  file\&.
  \fIDumptype\fRs specify backup related parameters, such as whether to compress the backups, whether to record backup results in
 -/etc/dumpdates, the disk\*(Aqs relative priority, etc\&.
 +/var/lib/dumpdates, the disk\*(Aqs relative priority, etc\&.
  .RE
  .PP
  \fIspindle\fR
index f986fb476ac4d3f8bd732c4541178c943f9159dd,c6ab2ecd3306a65b5114d26538389411614ae3a3..abacce1cfc98dc2c63bb8a7bd5455bcaa3aaadfb
@@@ -349,6 -349,28 +349,28 @@@ Specify which types of messages will tr
    </listitem>
    </varlistentry>
  
+   <varlistentry>
+   <term><amkeyword>report-use-media</amkeyword> <amtype>boolean</amtype></term>
+   <listitem>
+ <para>Default:
+ <amdefault>True</amdefault> if <amkeyword>max-dle-by-volume</amkeyword>
+ is not set,
+ <amdefault>False</amdefault> if it is set.
+ If the reporter must print the list of media used in the run.</para>
+   </listitem>
+   </varlistentry>
+   <varlistentry>
+   <term><amkeyword>report-next-media</amkeyword> <amtype>boolean</amtype></term>
+   <listitem>
+ <para>Default:
+ <amdefault>True</amdefault> if <amkeyword>max-dle-by-volume</amkeyword>
+ is not set,
+ <amdefault>False</amdefault> if it is set.
+ If the reporter must print the list of media expected for the next run.</para>
+   </listitem>
+   </varlistentry>
    <varlistentry>
    <term><amkeyword>max-dle-by-volume</amkeyword> <amtype>int</amtype></term>
    <listitem>
@@@ -2200,8 -2222,8 +2222,8 @@@ the property to set, and the others con
    <term><amkeyword>record</amkeyword> <amtype>boolean</amtype></term>
    <listitem>
  <para>Default:
 -<amkeyword>yes</amkeyword>.
 -Whether to ask the backup program to update its database (e.g. <filename>/etc/dumpdates</filename>
 +<emphasis remap='I'>yes</emphasis>.
 +Whether to ask the backup program to update its database (e.g. <filename>/var/lib/dumpdates</filename>
  for DUMP or <filename>/usr/local/var/amanda/gnutar-lists</filename> for GNUTAR) of time stamps.
  This is normally enabled for daily backups and turned off for periodic archival runs.</para>
    </listitem>
@@@ -2506,13 -2528,10 +2528,10 @@@ tape devices
    <varlistentry>
    <term><amkeyword>part-size</amkeyword> <amtype>int</amtype></term>
    <listitem>
- <para>Default: none.  This is the size (in KB if no units are specified) of
- each split part written to the volume.  It is reduced to
- <amkeyword>part-cache-max-size</amkeyword> when part caching is required.
- If this is set to zero, then no splitting will take place; in this case,
- some devices can span dumps from volume to volume, while others will cause
- the entire dump to fail if they encounter end-of-medium before the dump is
- complete.  See "Dump Splitting Configuration" below.</para>
+ <para>If this is set to zero (default), then no splitting will take place,
+ and the entire dump will fail, if end-of-medium is encountered before
+ the dump is complete, unless the device property LEOM is true, and the
+ device can detect EOM.  See "Dump Splitting Configuration" below.</para>
    </listitem>
    </varlistentry>
  
index 9357116dff1a46fac9631035552975c4399d55b5,cef77e32b0f8d881ed89138f9d5d021c19b83529..919c71072f2f7a05770c85d20fe84278b4966531
@@@ -2,9 -2,10 +2,10 @@@
  #
  # Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
  #
- # This program is free software; you can redistribute it and/or modify it
- # under the terms of the GNU General Public License version 2 as published
- # by the Free Software Foundation.
+ # This program is free software; you can redistribute it and/or
+ # modify it under the terms of the GNU General Public License
+ # as published by the Free Software Foundation; either version 2
+ # of the License, or (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful, but
  # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
@@@ -31,7 -32,7 +32,7 @@@ use Amanda::Constants
  
  my $confdir="$CONFIG_DIR";
  my $tmpdir="$AMANDA_DBGDIR";
 -my $amandahomedir="$localstatedir/lib/amanda";
 +my $amandahomedir="$localstatedir/amanda";
  my $templatedir="$amdatadir/template.d"; #rpm install template files here
  my $def_tapedev="file:$amandahomedir/vtapes";
  
diff --combined server-src/diskfile.h
index c2d7d073a8b71660a01d2d7f0dda47f9ae714ce2,6138d5fb27b6494c4051f819715a21bbd414eb13..5d744609c82f493ecfffab8b895e274b0f929bb7
@@@ -1,6 -1,7 +1,7 @@@
  /*
   * 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.
   * All Rights Reserved.
   *
   * Permission to use, copy, modify, distribute, and sell this software and its
@@@ -112,7 -113,7 +113,7 @@@ typedef struct disk_s 
      char      *clnt_decrypt_opt;      /* client-side decryption option parameter to use */
      double    comprate[2];            /* default compression rates */
      /* flag options */
 -    int               record;                 /* record dump in /etc/dumpdates ? */
 +    int               record;                 /* record dump in /var/lib/dumpdates ? */
      int               skip_incr;              /* incs done externally ? */
      int               skip_full;              /* fulls done externally ? */
      int               to_holdingdisk;         /* use holding disk ? */
@@@ -178,8 -179,10 +179,10 @@@ char *xml_dumptype_properties(disk_t *d
   */
  void disable_skip_disk(disklist_t *origqp);
  
- char *match_disklist(disklist_t *origqp, int sargc, char **sargv);
- gboolean match_dumpfile(dumpfile_t *file, int sargc, char **sargv);
+ char *match_disklist(disklist_t *origqp, gboolean exact_match, int sargc,
+                    char **sargv);
+ gboolean match_dumpfile(dumpfile_t *file, gboolean exact_match, int sargc,
+                       char **sargv);
  void free_disklist(disklist_t *dl);
  
  netif_t *disklist_netifs(void);