search for: ubbest

Displaying 1 result from an estimated 1 matches for "ubbest".

2013 Oct 26
2
[PATCH] 1. changes for vdiskadm on illumos based platform
..._verify(uberblock_phys_t *ub, u * Success - Pointer to the best uberblock. * Failure - NULL */ -static uberblock_phys_t * -find_bestub(uberblock_phys_t *ub_array, uint64_t sector) +static uberblock_t * +find_bestub(char *ub_array, uint64_t ashift, uint64_t sector) { - uberblock_phys_t *ubbest = NULL; - uint64_t offset; + uberblock_t *ubbest = NULL; + uberblock_t *ubnext; + uint64_t offset, ub_size; int i; - for (i = 0; i < (VDEV_UBERBLOCK_RING >> VDEV_UBERBLOCK_SHIFT); i++) { + ub_size = VDEV_UBERBLOCK_SIZE(ashift); + + for (i = 0; i < VDEV_UBERBLOCK_COUNT(ashift); i++)...