Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 1999 17:00:04 -0400 (EDT)
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>, freebsd-current@FreeBSD.org
Subject:   Re: is dumpon/savecore broken? 
Message-ID:  <Pine.BSF.4.10.9907201658350.71734-100000@janus.syracuse.net>
In-Reply-To: <21539.932493344@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 20 Jul 1999, Poul-Henning Kamp wrote:

> In message <199907201742.KAA04068@troutmask.apl.washington.edu>, "Steven G. Kar
> gl" writes:
> >
> >During the boot process I see
> 
> >   dumpon: crash dumps to /dev/da0s1b (4, 131073)
> >   checking for core dump...savecore: can't find device 13/131073
> 
> >It seems that the the major device number is reset from 4 to 13.
> 
> >troutmask:kargl[225] swapinfo
> >Device      1K-blocks     Used    Avail Capacity  Type
> >/dev/#B13:0x20001    511872        0   511872     0%    Interleaved
> 
> Yes, all dev_t's which make it out of the kernel have cmajor
> numbers now.
> 
> Try this change to savecore:
> 
> 	/ddname = find_dev/s/BLK/CHR/

No, that's wrong. You cannot do buffered-type IO on a cdev. I committed
a workaround, and now it works. There's no easy way around this, except
possibly making kern.dumpdev a string (makes quite a bit of sense there...)

> 
> 
> --
> Poul-Henning Kamp             FreeBSD coreteam member
> phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
> FreeBSD -- It will take a long time before progress goes too far!
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 

 Brian Fundakowski Feldman      _ __ ___ ____  ___ ___ ___  
 green@FreeBSD.org                   _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!        _ __ | _ \._ \ |) |
       http://www.FreeBSD.org/              _ |___/___/___/ 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9907201658350.71734-100000>