From owner-freebsd-arch@FreeBSD.ORG Fri Feb 17 12:41:58 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 6C6EF106564A; Fri, 17 Feb 2012 12:41:58 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 108848FC17; Fri, 17 Feb 2012 12:41:57 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 40C0A6D09; Fri, 17 Feb 2012 12:41:56 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 00CAC868F; Fri, 17 Feb 2012 13:41:55 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Andrey V. Elsukov" References: <201201082035.q08KZjL5024434@gw.catspoiler.org> <4F3E28FF.1060209@FreeBSD.org> <4F3E3009.8010702@FreeBSD.org> <4F3E3505.1090207@FreeBSD.org> <4F3E3907.8020201@FreeBSD.org> Date: Fri, 17 Feb 2012 13:41:55 +0100 In-Reply-To: <4F3E3907.8020201@FreeBSD.org> (Andrey V. Elsukov's message of "Fri, 17 Feb 2012 15:24:55 +0400") Message-ID: <86d39dd430.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: arch@FreeBSD.org, Don Lewis , Doug Barton 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 12:41:58 -0000 "Andrey V. Elsukov" writes: > I see two ways to fix this: > 1. We can allow dumping to the MBR partition with type "ebr". > This also will allow foot shooting for some users. > > 2. We can revert r230064 EBR's part, because it doesn't work. The problem is that the question being asked ("is dumping allowed?") is too simplistic. There are actually two questions: "is dumping to this partition allowed?" and "is dumping to a sub-partition of this partition allowed?" The first question only applies to the actual device passed to swapon(2) - in dougb's case, ad0s7 - while the second only applies to its ancestors in the geom hierarchy - in dougb's case, ad0s4 and ad0. Fixing this properly requires a KPI / KBI change, though. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no