Lines Matching refs:total_sectors
894 uint32_t total_sectors; in get_device_info() local
965 dev->total_sectors = c.device_size / dev->sector_size; in get_device_info()
967 dev->total_sectors = stat_buf->st_size / dev->sector_size; in get_device_info()
976 if (ioctl(fd, BLKGETSIZE64, &dev->total_sectors) < 0) { in get_device_info()
982 if (ioctl(fd, BLKGETSIZE, &total_sectors) < 0) { in get_device_info()
987 dev->total_sectors = total_sectors; in get_device_info()
989 dev->total_sectors /= dev->sector_size; in get_device_info()
1085 c.total_sectors += dev->total_sectors; in get_device_info()
1176 dev->total_sectors = device_size / dev->sector_size; in get_device_info()
1180 c.total_sectors += dev->total_sectors; in get_device_info()
1202 if (c.wanted_total_sectors < c.total_sectors) { in f2fs_get_f2fs_info()
1204 c.total_sectors, c.sector_size); in f2fs_get_f2fs_info()
1205 c.total_sectors = c.wanted_total_sectors; in f2fs_get_f2fs_info()
1206 c.devices[0].total_sectors = c.total_sectors; in f2fs_get_f2fs_info()
1208 if (c.total_sectors * c.sector_size > in f2fs_get_f2fs_info()
1280 c.total_sectors, (c.total_sectors * in f2fs_get_f2fs_info()