Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jan 2012 15:41:21 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Xin LI <delphij@gmail.com>
Cc:        arch@freebsd.org, Don Lewis <truckman@freebsd.org>
Subject:   Re: [patch] allow crash dumps to Linux swap partitions
Message-ID:  <CAGH67wSvp%2B1HHg0GOws6AsHAvZjSf75f2OhTF3kTUMBpuo5vFw@mail.gmail.com>
In-Reply-To: <CAGMYy3sHDE3=mV_O8GSK1ijN%2B-DgfKU_%2Bnj_=e311zK=o0CBOg@mail.gmail.com>
References:  <201201082035.q08KZjL5024434@gw.catspoiler.org> <CAGH67wQYJoF66Duwy3AZfTqGb1k3Tgk8D=gcBduk2YUgWRmEHQ@mail.gmail.com> <CAGMYy3sHDE3=mV_O8GSK1ijN%2B-DgfKU_%2Bnj_=e311zK=o0CBOg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 8, 2012 at 3:33 PM, Xin LI <delphij@gmail.com> wrote:
> On Sun, Jan 8, 2012 at 3:03 PM, Garrett Cooper <yanegomi@gmail.com> wrote=
:
>> On Sun, Jan 8, 2012 at 12:35 PM, Don Lewis <truckman@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wSvp%2B1HHg0GOws6AsHAvZjSf75f2OhTF3kTUMBpuo5vFw>