Lines Matching refs:file_size
117 bool WritePartition(borrowed_fd fd, uint64_t file_size, const std::string& partition_name);
118 bool WriteExtent(borrowed_fd fd, uint64_t file_size, const LpMetadataExtent& extent);
188 uint64_t file_size; in AddPartition() local
212 file_size = (uint64_t)size; in AddPartition()
223 if (source_fd >= 0 && !WritePartition(source_fd, file_size, partition_name)) { in AddPartition()
307 bool SuperHelper::WritePartition(borrowed_fd fd, uint64_t file_size, in WritePartition() argument
319 if (!WriteExtent(fd, file_size, extent)) { in WritePartition()
326 CHECK(pos >= 0 && (uint64_t)pos == file_size); in WritePartition()
330 bool SuperHelper::WriteExtent(borrowed_fd fd, uint64_t file_size, const LpMetadataExtent& extent) { in WriteExtent() argument
343 CHECK((uint64_t)pos <= file_size); in WriteExtent()
345 std::min(file_size - (uint64_t)pos, extent.num_sectors * LP_SECTOR_SIZE); in WriteExtent()