NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/42953: restore reports "too low or too high" incorrectly



>Number:         42953
>Category:       bin
>Synopsis:       restore reports "too low or too high" incorrectly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 10 23:55:00 +0000 2010
>Originator:     The Grey Wolf
>Release:        NetBSD 5.0_RC1 [sources from -current as of this report]
>Organization:
Random Spherical Collisions
>Environment:
        
        
System: NetBSD lothlorien.starwolf.com 5.0_RC1 NetBSD 5.0_RC1 (GENERIC) #0: Wed 
Jan 28 10:59:04 PST 2009 
builds@wb25:/home/builds/ab/netbsd-5/i386/200901280002Z-obj/home/builds/ab/netbsd-5/src/sys/arch/i386/compile/GENERIC
 i386
Architecture: i386
Machine: i386
>Description:
        When restoring from a dump whose header date precedes the last
        restore-from date in the restoresymtable, it incorrectly prints
        out "Incremental dump too high".  The reverse case, obviously, is
        also true.
>How-To-Repeat:
        [ back up /etc/dumpdates before proceeding ]
        [ do not do this in the root directory. ]
        # dump 0auf /path-with-space/root-0.fsd /
        # dump 4auf /path-with-space/root-4.fsd /
        # dump 8auf /path-with-space/root-8.fsd /
        # dump 9auf /path-with-space/root-9.fsd /
        # cd /path-with-space
        # mkdir test
        # cd test
        # restore rf ../root-0.fsd
        # restore rf ../root-8.fsd
        Incremental dump too low
        # restore rf ../root-4.fsd
        # restore rf ../root-4.fsd
        Incremental dump too high
        # : it seems to me that if you are restoring from a postdate,
        # : it should say too high, not too low.
        # : The thought logic used in the decision of which message to print
        # : confuses me.
>Fix:
--- symtab.c.orig       2010-03-10 15:51:10.000000000 -0800
+++ symtab.c    2010-03-10 15:14:16.000000000 -0800
@@ -579,7 +579,7 @@
                 * the next incremental tape
                 */
                if (hdr.dumpdate != dumptime) {
-                       if (hdr.dumpdate < dumptime)
+                       if (hdr.dumpdate >= dumptime)
                                fprintf(stderr, "Incremental tape too low\n");
                        else
                                fprintf(stderr, "Incremental tape too high\n");

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index