summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-03-25 06:03:11 +0000
committerimp <imp@FreeBSD.org>2005-03-25 06:03:11 +0000
commit713c7197f00d5fef5e7b13a0c58c6013fb2fd51c (patch)
treee449f16e210473a0335ef1f58cb6518accaf517f /sbin
parent6d72a7bd6045cc1f68678453d98166ef7d09756a (diff)
downloadFreeBSD-src-713c7197f00d5fef5e7b13a0c58c6013fb2fd51c.zip
FreeBSD-src-713c7197f00d5fef5e7b13a0c58c6013fb2fd51c.tar.gz
c_tapea and c_firstrec are used for TS_TAPE blocks, so convert them
for the old (4.4-lite through FreeBSD 4.x and *BSD) format. It looks like they aren't used for TS_INODE, but conversion costs so little there that I've not removed them there (in case my grep was wrong). This makes at least some of the tapes work for me again. Now, to regresion test all my dusty tapes...
Diffstat (limited to 'sbin')
-rw-r--r--sbin/restore/tape.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c
index 900d9ed..1c8907b 100644
--- a/sbin/restore/tape.c
+++ b/sbin/restore/tape.c
@@ -1088,6 +1088,8 @@ gethead(struct s_spcl *buf)
if (buf->c_magic == NFS_MAGIC) {
buf->c_date = _time32_to_time(buf->c_old_date);
buf->c_ddate = _time32_to_time(buf->c_old_ddate);
+ buf->c_tapea = buf->c_old_tapea;
+ buf->c_firstrec = buf->c_old_firstrec;
}
case TS_END:
buf->c_inumber = 0;
OpenPOWER on IntegriCloud