Page MenuHomeFreeBSD

create non-recursive boot environments (bectl)
ClosedPublic

Authored by rew on May 11 2019, 8:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 2:49 PM
Unknown Object (File)
Mar 26 2024, 3:37 PM
Unknown Object (File)
Feb 5 2024, 12:34 AM
Unknown Object (File)
Jan 17 2024, 12:49 AM
Unknown Object (File)
Jan 10 2024, 2:13 AM
Unknown Object (File)
Jan 4 2024, 2:40 AM
Unknown Object (File)
Jan 4 2024, 2:40 AM
Unknown Object (File)
Jan 4 2024, 2:40 AM
Subscribers

Details

Summary

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.

Test Plan
  1. Create a non-recursive boot environment and ensure it has no child datasets.
  2. Create a recursive boot environment and ensure it has a child dataset.

These tests have been added. The existing tests passed on my machine.

Diff Detail

Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 24206
Build 23049: arc lint + arc unit

Event Timeline

sbin/bectl/bectl.c
227

I'd go ahead and combine this branch with the branch below, given how similar they are. The be_snapshot invocation still looks OK even if it's snapname != NULL ? snapname : be_active_path(be), though perhaps a little wordy.

This revision was not accepted when it landed; it landed in state Needs Review.Jun 27 2019, 2:03 PM
This revision was automatically updated to reflect the committed changes.