svn commit: r336696 - projects/bectl/lib/libbe

Kyle Evans kevans at freebsd.org
Wed Jul 25 03:10:56 UTC 2018


On Tue, Jul 24, 2018 at 10:08 PM, Kyle Evans <kevans at freebsd.org> wrote:
> Author: kevans
> Date: Wed Jul 25 03:08:11 2018
> New Revision: 336696
> URL: https://svnweb.freebsd.org/changeset/base/336696
>
> Log:
>   libbe(3): Disambiguate 'active' a little bit, add 'bootfs'
>
>   - Rename 'active' to 'rootfs', which is used in other places to describe the
>   currently booted (or about to be booted) BE.
>
>   - Add 'bootfs', which indicates the next boot environment to be booted. This
>     is pulled from the BOOTFS zpool property.
>
>   - Go ahead and keep an open handle to the active zpool. We might need to
>     enumerate datasets, get properties, and set properties (e.g. bootfs)
>     throughout other libbe bits, and a single handle isn't overly expensive.

Subtract "enumerate datasets" from that list... that doesn't require a
zpool handle. This does reduce redundancy in pulling out pool names to
exactly one place we do this, and we'll clean this stuff up more
later.


More information about the svn-src-projects mailing list