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.
Details
Details
- Reviewers
kevans 0mp allanjude - Commits
- rS349455: bectl(8): create non-recursive boot environments
- Create a non-recursive boot environment and ensure it has no child datasets.
- 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
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sbin/bectl/bectl.c | ||
---|---|---|
227 ↗ | (On Diff #57324) | 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. |