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.
Details
Details
- create a boot environment be0
- create two boot environments from be0 (be1, be2)
- destroy be0
- destroy be1
- create be1 from be0
- create be2 from be1
- create be3 from be2
- destroy be2, be3, be1
Diff Detail
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 28361 Build 26449: arc lint + arc unit
Event Timeline
Comment Actions
Overall approach LGTM.
lib/libbe/be.c | ||
---|---|---|
205 | "promote" | |
223 | This initialization should probably be moved down to just before we iterate over the promotelist; once found is set, we're never resetting it back to false. | |
243 | space after if | |
247 | space after if | |
272 | space after while | |
407 | space after if, before opening brace. | |
sbin/bectl/tests/bectl_test.sh | ||
151 | Unwanted trailing space. |
Comment Actions
on allocation failures, set err = enomem and break out of the loop so we clean up any nvlists/zfs handles instead of just returning