Lines Matching refs:label
29 * ZFS label of each device. If we successfully read the label, then we
32 * pool guid -> toplevel vdev guid -> label txg
35 * examined every device, we pick the best label txg config for each toplevel
243 * it means we have a half-initialized label. In vdev_label_init()
244 * we write a label with txg == 0 so that we can identify the device
246 * create the pool, we'll be left with a label in this state
799 * Restore the original information read from the actual label.
846 * Return the offset of the given label.
857 * Given a file descriptor, read the label information and return an nvlist
865 vdev_label_t *label;
874 if ((label = malloc(sizeof (vdev_label_t))) == NULL)
878 if (pread64(fd, label, sizeof (vdev_label_t),
882 if (nvlist_unpack(label->vl_vdev_phys.vp_nvlist,
883 sizeof (label->vl_vdev_phys.vp_nvlist), config, 0) != 0)
899 free(label);
903 free(label);
1068 * Try to read the disk label first so we don't have to
1089 * Given a file descriptor, clear (zero) the label information. This function
1098 vdev_label_t *label;
1106 if ((label = calloc(1, sizeof (vdev_label_t))) == NULL)
1110 size = sizeof (label->vl_vdev_phys);
1112 if (pwrite64(fd, &label->vl_vdev_phys, size,
1115 size = sizeof (label->vl_uberblock);
1117 if (pwrite64(fd, &label->vl_vdev_phys, size,
1122 free(label);
1307 * Go through and read the label configuration information from every