freebsd-dev/lib/libbe
Kyle Evans 455d8009b4 libbe(3): add needed bits for be_destroy to auto-destroy some origins
New BEs can be created from either an existing snapshot or an existing BE.
If an existing BE is chosen (either implicitly via 'bectl create' or
explicitly via 'bectl create -e foo bar', for instance), then bectl will
create a snapshot of the current BE or "foo" with be_snapshot, with a name
formatted like: strftime("%F-%T") and a serial added to it.

This commit adds the needed bits for libbe or consumers to determine if a
snapshot names matches one of these auto-created snapshots (with some light
validation of the date/time/serial), and also a be_destroy flag to specify
that the origin should be automatically destroyed if possible.

A future commit to bectl will specify BE_DESTROY_AUTOORIGIN by default so we
clean up the origin in the most common case, non-user-managed snapshots.
2019-10-16 14:43:05 +00:00
..
tests libbe(3): Add a test for be creation 2019-04-22 13:45:08 +00:00
be_access.c libbe(3): restructure be_mount, skip canmount check for BE dataset 2019-06-25 18:47:40 +00:00
be_error.c libbe(3): Fix be_destroy behavior w.r.t. deep BE snapshots and -o 2019-02-13 04:19:08 +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 bectl(3)/libbe(3): Allow BE root to be specified 2018-11-19 02:12:08 +00:00
be.c libbe(3): add needed bits for be_destroy to auto-destroy some origins 2019-10-16 14:43:05 +00:00
be.h libbe(3): add needed bits for be_destroy to auto-destroy some origins 2019-10-16 14:43:05 +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