#
5086b6ec |
| 26-Jan-2024 |
R. Christian McDonald <rcm@FreeBSD.org> |
libbe: handle destroying/renaming temporary/bootonce boot environments
When a temporary/bootonce boot environment is renamed, we need to also update the bootenv nvlist on-disk to reflect the new nam
libbe: handle destroying/renaming temporary/bootonce boot environments
When a temporary/bootonce boot environment is renamed, we need to also update the bootenv nvlist on-disk to reflect the new name. Additionally, when a temporary/bootonce boot environment is destroyed, we also need to clear out the on-disk state.
Reviewed by: kevans Approved by: kp MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D43591
show more ...
|
Revision tags: release/14.0.0 |
|
#
d0b2dbfa |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
#
4b426cf3 |
| 17-Jul-2023 |
R. Christian McDonald <rcm@rcm.sh> |
libbe: recursively promote deep BE datasets
beadm will recursively promote deep BE datasets. In order to match the beadm behavior, we need to recursively iterate over child filesystems and promote t
libbe: recursively promote deep BE datasets
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
show more ...
|
#
5d082601 |
| 11-Jul-2023 |
Kyle Evans <kevans@FreeBSD.org> |
libbe: promote activated BEs all the way
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 data
libbe: promote activated BEs all the way
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 <rcm@rcm.sh> Reviewed by: rew Differential Revision: https://reviews.freebsd.org/D40903
show more ...
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0 |
|
#
0e6549c8 |
| 03-Jun-2021 |
Robert Wing <rew@FreeBSD.org> |
bectl(8): don't allow creation of boot environments with spaces
Boot environment datasets that contain spaces are not bootable.
When a user attempts to create a boot environment with a space, abort
bectl(8): don't allow creation of boot environments with spaces
Boot environment datasets that contain spaces are not bootable.
When a user attempts to create a boot environment with a space, abort the creation and print an error message.
PR: 254441 Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D30194
show more ...
|
Revision tags: release/13.0.0 |
|
#
d6f4e1a8 |
| 03-Feb-2021 |
Alex Richardson <arichardson@FreeBSD.org> |
sbin/bectl: Skip tests if sparse files are not supported
The tests create a 1GB test file and this causes the tests to fail in the CheriBSD CI setup where we run tests with a tmpfs mount on /tmp. Tm
sbin/bectl: Skip tests if sparse files are not supported
The tests create a 1GB test file and this causes the tests to fail in the CheriBSD CI setup where we run tests with a tmpfs mount on /tmp. Tmpfs does not support sparse files and it appears that tmpfs default to creating a 1GB mount, so there is not enough space to run these tests.
Instead of checking for at least 1GB of free space, this commit skips the tests on file systems that do not support sparse files.
Reviewed By: kevans Differential Revision: https://reviews.freebsd.org/D28463
show more ...
|
#
de661c9f |
| 16-Jan-2021 |
Kyle Evans <kevans@FreeBSD.org> |
bectl: tests: use -R <mount> instead of specifying altroot
-R is currently shorthand for cachefile=none, altroot=<mount>. This is functionally the same, but perhaps more resilient to future changes
bectl: tests: use -R <mount> instead of specifying altroot
-R is currently shorthand for cachefile=none, altroot=<mount>. This is functionally the same, but perhaps more resilient to future changes that could be necessary that may be added when -R is specified.
MFC after: 1 week
show more ...
|
Revision tags: release/12.2.0 |
|
#
2ccf8a82 |
| 14-Sep-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Skip armv7 bectl tests on CI; they deadlock (""KSTACK_PAGES is 2").
PR: 249229 Sponsored by: DARPA
|
#
d8bdfeb6 |
| 07-Sep-2020 |
Li-Wen Hsu <lwhsu@FreeBSD.org> |
Call atf_skip function in cleanup procedure as it also triggers zfs.ko loading
PR: 249055 Sponsored by: The FreeBSD Foundation
|
#
7c570021 |
| 03-Sep-2020 |
Li-Wen Hsu <lwhsu@FreeBSD.org> |
Temporarily skip sbin.bectl.bectl_test.* i386 kernel in CI
kldload zfs.ko on i386 hangs in CI
Sponsored by: The FreeBSD Foundation
|
#
0932ee9f |
| 02-Sep-2020 |
Li-Wen Hsu <lwhsu@FreeBSD.org> |
Temporarily skip tests panic i386 kernel in CI
lib.libbe.be_create.libbe_create sbin.bectl.bectl_test.bectl_create
PR: 249055 Sponsored by: The FreeBSD Foundation
|
Revision tags: release/11.4.0 |
|
#
b33e1edd |
| 29-Apr-2020 |
Olivier Cochard <olivier@FreeBSD.org> |
Skip bectl jail test if jail not installed (WITHOUT_JAIL).
Approved by: kevans Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D24613
|
#
8f5c6c31 |
| 02-Jan-2020 |
Kyle Evans <kevans@FreeBSD.org> |
libbe(3): promote dependent clones when destroying an environment
When removing a boot environment iterate over the dependents and process the snapshots by grabbing any clones. Promote the clones we
libbe(3): promote dependent clones when destroying an environment
When removing a boot environment iterate over the dependents and process the snapshots by grabbing any clones. Promote the clones we found and then remove the target environment.
This fixes the ability to destroy a boot environment when it has been used to spawn one or more other boot environments.
PR: 242592 Submitted by: Wes Maag <jwmaag gmail com> (with changes by myself) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D22953
show more ...
|
Revision tags: release/12.1.0, release/11.3.0 |
|
#
7f49ce7a |
| 28-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @349476
Sponsored by: The FreeBSD Foundation
|
#
d05fa0d9 |
| 27-Jun-2019 |
Kyle Evans <kevans@FreeBSD.org> |
bectl(8): create non-recursive boot environments
bectl advertises that it has the ability to create recursive and non-recursive boot environments. This patch implements that functionality using the
bectl(8): create non-recursive boot environments
bectl advertises that it has the ability to create recursive and non-recursive boot environments. This patch implements that functionality using the be_create_depth API provided by libbe. With this patch, bectl now works as bectl(8) describes in regards to creating recursive/non-recursive boot environments.
Submitted by: Rob Fairbanks <rob.fx907 gmail com> (with minor changes) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D20240
show more ...
|
#
0269ae4c |
| 06-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @348740
Sponsored by: The FreeBSD Foundation
|
#
22554a34 |
| 24-May-2019 |
Kyle Evans <kevans@FreeBSD.org> |
bectl(8): Add a test for jail/unjail of numeric BE names
Fixed by r348215, bectl ujail first attempts the trivial fetch of a jid by passing the first argument to 'ujail' to jail_getid(3) in case a j
bectl(8): Add a test for jail/unjail of numeric BE names
Fixed by r348215, bectl ujail first attempts the trivial fetch of a jid by passing the first argument to 'ujail' to jail_getid(3) in case a jid/name have been passed in instead of a BE name. For numerically named BEs, this was doing the wrong thing: instead of failing to locate the jid specified and falling back to mountpath search, jail_getid(3) would return the input as-is.
While here, I've fixed bectl_jail_cleanup which still used a hard-coded pool name that was overlooked w.r.t. other work that was in-flight around the same time.
MFC after: 3 days
show more ...
|
#
9a696dc6 |
| 04-Apr-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead@r345880
|
#
e1ee6230 |
| 01-Apr-2019 |
Kyle Evans <kevans@FreeBSD.org> |
libbe: Fix zfs_is_mounted check w/ snapshots
'be_destroy' can destroy a boot environment (by name) or a given snapshot. If the target to be destroyed is a dataset, check if it's mounted. We don't wa
libbe: Fix zfs_is_mounted check w/ snapshots
'be_destroy' can destroy a boot environment (by name) or a given snapshot. If the target to be destroyed is a dataset, check if it's mounted. We don't want to check if the origin dataset is mounted when destroying a snapshot.
PR: 236043 Submitted by: Rob Fairbanks <rob.fx907 gmail com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D19650
show more ...
|
#
c981cbbd |
| 15-Feb-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r343956 through r344177.
|
#
794022b0 |
| 13-Feb-2019 |
Enji Cooper <ngie@FreeBSD.org> |
Fix up concurrent test zpool setup and teardown
Set up zpools with a more unique name, stash the zpool name away in a file pointed to by `$ZPOOL_NAME_FILE` (which is relative to a per-testcase gener
Fix up concurrent test zpool setup and teardown
Set up zpools with a more unique name, stash the zpool name away in a file pointed to by `$ZPOOL_NAME_FILE` (which is relative to a per-testcase generated temporary directory), then remove the file based on `$ZPOOL_NAME_FILE` in the cleanup routines.
This is a more concurrency-safe solution and will allow the testcases to be safely executed in parallel.
Reviewed by: kevans, jtl Approved by: jtl (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D19024
show more ...
|
#
6286a643 |
| 11-Feb-2019 |
Kyle Evans <kevans@FreeBSD.org> |
bectl(8): commit missing test modifications from r343993
X-MFC-With: r343993
|
#
7e565c55 |
| 30-Jan-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r343320 through r343570.
|
#
bf05ccc3 |
| 29-Jan-2019 |
Kyle Evans <kevans@FreeBSD.org> |
bectl(8) test: Force destroy the zpool in cleanup
This is a wild guess as to why bectl tests failed once upon a time in CI, given no apparent way to see a transcript of cleanup routines with Kyua. T
bectl(8) test: Force destroy the zpool in cleanup
This is a wild guess as to why bectl tests failed once upon a time in CI, given no apparent way to see a transcript of cleanup routines with Kyua. The bectl tests construct a new, clean zpool for every test. The failure indicated was because of a mount that was leftover from a previous test, but the previous test had succeeded so it's not clear how the mount remained leftover unless the `zpool get health ${pool}` had somehow failed.
MFC after: 1 week
show more ...
|