Searched refs:blocksz (Results 1 – 1 of 1) sorted by relevance
/system/core/fs_mgr/libfiemap/ |
D | fiemap_writer.cpp | 236 static bool PerformFileChecks(const std::string& file_path, uint64_t* blocksz, uint32_t* fs_type) { in PerformFileChecks() argument 260 *blocksz = sfs.f_bsize; in PerformFileChecks() 385 static FiemapStatus WriteZeroes(int file_fd, const std::string& file_path, size_t blocksz, in WriteZeroes() argument 388 auto buffer = std::unique_ptr<void, decltype(&free)>(calloc(1, blocksz), free); in WriteZeroes() 402 if (!::android::base::WriteFully(file_fd, buffer.get(), blocksz)) { in WriteZeroes() 403 PLOG(ERROR) << "Failed to write" << blocksz << " bytes at offset" << offset in WriteZeroes() 408 offset += blocksz; in WriteZeroes() 432 static FiemapStatus AllocateFile(int file_fd, const std::string& file_path, uint64_t blocksz, in AllocateFile() argument 455 return FallocateFallback(file_fd, blocksz, file_size, file_path, on_progress); in AllocateFile() 467 auto status = WriteZeroes(file_fd, file_path, blocksz, file_size, on_progress); in AllocateFile() [all …]
|