From owner-freebsd-arch@FreeBSD.ORG Thu Jan 12 01:36:31 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 8BC30106566B; Thu, 12 Jan 2012 01:36:31 +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 6DFE48FC16; Thu, 12 Jan 2012 01:36:31 +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 q0C1aI7i047108; Wed, 11 Jan 2012 17:36:22 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201201120136.q0C1aI7i047108@gw.catspoiler.org> Date: Wed, 11 Jan 2012 17:36:18 -0800 (PST) From: Don Lewis To: jmg@funkthat.com In-Reply-To: <20120112011301.GI52468@funkthat.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: alfred@FreeBSD.org, arch@FreeBSD.org, adrian@FreeBSD.org, nvass@gmx.com, 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: Thu, 12 Jan 2012 01:36:31 -0000 On 11 Jan, John-Mark Gurney wrote: > Don Lewis wrote this message on Mon, Jan 09, 2012 at 02:09 -0800: >> On 9 Jan, Nikos Vassiliadis wrote: >> > On 1/9/2012 11:25 AM, Doug Barton wrote: >> >> 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. >> > >> > So, dumping core is safe, but not sharing the swap area... >> > It would be nice to be able to do that. >> >> According to the mkswap(8) man page (which hasn't been updated >> since 2.2 even though the machine is running a 2.6 kernel) on a nearby >> Linux machine, the metadata stored in the first page of the swap >> partition. It looks like we could safely coexist if we skipped the first >> page of the partition. Otherwise Linux will want mkswap to be run on the >> partition before it will swap to the partition. > > Don't we already skip the first 8k of the swap partition because back > in the day when bsdlabel's partition sector 0 was the same as the > slice sector 0, and so if any FS or swap wrote to the first 8k, it > would overwrite the bsdlabel? Yes, I mentioned this in a later message on this thread.