Amanda-Users

Re: amanda-20070530 amrecover problem with restoring from older amanda version.

2007-06-06 17:25:54
Subject: Re: amanda-20070530 amrecover problem with restoring from older amanda version.
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: "McGraw, Robert P." <rmcgraw AT purdue DOT edu>, amanda-users <amanda-users AT amanda DOT org>
Date: Wed, 06 Jun 2007 10:39:15 -0400
Robert,

Did you configure with --with-maxtapeblocksize? What is the value?
What is your blocksize setting in the tapetype?
Did the tape labeled D00005 was written with the same blocksize?

Can you try the attached patch.

Jean-Louis

McGraw, Robert P. wrote:

Jean-Louis,

Here is the amidxtaped that you requested.


amidxtaped: short file header block: 32768 bytes

Not an amanda tape



diff -u -r --show-c-function --new-file 
--exclude-from=/home/martinea/src.orig/amanda.diff 
--ignore-matching-lines='$Id:' amanda-2.5.2/restore-src/restore.c 
amanda-2.5.2.restore/restore-src/restore.c
--- amanda-2.5.2/restore-src/restore.c  2007-05-04 07:39:06.000000000 -0400
+++ amanda-2.5.2.restore/restore-src/restore.c  2007-06-06 10:31:55.000000000 
-0400
@@ -647,7 +647,7 @@ read_file_header(
        fprintf(stderr, "%s: error reading file header: %s\n",
                get_pname(), strerror(errno));
        file->type = F_UNKNOWN;
-    } else if((size_t)bytes_read < blocksize) {
+    } else if((size_t)bytes_read < DISK_BLOCK_BYTES) {
        if(bytes_read == 0) {
            fprintf(stderr, "%s: missing file header block\n", get_pname());
        } else {
<Prev in Thread] Current Thread [Next in Thread>