NetBSD Problem Report #38412

From taca@back-street.net  Sat Apr 12 09:55:13 2008
Return-Path: <taca@back-street.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id D191363B8C8
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 Apr 2008 09:55:12 +0000 (UTC)
Message-Id: <20080412095510.0E9645D876@ns.back-street.net>
Date: Sat, 12 Apr 2008 18:55:09 +0900 (JST)
From: taca@back-street.net
Reply-To: taca@back-street.net
To: gnats-bugs@gnats.NetBSD.org
Subject: restore(8) can't handle correctly old incremental dump files
X-Send-Pr-Version: 3.95

>Number:         38412
>Category:       bin
>Synopsis:       restore(8) can't handle correctly old incremental dump files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 12 10:00:00 +0000 2008
>Originator:     Takahiro Kambe
>Release:        NetBSD 4.0_STABLE
>Organization:

>Environment:


System: NetBSD ns.back-street.net 4.0_STABLE NetBSD 4.0_STABLE (EPIA) #7: Sat Mar 22 17:53:01 JST 2008 taca@boy.a.back-street.net:/data/i386/obj4/sys/arch/i386/compile/EPIA i386
Architecture: i386
Machine: i386
>Description:
	NetBSD 4.0's restore(8) can't handle correctly old incremantal
	dump files which backuped on NetBSD 1.6.2 or before.

>How-To-Repeat:
	Try to restore dump files created on NetBSD 1.6.2.

	# restore rf dump.0	(level 0 dump file)
	# restore rf dump.1	(level 1 dump file)

	# /sbin/restore ivf dump.1
	Verify tape and initialize maps
	Dump   date: Thu Jan  1 09:00:00 1970			(Oops!)
	Dumped from: the epoch					(Oops!)
	Level 1 dump of / on host.example.ed.jp:/dev/rwd0a
	Label: none
	Extract directories from tape
	Initialize symbol table.

	When using restore(8) of NetBSD 1.6.2:

	# /netbsd162/restore ivf -
	Verify tape and initialize maps
	Dump   date: Sat Apr 12 09:19:33 2008
	Dumped from: Sat Apr  5 00:21:00 2008
	Level 1 dump of / on host.example.ed.jp:/dev/rwd0a
	Label: none
	Extract directories from tape
	Initialize symbol table.
	restore >

>Fix:
	Old dump files dosen't have c_date and c_ddate field in
	union u_spcl -> struct s_spcl.  But restore(8) command onNetBSD 4.0
	(maybe 2.0 or 3.0) dosen't care for it.

	Use c_old_date and c_old_ddate:

		- dump level is greater than 0.
		- c_date and c_ddate field are zero.

	Other "old" field might be checked.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.