Searched refs:blksize (Results 1 – 2 of 2) sorted by relevance
/bootable/recovery/otautil/ |
D | SysUtil.cpp | 79 size_t blksize; in MapBlockFile() local 80 if (sscanf(lines[1].c_str(), "%zu %zu", &size, &blksize) != 2) { in MapBlockFile() 92 if (blksize != 0) { in MapBlockFile() 93 blocks = ((size - 1) / blksize) + 1; in MapBlockFile() 95 if (size == 0 || blksize == 0 || blocks > SIZE_MAX / blksize || range_count == 0 || in MapBlockFile() 97 LOG(ERROR) << "Invalid data in block map file: size " << size << ", blksize " << blksize in MapBlockFile() 103 void* reserve = mmap64(nullptr, blocks * blksize, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); in MapBlockFile() 113 munmap(reserve, blocks * blksize); in MapBlockFile() 120 size_t remaining_size = blocks * blksize; in MapBlockFile() 131 size_t range_size = (end - start) * blksize; in MapBlockFile() [all …]
|
/bootable/recovery/ |
D | fuse_sideload.cpp | 169 attr->blksize = 4096; in fill_attr() 173 attr->blocks = (size == 0) ? 0 : (((size-1) / attr->blksize) + 1); in fill_attr()
|