Lines Matching refs:file_size
53 uint64_t file_size; in ParseBlockMapFile() local
55 if (sscanf(lines[1].c_str(), "%" SCNu64 "%" SCNu32, &file_size, &blksize) != 2) { in ParseBlockMapFile()
60 if (file_size == 0 || blksize == 0) { in ParseBlockMapFile()
61 LOG(ERROR) << "Invalid size in block map file: size " << file_size << ", blksize " << blksize; in ParseBlockMapFile()
71 uint64_t blocks = ((file_size - 1) / blksize) + 1; in ParseBlockMapFile()
74 LOG(ERROR) << "Invalid data in block map file: size " << file_size << ", blksize " << blksize in ParseBlockMapFile()
102 return BlockMapData(block_dev, file_size, blksize, std::move(ranges)); in ParseBlockMapFile()
132 if (block_map_data.file_size() > std::numeric_limits<size_t>::max()) { in MapBlockFile()
133 LOG(ERROR) << "File size is too large for mmap " << block_map_data.file_size(); in MapBlockFile()
139 uint64_t blocks = ((block_map_data.file_size() - 1) / blksize) + 1; in MapBlockFile()
178 length = block_map_data.file_size(); in MapBlockFile()