Searched refs:disk_size (Results 1 – 1 of 1) sorted by relevance
275 uint64_t disk_size; in validate() local313 if (ioctl(fd, BLKGETSIZE64, &disk_size) < 0) { in validate()318 dinfo->num_lba = (uint32_t)(disk_size / (uint64_t)dinfo->sect_size); in validate()320 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; in validate()328 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; in validate()331 disk_size = (uint64_t)stat.st_size; in validate()340 dinfo->device, disk_size, dinfo->num_lba, dinfo->sect_size); in validate()373 if (S_ISBLK(stat.st_mode) && total_size > disk_size) { in validate()375 "size (%llu).", total_size, disk_size); in validate()