freebsd-dev/lib/libbe
Kyle Evans 162ec56949 libbe(3): Fix error handling with respect to be_exists
Some paths through be_exists will set the error state, others will not
There are multiple reasons that a call can fail, so clean it up a bit: all
paths now return an appropriate error code so the caller can attempt to
distinguish between a BE legitimately not existing and just having the wrong
mountpoint. The caller is expected to bubble the error through to the
internal error handler as needed.

This fixes some unfriendliness with bectl(8)'s activate subcommand, where
it might fail due to a bad mountpoint but the only message output is a
generic "failed to activate" message.

Approved by:	re (gjb)
2018-09-01 02:22:26 +00:00
..
be_access.c libbe(3): Fix error handling with respect to be_exists 2018-09-01 02:22:26 +00:00
be_error.c libbe(3): Fix error handling with respect to be_exists 2018-09-01 02:22:26 +00:00
be_impl.h libbe(3)/bectl(8): Hit rewind on a bunch of off-by-ones 2018-08-16 17:56:03 +00:00
be_info.c libbe(3): Fix error handling with respect to be_exists 2018-09-01 02:22:26 +00:00
be.c libbe(3): Fix error handling with respect to be_exists 2018-09-01 02:22:26 +00:00
be.h libbe(3): Fix error handling with respect to be_exists 2018-09-01 02:22:26 +00:00
libbe.3 libbe(3): Fix error handling with respect to be_exists 2018-09-01 02:22:26 +00:00
Makefile libbe(3)/bectl(8): Make consistent with beadm 2018-08-24 20:44:58 +00:00