* Authors: the Amanda Development Team. Its members are listed in a
* file named AUTHORS, in the root directory of this distribution.
*/
-/* $Id: dumper.c,v 1.75.2.14.2.7.2.17 2003/10/30 18:09:27 martinea Exp $
+/* $Id: dumper.c,v 1.75.2.14.2.7.2.17.2.3 2005/03/31 13:08:05 martinea Exp $
*
* requests remote amandad processes to dump filesystems
*/
NAUGHTY_BITS;
- while(size > 0 && split_size > 0 && dumpsize >= split_size) {
+ /* We open a new chunkfile if */
+ /* We have something to write (dataout < datain) */
+ /* We have a split_size defined (split_size > 0) */
+ /* The current file is already filled (dumpsize >= split_size) */
+
+ while(dataout < datain && split_size > 0 && dumpsize >= split_size) {
amfree(new_filename);
if(use == 0) {
/*
if(cmd == CONTINUE) {
/*
* CONTINUE
+ * serial
* filename
* chunksize
* use
*/
cmdargs.argc++; /* true count of args */
- a = 2;
+ a = 3;
if(a >= cmdargs.argc) {
error("error [dumper CONTINUE: not enough args: filename]");
break;
}
#undef sc
+#define sc "sendbackup: warning"
+ if(strncmp(str, sc, sizeof(sc)-1) == 0) {
+ dump_result = max(dump_result, 1);
+ break;
+ }
+#undef sc
#define sc "sendbackup: error"
if(strncmp(str, sc, sizeof(sc)-1) == 0) {
s += sizeof(sc)-1;