From 84c248f850f6292f622b774352b7968158c48c61 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 25 Mar 2005 06:03:11 +0000 Subject: [PATCH] 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... --- sbin/restore/tape.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 900d9ed66e37..1c8907b8fae2 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;