Lines Matching refs:ubbest
402 uberblock_t *ubbest = NULL; in find_bestub() local
418 if (ubbest == NULL || vdev_uberblock_compare(ubnext, ubbest) > 0) { in find_bestub()
419 ubbest = ubnext; in find_bestub()
424 if (ubbest) in find_bestub()
426 pickedub, (unsigned long long) ubbest->ub_txg); in find_bestub()
428 return ubbest; in find_bestub()
1850 uberblock_t *ubbest; in zfs_mount() local
1867 ubbest = malloc(sizeof(*ubbest)); in zfs_mount()
1868 if (!ubbest) { in zfs_mount()
1873 memset(ubbest, 0, sizeof(*ubbest)); in zfs_mount()
1927 if (vdev_uberblock_compare(ubcur, ubbest) > 0) { in zfs_mount()
1929 memcpy(ubbest, ubcur, sizeof(*ubbest)); in zfs_mount()
1938 if (!ubbest->ub_magic) { in zfs_mount()
1941 free(ubbest); in zfs_mount()
1945 debug("zfs ubbest %p in label %d\n", ubbest, bestlabel); in zfs_mount()
1948 zfs_to_cpu64(ubbest->ub_magic, LITTLE_ENDIAN) == UBERBLOCK_MAGIC in zfs_mount()
1953 err = zio_read(&ubbest->ub_rootbp, ub_endian, &osp, &ospsize, data); in zfs_mount()
1959 free(ubbest); in zfs_mount()
1967 free(ubbest); in zfs_mount()
1974 (zfs_to_cpu64(ubbest->ub_rootbp.blk_prop, ub_endian) >> 63) & 1; in zfs_mount()
1975 memmove(&(data->current_uberblock), ubbest, sizeof(uberblock_t)); in zfs_mount()
1978 free(ubbest); in zfs_mount()