Lines Matching refs:devPath
31 if (!stat (dev.devPath.c_str(), &devStat)) {
34 if (stat (dev.devPath.c_str(), &devStat) != EOK) {
91 LastComponent(dev.devPath).c_str(), file.c_str()) == -1) {
125 specific->fd = open(dev.devPath.c_str(), RW_MODE);
127 LOG(WARNING) << "Open " << dev.devPath << " with read-write failed, try read-only mode";
128 specific->fd = open(dev.devPath.c_str(), RD_MODE);
132 LOG(ERROR) << "Open " << dev.devPath << " with read-only mode failed: " << errno;
156 std::string devPath;
158 devPath = "/sys/block/" + devname + "/" + partn + "/" + type;
160 devPath = "/sys/block/" + devname + "/" + type;
163 if (devPath.length() >= DEVPATH_SIZE) {
164 LOG(ERROR) << "devPath is invalid";
168 if ((f = fopen(devPath.c_str(), "r")) == nullptr) {
211 const std::string devName = LastComponent(dev.devPath);
253 dev->devPath = path;
334 const std::string devName = LastComponent(dev.devPath);
426 if (g_disks->dev->devPath == path) {