]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl(8): destroy: use BE_DESTROY_AUTOORIGIN if -o is not specified
authorkevans <kevans@FreeBSD.org>
Wed, 16 Oct 2019 14:55:56 +0000 (14:55 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 16 Oct 2019 14:55:56 +0000 (14:55 +0000)
commit2550d91204e6a00d5fe4ae6fcd2e5dc9923104f3
tree1ed440ecfdb65b98e8712a17b54063112ea83b3b
parent6e94de3ffa48ded873dcf73e20991f1616b437c1
bectl(8): destroy: use BE_DESTROY_AUTOORIGIN if -o is not specified

-o will force the origin to be destroyed unconditionally.
BE_DESTROY_AUTOORIGIN, on the other hand, will only destroy the origin if it
matches the format used by be_snapshot. This lets us clean up the snapshots
that are clearly not user-managed (because we're creating them) while
leaving user-created snapshots in place and warning that they're still
around when the BE created goes away.
sbin/bectl/bectl.c