Home
last modified time | relevance | path

Searched refs:blk_device (Results 1 – 21 of 21) sorted by relevance

/aosp14/system/core/fs_mgr/
H A Dfs_mgr.cpp157 if (!Realpath(blk_device, &real_path)) { in realpath()
158 real_path = blk_device; in realpath()
274 << realpath(blk_device); in check_fs()
445 blk_device.c_str()}; in tune_reserved_size()
448 << blk_device; in tune_reserved_size()
942 fstab[i].blk_device = fstab[start_idx].blk_device; in mount_with_alternatives()
1102 if (entry->blk_device[0] == '/') { in fs_mgr_update_logical_partition()
1112 entry->blk_device = device_name; in fs_mgr_update_logical_partition()
1245 entry->blk_device = name; in UpdateCheckpointPartition()
1329 entry->blk_device = dm_path; in WrapUserdata()
[all …]
H A Dfs_mgr_remount.cpp354 auto blk_device = entry.blk_device; in RemountPartition() local
361 blk_device = rentry.blk_device; in RemountPartition()
368 blk_device = rentry.blk_device; in RemountPartition()
375 PLOG(INFO) << "skip unmounted partition dev:" << blk_device << " mnt:" << mount_point; in RemountPartition()
378 if (blk_device == "/dev/root") { in RemountPartition()
380 if (from_fstab) blk_device = from_fstab->blk_device; in RemountPartition()
382 fs_mgr_set_blk_ro(blk_device, false); in RemountPartition()
392 if (::mount(blk_device.c_str(), mnt_point.c_str(), entry.fs_type.c_str(), MS_REMOUNT, in RemountPartition()
402 PLOG(ERROR) << "failed to remount partition dev:" << blk_device << " mnt:" << mount_point; in RemountPartition()
H A Dfs_mgr_fstab.cpp459 std::string blk_device = entry.blk_device; in ExtraBootDevices() local
461 if (!android::base::StartsWith(blk_device, "/dev/block") || in ExtraBootDevices()
469 auto slash_by_name = blk_device.find("/by-name"); in ExtraBootDevices()
471 blk_device.erase(slash_by_name); // erases /by-name/<partition> in ExtraBootDevices()
474 blk_device.erase(0, std::string("/dev/block/").size()); in ExtraBootDevices()
478 auto first_slash = blk_device.find('/'); in ExtraBootDevices()
481 auto boot_device = blk_device.substr(first_slash + 1); in ExtraBootDevices()
562 entry.blk_device = std::move(*it++); in ParseFstabFromString()
574 entry.logical_partition_name = entry.blk_device; in ParseFstabFromString()
609 entry->blk_device = android::gsi::kDsuUserdata; in TransformFstabForDsu()
[all …]
H A Dfs_mgr_slotselect.cpp72 entry.blk_device = entry.blk_device + update_suffix; in fs_mgr_update_for_slotselect()
H A Dfs_mgr_format.cpp163 LERROR << __FUNCTION__ << ": Format " << entry.blk_device << " as '" << entry.fs_type << "'"; in fs_mgr_do_format()
173 return format_f2fs(entry.blk_device, entry.length, needs_projid, needs_casefold, in fs_mgr_do_format()
176 return format_ext4(entry.blk_device, entry.mount_point, needs_projid, in fs_mgr_do_format()
H A Dfs_mgr_priv.h97 bool fs_mgr_is_ext4(const std::string& blk_device);
98 bool fs_mgr_is_f2fs(const std::string& blk_device);
H A Dfs_mgr_overlayfs.cpp177 if (fs_mgr_access(entry->blk_device)) { in fs_mgr_update_blk_device()
180 if (entry->blk_device != "/dev/root") { in fs_mgr_update_blk_device()
185 auto blk_device = kPhysicalDevice + "system"; in fs_mgr_update_blk_device() local
186 if (!fs_mgr_access(blk_device)) { in fs_mgr_update_blk_device()
187 blk_device += fs_mgr_get_slot_suffix(); in fs_mgr_update_blk_device()
188 if (!fs_mgr_access(blk_device)) { in fs_mgr_update_blk_device()
192 entry->blk_device = blk_device; in fs_mgr_update_blk_device()
251 if (fs_mgr_is_read_only_f2fs(entry->blk_device)) { in fs_mgr_overlayfs_enabled()
256 auto has_shared_blocks = fs_mgr_has_shared_blocks(entry->mount_point, entry->blk_device); in fs_mgr_overlayfs_enabled()
258 has_shared_blocks = fs_mgr_has_shared_blocks("/", entry->blk_device); in fs_mgr_overlayfs_enabled()
[all …]
/aosp14/system/core/init/
H A Dmount_handler.cpp63 fields[0] = entry->blk_device; in ParseMount()
108 if (!android::base::StartsWith(entry.blk_device, devblock)) return; in SetMountProperty()
109 auto target = entry.blk_device.substr(strlen(devblock)); in SetMountProperty()
155 MountHandlerEntry::MountHandlerEntry(const std::string& blk_device, const std::string& mount_point, in MountHandlerEntry() argument
157 : blk_device(blk_device), mount_point(mount_point), fs_type(fs_type) {} in MountHandlerEntry()
160 if (blk_device < r.blk_device) return true; in operator <()
161 if (blk_device > r.blk_device) return false; in operator <()
H A Dmount_handler.h31 MountHandlerEntry(const std::string& blk_device, const std::string& mount_point,
36 const std::string blk_device; member
H A Dfirst_stage_mount.cpp418 if (!block_dev_init_.InitDmDevice(begin->blk_device)) { in MountPartition()
435 current->blk_device = begin->blk_device; in MountPartition()
700 logical_partitions.emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices()
702 devices->emplace(basename(fstab_entry.blk_device.c_str())); in GetDmVerityDevices()
776 return block_dev_init_.InitDmDevice(fstab_entry->blk_device); in SetUpDmVerity()
H A Dselinux.cpp917 entry.blk_device = in MountMissingSystemPartitions()
918 android::base::StringReplace(entry.blk_device, replace_name, partition_name, false); in MountMissingSystemPartitions()
935 if (access(entry.blk_device.c_str(), F_OK) != 0) { in MountMissingSystemPartitions()
936 auto block_dev = android::base::Basename(entry.blk_device); in MountMissingSystemPartitions()
/aosp14/system/core/fs_mgr/libfs_avb/
H A Dfs_avb_util.cpp50 std::string device_path = fstab_entry.blk_device; in LoadAndVerifyVbmeta()
52 !android::base::StartsWith(fstab_entry.blk_device, "/")) { in LoadAndVerifyVbmeta()
54 if (!dm.GetDmDevicePathByName(fstab_entry.blk_device, &device_path)) { in LoadAndVerifyVbmeta()
55 LERROR << "Failed to resolve logical device path for: " << fstab_entry.blk_device; in LoadAndVerifyVbmeta()
H A Davb_util.cpp42 const std::string& blk_device, android::dm::DmTable* table) { in ConstructVerityTable() argument
66 0, hashtree_desc.image_size / 512, hashtree_desc.dm_verity_version, blk_device, in ConstructVerityTable()
67 blk_device, hashtree_desc.data_block_size, hashtree_desc.hash_block_size, in ConstructVerityTable()
72 target.UseFec(blk_device, hashtree_desc.fec_num_roots, in ConstructVerityTable()
94 if (!ConstructVerityTable(hashtree_desc, fstab_entry->blk_device, &table) || !table.valid()) { in HashtreeDmVeritySetup()
112 SetBlockDeviceReadOnly(fstab_entry->blk_device); in HashtreeDmVeritySetup()
115 fstab_entry->blk_device = dev_path; in HashtreeDmVeritySetup()
238 partition_name = Basename(fstab_entry.blk_device); in DeriveAvbPartitionName()
H A Davb_ops.cpp161 if (!dm.GetDmDevicePathByName(fstab_entry->blk_device, &device_path)) { in GetLogicalPath()
162 LERROR << "Failed to resolve logical device path for: " << fstab_entry->blk_device; in GetLogicalPath()
H A Davb_util.h45 const std::string& blk_device, android::dm::DmTable* table);
H A Dfs_avb.cpp299 fstab_entry.blk_device, "" /* partition_name, no need for a standalone path */, in LoadAndVerifyVbmeta()
305 LERROR << "Failed to load vbmeta: " << fstab_entry.blk_device; in LoadAndVerifyVbmeta()
/aosp14/system/core/fs_mgr/tests/
H A Dfs_mgr_test.cpp1131 EXPECT_EQ("userdata_gsi", entry->blk_device); in TEST()
1135 EXPECT_EQ("system_gsi", entry->blk_device); in TEST()
1140 EXPECT_EQ("system_gsi", entry->blk_device); in TEST()
1145 EXPECT_EQ("vendor", entry->blk_device); in TEST()
1168 EXPECT_EQ("system_gsi", entry->blk_device); in TEST()
1173 EXPECT_EQ("system_gsi", entry->blk_device); in TEST()
1178 EXPECT_EQ("vendor", entry->blk_device); in TEST()
1182 EXPECT_EQ("userdata_gsi", entry->blk_device); in TEST()
1208 EXPECT_EQ("vendor", entry->blk_device); in TEST()
1212 EXPECT_EQ("system_gsi", entry->blk_device); in TEST()
[all …]
H A Dvts_fs_test.cpp107 std::string parent_bdev = entry.blk_device; in TEST()
/aosp14/system/core/fs_mgr/include_fstab/fstab/
H A Dfstab.h33 std::string blk_device; member
/aosp14/system/core/fs_mgr/libfs_avb/tests/
H A Davb_util_test.cpp105 .blk_device = "/dev/block/dm-1", // a dm-linear device (logical) in TEST_F()
138 fstab_entry.blk_device = "/dev/block/by-name/system"; in TEST_F()
144 fstab_entry.blk_device = "/dev/block/by-name/system_a"; in TEST_F()
152 fstab_entry.blk_device = "/dev/block/by-name/system_b"; in TEST_F()
/aosp14/system/core/fs_mgr/libsnapshot/
H A Dsnapshot.cpp4348 if (android::base::Basename(entry.blk_device) == block_name) { in DeleteDeviceIfExists()