Thanks very much for that. While we are talking about dump options. Is there a reason why -L is not used?

FreeBSD 'dump' man page

-L      This option is to notify dump that it is dumping a live file sys-
tem. To obtain a consistent dump image, dump takes a snapshot of
            the file system in the .snap directory in the root of the file
            system being dumped and then does a dump of the snapshot.  The
            snapshot is removed when the dump is complete.


Chris


----- Original Message ----- From: "Jean-Louis Martineau" <[EMAIL PROTECTED]>
To: "Chris Stenton" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Thursday, February 15, 2007 12:29 PM
Subject: Re: dump estimate (sendsize) on 2.5.1p3 not working


Chris,

The attached patch fix the problem.
The problem is the two 'S', one of them should be 'h'.

The patch is already in the CVS.

Jean-Louis

Chris Stenton wrote:
Not sure if this is to do with the FreeBSD port but upgrading to
2.5.1p3 from p2 and the dump estimate has stopped working. Here is the
debug output from client sendsize.

sendsize[43898]: time 1.025: calculating for device /dev/da0s1a with ufs
sendsize[43898]: time 1.025: running "/sbin/dump 1SSsf 0 1048576 -
/dev/da0s1a"
sendsize[43898]: time 1.026: running /usr/local/libexec/amanda/killpgrp
sendsize[43898]: time 1.030: dump: tape size must be between 1 and 0
sendsize[43898]: time 1.030: .....


not sure why the extra argument "0" has been added. Any ideas?

Thanks


Chris





--------------------------------------------------------------------------------


diff -u -r --show-c-function --new-file --exclude-from=/home/martinea/src.orig/amanda.diff --ignore-matching-lines='$Id:' amanda-2.5.1p3.new/client-src/sendsize.c amanda-2.5.1p3.new.krb4/client-src/sendsize.c --- amanda-2.5.1p3.new/client-src/sendsize.c 2006-12-22 09:42:42.000000000 -0500 +++ amanda-2.5.1p3.new.krb4/client-src/sendsize.c 2007-02-08 15:13:57.000000000 -0500
@@ -1190,7 +1190,7 @@ getsize_dump(
#  endif
 dumpkeys = vstralloc(level_str,
      PARAM_DUMP_ESTIMATE,
-      PARAM_DUMP_ESTIMATE,
+      PARAM_HONOR_NODUMP,
      "s", "f", NULL);

#  ifdef HAVE_DUMP_ESTIMATE


Reply via email to