<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libbe, branch release/13.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-04-06T14:32:51Z</updated>
<entry>
<title>bectl: push space-in-name check down into libbe</title>
<updated>2022-04-06T14:32:51Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-04-03T02:04:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=568f805c83954a044bcd29dbc7b037b617fab4b9'/>
<id>urn:sha1:568f805c83954a044bcd29dbc7b037b617fab4b9</id>
<content type='text'>
This check was previously in `create` only, not applying to renames.  It
should really be applied at the libbe level, so that we can avoid
writing about this restriction over and over again.

While we're here: `bectl rename` always succeeds, even when it doesn't.
Start returning the error.

Approved by:	re (gjb)
Reported By:	Christian McDonald &lt;cmcdonald netgate com&gt;

(cherry picked from commit dadb9c70938c4ae2c260f6af65752c67ac752284)
(cherry picked from commit 227e52a9c0b0be9656757fec47a2648f5619bf67)
</content>
</entry>
<entry>
<title>libbe: fix be_mounted_at() with props after bootonce</title>
<updated>2022-04-06T14:32:44Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-03-31T19:18:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=99931db675d4d1ac702120f89a060fec1b152ae7'/>
<id>urn:sha1:99931db675d4d1ac702120f89a060fec1b152ae7</id>
<content type='text'>
propinfo.bootonce was filled with garbage, leading to a segfault later
during prop building.  Initialize it to NULL.

Approved by:	re (gjb)

(cherry picked from commit d155d8e138563c0b39c658684e6a4fe6e2e36f8a)
(cherry picked from commit 6ce8e35cead46048d9ae3c1dabafe1ef4ed26f97)
</content>
</entry>
<entry>
<title>libbe: pull props for the correct dataset in be_mounted_at()</title>
<updated>2022-04-06T14:32:31Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2022-03-31T19:19:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b8f5e2765d6322e7a31ad98605a4056be2b8c7d7'/>
<id>urn:sha1:b8f5e2765d6322e7a31ad98605a4056be2b8c7d7</id>
<content type='text'>
The props feature to this API was added as a "just in case", with no
planned consumer.  It turns out that it was implemented incorrectly,
tapping out props for the BE root (BE's parent) rather than the BE
itself in all cases.

Fetch properties for the dataset that's actually mounted at the queried
path.

Approved by:	re (gjb)
Reported by:	Christian McDonald &lt;cmcdonald netgate com&gt;

(cherry picked from commit 31190aa02eef05b1b58ba89212dc8c8738770e37)
(cherry picked from commit bed9c972aee7aa5ac916f24d60d9dbd109897856)
</content>
</entry>
<entry>
<title>When be_activate() turns on a new boot environment, it always deactivates</title>
<updated>2021-01-08T17:23:16Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2021-01-08T17:23:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7edc1bd9dc174526c69246ba45bf2c8c230d38f4'/>
<id>urn:sha1:7edc1bd9dc174526c69246ba45bf2c8c230d38f4</id>
<content type='text'>
the current one first. And if it fails to do so, it abandons activation.
However, with the new bootonce feature, there is a legitimate case when
a pool doesn't have "bootfs" property set. Check for this case before
calling be_deactivate().

Reviewed by:	kevans
</content>
</entry>
<entry>
<title>pkgbase: Move bectl to the runtime package</title>
<updated>2021-01-04T15:17:12Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@freebsd.org</email>
</author>
<published>2020-12-21T15:00:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2d486ba15f3367072d631ee588192ef46687fa4b'/>
<id>urn:sha1:2d486ba15f3367072d631ee588192ef46687fa4b</id>
<content type='text'>
runtime contain what is needed to boot in single user and repair a
system, bectl could be handy to have in this situation.

Differential Revision:	https://reviews.freebsd.org/D27708
</content>
</entry>
<entry>
<title>libbe(3): install MLINKS for all of the functions provided</title>
<updated>2020-10-18T23:58:40Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-10-18T23:58:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=07335072e2dc46cc50b49362e6da4f3854d68cd9'/>
<id>urn:sha1:07335072e2dc46cc50b49362e6da4f3854d68cd9</id>
<content type='text'>
MFC after:	1 week
</content>
</entry>
<entry>
<title>libbe(3): document be_snapshot()</title>
<updated>2020-10-18T23:42:00Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-10-18T23:42:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=513bd2fc81f9a9abad90184dee0af1dafbb55fbe'/>
<id>urn:sha1:513bd2fc81f9a9abad90184dee0af1dafbb55fbe</id>
<content type='text'>
While toying around with lua bindings for libbe(3), I discovered that I
apparently never documented this, despite having documented
be_is_auto_snapshot_name that references it.

MFC after:	1 week
</content>
</entry>
<entry>
<title>libbe(3): const'ify a couple arguments</title>
<updated>2020-10-18T23:32:47Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-10-18T23:32:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5773e924e791dfe8cc13049cefbf5f99aab6cc66'/>
<id>urn:sha1:5773e924e791dfe8cc13049cefbf5f99aab6cc66</id>
<content type='text'>
libbe will never need to mutate these as we either process them into a local
buffer or we just don't touch them and write to a separate out argument.

MFC after:	1 week
</content>
</entry>
<entry>
<title>loader: zfs should support bootonce an nextboot</title>
<updated>2020-09-21T09:01:10Z</updated>
<author>
<name>Toomas Soome</name>
<email>tsoome@FreeBSD.org</email>
</author>
<published>2020-09-21T09:01:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e307eb94ae520d98dc1d346a0c53667a41beab5d'/>
<id>urn:sha1:e307eb94ae520d98dc1d346a0c53667a41beab5d</id>
<content type='text'>
bootonce feature is temporary, one time boot, activated by
"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.

By default, the bootonce setting is reset on attempt to boot and the next
boot will use previously active BE.

By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will
be set permanently active.

bootonce dataset name is recorded in boot pool labels, bootenv area.

in case of nextboot, the nextboot_enable boolean variable is recorded in
freebsd:nvstore nvlist, also stored in boot pool label bootenv area.
On boot, the loader will process /boot/nextboot.conf if nextboot_enable
is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf
processing on next boot.

bootonce and nextboot features are usable in both UEFI and BIOS boot.

To use bootonce/nextboot features, the boot loader needs to be updated on disk;
if loader.efi is stored on ESP, then ESP needs to be updated and
for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated
(gpart or other tools).

At this time, only lua loader is updated.

Sponsored by:	Netflix, Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D25512
</content>
</entry>
<entry>
<title>Skip armv7 bectl tests on CI; they deadlock (""KSTACK_PAGES is 2").</title>
<updated>2020-09-14T10:35:39Z</updated>
<author>
<name>Edward Tomasz Napierala</name>
<email>trasz@FreeBSD.org</email>
</author>
<published>2020-09-14T10:35:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2ccf8a827cce7e34e2063a3d33e5cce4b79799cc'/>
<id>urn:sha1:2ccf8a827cce7e34e2063a3d33e5cce4b79799cc</id>
<content type='text'>
PR:		249229
Sponsored by:	DARPA
</content>
</entry>
</feed>
