Searched refs:disk_name (Results 1 – 2 of 2) sorted by relevance
92 bool IsMtdDeviceName(const string& disk_name) { in IsMtdDeviceName() argument93 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() argument518 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()
170 std::string MakePartitionName(const std::string& disk_name,