X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=client-src%2Fsendbackup-dump.c;h=cb87624565257f5556764a132546e1a4c7e69a9c;hb=d3b2175e084f88c8736ad7073eacbf4670147aec;hp=0e10dc702224320282e8304fee284c136f47fbcb;hpb=34197d9f46a5f4e944378cbb65fca32ee0eec7b9;p=debian%2Famanda diff --git a/client-src/sendbackup-dump.c b/client-src/sendbackup-dump.c index 0e10dc7..cb87624 100644 --- a/client-src/sendbackup-dump.c +++ b/client-src/sendbackup-dump.c @@ -24,7 +24,7 @@ * file named AUTHORS, in the root directory of this distribution. */ /* - * $Id: sendbackup-dump.c,v 1.90.2.2 2006/11/24 18:10:38 martinea Exp $ + * $Id: sendbackup-dump.c,v 1.90 2006/07/25 18:10:07 martinea Exp $ * * send backup data using BSD dump */ @@ -41,40 +41,44 @@ static amregex_t re_table[] = { /* the various encodings of dump size */ /* this should also match BSDI pre-3.0's buggy dump program, that produced doubled DUMP: DUMP: messages */ - AM_SIZE_RE("DUMP: [0-9][0-9]* tape blocks", 1024), - AM_SIZE_RE("dump: Actual: [0-9][0-9]* tape blocks", 1024), + AM_SIZE_RE("DUMP: [0-9][0-9]* tape blocks", 1024, 1), + AM_SIZE_RE("dump: Actual: [0-9][0-9]* tape blocks", 1024, 1), AM_SIZE_RE("backup: There are [0-9][0-9]* tape blocks on [0-9][0-9]* tapes", - 1024), + 1024, 1), AM_SIZE_RE("backup: [0-9][0-9]* tape blocks on [0-9][0-9]* tape\\(s\\)", - 1024), + 1024, 1), AM_SIZE_RE("backup: [0-9][0-9]* 1k blocks on [0-9][0-9]* volume\\(s\\)", - 1024), + 1024, 1), AM_SIZE_RE("DUMP: [0-9][0-9]* blocks \\([0-9][0-9]*KB\\) on [0-9][0-9]* volume", - 512), + 512, 1), AM_SIZE_RE("DUMP: [0-9][0-9]* blocks \\([0-9][0-9]*\\.[0-9][0-9]*MB\\) on [0-9][0-9]* volume", - 512), - AM_SIZE_RE("DUMP: [0-9][0-9]* blocks", 512), - AM_SIZE_RE("DUMP: [0-9][0-9]* bytes were dumped", 1), + 512, 1), + AM_SIZE_RE("DUMP: [0-9][0-9]* blocks \\([0-9][0-9]*KB\\)", + 1024, 2), + AM_SIZE_RE("DUMP: [0-9][0-9]* blocks \\([0-9][0-9]*\\.[0-9][0-9]*MB\\)", + 1048576, 2), + AM_SIZE_RE("DUMP: [0-9][0-9]* blocks", 512, 1), + AM_SIZE_RE("DUMP: [0-9][0-9]* bytes were dumped", 1, 1), /* OSF's vdump */ - AM_SIZE_RE("vdump: Dumped [0-9][0-9]* of [0-9][0-9]* bytes", 1), + AM_SIZE_RE("vdump: Dumped [0-9][0-9]* of [0-9][0-9]* bytes", 1, 1), /* DU 4.0a dump */ - AM_SIZE_RE("dump: Actual: [0-9][0-9]* blocks output to pipe", 1024), + AM_SIZE_RE("dump: Actual: [0-9][0-9]* blocks output to pipe", 1024, 1), /* DU 4.0 vdump */ - AM_SIZE_RE("dump: Dumped [0-9][0-9]* of [0-9][0-9]* bytes", 1), + AM_SIZE_RE("dump: Dumped [0-9][0-9]* of [0-9][0-9]* bytes", 1, 1), /* HPUX dump */ - AM_SIZE_RE("DUMP: [0-9][0-9]* KB actual output", 1024), + AM_SIZE_RE("DUMP: [0-9][0-9]* KB actual output", 1024, 1), /* HPUX 10.20 and above vxdump */ - AM_SIZE_RE("vxdump: [0-9][0-9]* tape blocks", 1024), + AM_SIZE_RE("vxdump: [0-9][0-9]* tape blocks", 1024, 1), /* UnixWare vxdump */ - AM_SIZE_RE("vxdump: [0-9][0-9]* blocks", 1024), + AM_SIZE_RE("vxdump: [0-9][0-9]* blocks", 1024, 1), /* SINIX vxdump */ - AM_SIZE_RE(" VXDUMP: [0-9][0-9]* blocks", 512), + AM_SIZE_RE(" VXDUMP: [0-9][0-9]* blocks", 512, 1), /* SINIX ufsdump */ - AM_SIZE_RE(" UFSDUMP: [0-9][0-9]* blocks", 512), + AM_SIZE_RE(" UFSDUMP: [0-9][0-9]* blocks", 512, 1), /* Irix 6.2 xfs dump */ - AM_SIZE_RE("xfsdump: media file size [0-9][0-9]* bytes", 1), + AM_SIZE_RE("xfsdump: media file size [0-9][0-9]* bytes", 1, 1), /* NetApp dump */ - AM_SIZE_RE("DUMP: [0-9][0-9]* KB", 1024), + AM_SIZE_RE("DUMP: [0-9][0-9]* KB", 1024, 1), /* strange dump lines */ AM_STRANGE_RE("should not happen"), @@ -170,11 +174,11 @@ start_backup( /* now do the client-side compression */ - if(options->compress == COMPR_FAST || options->compress == COMPR_BEST) { + if(options->compress == COMP_FAST || options->compress == COMP_BEST) { compopt = skip_argument; #if defined(COMPRESS_BEST_OPT) && defined(COMPRESS_FAST_OPT) - if(options->compress == COMPR_BEST) { + if(options->compress == COMP_BEST) { compopt = COMPRESS_BEST_OPT; } else { compopt = COMPRESS_FAST_OPT; @@ -189,7 +193,7 @@ start_backup( dbprintf((" %s", compopt)); } dbprintf(("\n")); - } else if (options->compress == COMPR_CUST) { + } else if (options->compress == COMP_CUST) { compopt = skip_argument; comppid = pipespawn(options->clntcompprog, STDIN_PIPE, &dumpout, &compout, &mesgf,