Lines Matching refs:disk_einfo
328 * Given information on the boot block currently on disk (disk_einfo) and
334 einfo_should_update(bblk_einfo_t *disk_einfo, bblk_hs_t *hs, char *verstr)
342 if (disk_einfo == NULL)
345 if (memcmp(disk_einfo->magic, EINFO_MAGIC, EINFO_MAGIC_SIZE) != 0)
348 if (disk_einfo->version < BBLK_EINFO_VERSION)
351 disk_version = einfo_get_string(disk_einfo);
366 if (disk_einfo->hash_type == bblk_no_hash.type)
369 if (disk_einfo->hash_type >= BBLK_HASH_TOT)
372 hashing = bblk_hash_list[disk_einfo->hash_type];
387 disk_hash = (unsigned char *)einfo_get_hash(disk_einfo);
389 if (memcmp(local_hash, disk_hash, disk_einfo->hash_size) == 0) {