Lines Matching refs:file_size
114 bool WritePartition(borrowed_fd fd, uint64_t file_size, const std::string& partition_name);
115 bool WriteExtent(borrowed_fd fd, uint64_t file_size, const LpMetadataExtent& extent);
176 uint64_t file_size; in AddPartition() local
200 file_size = (uint64_t)size; in AddPartition()
211 if (source_fd >= 0 && !WritePartition(source_fd, file_size, partition_name)) { in AddPartition()
295 bool SuperHelper::WritePartition(borrowed_fd fd, uint64_t file_size, in WritePartition() argument
307 if (!WriteExtent(fd, file_size, extent)) { in WritePartition()
314 CHECK(pos >= 0 && (uint64_t)pos == file_size); in WritePartition()
318 bool SuperHelper::WriteExtent(borrowed_fd fd, uint64_t file_size, const LpMetadataExtent& extent) { in WriteExtent() argument
331 CHECK((uint64_t)pos <= file_size); in WriteExtent()
333 std::min(file_size - (uint64_t)pos, extent.num_sectors * LP_SECTOR_SIZE); in WriteExtent()