/system/core/fs_mgr/liblp/ |
D | partition_opener.cpp | 65 bool GetBlockDeviceInfo(const std::string& block_device, BlockDeviceInfo* device_info) { in GetBlockDeviceInfo() argument 67 unique_fd fd = GetControlFileOrOpen(block_device.c_str(), O_RDONLY); in GetBlockDeviceInfo() 69 PERROR << __PRETTY_FUNCTION__ << "open '" << block_device << "' failed"; in GetBlockDeviceInfo() 76 PERROR << __PRETTY_FUNCTION__ << "BLKIOMIN failed on " << block_device; in GetBlockDeviceInfo() 82 PERROR << __PRETTY_FUNCTION__ << "BLKALIGNOFF failed on " << block_device; in GetBlockDeviceInfo() 93 PERROR << __PRETTY_FUNCTION__ << "BLKSSZGET failed on " << block_device; in GetBlockDeviceInfo() 99 device_info->partition_name = android::base::Basename(block_device); in GetBlockDeviceInfo() 102 (void)block_device; in GetBlockDeviceInfo()
|
D | writer.cpp | 116 for (const auto& block_device : metadata.block_devices) { in ValidateAndSerializeMetadata() local 117 std::string partition_name = GetBlockDevicePartitionName(block_device); in ValidateAndSerializeMetadata() 118 if (block_device.flags & LP_BLOCK_DEVICE_SLOT_SUFFIXED) { in ValidateAndSerializeMetadata() 127 if ((block_device.first_logical_sector + 1) * LP_SECTOR_SIZE > block_device.size) { in ValidateAndSerializeMetadata() 129 << block_device.first_logical_sector << " for size " << block_device.size; in ValidateAndSerializeMetadata() 141 if (info.size != block_device.size) { in ValidateAndSerializeMetadata() 143 << block_device.size << ", got " << info.size << ")"; in ValidateAndSerializeMetadata()
|
D | builder.cpp | 635 const auto& block_device = block_devices_[i]; in GetFreeRegions() local 637 uint64_t first_sector = block_device.first_logical_sector; in GetFreeRegions() 638 uint64_t last_sector = block_device.size / LP_SECTOR_SIZE; in GetFreeRegions() 824 const auto& block_device = block_devices_[extent->device_index()]; in ExtendFinalExtent() local 826 if (!AlignSector(block_device, extent->end_sector(), &next_aligned_sector)) { in ExtendFinalExtent() 885 for (const auto& block_device : block_devices_) { in Export() local 886 metadata->block_devices.emplace_back(block_device); in Export() 972 for (const auto& block_device : block_devices_) { in AllocatableSpace() local 973 total_size += block_device.size - (block_device.first_logical_sector * LP_SECTOR_SIZE); in AllocatableSpace() 986 bool MetadataBuilder::AlignSector(const LpMetadataBlockDevice& block_device, uint64_t sector, in AlignSector() argument [all …]
|
D | reader.cpp | 412 for (auto& block_device : metadata->block_devices) { in AdjustMetadataForSlot() local 413 if (!(block_device.flags & LP_BLOCK_DEVICE_SLOT_SUFFIXED)) { in AdjustMetadataForSlot() 416 std::string partition_name = GetBlockDevicePartitionName(block_device) + slot_suffix; in AdjustMetadataForSlot() 417 if (!UpdateBlockDevicePartitionName(&block_device, partition_name)) { in AdjustMetadataForSlot() 421 block_device.flags &= ~LP_BLOCK_DEVICE_SLOT_SUFFIXED; in AdjustMetadataForSlot() 499 std::string GetBlockDevicePartitionName(const LpMetadataBlockDevice& block_device) { in GetBlockDevicePartitionName() argument 500 return NameFromFixedArray(block_device.partition_name, sizeof(block_device.partition_name)); in GetBlockDevicePartitionName()
|
D | utility.cpp | 130 for (const auto& block_device : metadata.block_devices) { in GetTotalSuperPartitionSize() local 131 size += block_device.size; in GetTotalSuperPartitionSize() 138 for (const auto& block_device : metadata.block_devices) { in GetBlockDevicePartitionNames() local 139 list.emplace_back(GetBlockDevicePartitionName(block_device)); in GetBlockDevicePartitionNames()
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 56 const LpMetadataBlockDevice& block_device, in GetPhysicalPartitionDevicePath() argument 61 std::string name = GetBlockDevicePartitionName(block_device); in GetPhysicalPartitionDevicePath() 74 if (GetMetadataSuperBlockDevice(*params.metadata) == &block_device) { in GetPhysicalPartitionDevicePath() 93 const auto& super_device = params.block_device; in CreateDmTableInternal() 104 const auto& block_device = params.metadata->block_devices[extent.target_source]; in CreateDmTableInternal() local 106 if (!GetPhysicalPartitionDevicePath(params, block_device, super_device, in CreateDmTableInternal() 139 bool CreateLogicalPartitions(const std::string& block_device) { in CreateLogicalPartitions() argument 141 auto metadata = ReadMetadata(block_device.c_str(), slot); in CreateLogicalPartitions() 146 return CreateLogicalPartitions(*metadata.get(), block_device); in CreateLogicalPartitions() 149 std::unique_ptr<LpMetadata> ReadCurrentMetadata(const std::string& block_device) { in ReadCurrentMetadata() argument [all …]
|
D | fs_mgr.cpp | 663 std::string block_device; in SetReadAheadSize() local 664 if (!Realpath(entry_block_device, &block_device)) { in SetReadAheadSize() 670 if (!android::base::StartsWith(block_device, kDevBlockPrefix)) { in SetReadAheadSize() 671 LWARNING << block_device << " is not a block device"; in SetReadAheadSize() 677 std::string block_name = block_device; in SetReadAheadSize() 678 if (android::base::StartsWith(block_device, kDevBlockPrefix)) { in SetReadAheadSize() 679 block_name = block_device.substr(kDevBlockPrefix.length()); in SetReadAheadSize() 694 auto parent = dm.GetParentBlockDeviceByPath(block_device); in SetReadAheadSize() 698 block_device = *parent; in SetReadAheadSize() 1136 bool Update(FstabEntry* entry, const std::string& block_device = std::string()) { in Update() argument [all …]
|
/system/core/fs_mgr/include/ |
D | fs_mgr_dm_linear.h | 43 std::unique_ptr<LpMetadata> ReadCurrentMetadata(const std::string& block_device); 47 bool CreateLogicalPartitions(const LpMetadata& metadata, const std::string& block_device); 51 bool CreateLogicalPartitions(const std::string& block_device); 55 std::string block_device; member
|
/system/extras/ioblame/ |
D | ioblame.sh | 68 block_device=mmcblk0 74 block_device=mmcblk0 79 block_device=mmcblk0 84 block_device=sda 89 …block_device=`adb shell 'find /dev/block/platform -name by-name | xargs ls -l' | grep system | awk… 91 block_device=`echo $block_device | awk 'BEGIN { FS ="/" } ; { print $4 }' | sed 's/p.*//g' ` 97 DISKSTATS=`adb shell 'cat /proc/diskstats' | fgrep -w $block_device ` 113 DISKSTATS=`adb shell 'cat /proc/diskstats' | fgrep -w $block_device ` 133 echo "Total (ALL) Read KB $block_device = "$READ_KB 136 echo "Total (ALL) Read IOs $block_device = "`expr $AFTER_RD_IOS - $BEFORE_RD_IOS` [all …]
|
/system/extras/verity/ |
D | build_verity_metadata.py | 63 def build_verity_table(block_device, data_blocks, root_hash, salt): argument 65 table %= ( block_device, 66 block_device, 76 block_device, signer_path, signing_key, signer_args=None, argument 79 verity_table = build_verity_table(block_device, data_blocks, root_hash, salt) 115 args.root_hash, args.salt, args.block_device,
|
/system/extras/partition_tools/ |
D | lpdump.cc | 163 for (const auto& block_device : metadata->block_devices) { in MergeMetadata() local 164 std::string name = GetBlockDevicePartitionName(block_device); in MergeMetadata() 308 const auto& block_device = pt.block_devices[extent.target_source]; in ParseLinearExtentData() local 309 std::string device_name = GetBlockDevicePartitionName(block_device); in ParseLinearExtentData() 339 const auto& block_device = pt.block_devices[extent.target_source]; in PrintMetadata() local 340 std::string device_name = GetBlockDevicePartitionName(block_device); in PrintMetadata() 362 auto&& [block_device, offset] = *data; in PrintMetadata() 363 cout << block_device << ": " << offset << " .. " << (offset + extent->num_sectors) in PrintMetadata() 370 for (const auto& block_device : pt.block_devices) { in PrintMetadata() local 371 std::string partition_name = GetBlockDevicePartitionName(block_device); in PrintMetadata() [all …]
|
/system/vold/ |
D | secdiscard.cpp | 172 auto block_device = android::vold::BlockDeviceForPath(path); in secdiscard_path() local 173 if (block_device.empty()) { in secdiscard_path() 177 TEMP_FAILURE_RETRY(open(block_device.c_str(), O_RDWR | O_LARGEFILE | O_CLOEXEC, 0))); in secdiscard_path() 179 PLOG(ERROR) << "Failed to open device " << block_device; in secdiscard_path()
|
D | MetadataCrypt.h | 29 bool fscrypt_mount_metadata_encrypted(const std::string& block_device,
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 222 std::string block_device; in ZeroFillNewImage() local 224 if (!FiemapWriter::GetBlockDeviceForFile(data_path, &block_device, &can_use_devicemapper)) { in ZeroFillNewImage() 307 auto block_device = android::fs_mgr::GetBlockDevicePartitionName(*super); in MapWithDmLinear() local 310 .block_device = block_device, in MapWithDmLinear() 398 for (const auto& block_device : device_list) { in MapWithLoopDeviceList() local 402 unique_fd fd(open(block_device.c_str(), kOpenFlags)); in MapWithLoopDeviceList() 404 PLOG(ERROR) << "Open failed: " << block_device; in MapWithLoopDeviceList() 412 table.Emplace<DmTargetLinear>(start_sector, segment_size, block_device, 0); in MapWithLoopDeviceList() 430 for (const auto& block_device : device_list) { in MapWithLoopDeviceList() local 431 lines.emplace_back("loop:" + block_device); in MapWithLoopDeviceList() [all …]
|
/system/update_engine/payload_consumer/ |
D | partition_update_generator_android.cc | 156 const std::string& block_device, int64_t partition_size) { in CalculateHashForPartition() argument 164 if (HashCalculator::RawHashOfFile(block_device, partition_size, &raw_hash) != in CalculateHashForPartition() 166 LOG(ERROR) << "Failed to calculate hash for " << block_device; in CalculateHashForPartition()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm_target.h | 106 DmTargetLinear(uint64_t start, uint64_t length, const std::string& block_device, in DmTargetLinear() argument 108 : DmTarget(start, length), block_device_(block_device), physical_sector_(physical_sector) {} in DmTargetLinear() 112 const std::string& block_device() const { return block_device_; } in block_device() function 122 const std::string& block_device, const std::string& hash_device, 144 DmTargetAndroidVerity(uint64_t start, uint64_t length, const std::string& block_device, in DmTargetAndroidVerity() argument 146 : DmTarget(start, length), keyid_(keyid), block_device_(block_device) {} in DmTargetAndroidVerity()
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 100 std::string block_device = NextArg(); in Next() local 106 return std::make_unique<DmTargetLinear>(start_sector, num_sectors, block_device, in Next() 115 std::string block_device = NextArg(); in Next() local 117 block_device); in Next() 123 std::string block_device = NextArg(); in Next() local 124 return std::make_unique<DmTargetBow>(start_sector, num_sectors, block_device); in Next() 130 std::string block_device = NextArg(); in Next() local 132 block_device); in Next()
|
/system/sepolicy/prebuilts/api/31.0/private/ |
D | kernel.te | 21 allow kernel block_device:blk_file relabelto; 22 allow kernel block_device:lnk_file relabelto;
|
/system/sepolicy/microdroid/system/private/ |
D | apkdmverity.te | 11 allow apkdmverity block_device:dir r_dir_perms; 12 allow apkdmverity block_device:lnk_file r_file_perms;
|
/system/sepolicy/prebuilts/api/32.0/private/ |
D | kernel.te | 21 allow kernel block_device:blk_file relabelto; 22 allow kernel block_device:lnk_file relabelto;
|
/system/sepolicy/vendor/ |
D | hal_rebootescrow_default.te | 10 allow hal_rebootescrow_default block_device:dir search;
|
/system/extras/ext4_utils/include/ext4_utils/ |
D | ext4_sb.h | 49 bool block_device; /* target fd is a block device? */ member
|
/system/sepolicy/prebuilts/api/33.0/private/ |
D | mtectrl.te | 9 allow mtectrl block_device:dir r_dir_perms;
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | vendor_misc_writer.te | 7 allow vendor_misc_writer block_device:dir r_dir_perms;
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | vendor_misc_writer.te | 7 allow vendor_misc_writer block_device:dir r_dir_perms;
|