Date: Fri, 17 Feb 2012 13:41:55 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: "Andrey V. Elsukov" <ae@FreeBSD.org> Cc: arch@FreeBSD.org, Don Lewis <truckman@FreeBSD.org>, Doug Barton <dougb@FreeBSD.org> Subject: Re: [patch] allow crash dumps to Linux swap partitions Message-ID: <86d39dd430.fsf@ds4.des.no> In-Reply-To: <4F3E3907.8020201@FreeBSD.org> (Andrey V. Elsukov's message of "Fri, 17 Feb 2012 15:24:55 %2B0400") References: <201201082035.q08KZjL5024434@gw.catspoiler.org> <4F3E28FF.1060209@FreeBSD.org> <4F3E3009.8010702@FreeBSD.org> <4F3E3505.1090207@FreeBSD.org> <4F3E3907.8020201@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
"Andrey V. Elsukov" <ae@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d39dd430.fsf>