From: Stelian Pop Date: Thu, 5 May 2011 16:05:40 +0000 (+0000) Subject: Fix restore -P with compressed dumps. X-Git-Tag: release_0_4b44~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e17af4c1a919e1d1456d6079682b63c7df947a7f;p=dump.git Fix restore -P with compressed dumps. --- diff --git a/CHANGES b/CHANGES index 2f8cdc6..78d1a88 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.320 2011/02/21 10:36:47 stelian Exp $ +$Id: CHANGES,v 1.321 2011/05/05 16:05:40 stelian Exp $ Changes between versions 0.4b43 and 0.4b44 (released ?????????????) @@ -18,6 +18,10 @@ Changes between versions 0.4b43 and 0.4b44 (released ?????????????) was introduced in 0.4b42 while adding ext4 support. (Sourceforge bug #3133762). +4. Fix a bug in restore -P where useless index files for compressed + dumps were created (Debian bug #583093). Thanks to + Mark Wooding for the patch. + Changes between versions 0.4b42 and 0.4b43 (released June 11, 2010) =================================================================== diff --git a/restore/tape.c b/restore/tape.c index 4710f88..bd411b9 100644 --- a/restore/tape.c +++ b/restore/tape.c @@ -42,7 +42,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.100 2010/12/06 14:26:51 stelian Exp $"; + "$Id: tape.c,v 1.101 2011/05/05 16:05:40 stelian Exp $"; #endif /* not lint */ #include @@ -2143,6 +2143,10 @@ readtape_comprfile(char *buf) ((struct s_spcl *)&tapebuf[i * TP_BSIZE])->c_magic = 0; numtrec = ntrec; tpb = (struct tapebuf *) tapebuf; +#ifdef USE_QFA + if (createtapeposflag) + (void)GetTapePos(&curtapepos); +#endif /* read the block prefix */ ret = read_a_block(mt, tapebuf, PREFIXSIZE, &rl); @@ -2232,6 +2236,10 @@ readtape_comprtape(char *buf) ((struct s_spcl *)&tapebuf[i * TP_BSIZE])->c_magic = 0; numtrec = ntrec; tpb = (struct tapebuf *) tapebuf; +#ifdef USE_QFA + if (createtapeposflag) + (void)GetTapePos(&curtapepos); +#endif /* read the block */ size = bufsize + PREFIXSIZE;