#ifndef lint
static const char rcsid[] =
- "$Id: tape.c,v 1.99 2010/06/11 11:19:17 stelian Exp $";
+ "$Id: tape.c,v 1.101 2011/05/05 16:05:40 stelian Exp $";
#endif /* not lint */
#include <config.h>
((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);
((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;
cntloop++;
gethead(&spcl);
} while (!(spcl.c_inumber == theino && spcl.c_type == TS_INODE && spcl.c_date == dumpdate));
+
+ tpblksread = spcl.c_tapea + spcl.c_volume;
#ifdef DEBUG_QFA
fprintf(stderr, "DEBUG: %ld reads\n", cntloop);
fprintf(stderr, "DEBUG: bufsize %ld\n", bufsize);
fprintf(stderr, "DEBUG: ntrec %ld\n", ntrec);
- fprintf(stderr, "DEBUG: %ld reads\n", cntloop);
+ fprintf(stderr, "DEBUG: tapea %d\n", spcl.c_tapea);
+ fprintf(stderr, "DEBUG: tpblksread %ld\n", tpblksread);
#endif
findinode(&spcl);
noresyncmesg = 0;