Lines Matching refs:total_sectors
350 c->total_sectors = 0; in f2fs_init_configuration()
437 uint32_t total_sectors; in f2fs_get_device_info() local
441 u_int64_t wanted_total_sectors = c->total_sectors; in f2fs_get_device_info()
460 c->total_sectors = stat_buf.st_size / c->sector_size; in f2fs_get_device_info()
472 if (ioctl(fd, BLKGETSIZE64, &c->total_sectors) < 0) { in f2fs_get_device_info()
476 c->total_sectors /= c->sector_size; in f2fs_get_device_info()
478 if (ioctl(fd, BLKGETSIZE, &total_sectors) < 0) { in f2fs_get_device_info()
482 total_sectors /= c->sector_size; in f2fs_get_device_info()
483 c->total_sectors = total_sectors; in f2fs_get_device_info()
493 if (wanted_total_sectors && wanted_total_sectors < c->total_sectors) { in f2fs_get_device_info()
495 c->total_sectors, c->sector_size); in f2fs_get_device_info()
496 c->total_sectors = wanted_total_sectors; in f2fs_get_device_info()
501 c->total_sectors, c->sector_size); in f2fs_get_device_info()
502 if (c->total_sectors < in f2fs_get_device_info()