[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-dump-devel
Subject:    Re: [Dump-devel] restore segfault
From:       Stelian Pop <stelian () popies ! net>
Date:       2004-01-22 9:57:15
Message-ID: 20040122095715.GK15230 () deep-space-9 ! dsnet
[Download RAW message or body]

On Wed, Jan 21, 2004 at 05:20:32PM -0700, Patrick Higgins wrote:

> I'm trying to restore a dump created on Solaris 7 with ufsdump. I have
> been able to get partial filesystem dumps to restore correctly, but full
> filesystem dumps cause a crash.
> 
> I've used gdb to track the crash down, and is included at the bottom. I
> don't know what the fix should be, yet.
[...]

A genuine bug, here's the fix:

diff -uNr --exclude=CVS dump.orig/restore/tape.c dump/restore/tape.c
--- dump.orig/restore/tape.c    2003-11-22 17:52:16.000000000 +0100
+++ dump/restore/tape.c 2004-01-22 10:35:55.000000000 +0100
@@ -413,6 +413,7 @@
                dump_ino_t oldmaxino = maxino;
                maxino += (spcl.c_count * TP_BSIZE * NBBY) + 1;
                resizemaps(oldmaxino, maxino);
+               map = usedinomap;
 
                spcl.c_dinode.di_size = spcl.c_count * TP_BSIZE;
                getfile(xtrmap, xtrmapskip);

This will fix the segfault, but it still doesn't work on the
incremental you posted, which seems to be incorrect (no TS_BITS
header...). Maybe it will work on the full dump ?

Stelian.
-- 
Stelian Pop <stelian@popies.net>


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Dump-devel mailing list
Dump-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dump-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic