Home
last modified time | relevance | path

Searched refs:fs_mgr (Results 1 – 25 of 172) sorted by relevance

1234567

/system/core/fs_mgr/include/
Dfs_mgr.h83 MountAllResult fs_mgr_mount_all(android::fs_mgr::Fstab* fstab, int mount_mode);
88 int fs_mgr_do_mount(android::fs_mgr::Fstab* fstab, const char* n_name, char* n_blk_device,
90 int fs_mgr_do_mount(android::fs_mgr::Fstab* fstab, const char* n_name, char* n_blk_device,
92 int fs_mgr_do_mount_one(const android::fs_mgr::FstabEntry& entry,
97 bool fs_mgr_is_verity_enabled(const android::fs_mgr::FstabEntry& entry);
100 std::optional<HashtreeInfo> fs_mgr_get_hashtree_info(const android::fs_mgr::FstabEntry& entry);
102 bool fs_mgr_swapon_all(const android::fs_mgr::Fstab& fstab);
103 bool fs_mgr_update_logical_partition(android::fs_mgr::FstabEntry* entry);
107 bool fs_mgr_verity_is_check_at_most_once(const android::fs_mgr::FstabEntry& entry);
109 int fs_mgr_do_format(const android::fs_mgr::FstabEntry& entry);
[all …]
Dfs_mgr_overlayfs.h27 bool fs_mgr_overlayfs_mount_all(android::fs_mgr::Fstab* fstab);
31 namespace fs_mgr {
/system/core/fs_mgr/
Dfs_mgr_priv_overlayfs.h24 bool fs_mgr_wants_overlayfs(android::fs_mgr::FstabEntry* entry);
25 android::fs_mgr::Fstab fs_mgr_overlayfs_candidate_list(const android::fs_mgr::Fstab& fstab);
32 bool fs_mgr_overlayfs_setup(const android::fs_mgr::Fstab& fstab, const char* mount_point = nullptr,
44 namespace fs_mgr {
Dfs_mgr_priv.h92 bool fs_mgr_update_for_slotselect(android::fs_mgr::Fstab* fstab);
100 bool fs_mgr_teardown_verity(android::fs_mgr::FstabEntry* fstab);
113 namespace fs_mgr {
Dfs_mgr_dm_linear.cpp47 namespace fs_mgr { namespace
209 if (android::fs_mgr::GetPartitionName(metadata_partition) == partition_name) { in InitDefaults()
220 partition_name = android::fs_mgr::GetPartitionName(*partition); in InitDefaults()
221 } else if (partition_name != android::fs_mgr::GetPartitionName(*partition)) { in InitDefaults()
223 << android::fs_mgr::GetPartitionName(*partition); in InitDefaults()
258 if (partition) return android::fs_mgr::GetPartitionName(*partition); in GetPartitionName()
Dfs_mgr_remount.cpp49 using android::fs_mgr::Fstab;
50 using android::fs_mgr::FstabEntry;
85 const std::string system_mount_point(const android::fs_mgr::FstabEntry& entry) { in system_mount_point()
142 static bool ReadFstab(const char* fstab_file, android::fs_mgr::Fstab* fstab) { in ReadFstab()
144 return android::fs_mgr::ReadFstabFromFile(fstab_file, fstab); in ReadFstab()
146 if (!android::fs_mgr::ReadDefaultFstab(fstab)) { in ReadFstab()
152 android::fs_mgr::Fstab mounts; in ReadFstab()
153 if (android::fs_mgr::ReadFstabFromFile("/proc/mounts", &mounts)) { in ReadFstab()
207 if (!android::fs_mgr::ReadFstabFromFile("/proc/mounts", &mounts)) { in FindPartition()
527 android::fs_mgr::Fstab mounts; in do_remount()
[all …]
/system/core/fs_mgr/fuzz/
Dfs_mgr_fstab_fuzzer.cpp34 android::fs_mgr::Fstab fstab; in LLVMFuzzerTestOneInput()
35 android::fs_mgr::ParseFstabFromString(make_fstab_str, /* proc_mounts = */ false, &fstab); in LLVMFuzzerTestOneInput()
36 android::fs_mgr::TransformFstabForDsu(&fstab, dsu_slot, dsu_partitions); in LLVMFuzzerTestOneInput()
37 android::fs_mgr::SkipMountWithConfig(skip_mount_config, &fstab, /* verbose = */ false); in LLVMFuzzerTestOneInput()
/system/core/trusty/storage/proxy/
Dcheckpoint_handling.cpp45 android::fs_mgr::Fstab procMounts; in is_data_checkpoint_active()
46 bool success = android::fs_mgr::ReadFstabFromFile("/proc/mounts", &procMounts); in is_data_checkpoint_active()
53 android::fs_mgr::FstabEntry* dataEntry = in is_data_checkpoint_active()
54 android::fs_mgr::GetEntryForMountPoint(&procMounts, "/data"); in is_data_checkpoint_active()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.h33 using Extent = android::fs_mgr::Extent;
35 using Interval = android::fs_mgr::Interval;
36 using MetadataBuilder = android::fs_mgr::MetadataBuilder;
37 using Partition = android::fs_mgr::Partition;
Dutility.cpp35 using android::fs_mgr::EnsurePathMounted;
36 using android::fs_mgr::EnsurePathUnmounted;
37 using android::fs_mgr::Fstab;
38 using android::fs_mgr::GetEntryForPath;
39 using android::fs_mgr::IPropertyFetcher;
40 using android::fs_mgr::MetadataBuilder;
41 using android::fs_mgr::Partition;
42 using android::fs_mgr::ReadDefaultFstab;
273 auto suffix = android::fs_mgr::GetPartitionSlotSuffix(name); in GetOtherPartitionName()
Dsnapshotctl.cpp43 using android::fs_mgr::CreateLogicalPartitionParams;
44 using android::fs_mgr::FindPartition;
45 using android::fs_mgr::GetPartitionSize;
46 using android::fs_mgr::PartitionOpener;
47 using android::fs_mgr::ReadMetadata;
48 using android::fs_mgr::SlotNumberForSlotSuffix;
Dutility.h102 AutoUnmountDevice(const std::string& path, android::fs_mgr::Fstab&& fstab) in AutoUnmountDevice()
104 android::fs_mgr::Fstab fstab_;
108 std::vector<android::fs_mgr::Partition*> ListPartitionsWithSuffix(
109 android::fs_mgr::MetadataBuilder* builder, const std::string& suffix);
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_device_test.cpp26 using android::fs_mgr::AvbHandle;
27 using android::fs_mgr::AvbHandleStatus;
28 using android::fs_mgr::Fstab;
29 using android::fs_mgr::FstabEntry;
30 using android::fs_mgr::VBMetaData;
31 using android::fs_mgr::VBMetaVerifyResult;
/system/core/fs_mgr/libfiemap/
Dmetadata.h30 std::unique_ptr<android::fs_mgr::LpMetadata> OpenMetadata(const std::string& metadata_dir);
38 bool FillPartitionExtents(android::fs_mgr::MetadataBuilder* builder,
39 android::fs_mgr::Partition* partition, android::fiemap::SplitFiemap* file,
Dimage_manager.cpp47 using android::fs_mgr::CreateLogicalPartition;
48 using android::fs_mgr::CreateLogicalPartitionParams;
49 using android::fs_mgr::CreateLogicalPartitions;
50 using android::fs_mgr::DestroyLogicalPartition;
51 using android::fs_mgr::GetBlockDevicePartitionName;
52 using android::fs_mgr::GetBlockDevicePartitionNames;
53 using android::fs_mgr::GetPartitionName;
79 partition_opener_ = std::make_unique<android::fs_mgr::PartitionOpener>(); in ImageManager()
306 auto super = android::fs_mgr::GetMetadataSuperBlockDevice(*metadata.get()); in MapWithDmLinear()
307 auto block_device = android::fs_mgr::GetBlockDevicePartitionName(*super); in MapWithDmLinear()
[all …]
/system/core/fastboot/
Dsuper_flash_helper.h48 android::fs_mgr::SuperLayoutBuilder builder_;
49 std::unique_ptr<android::fs_mgr::LpMetadata> base_metadata_;
50 std::vector<android::fs_mgr::SuperImageExtent> extents_;
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp36 using namespace android::fs_mgr;
215 TEST(fs_mgr, fs_mgr_parse_cmdline) { in TEST() argument
219 TEST(fs_mgr, fs_mgr_get_boot_config_from_kernel_cmdline) { in TEST() argument
234 TEST(fs_mgr, fs_mgr_parse_bootconfig) { in TEST() argument
238 TEST(fs_mgr, fs_mgr_get_boot_config_from_bootconfig) { in TEST() argument
255 TEST(fs_mgr, fs_mgr_read_fstab_file_proc_mounts) { in TEST() argument
320 TEST(fs_mgr, ReadFstabFromFile_MountOptions) { in TEST() argument
406 TEST(fs_mgr, ReadFstabFromFile_FsMgrFlags) { in TEST() argument
481 TEST(fs_mgr, ReadFstabFromFile_FsMgrOptions_AllBad) { in TEST() argument
540 TEST(fs_mgr, ReadFstabFromFile_FsMgrOptions_FDE) { in TEST() argument
[all …]
Dvts_fs_test.cpp73 android::fs_mgr::Fstab fstab; in TEST()
74 ASSERT_TRUE(android::fs_mgr::ReadFstabFromFile("/proc/mounts", &fstab)); in TEST()
134 android::fs_mgr::Fstab fstab; in TEST()
135 EXPECT_FALSE(android::fs_mgr::ReadFstabFromDt(&fstab, false)); in TEST()
143 const auto& default_fstab_path = android::fs_mgr::GetFstabPath(); in TEST()
/system/extras/boot_control_copy/
Dbootinfo.cpp35 using android::fs_mgr::Fstab;
36 using android::fs_mgr::GetEntryForMountPoint;
37 using android::fs_mgr::ReadDefaultFstab;
38 using android::fs_mgr::ReadFstabFromFile;
/system/core/fs_mgr/libvbmeta/
Dsuper_vbmeta_test.cpp35 using android::fs_mgr::GetFileSize;
36 using android::fs_mgr::ReadVBMetaImage;
147 EXPECT_RESULT_OK(android::fs_mgr::ReadPrimaryVBMetaTable(fd, &table)); in TEST()
149 EXPECT_RESULT_OK(android::fs_mgr::ReadBackupVBMetaTable(fd, &table_backup)); in TEST()
150 EXPECT_EQ(android::fs_mgr::SerializeVBMetaTable(table), in TEST()
151 android::fs_mgr::SerializeVBMetaTable(table_backup)); in TEST()
154 std::string serial_table = android::fs_mgr::SerializeVBMetaTable(table); in TEST()
/system/core/init/
Dfirst_stage_mount.cpp60 using android::fs_mgr::AvbHandle;
61 using android::fs_mgr::AvbHandleStatus;
62 using android::fs_mgr::AvbHashtreeResult;
63 using android::fs_mgr::AvbUniquePtr;
64 using android::fs_mgr::Fstab;
65 using android::fs_mgr::FstabEntry;
66 using android::fs_mgr::ReadDefaultFstab;
67 using android::fs_mgr::ReadFstabFromDt;
68 using android::fs_mgr::SkipMountingPartitions;
69 using android::fs_mgr::TransformFstabForDsu;
[all …]
/system/update_engine/aosp/
Dmetrics_reporter_android.cc37 using android::fs_mgr::GetPartitionGroupName;
38 using android::fs_mgr::LpMetadata;
39 using android::fs_mgr::MetadataBuilder;
40 using android::fs_mgr::ReadMetadata;
41 using android::fs_mgr::SlotNumberForSlotSuffix;
Ddynamic_partition_control_android.h133 virtual std::unique_ptr<android::fs_mgr::MetadataBuilder> LoadMetadataBuilder(
140 virtual std::unique_ptr<android::fs_mgr::MetadataBuilder> LoadMetadataBuilder(
147 android::fs_mgr::MetadataBuilder* builder,
252 bool UpdatePartitionMetadata(android::fs_mgr::MetadataBuilder* builder,
278 android::fs_mgr::MetadataBuilder* builder,
307 bool DeleteSourcePartitions(android::fs_mgr::MetadataBuilder* builder,
/system/extras/partition_tools/
Dlpadd.cc31 using android::fs_mgr::LpMetadata;
32 using android::fs_mgr::MetadataBuilder;
33 using android::fs_mgr::ReadMetadata;
34 using android::fs_mgr::UpdatePartitionTable;
89 class LocalSuperOpener final : public android::fs_mgr::PartitionOpener {
146 was_empty_ = android::fs_mgr::IsEmptySuperImage(abs_super_path_); in Open()
148 metadata_ = android::fs_mgr::ReadFromImageFile(abs_super_path_); in Open()
150 metadata_ = android::fs_mgr::ReadMetadata(abs_super_path_, 0); in Open()
310 auto partition = android::fs_mgr::FindPartition(*metadata_.get(), partition_name); in WritePartition()
387 if (!android::fs_mgr::WriteToImageFile(super_fd_, *metadata_.get())) { in Finalize()
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h37 using android::fs_mgr::IPropertyFetcher;
38 using android::fs_mgr::MetadataBuilder;
39 using android::fs_mgr::testing::MockPropertyFetcher;
58 class TestPartitionOpener final : public android::fs_mgr::PartitionOpener {
65 android::fs_mgr::BlockDeviceInfo* info) const override;
84 const android::fs_mgr::IPartitionOpener& GetPartitionOpener() const override { in GetPartitionOpener()
172 class SnapshotTestPropertyFetcher : public android::fs_mgr::IPropertyFetcher {

1234567