1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/lib/libbe
Kyle Evans f08dac4e90 libbe(3): Don't allow bootfs to be destroyed
Previously, the following sequence of events was feasible under some
circumstance:

bectl create test
bectl activate test
# the test BE dataset gets promoted and set as bootfs
bectl destroy test

I was unable to reproduce the destroy succeeding, but we should be rejecting
this before it even gets to libzfs because it would leave the system in an
inconsistent state. Forcing the user to be explicit as to which environment
should be activated instead is much better.

Reported by:	Graham Perrin <grahamperrin@gmail.com>
MFC after:	3 days
2019-01-07 16:16:47 +00:00
..
be_access.c libbe(3): Rewrite be_unmount to stop mucking with getmntinfo(2) 2018-11-17 19:19:37 +00:00
be_error.c libbe(3): Fix error handling with respect to be_exists 2018-09-01 02:22:26 +00:00
be_impl.h libbe(3): Properly account for altroot when creating new BEs 2018-11-19 02:16:20 +00:00
be_info.c bectl(3)/libbe(3): Allow BE root to be specified 2018-11-19 02:12:08 +00:00
be.c libbe(3): Don't allow bootfs to be destroyed 2019-01-07 16:16:47 +00:00
be.h bectl(3)/libbe(3): Allow BE root to be specified 2018-11-19 02:12:08 +00:00
libbe.3 Cross-reference libbe(3) and bectl(8). 2018-11-21 12:46:28 +00:00
Makefile libbe(3)/bectl(8): Make consistent with beadm 2018-08-24 20:44:58 +00:00