Lines Matching refs:blockdev
123 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()
180 blockdev = *child; in BlockDeviceQueueDepth()
183 android::dm::ExtractBlockDeviceName(blockdev); in BlockDeviceQueueDepth()
185 return Error() << "Failed to remove /dev/block/ prefix from " << blockdev; in BlockDeviceQueueDepth()
191 blockdev = *maybe_parent; in BlockDeviceQueueDepth()
192 LOG(VERBOSE) << "Partition parent: " << blockdev; in BlockDeviceQueueDepth()
194 StringPrintf("/sys/class/block/%s/mq/0/nr_tags", blockdev.c_str()); in BlockDeviceQueueDepth()
200 LOG(VERBOSE) << file_path << " is backed by /dev/" << blockdev in BlockDeviceQueueDepth()