Searched refs:blocksz (Results 1 – 1 of 1) sorted by relevance
/system/core/fs_mgr/libfiemap_writer/ |
D | fiemap_writer.cpp | 199 static bool PerformFileChecks(const std::string& file_path, uint64_t file_size, uint64_t* blocksz, in PerformFileChecks() argument 230 *blocksz = sfs.f_bsize; in PerformFileChecks() 271 static bool AllocateFile(int file_fd, const std::string& file_path, uint64_t blocksz, in AllocateFile() argument 290 return FallocateFallback(file_fd, blocksz, file_size, file_path, on_progress); in AllocateFile() 299 auto buffer = std::unique_ptr<void, decltype(&free)>(calloc(1, blocksz), free); in AllocateFile() 313 if (!::android::base::WriteFully(file_fd, buffer.get(), blocksz)) { in AllocateFile() 314 PLOG(ERROR) << "Failed to write" << blocksz << " bytes at offset" << offset in AllocateFile() 319 offset += blocksz; in AllocateFile() 620 uint64_t blocksz; in Open() local 622 if (!PerformFileChecks(abs_path, file_size, &blocksz, &fs_type)) { in Open() [all …]
|