Searched refs:blksize (Results 1 – 1 of 1) sorted by relevance
/bootable/recovery/otautil/ |
D | SysUtil.cpp | 80 size_t blksize; in MapBlockFile() local 81 if (sscanf(lines[1].c_str(), "%zu %zu", &size, &blksize) != 2) { in MapBlockFile() 93 if (blksize != 0) { in MapBlockFile() 94 blocks = ((size - 1) / blksize) + 1; in MapBlockFile() 96 if (size == 0 || blksize == 0 || blocks > SIZE_MAX / blksize || range_count == 0 || in MapBlockFile() 98 LOG(ERROR) << "Invalid data in block map file: size " << size << ", blksize " << blksize in MapBlockFile() 104 void* reserve = mmap(nullptr, blocks * blksize, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); in MapBlockFile() 114 munmap(reserve, blocks * blksize); in MapBlockFile() 121 size_t remaining_size = blocks * blksize; in MapBlockFile() 132 size_t range_size = (end - start) * blksize; in MapBlockFile() [all …]
|