Lines Matching refs:total_sectors
524 uint64_t total_sectors;
599 total_sectors = off / sector_size;
600 last_sector = total_sectors - 1;
604 total_sectors = 0;
623 total_sectors = last_sector + 1;
626 /* <total_sectors> */
627 p = property_find(params, "total_sectors");
629 total_sectors = strtoul(p, &q, 0);
631 errx(1, "total_sectors not a proper number");
633 last_sector = first_sector + total_sectors - 1;
640 total_sectors--;
645 if (total_sectors != (last_sector - first_sector) + 1)
646 errx(1, "total_sectors disagree with first_sector and last_sector");
647 if (total_sectors == 0)
648 errx(1, "missing last_sector or total_sectors");