Home | History | Annotate | Download | only in block

Lines Matching defs:total_sectors

178     bs->total_sectors = (int64_t)
337 if ((sector_num < 0) || (sector_num > bs->total_sectors))
448 * Note that the geometry doesn't always exactly match total_sectors but
453 static int calculate_geometry(int64_t total_sectors, uint16_t* cyls,
458 if (total_sectors > 65535 * 16 * 255)
461 if (total_sectors > 65535 * 16 * 63) {
464 cyls_times_heads = total_sectors / *secs_per_cyl;
467 cyls_times_heads = total_sectors / *secs_per_cyl;
476 cyls_times_heads = total_sectors / *secs_per_cyl;
482 cyls_times_heads = total_sectors / *secs_per_cyl;
502 int64_t total_sectors = 0;
507 total_sectors = options->value.n / 512;
519 for (i = 0; total_sectors > (int64_t)cyls * heads * secs_per_cyl; i++) {
520 if (calculate_geometry(total_sectors + i,
525 total_sectors = (int64_t) cyls * heads * secs_per_cyl;
544 footer->orig_size = be64_to_cpu(total_sectors * 512);
545 footer->size = be64_to_cpu(total_sectors * 512);
559 num_bat_entries = (total_sectors + block_size / 512) / (block_size / 512);