From owner-freebsd-arch@FreeBSD.ORG Fri Feb 17 18:45:08 2012 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98A2B106566B; Fri, 17 Feb 2012 18:45:08 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) by mx1.freebsd.org (Postfix) with ESMTP id 756648FC14; Fri, 17 Feb 2012 18:45:08 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id q1HIj1vP011584; Fri, 17 Feb 2012 10:45:05 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201202171845.q1HIj1vP011584@gw.catspoiler.org> Date: Fri, 17 Feb 2012 10:45:01 -0800 (PST) From: Don Lewis To: dougb@FreeBSD.org In-Reply-To: <4F3E28FF.1060209@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: arch@FreeBSD.org Subject: Re: [patch] allow crash dumps to Linux swap partitions X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 18:45:08 -0000 On 17 Feb, Doug Barton wrote: > On 01/08/2012 12:35, Don Lewis wrote: >> I've got a machine that is set up to dual boot both FreeBSD and Linux. >> It is also disk space impaired, so to make the best use possible of the >> available space, I have FreeBSD set up to swap to the Linux swap >> partition. Until now I haven't had working crash dumps because geom >> didn't permit crash dumps to Linux swap partitions. This patch removes >> that limitation. This could be useful for users of laptops who boot >> multiple operating systems. > > > So I gave this a try, and I'm getting this: > > > GEOM_PART:dumpon: ioctl(DIOCSKERNELDUMP)P: artition 'ad0s4' not > suitable for kernel dumps (wrong type?) > Operation not supported by device > /etc/rc: WARNING: unable to specify /dev/ad0s7 as a dump device > > I'm guessing that this is due to ad0s7 being in an extended partition. > So I take it we have no support for dumping to logical partition? I made the same change to g_part_ebr.c that I made to g_part_mbr.c but I didn't have a way of testing it because I don't have any drives with extended partitions. Is the partition type 0x82? Maybe there's another problem in g_part_ebr_dumpto(). It's probably never been exercised before.