Home
last modified time | relevance | path

Searched refs:blockdev (Results 1 – 11 of 11) sorted by relevance

/system/core/fs_mgr/
Dblockdev.cpp39 static std::string PartitionParent(const std::string& blockdev) { in PartitionParent() argument
40 if (blockdev.find('/') != std::string::npos) { in PartitionParent()
41 LOG(ERROR) << __func__ << ": invalid argument " << blockdev; in PartitionParent()
42 return blockdev; in PartitionParent()
46 return blockdev; in PartitionParent()
52 std::string path = StringPrintf("/sys/class/block/%s/%s", ent->d_name, blockdev.c_str()); in PartitionParent()
58 return blockdev; in PartitionParent()
93 std::string blockdev = "/dev/block/" + BlockdevName(statbuf.st_dev); in BlockDeviceQueueDepth() local
94 LOG(DEBUG) << __func__ << ": " << file_path << " -> " << blockdev; in BlockDeviceQueueDepth()
95 if (blockdev.empty()) { in BlockDeviceQueueDepth()
[all …]
Dfs_mgr_priv.h91 bool fs_mgr_set_blk_ro(const std::string& blockdev, bool readonly = true);
DAndroid.bp68 "blockdev.cpp",
Dfs_mgr.cpp798 bool fs_mgr_set_blk_ro(const std::string& blockdev, bool readonly) { in fs_mgr_set_blk_ro() argument
799 unique_fd fd(TEMP_FAILURE_RETRY(open(blockdev.c_str(), O_RDONLY | O_CLOEXEC))); in fs_mgr_set_blk_ro()
/system/core/init/
Dmount_handler.cpp76 std::string GetDiskPart(std::string blockdev) { in GetDiskPart() argument
77 if (blockdev.find('/') != std::string::npos) return {}; in GetDiskPart()
79 while (android::base::StartsWith(blockdev, "dm-")) { in GetDiskPart()
81 std::optional<std::string> parent = dm.GetParentBlockDeviceByPath("/dev/block/" + blockdev); in GetDiskPart()
83 blockdev = android::base::Basename(*parent); in GetDiskPart()
88 return blockdev; in GetDiskPart()
92 std::string GetRootDisk(std::string blockdev) { in GetRootDisk() argument
93 if (blockdev.empty()) return {}; in GetRootDisk()
94 if (blockdev.find('/') != std::string::npos) return {}; in GetRootDisk()
99 if (std::filesystem::exists(StringPrintf("%s/%s", path.c_str(), blockdev.c_str()))) { in GetRootDisk()
/system/apex/apexd/
Dapexd_loop.cpp123 static Result<std::string> PartitionParent(const std::string& blockdev) { in PartitionParent() argument
124 if (blockdev.find('/') != std::string::npos) { in PartitionParent()
125 return Error() << "Invalid argument " << blockdev; in PartitionParent()
132 StringPrintf("%s/%s", path.c_str(), blockdev.c_str()))) { in PartitionParent()
136 return blockdev; in PartitionParent()
167 std::string blockdev = "/dev/block/" + BlockdevName(statbuf.st_dev); in BlockDeviceQueueDepth() local
168 LOG(VERBOSE) << file_path << " -> " << blockdev; in BlockDeviceQueueDepth()
169 if (blockdev.empty()) { in BlockDeviceQueueDepth()
175 std::optional<std::string> child = dm.GetParentBlockDeviceByPath(blockdev); in BlockDeviceQueueDepth()
179 LOG(VERBOSE) << blockdev << " -> " << *child; in BlockDeviceQueueDepth()
[all …]
/system/core/fs_mgr/libfs_avb/
Dutil.cpp118 bool SetBlockDeviceReadOnly(const std::string& blockdev) { in SetBlockDeviceReadOnly() argument
119 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(blockdev.c_str(), O_RDONLY | O_CLOEXEC))); in SetBlockDeviceReadOnly()
Dutil.h67 bool SetBlockDeviceReadOnly(const std::string& blockdev);
/system/core/shell_and_utilities/
DREADME.md53 [ acpi base64 basename blkdiscard blkid blockdev **brctl** cal cat chattr
87 [ acpi base64 basename blkdiscard blkid blockdev cal cat chattr chcon
121 **[** acpi base64 basename **blkdiscard** blkid blockdev cal cat chattr chcon
155 acpi base64 basename blkid blockdev cal cat chattr chcon chgrp chmod
187 acpi base64 basename **bc** **blkid** blockdev cal cat **chattr** chcon chgrp
219 acpi base64 basename blockdev cal cat chcon chgrp chmod chown
244 acpi base64 basename blockdev cal cat chcon chgrp chmod chown
268 acpi **base64** basename blockdev bzcat cal cat chcon chgrp chmod
290 acpi basename blockdev bzcat cal cat chcon chgrp chmod chown
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h287 const std::string& key, const std::string& blockdev, uint64_t start_sector) in DmTargetDefaultKey() argument
291 blockdev_(blockdev), in DmTargetDefaultKey()
/system/extras/ioshark/
DREADME22 -b : Explicitly specify a blockdev (to get IO stats from from