From owner-freebsd-arch@FreeBSD.ORG Mon Jan 9 09:25:33 2012 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id AFB7D106566B; Mon, 9 Jan 2012 09:25:33 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 6F09914D968; Mon, 9 Jan 2012 09:25:32 +0000 (UTC) Message-ID: <4F0AB28B.9070003@FreeBSD.org> Date: Mon, 09 Jan 2012 01:25:31 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Nikos Vassiliadis References: <201201090911.q099B605025369@gw.catspoiler.org> <4F0AB19C.6000601@gmx.com> In-Reply-To: <4F0AB19C.6000601@gmx.com> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: arch@FreeBSD.org, Don Lewis , alfred@FreeBSD.org, adrian@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: Mon, 09 Jan 2012 09:25:33 -0000 On 01/09/2012 01:21, Nikos Vassiliadis wrote: > On 1/9/2012 11:11 AM, Don Lewis wrote: >> On 9 Jan, Adrian Chadd wrote: >>> .. doesn't linux swap have some metadata somewhere? >> >> Darned if I know, but it doesn't seem to care about FreeBSD swap data >> overwriting its swap partition. > > Linux will not use the swap partition without the metadata. And > these metadata are located to the start of the partition, that > is, dumping core there will surely destroy them. Actually I'm fairly confident that we write dumps backwards from the end of the swap partition. It's done that way on purpose in case fsck'ing causes the system to swap, it may still be possible to save the dump. Doug -- You can observe a lot just by watching. -- Yogi Berra Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/