freebsd-dev/sbin/bectl
Kyle Evans 490e13c140 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.

Requested by:	David Fullard
MFC after:	3 days
2019-09-11 13:27:10 +00:00
..
tests bectl(8): create non-recursive boot environments 2019-06-27 14:03:32 +00:00
bectl_jail.c bectl(8): Don't accept jid=0 from jail_getid 2019-06-02 14:05:51 +00:00
bectl_list.c bectl(8): initialize reverse earlier 2019-09-09 18:17:30 +00:00
bectl.8 bectl(8): Add a "check" command 2019-09-11 13:27:10 +00:00
bectl.c bectl(8): Add a "check" command 2019-09-11 13:27:10 +00:00
bectl.h bectl(8): Split list functionality out into its own file as well 2018-08-06 03:41:52 +00:00
Makefile bectl(8): Add some regression tests 2018-11-19 02:30:12 +00:00