]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl(8): Add -o flag to destroy to clean up the origin snapshot of BE
authorkevans <kevans@FreeBSD.org>
Mon, 11 Feb 2019 04:00:01 +0000 (04:00 +0000)
committerkevans <kevans@FreeBSD.org>
Mon, 11 Feb 2019 04:00:01 +0000 (04:00 +0000)
commit4d060aa696cb029d066bb59dd46a73155a39bf9c
tree0f58df764a00cb67815f8acf43a3ca94456ccf20
parent5e8683b78dbb5371a8716845fa04c13287816f98
bectl(8): Add -o flag to destroy to clean up the origin snapshot of BE

We can't predict when destruction of origin is needed, and currently we have
a precedent for not prompting for things. Leave the decision up to the user
of bectl(8) if they want the origin snapshot to be destroyed or not.

Emits a warning when -o isn't used and an origin snapshot is left to be
cleaned up, for the time being. This is handy when one drops the -o flag but
really did want to clean up the origin.

A couple of -e ignore's have been sprinkled around the test suite for places
that we don't care that the origin's not been cleaned up. -o functionality
tests will be added in the future, but are omitted for now to reduce
conflicts with work in flight to fix bits of the tests.

Reported by: Shawn Webb
MFC after: 1 week
sbin/bectl/bectl.8
sbin/bectl/bectl.c