Searched refs:disk_name (Results 1 – 2 of 2) sorted by relevance
93 bool IsMtdDeviceName(const string& disk_name) { in IsMtdDeviceName() argument94 return base::StartsWith(disk_name, "/dev/ubi", in IsMtdDeviceName()96 base::StartsWith(disk_name, "/dev/mtd", base::CompareCase::SENSITIVE); in IsMtdDeviceName()518 string MakePartitionName(const string& disk_name, int partition_num) { in MakePartitionName() argument524 if (!base::StartsWith(disk_name, "/dev/", base::CompareCase::SENSITIVE)) { in MakePartitionName()525 LOG(ERROR) << "Invalid disk name: " << disk_name; in MakePartitionName()529 if (IsMtdDeviceName(disk_name)) { in MakePartitionName()536 string partition_name = disk_name; in MakePartitionName()
169 std::string MakePartitionName(const std::string& disk_name,