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()
59 explicit FiemapStatus(ErrorCode code) : error_code_(code) {} in FiemapStatus() function
Dimage_manager.h63 virtual FiemapStatus CreateBackingImage(
125 virtual FiemapStatus ZeroFillNewImage(const std::string& name, uint64_t bytes) = 0;
150 FiemapStatus CreateBackingImage(const std::string& name, uint64_t size, int flags,
176 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.h311 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.cpp34 using android::fiemap::FiemapStatus;
120 return Return(FiemapStatus::FromErrno(errno)); in InitializeKernelCow()
126 return Return(FiemapStatus::FromErrno(errno)); in InitializeKernelCow()
Dsnapshot_test.cpp76 using android::fiemap::FiemapStatus;
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;
78 static FiemapStatus ToFiemapStatus(const char* func, const binder::Status& status) { in ToFiemapStatus()
82 return FiemapStatus::FromErrorCode(status.serviceSpecificErrorCode()); in ToFiemapStatus()
84 return FiemapStatus::Error(); in ToFiemapStatus()
87 return FiemapStatus::Ok(); in ToFiemapStatus()
94 FiemapStatus ImageManagerBinder::CreateBackingImage( in CreateBackingImage()
183 FiemapStatus ImageManagerBinder::ZeroFillNewImage(const std::string& name, uint64_t bytes) { in ZeroFillNewImage()
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()
144 return FiemapStatus::Ok(); in Create()
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 …]
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()
Dfiemap_writer_test.cpp546 ASSERT_EQ(status.error_code(), FiemapStatus::ErrorCode::NO_SPACE); in TEST_F()
551 ASSERT_NE(status.error_code(), FiemapStatus::ErrorCode::NO_SPACE); in TEST_F()
/system/gsid/
Dgsi_service.cpp464 FiemapStatus::ErrorCode status = FiemapStatus::ErrorCode::ERROR) { in BinderError()