]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r352211: bectl(8): Add a "check" command
authorKyle Evans <kevans@FreeBSD.org>
Sun, 15 Sep 2019 02:46:40 +0000 (02:46 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 15 Sep 2019 02:46:40 +0000 (02:46 +0000)
commit2b908947b01e5d6a8b185bcd87551351100e45a2
tree70474de1aab554c382fd81b645f3c7d9c0c5b3d5
parentad8c522be216e0422ecdcf7d0f1a27198baa2dd3
MFC r352211: bectl(8): Add a "check" command

This command simply returns 0 at the moment and explicitly takes no
arguments. This should be used by utilities wanting to see if bectl can
operate on the system they're running, or with a specific root (`bectl -r`).
It may grow more checks than "will libbe successfully init" in the future,
but for now this is enough as that checks for the dataset mounted at "/" and
that it looks capable of being a BE root (e.g. it's not a top-level dataset)

bectl commands can now specify if they want to be silent, and this will turn
off libbe_print_on_error so they can control the output as needed. This is
already used in `bectl check`, and may be turned on in the future for some
other commands where libbe errors are better suppressed as the failure mode
may be obvious.
sbin/bectl/bectl.8
sbin/bectl/bectl.c