From owner-freebsd-arch@FreeBSD.ORG Sun Jan 8 23:41:22 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 41B121065676; Sun, 8 Jan 2012 23:41:22 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id ED9238FC0C; Sun, 8 Jan 2012 23:41:21 +0000 (UTC) Received: by obbwd18 with SMTP id wd18so4865945obb.13 for ; Sun, 08 Jan 2012 15:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FYErkzThGnRqD8OPyj0K57ENRwVArv7eR+tk4zGRSJ4=; b=E7Z1/t89jDZ8mRAw9rKGMNWvfmuqC42DW1eI0MWxfhNET1Y/nA/mGCzrtBEsM/vwCW HLHJynsDJFAGOFRW9UkSDEQ+pJIExlSsMdi/Cqv0uvwWd2EAsq7RXow9YG3bAq59FVWd i4sDhIROikiXE5S9b1/JDrrXeXzAd4AO/8nCI= MIME-Version: 1.0 Received: by 10.182.1.8 with SMTP id 8mr12457228obi.11.1326066081499; Sun, 08 Jan 2012 15:41:21 -0800 (PST) Received: by 10.182.152.6 with HTTP; Sun, 8 Jan 2012 15:41:21 -0800 (PST) In-Reply-To: References: <201201082035.q08KZjL5024434@gw.catspoiler.org> Date: Sun, 8 Jan 2012 15:41:21 -0800 Message-ID: From: Garrett Cooper To: Xin LI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: arch@freebsd.org, Don Lewis 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: Sun, 08 Jan 2012 23:41:22 -0000 On Sun, Jan 8, 2012 at 3:33 PM, Xin LI wrote: > On Sun, Jan 8, 2012 at 3:03 PM, Garrett Cooper wrote= : >> On Sun, Jan 8, 2012 at 12:35 PM, Don Lewis wrote: >>> I've got a machine that is set up to dual boot both FreeBSD and Linux. >>> It is also disk space impaired, so to make the best use possible of the >>> available space, I have FreeBSD set up to swap to the Linux swap >>> partition. Until now I haven't had working crash dumps because geom >>> didn't permit crash dumps to Linux swap partitions. This patch removes >>> that limitation. =A0This could be useful for users of laptops who boot >>> multiple operating systems. >> >> =A0 =A0Seems like a good idea, but could dumping to a Linux partition >> confuse FreeBSD or vice versa? > > Unlikely, these are scratch spaces and validated upon boot (i.e. the > dump saver would "taste" before saving). So the answer is: 1. No for FreeBSD 2. It's unlikely that the Linux side will be affected ? I would just be concerned with some potentially more interesting cases where the swap for a crashdump got partially overwritten, but the same issue would exist I suppose with FreeBSD if someone whacked the contents of a partition I suppose, e.g. it's not a big issue if the tools that grok the crashdump fail gracefully. Thanks! -Garrett