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.h56 virtual FiemapStatus CreateBackingImage(
121 virtual FiemapStatus ZeroFillNewImage(const std::string& name, uint64_t bytes) = 0;
141 FiemapStatus CreateBackingImage(const std::string& name, uint64_t size, int flags,
166 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.h257 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.cpp29 using android::fiemap::FiemapStatus;
114 return Return(FiemapStatus::FromErrno(errno)); in InitializeCow()
120 return Return(FiemapStatus::FromErrno(errno)); in InitializeCow()
Dsnapshot_fuzz_utils.h158 android::fiemap::FiemapStatus CreateBackingImage( in CreateBackingImage()
186 android::fiemap::FiemapStatus ZeroFillNewImage(const std::string& name, in ZeroFillNewImage()
Dsnapshot_test.cpp55 using android::fiemap::FiemapStatus;
1842 ASSERT_EQ(FiemapStatus::ErrorCode::NO_SPACE, res.error_code()) << res.string(); in TEST_P()
Dsnapshot.cpp58 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.cpp148 FiemapStatus ImageManager::CreateBackingImage( in CreateBackingImage()
160 return FiemapStatus::Error(); in CreateBackingImage()
171 return FiemapStatus::Error(); in CreateBackingImage()
186 return FiemapStatus::Error(); in CreateBackingImage()
191 return FiemapStatus::Error(); in CreateBackingImage()
201 return FiemapStatus::Ok(); in CreateBackingImage()
204 FiemapStatus ImageManager::ZeroFillNewImage(const std::string& name, uint64_t bytes) { in ZeroFillNewImage()
212 return FiemapStatus::Error(); in ZeroFillNewImage()
218 return FiemapStatus::Ok(); in ZeroFillNewImage()
226 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.cpp413 FiemapStatus::ErrorCode status = FiemapStatus::ErrorCode::ERROR) { in BinderError()