Lines Matching refs:std

35         LOG(ERROR) << "stat error: " << errno << std::endl;
69 static std::string LastComponent(const std::string &path)
71 std::string tmp = "";
84 static bool ReadDeviceSysfsFile(BlockDevice &dev, const std::string &file, std::string &strl)
111 static bool SdmmcGetProductInfo(BlockDevice &dev, std::string &type, std::string &name)
113 std::string typeStr = "type";
114 std::string nameStr = "name";
151 static std::string ReadPartitionFromSys(const std::string &devname, const std::string &partn,
152 const std::string &type, const std::string &table)
156 std::string devPath;
157 std::string partString = "";
181 partString = std::string(buf + table.size(), sizeof(buf) - table.size());
187 partString = std::string(buf, sizeof(buf) - 1);
188 LOG(INFO) << type << " partInf: " << std::string(buf, sizeof(buf) - 1);
199 static int InitGeneric(BlockDevice &dev, const std::string modelName)
211 const std::string devName = LastComponent(dev.devPath);
212 std::string partSize = ReadPartitionFromSys(devName, "", "size", "");
228 std::string type = "";
229 std::string name = "";
230 std::string id = "";
242 static BlockDevice* NewBlockDevice(const std::string &path)
308 int DiskAlloc(const std::string &path)
334 const std::string devName = LastComponent(dev.devPath);
348 std::string strstart = ReadPartitionFromSys(devName, partName, "start", "");
355 std::string strsize = ReadPartitionFromSys(devName, partName, "size", "");
362 std::string strdevname = ReadPartitionFromSys(devName, partName, "uevent", "DEVNAME=");
367 std::string strpartname = ReadPartitionFromSys(devName, partName, "uevent", "PARTNAME=");
420 Disk* GetRegisterBlockDisk(const std::string &path)
432 int GetPartitionNumByPartName(const std::string &partname, const PartitonList &plist)