From owner-freebsd-current Tue Jul 20 14: 0:27 1999 Delivered-To: freebsd-current@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id EA72A153E1 for ; Tue, 20 Jul 1999 14:00:13 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id RAA71869; Tue, 20 Jul 1999 17:00:04 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Tue, 20 Jul 1999 17:00:04 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Poul-Henning Kamp Cc: "Steven G. Kargl" , freebsd-current@FreeBSD.org Subject: Re: is dumpon/savecore broken? In-Reply-To: <21539.932493344@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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