Lines Matching refs:label
33 * ZFS label of each device. If we successfully read the label, then we
36 * pool guid -> toplevel vdev guid -> label txg
39 * examined every device, we pick the best label txg config for each toplevel
248 * it means we have a half-initialized label. In vdev_label_init()
249 * we write a label with txg == 0 so that we can identify the device
251 * create the pool, we'll be left with a label in this state
805 * Restore the original information read from the actual label.
852 * Return the offset of the given label.
863 * Given a file descriptor, read the label information and return an nvlist
871 vdev_label_t *label;
880 if ((label = malloc(sizeof (vdev_label_t))) == NULL)
884 if (pread64(fd, label, sizeof (vdev_label_t),
888 if (nvlist_unpack(label->vl_vdev_phys.vp_nvlist,
889 sizeof (label->vl_vdev_phys.vp_nvlist), config, 0) != 0)
905 free(label);
909 free(label);
1070 * Try to read the disk label first so we don't have to
1087 * Given a file descriptor, clear (zero) the label information.
1094 vdev_label_t *label;
1101 if ((label = calloc(sizeof (vdev_label_t), 1)) == NULL)
1105 if (pwrite64(fd, label, sizeof (vdev_label_t),
1107 free(label);
1112 free(label);
1148 * Go through and read the label configuration information from every