Searched refs:metadata_dir (Results 1 – 7 of 7) sorted by relevance
/system/core/fs_mgr/libfiemap/ |
D | metadata.cpp | 36 std::string GetMetadataFile(const std::string& metadata_dir) { in GetMetadataFile() argument 37 return JoinPaths(metadata_dir, "lp_metadata"); in GetMetadataFile() 40 bool MetadataExists(const std::string& metadata_dir) { in MetadataExists() argument 41 auto metadata_file = GetMetadataFile(metadata_dir); in MetadataExists() 51 std::unique_ptr<LpMetadata> OpenMetadata(const std::string& metadata_dir) { in OpenMetadata() argument 52 auto metadata_file = GetMetadataFile(metadata_dir); in OpenMetadata() 62 std::unique_ptr<MetadataBuilder> OpenOrCreateMetadata(const std::string& metadata_dir, in OpenOrCreateMetadata() argument 64 auto metadata_file = GetMetadataFile(metadata_dir); in OpenOrCreateMetadata() 86 auto metadata = OpenMetadata(metadata_dir); in OpenOrCreateMetadata() 100 bool SaveMetadata(MetadataBuilder* builder, const std::string& metadata_dir) { in SaveMetadata() argument [all …]
|
D | metadata.h | 28 bool MetadataExists(const std::string& metadata_dir); 29 std::unique_ptr<android::fs_mgr::LpMetadata> OpenMetadata(const std::string& metadata_dir); 30 bool UpdateMetadata(const std::string& metadata_dir, const std::string& partition_name, 32 bool AddAttributes(const std::string& metadata_dir, const std::string& partition_name, 34 bool RemoveImageMetadata(const std::string& metadata_dir, const std::string& partition_name);
|
D | image_manager.cpp | 57 auto metadata_dir = "/metadata/gsi/" + dir_prefix; in Open() local 64 return Open(metadata_dir, data_dir); in Open() 67 std::unique_ptr<ImageManager> ImageManager::Open(const std::string& metadata_dir, in Open() argument 69 return std::unique_ptr<ImageManager>(new ImageManager(metadata_dir, data_dir)); in Open() 72 ImageManager::ImageManager(const std::string& metadata_dir, const std::string& data_dir) in ImageManager() argument 73 : metadata_dir_(metadata_dir), data_dir_(data_dir) { in ImageManager()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_fuzz_utils.h | 83 const std::string& metadata_dir, const std::string& data_dir); 100 const std::string& metadata_dir) in SnapshotFuzzDeviceInfo() argument 103 metadata_dir_(metadata_dir) {} in SnapshotFuzzDeviceInfo() 143 static std::unique_ptr<SnapshotFuzzImageManager> Open(const std::string& metadata_dir, in Open() argument 145 auto impl = android::fiemap::ImageManager::Open(metadata_dir, data_dir); in Open()
|
D | snapshot_fuzz_utils.cpp | 385 const std::string& metadata_dir, const std::string& data_dir) { in CheckCreateFakeImageManager() argument 386 PCHECK(Mkdir(metadata_dir)); in CheckCreateFakeImageManager() 388 return SnapshotFuzzImageManager::Open(metadata_dir, data_dir); in CheckCreateFakeImageManager() 425 auto metadata_dir = fake_root_->tmp_path() + "/snapshot_metadata"; in CheckCreateSnapshotManager() local 426 PCHECK(Mkdir(metadata_dir)); in CheckCreateSnapshotManager() 428 PCHECK(Mkdir(metadata_dir + "/snapshots")); in CheckCreateSnapshotManager() 432 std::move(partition_opener), metadata_dir); in CheckCreateSnapshotManager()
|
/system/core/fs_mgr/libfiemap/include/libfiemap/ |
D | image_manager.h | 133 static std::unique_ptr<ImageManager> Open(const std::string& metadata_dir, 169 ImageManager(const std::string& metadata_dir, const std::string& data_dir);
|
/system/gsid/ |
D | gsi_service.cpp | 98 auto metadata_dir = android::base::Dirname(install_dir_file); in SaveInstallation() local 99 if (access(metadata_dir.c_str(), F_OK) != 0) { in SaveInstallation() 100 if (mkdir(metadata_dir.c_str(), 0777) != 0) { in SaveInstallation() 101 PLOG(ERROR) << "Failed to mkdir " << metadata_dir; in SaveInstallation() 714 std::string metadata_dir, data_dir; in openImageService() local 715 if (!android::base::Realpath(in_metadata_dir, &metadata_dir)) { in openImageService() 723 if (!android::base::StartsWith(metadata_dir, kImageMetadataPrefix) || in openImageService() 733 auto impl = ImageManager::Open(metadata_dir, data_dir); in openImageService()
|