Searched refs:blksize (Results 1 – 2 of 2) sorted by relevance
/bootable/recovery/otautil/ |
D | SysUtil.cpp | 84 unsigned int blksize; in sysMapBlockFile() local 85 if (sscanf(lines[1].c_str(), "%zu %u", &size, &blksize) != 2) { in sysMapBlockFile() 97 if (blksize != 0) { in sysMapBlockFile() 98 blocks = ((size - 1) / blksize) + 1; in sysMapBlockFile() 100 if (size == 0 || blksize == 0 || blocks > SIZE_MAX / blksize || range_count == 0 || in sysMapBlockFile() 102 LOG(ERROR) << "Invalid data in block map file: size " << size << ", blksize " << blksize in sysMapBlockFile() 108 void* reserve = mmap64(nullptr, blocks * blksize, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); in sysMapBlockFile() 118 munmap(reserve, blocks * blksize); in sysMapBlockFile() 125 size_t remaining_size = blocks * blksize; in sysMapBlockFile() 136 size_t length = (end - start) * blksize; in sysMapBlockFile() [all …]
|
/bootable/recovery/ |
D | fuse_sideload.cpp | 166 attr->blksize = 4096; in fill_attr() 170 attr->blocks = (size == 0) ? 0 : (((size-1) / attr->blksize) + 1); in fill_attr()
|