be.h (455d8009b468669020eb5dd2a209e9094eeda503) be.h (8f5c6c31ae7b2fe787fbe11909e33fd151c6d524)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2017 Kyle J. Kneitinger <kyle@kneit.in>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 46 unchanged lines hidden (view full) ---

55 BE_ERR_NOMOUNT, /* boot environment is not mounted */
56 BE_ERR_ZFSOPEN, /* calling zfs_open() failed */
57 BE_ERR_ZFSCLONE, /* error when calling zfs_clone to create be */
58 BE_ERR_IO, /* error when doing some I/O operation */
59 BE_ERR_NOPOOL, /* operation not supported on this pool */
60 BE_ERR_NOMEM, /* insufficient memory */
61 BE_ERR_UNKNOWN, /* unknown error */
62 BE_ERR_INVORIGIN, /* invalid origin */
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2017 Kyle J. Kneitinger <kyle@kneit.in>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 46 unchanged lines hidden (view full) ---

55 BE_ERR_NOMOUNT, /* boot environment is not mounted */
56 BE_ERR_ZFSOPEN, /* calling zfs_open() failed */
57 BE_ERR_ZFSCLONE, /* error when calling zfs_clone to create be */
58 BE_ERR_IO, /* error when doing some I/O operation */
59 BE_ERR_NOPOOL, /* operation not supported on this pool */
60 BE_ERR_NOMEM, /* insufficient memory */
61 BE_ERR_UNKNOWN, /* unknown error */
62 BE_ERR_INVORIGIN, /* invalid origin */
63 BE_ERR_HASCLONES, /* snapshot has clones */
63} be_error_t;
64
65
66/* Library handling functions: be.c */
67libbe_handle_t *libbe_init(const char *root);
68void libbe_close(libbe_handle_t *);
69
70/* Bootenv information functions: be_info.c */

--- 67 unchanged lines hidden ---
64} be_error_t;
65
66
67/* Library handling functions: be.c */
68libbe_handle_t *libbe_init(const char *root);
69void libbe_close(libbe_handle_t *);
70
71/* Bootenv information functions: be_info.c */

--- 67 unchanged lines hidden ---