From owner-freebsd-arch@FreeBSD.ORG Fri Feb 17 18:57:43 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 6A1521065670; Fri, 17 Feb 2012 18:57:43 +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 4A4578FC08; Fri, 17 Feb 2012 18:57:43 +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 q1HIvZcC011615; Fri, 17 Feb 2012 10:57:39 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201202171857.q1HIvZcC011615@gw.catspoiler.org> Date: Fri, 17 Feb 2012 10:57:35 -0800 (PST) From: Don Lewis To: ae@FreeBSD.org In-Reply-To: <4F3E3009.8010702@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: arch@FreeBSD.org, dougb@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:57:43 -0000 On 17 Feb, Andrey V. Elsukov wrote: > On 17.02.2012 14:16, Doug Barton wrote: >> 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? > > EBR scheme serves logical partitions. Your extended partition is ad0s4, > EBR's consumer is attached to MBR's ad0s4 provider. ad0s7 is EBR's provider. > > When you are trying to configure ad0s7 as dump device, GEOM_PART asks EBR scheme: > is kernel dump allowed or not? After r230064 it answers that dumping is allowed > to partition with type DOSPTYP_386BSD and DOSPTYP_LINSWP. But, since ad0s7 has > parent provider it forwards this request to MBR's ad0s4. > MBR scheme also allows dumping only to the same partition types. > But ad0s4 partition has type DOSPTYP_EXT. And you got this error message. Is it possible to detect whether a request has been forwarded? I think there is also the possibility of foot shooting in the DOSPTYP_386BSD case and it would be nice to fix that as well.