Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2011 09:37:33 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Pawel Jakub Dawidek <pjd@freebsd.org>
Cc:        Xin LI <delphij@gmail.com>, freebsd-geom@freebsd.org
Subject:   Re: GELI devices produced with 9.0+ fail when mounted on 8.2, etc?
Message-ID:  <CAGH67wS3TVJe07pURFw7yHTzw3bR0h_vEUj9LNLFe_de%2BzRRFg@mail.gmail.com>
In-Reply-To: <20111019161833.GB1982@garage.freebsd.pl>
References:  <924643A0-0798-4FAC-8F82-4AFBC56DC8D7@gmail.com> <CAGMYy3tX=Xr1k%2B=7FqV5=Ddooopodtmv1hG=zy5G2Ye5KCuO_Q@mail.gmail.com> <7EC93C28-6405-443F-92C6-0291F8D88995@gmail.com> <CAGMYy3veJQ-pBg1BuAZyH3rvMxEaFQOYPTJYgWPteohw-HE%2BuA@mail.gmail.com> <EDE63E3A-A2BF-4422-B0F5-8DB4AFE5B573@gmail.com> <20111017132945.GG1679@garage.freebsd.pl> <CAGH67wRSVtsophbJ4cF5Y2x=5a9HHB5_SE6HqvwwyjyVtUd9oA@mail.gmail.com> <CAGH67wSbF7xazeX7GbHsghDCH2qiLd1ciyOBr_j=hfBW8kPxcw@mail.gmail.com> <20111019161833.GB1982@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, Oct 19, 2011 at 9:18 AM, Pawel Jakub Dawidek <pjd@freebsd.org> wrote:
> On Wed, Oct 19, 2011 at 08:30:39AM -0700, Garrett Cooper wrote:
>> Patch added for the first suggestion here:
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=161807 . I'll see if I can
>> get around to the other two sometime before the end of the week.
>
> I'm already working on this. Unfortunately 'upgrade' subcommand will be
> much harder to implement, because in some cases we would need to rewrite
> the data for the entire provider. I decided not to add upgrade. It also
> doesn't buy us much. Even after upgrade you cannot switch to new
> algorithms or to multi-key encryption, etc.
>
> Instead I added 'version' subcommand:
>
>        geli version [-l]
>        geli version [prov ...]
>
> Examples:
>
>        # geli version
>        kernel: 6
>        userland: 5
>
>        # geli version ada0 gpt/secret
>        ada0: 5
>        gpt/secret: 3
>
>        # geli version -l
>        FreeBSD version: highest supported GELI version:
>        FreeBSD 6.0: 0
>        FreeBSD 6.1: 0
>        FreeBSD 6.2: 3
>        FreeBSD 6.3: 3
>        FreeBSD 6.4: 3
>        FreeBSD 7.0: 3
>        FreeBSD 7.1: 3
>        FreeBSD 7.2: 3
>        FreeBSD 7.3: 3
>        FreeBSD 7.4: 3
>        FreeBSD 8.0: 3
>        FreeBSD 8.1: 3
>        FreeBSD 8.2: 5
>        FreeBSD 9.0: 6

Wouldn't it be better to document this in a manpage like I suggested
so the code could be MFCed easier?

Also, I like the thought of having a separate subcommand -- version --
for displaying the version output of a geli image. It seems like:

geli upgrade md0

should just upgrade md0 to the latest supported metadata format
instead of printing out the metadata version, as the implied metadata
version should be the latest one by default.

Thanks,
-Garrett



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