From owner-freebsd-arch@FreeBSD.ORG Mon Jan 9 09:28:51 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 C0C771065673; Mon, 9 Jan 2012 09:28:51 +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 4C5F58FC08; Mon, 9 Jan 2012 09:28:51 +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 q099Sfdh025417; Mon, 9 Jan 2012 01:28:45 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201201090928.q099Sfdh025417@gw.catspoiler.org> Date: Mon, 9 Jan 2012 01:28:41 -0800 (PST) From: Don Lewis To: nvass@gmx.com In-Reply-To: <4F0AB19C.6000601@gmx.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: arch@FreeBSD.org, adrian@FreeBSD.org, alfred@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:28:51 -0000 On 9 Jan, 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. Don't we write the crash dump at the end of the partition? I thought we did this to make it less likely that we would overwrite the crash dump by using swap before savecore had a chance to run. > Perhaps you can add a warning in the dumpon manual page, that the > swap metadata must be re-created after a coredump?