Searched refs:disk_size (Results 1 – 1 of 1) sorted by relevance
274 uint64_t disk_size; in validate() local312 if (ioctl(fd, BLKGETSIZE64, &disk_size) < 0) { in validate()317 dinfo->num_lba = (uint32_t)(disk_size / (uint64_t)dinfo->sect_size); in validate()319 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; in validate()327 disk_size = (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size; in validate()330 disk_size = (uint64_t)stat.st_size; in validate()339 dinfo->device, disk_size, dinfo->num_lba, dinfo->sect_size); in validate()372 if (S_ISBLK(stat.st_mode) && total_size > disk_size) { in validate()374 "size (%"PRIu64").", total_size, disk_size); in validate()