Lines Matching refs:bootenv
956 abd_t *bootenv; in vdev_label_init() local
1117 bootenv = abd_alloc_for_io(VDEV_PAD_SIZE, B_TRUE); in vdev_label_init()
1118 abd_zero(bootenv, VDEV_PAD_SIZE); in vdev_label_init()
1137 vdev_label_write(zio, vd, l, bootenv, in vdev_label_init()
1154 abd_free(bootenv); in vdev_label_init()
1227 vdev_label_read_bootenv(vdev_t *rvd, nvlist_t *bootenv) in vdev_label_read_bootenv() argument
1235 ASSERT(bootenv); in vdev_label_read_bootenv()
1253 fnvlist_add_uint64(bootenv, BOOTENV_VERSION, VB_RAW); in vdev_label_read_bootenv()
1255 fnvlist_add_string(bootenv, GRUB_ENVMAP, in vdev_label_read_bootenv()
1263 fnvlist_merge(bootenv, config); in vdev_label_read_bootenv()
1272 fnvlist_add_uint64(bootenv, BOOTENV_VERSION, in vdev_label_read_bootenv()
1276 fnvlist_add_string(bootenv, FREEBSD_BOOTONCE, buf); in vdev_label_read_bootenv()
1297 vdev_boot_envblock_t *bootenv; in vdev_label_write_bootenv() local
1307 if (nvsize >= sizeof (bootenv->vbe_bootenv)) { in vdev_label_write_bootenv()
1330 ASSERT3U(sizeof (*bootenv), ==, VDEV_PAD_SIZE); in vdev_label_write_bootenv()
1334 bootenv = abd_borrow_buf_copy(abd, VDEV_PAD_SIZE); in vdev_label_write_bootenv()
1335 nvbuf = bootenv->vbe_bootenv; in vdev_label_write_bootenv()
1336 nvsize = sizeof (bootenv->vbe_bootenv); in vdev_label_write_bootenv()
1338 bootenv->vbe_version = fnvlist_lookup_uint64(env, BOOTENV_VERSION); in vdev_label_write_bootenv()
1339 switch (bootenv->vbe_version) { in vdev_label_write_bootenv()
1342 (void) strlcpy(bootenv->vbe_bootenv, nvbuf, nvsize); in vdev_label_write_bootenv()
1358 bootenv->vbe_version = htonll(bootenv->vbe_version); in vdev_label_write_bootenv()
1359 abd_return_buf_copy(abd, bootenv, VDEV_PAD_SIZE); in vdev_label_write_bootenv()