<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/bectl, branch releng/14.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-03-22T08:07:03Z</updated>
<entry>
<title>bectl: Simplify command aliases.</title>
<updated>2024-03-22T08:07:03Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-03-18T13:49:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d5d2452bf53639ee4ce0570c61e863c03483048b'/>
<id>urn:sha1:d5d2452bf53639ee4ce0570c61e863c03483048b</id>
<content type='text'>
MFC after:	3 days
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D44406

(cherry picked from commit a46217ce7d161ce563374899df4d94b6d000138f)
</content>
</entry>
<entry>
<title>bectl: Use geopt() and drop mention of -?.</title>
<updated>2024-03-22T08:07:03Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-03-18T13:49:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=98a9731683696b615b5a94a483aa73a9b418791d'/>
<id>urn:sha1:98a9731683696b615b5a94a483aa73a9b418791d</id>
<content type='text'>
MFC after:	3 days
PR:		272260
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D44405

(cherry picked from commit e819534f15308c92afd19166254604995766ce32)
</content>
</entry>
<entry>
<title>bectl: fix some `mandoc -Tlint` complaints</title>
<updated>2023-11-26T04:07:11Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2023-10-05T02:26:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1304190b593ef2081068ea1e108f54f2abd7ea89'/>
<id>urn:sha1:1304190b593ef2081068ea1e108f54f2abd7ea89</id>
<content type='text'>
The EXAMPLES mis-comments caused an obnoxious amount of blank space
above SEE ALSO when rendered by mandoc to a terminal.  The missing
termination of .Xo meant the description of -h ran together with the
subcommand synopsis. The other changes were generally ignored tags due
to context that simply don't need to be there.

Provoked by:	grahamperrin

(cherry picked from commit 9b03a5de73d41f98b9b3c8e250a58f62f3e48d61)
</content>
</entry>
<entry>
<title>bectl: make mount subcommand less verbose</title>
<updated>2023-08-23T18:45:01Z</updated>
<author>
<name>Robert Wing</name>
<email>rew@FreeBSD.org</email>
</author>
<published>2023-08-23T18:39:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=760987ecd39b54374aef40783b2c232997f3ac04'/>
<id>urn:sha1:760987ecd39b54374aef40783b2c232997f3ac04</id>
<content type='text'>
The mount subcommand currently produces output such as:
    # bectl mount &lt;bootenv&gt;
    Successfully mounted &lt;bootenv&gt; at &lt;mountpoint&gt;

This commit changes it to only print the mountpoint:
    # bectl mount &lt;bootenv&gt;
    &lt;mountpoint&gt;

This makes it easier to script the mount subcommand. If an error occurs
while mounting, an error message is printed to stderr and bectl will
exit with a non-zero value.

PR:             273180
Reviewed by:    kevans, asomers
Differential Revision:	https://reviews.freebsd.org/D41562
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: two-line nroff pattern</title>
<updated>2023-08-16T17:55:10Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fa9896e082a1046ff4fbc75fcba4d18d1f2efc19'/>
<id>urn:sha1:fa9896e082a1046ff4fbc75fcba4d18d1f2efc19</id>
<content type='text'>
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b3e7694832e81d7a904a10f525f8797b753bf0d3'/>
<id>urn:sha1:b3e7694832e81d7a904a10f525f8797b753bf0d3</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>libbe: recursively promote deep BE datasets</title>
<updated>2023-07-17T19:08:32Z</updated>
<author>
<name>R. Christian McDonald</name>
<email>rcm@rcm.sh</email>
</author>
<published>2023-07-17T19:06:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4b426cf3a46a429474e2a138d3360acc23411563'/>
<id>urn:sha1:4b426cf3a46a429474e2a138d3360acc23411563</id>
<content type='text'>
beadm will recursively promote deep BE datasets. In order to match the
beadm behavior, we need to recursively iterate over child filesystems
and promote them along the way.

This patch further refines the work from D40903, completing the fix for
promotion.

Reviewed by:	kevans, rew
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D40972
</content>
</entry>
<entry>
<title>libbe: promote activated BEs all the way</title>
<updated>2023-07-11T05:44:13Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2023-07-11T05:43:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5d0826017fc9b84f50ef19b0d452bc0590072f2d'/>
<id>urn:sha1:5d0826017fc9b84f50ef19b0d452bc0590072f2d</id>
<content type='text'>
This matches the beadm behavior; generally, we need to keep promoting
until the BE is no longer a clone from a snapshot.  This fixes scenarios
where the dataset associated with a BE's origin is itself a clone,
activating the BE previously would promote it to a clone of the origin's
origin.

We could keep using be_get_dataset_props here, except for two
annoyances:

1.) I couldn't find a clean way to just clear an nvlist rather than
    having to re-alloc it, and I didn't want to just remove the one prop
    we're inspecting out of it.

2.) That's a lot of overhead when all we want to do is fetch the origin
    anyways.

Note that this is not a complete fix, but it does fix the majority of
cases; deep BE subordinates are still notably broken, pending a patch
from Christian.

Reported by:	R. Christian McDonald &lt;rcm@rcm.sh&gt;
Reviewed by:	rew
Differential Revision:	https://reviews.freebsd.org/D40903
</content>
</entry>
</feed>
