FreeBSD Bugzilla – Attachment 198499 Details for
Bug 232488
bectl reports error confusing error when activating boot environment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
svn(1) diff against head
bectl-activate-promote.diff (text/plain), 887 bytes, created by
Kyle Evans
on 2018-10-23 14:34:11 UTC
(
hide
)
Description:
svn(1) diff against head
Filename:
MIME Type:
Creator:
Kyle Evans
Created:
2018-10-23 14:34:11 UTC
Size:
887 bytes
patch
obsolete
>Index: lib/libbe/be.c >=================================================================== >--- lib/libbe/be.c (revision 339656) >+++ lib/libbe/be.c (working copy) >@@ -928,7 +928,8 @@ be_activate(libbe_handle_t *lbh, const char *boote > { > char be_path[BE_MAXPATHLEN]; > char buf[BE_MAXPATHLEN]; >- nvlist_t *config, *vdevs; >+ nvlist_t *config, *dsprops, *vdevs; >+ char *origin; > uint64_t pool_guid; > zfs_handle_t *zhp; > int err; >@@ -969,7 +970,18 @@ be_activate(libbe_handle_t *lbh, const char *boote > if (zhp == NULL) > return (-1); > >- err = zfs_promote(zhp); >+ if (be_prop_list_alloc(&dsprops) != 0) >+ return (-1); >+ >+ if (be_get_dataset_props(lbh, be_path, dsprops) != 0) { >+ nvlist_free(dsprops); >+ return (-1); >+ } >+ >+ if (nvlist_lookup_string(dsprops, "origin", &origin) == 0) >+ err = zfs_promote(zhp); >+ nvlist_free(dsprops); >+ > zfs_close(zhp); > > if (err)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 232488
: 198499