freebsd-dev/lib/libbe
Kyle Evans 8f5c6c31ae 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
2020-01-02 18:46:33 +00:00
..
tests libbe(3): Add a test for be creation 2019-04-22 13:45:08 +00:00
be_access.c libbe: fix build against sysutils/openzfs, part 1 2019-12-06 19:33:39 +00:00
be_error.c libbe(3): promote dependent clones when destroying an environment 2020-01-02 18:46:33 +00:00
be_impl.h libbe(3): allow creation of arbitrary depth boot environments 2019-04-22 13:43:38 +00:00
be_info.c libbe: fix build against sysutils/openzfs, part 1 2019-12-06 19:33:39 +00:00
be.c libbe(3): promote dependent clones when destroying an environment 2020-01-02 18:46:33 +00:00
be.h libbe(3): promote dependent clones when destroying an environment 2020-01-02 18:46:33 +00:00
libbe.3 libbe(3): add needed bits for be_destroy to auto-destroy some origins 2019-10-16 14:43:05 +00:00
Makefile pkgbase: Create a FreeBSD-utilities package and make it the default one 2019-09-05 14:15:47 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00