Home
last modified time | relevance | path

Searched refs:disk_name (Results 1 – 2 of 2) sorted by relevance

/system/update_engine/common/
Dutils.cc92 bool IsMtdDeviceName(const string& disk_name) { in IsMtdDeviceName() argument
93 return base::StartsWith(disk_name, "/dev/ubi", in IsMtdDeviceName()
95 base::StartsWith(disk_name, "/dev/mtd", base::CompareCase::SENSITIVE); in IsMtdDeviceName()
512 string MakePartitionName(const string& disk_name, int partition_num) { in MakePartitionName() argument
518 if (!base::StartsWith(disk_name, "/dev/", base::CompareCase::SENSITIVE)) { in MakePartitionName()
519 LOG(ERROR) << "Invalid disk name: " << disk_name; in MakePartitionName()
523 if (IsMtdDeviceName(disk_name)) { in MakePartitionName()
530 string partition_name = disk_name; in MakePartitionName()
Dutils.h170 std::string MakePartitionName(const std::string& disk_name,