aboutsummaryrefslogtreecommitdiff
path: root/lib/libbe/be.h
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-07-26 03:13:07 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-07-26 03:13:07 +0000
commit843e39ce7bf6449f5cbb9144774d589574fda3b1 (patch)
tree3e3e6bd80b262056b291cb07a52b8e9f16a52669 /lib/libbe/be.h
parent734e362fa1a843128dc1f437ef16427084cdf46f (diff)
downloadsrc-843e39ce7bf6449f5cbb9144774d589574fda3b1.tar.gz
src-843e39ce7bf6449f5cbb9144774d589574fda3b1.zip
libbe(3): Add be_mounted_at to check a mount point
At a bare minimum, this function will return 0 if a BE is mounted at the given path or non-zero otherwise. If the optional 'details' nvlist is supplied, it is filled with an nvpair containing just the information about the BE mounted at the path. This nvpair is structured just as it is for be_get_bootenv_props, except limited to just the single mount point.
Notes
Notes: svn path=/projects/bectl/; revision=336729
Diffstat (limited to 'lib/libbe/be.h')
-rw-r--r--lib/libbe/be.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libbe/be.h b/lib/libbe/be.h
index f532718b81d6..94d7bb353afd 100644
--- a/lib/libbe/be.h
+++ b/lib/libbe/be.h
@@ -98,6 +98,7 @@ typedef enum {
int be_mount(libbe_handle_t *, char *, char *, int, char *);
int be_unmount(libbe_handle_t *, char *, int);
+int be_mounted_at(libbe_handle_t *, const char *path, nvlist_t *);
/* Error related functions: be_error.c */
int libbe_errno(libbe_handle_t *);