Searched hist:"5 d0826017fc9b84f50ef19b0d452bc0590072f2d" (Results 1 – 2 of 2) sorted by relevance
/freebsd/sbin/bectl/tests/ |
H A D | bectl_test.sh | diff 5d0826017fc9b84f50ef19b0d452bc0590072f2d Tue Jul 11 07:43:51 CEST 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 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
|
/freebsd/lib/libbe/ |
H A D | be.c | diff 5d0826017fc9b84f50ef19b0d452bc0590072f2d Tue Jul 11 07:43:51 CEST 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 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
|