Lines Matching refs:ubbest
403 uberblock_t *ubbest = NULL;
419 if (ubbest == NULL || vdev_uberblock_compare(ubnext, ubbest) > 0) {
420 ubbest = ubnext;
425 if (ubbest)
427 pickedub, (unsigned long long) ubbest->ub_txg);
429 return ubbest;
1874 uberblock_t *ubbest;
1891 ubbest = malloc(sizeof(*ubbest));
1892 if (!ubbest) {
1897 memset(ubbest, 0, sizeof(*ubbest));
1951 if (vdev_uberblock_compare(ubcur, ubbest) > 0) {
1953 memcpy(ubbest, ubcur, sizeof(*ubbest));
1962 if (!ubbest->ub_magic) {
1965 free(ubbest);
1969 debug("zfs ubbest %p in label %d\n", ubbest, bestlabel);
1972 zfs_to_cpu64(ubbest->ub_magic, LITTLE_ENDIAN) == UBERBLOCK_MAGIC
1977 err = zio_read(&ubbest->ub_rootbp, ub_endian, &osp, &ospsize, data);
1983 free(ubbest);
1991 free(ubbest);
1998 (zfs_to_cpu64(ubbest->ub_rootbp.blk_prop, ub_endian) >> 63) & 1;
1999 memmove(&(data->current_uberblock), ubbest, sizeof(uberblock_t));
2002 free(ubbest);