Home
last modified time | relevance | path

Searched refs:FiemapStatus (Results 1 – 19 of 19) sorted by relevance

/system/core/fs_mgr/libfiemap/include/libfiemap/
Dfiemap_status.h27 class FiemapStatus {
38 static FiemapStatus FromErrno(int error_num) { return FiemapStatus(CastErrorCode(-error_num)); } in FromErrno()
42 static FiemapStatus FromErrorCode(int32_t error_code) { in FromErrorCode()
43 return FiemapStatus(CastErrorCode(error_code)); in FromErrorCode()
47 static FiemapStatus Error() { return FiemapStatus(ErrorCode::ERROR); } in Error()
50 static FiemapStatus Ok() { return FiemapStatus(ErrorCode::SUCCESS); } in Ok()
60 FiemapStatus(ErrorCode code) : error_code_(code) {} in FiemapStatus() function
Dimage_manager.h63 virtual FiemapStatus CreateBackingImage(
128 virtual FiemapStatus ZeroFillNewImage(const std::string& name, uint64_t bytes) = 0;
150 FiemapStatus CreateBackingImage(const std::string& name, uint64_t size, int flags,
175 FiemapStatus ZeroFillNewImage(const std::string& name, uint64_t bytes);
Dfiemap_writer.h52 static FiemapStatus Open(const std::string& file_path, uint64_t file_size, FiemapUniquePtr* out,
Dsplit_fiemap_writer.h47 static FiemapStatus Create(const std::string& file_path, uint64_t file_size,
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dreturn.h27 using FiemapStatus = android::fiemap::FiemapStatus; variable
31 SUCCESS = static_cast<int32_t>(FiemapStatus::ErrorCode::SUCCESS),
32 ERROR = static_cast<int32_t>(FiemapStatus::ErrorCode::ERROR),
33 NO_SPACE = static_cast<int32_t>(FiemapStatus::ErrorCode::NO_SPACE),
46 explicit Return(const FiemapStatus& status) in Return()
56 static ErrorCode FromFiemapStatusErrorCode(FiemapStatus::ErrorCode error_code);
Dsnapshot.h308 using FiemapStatus = android::fiemap::FiemapStatus; variable
/system/core/fs_mgr/libsnapshot/
Dreturn.cpp19 using android::fiemap::FiemapStatus;
34 Return::ErrorCode Return::FromFiemapStatusErrorCode(FiemapStatus::ErrorCode error_code) { in FromFiemapStatusErrorCode()
36 case FiemapStatus::ErrorCode::SUCCESS: in FromFiemapStatusErrorCode()
37 case FiemapStatus::ErrorCode::ERROR: in FromFiemapStatusErrorCode()
38 case FiemapStatus::ErrorCode::NO_SPACE: in FromFiemapStatusErrorCode()
Dutility.cpp30 using android::fiemap::FiemapStatus;
115 return Return(FiemapStatus::FromErrno(errno)); in InitializeKernelCow()
121 return Return(FiemapStatus::FromErrno(errno)); in InitializeKernelCow()
Dsnapshot_fuzz_utils.h163 android::fiemap::FiemapStatus CreateBackingImage( in CreateBackingImage()
191 android::fiemap::FiemapStatus ZeroFillNewImage(const std::string& name, in ZeroFillNewImage()
Dsnapshot_test.cpp59 using android::fiemap::FiemapStatus;
2284 ASSERT_EQ(FiemapStatus::ErrorCode::NO_SPACE, res.error_code()) << res.string(); in TEST_P()
Dsnapshot.cpp65 using android::fiemap::FiemapStatus;
/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp265 static FiemapStatus FallocateFallback(int file_fd, uint64_t block_size, uint64_t file_size, in FallocateFallback()
283 return FiemapStatus::FromErrno(errno); in FallocateFallback()
287 return FiemapStatus::Error(); in FallocateFallback()
292 return FiemapStatus::FromErrno(errno); in FallocateFallback()
295 return FiemapStatus::Error(); in FallocateFallback()
298 return FiemapStatus::Ok(); in FallocateFallback()
385 static FiemapStatus WriteZeroes(int file_fd, const std::string& file_path, size_t blocksz, in WriteZeroes()
391 return FiemapStatus::Error(); in WriteZeroes()
397 return FiemapStatus::FromErrno(errno); in WriteZeroes()
405 return FiemapStatus::FromErrno(errno); in WriteZeroes()
[all …]
Dfiemap_status.cpp22 std::string FiemapStatus::string() const { in string()
31 FiemapStatus::ErrorCode FiemapStatus::CastErrorCode(int error_code) { in CastErrorCode()
Dbinder.cpp53 FiemapStatus CreateBackingImage(const std::string& name, uint64_t size, int flags,
63 FiemapStatus ZeroFillNewImage(const std::string& name, uint64_t bytes) override;
77 static FiemapStatus ToFiemapStatus(const char* func, const binder::Status& status) { in ToFiemapStatus()
81 return FiemapStatus::FromErrorCode(status.serviceSpecificErrorCode()); in ToFiemapStatus()
83 return FiemapStatus::Error(); in ToFiemapStatus()
86 return FiemapStatus::Ok(); in ToFiemapStatus()
93 FiemapStatus ImageManagerBinder::CreateBackingImage( in CreateBackingImage()
182 FiemapStatus ImageManagerBinder::ZeroFillNewImage(const std::string& name, uint64_t bytes) { in ZeroFillNewImage()
Dimage_manager.cpp162 FiemapStatus ImageManager::CreateBackingImage( in CreateBackingImage()
174 return FiemapStatus::Error(); in CreateBackingImage()
185 return FiemapStatus::Error(); in CreateBackingImage()
200 return FiemapStatus::Error(); in CreateBackingImage()
205 return FiemapStatus::Error(); in CreateBackingImage()
215 return FiemapStatus::Ok(); in CreateBackingImage()
218 FiemapStatus ImageManager::ZeroFillNewImage(const std::string& name, uint64_t bytes) { in ZeroFillNewImage()
226 return FiemapStatus::Error(); in ZeroFillNewImage()
232 return FiemapStatus::Ok(); in ZeroFillNewImage()
240 return FiemapStatus::Error(); in ZeroFillNewImage()
[all …]
Dsplit_fiemap_writer.cpp55 FiemapStatus SplitFiemap::Create(const std::string& file_path, uint64_t file_size, in Create()
62 return FiemapStatus::Error(); in Create()
100 return FiemapStatus::Error(); in Create()
128 return FiemapStatus::FromErrno(errno); in Create()
136 return FiemapStatus::FromErrno(errno); in Create()
143 return FiemapStatus::Ok(); in Create()
Dutility.h31 FiemapStatus DetermineMaximumFileSize(const std::string& file_path, uint64_t* result);
Dutility.cpp40 FiemapStatus DetermineMaximumFileSize(const std::string& file_path, uint64_t* result) { in DetermineMaximumFileSize()
74 return FiemapStatus::Ok(); in DetermineMaximumFileSize()
/system/gsid/
Dgsi_service.cpp453 FiemapStatus::ErrorCode status = FiemapStatus::ErrorCode::ERROR) { in BinderError()