Lines Matching refs:benv
688 nvlist_t *benv = NULL; in zfs_get_bootenv() local
701 benv = vdev_read_bootenv(vd); in zfs_get_bootenv()
703 if (benv != NULL) in zfs_get_bootenv()
706 spa->spa_bootenv = benv; in zfs_get_bootenv()
708 benv = spa->spa_bootenv; in zfs_get_bootenv()
711 if (benv == NULL) in zfs_get_bootenv()
714 *benvp = benv; in zfs_get_bootenv()
722 zfs_set_bootenv(void *vdev, nvlist_t *benv) in zfs_set_bootenv() argument
735 vdev_write_bootenv(vd, benv); in zfs_set_bootenv()
738 spa->spa_bootenv = benv; in zfs_set_bootenv()
749 nvlist_t *benv; in zfs_get_bootonce() local
753 if ((rv = zfs_get_bootenv(vdev, &benv)) != 0) in zfs_get_bootonce()
756 if ((rv = nvlist_find(benv, key, DATA_TYPE_STRING, NULL, in zfs_get_bootonce()
765 (void) nvlist_remove(benv, key, DATA_TYPE_STRING); in zfs_get_bootonce()
766 (void) zfs_set_bootenv(vdev, benv); in zfs_get_bootonce()