Lines Matching defs:dir
109 char dir[BUF_SIZE_SMALL] = "";
115 dir, BUF_SIZE_SMALL - 1, &freq, &passnno);
118 dir[BUF_SIZE_SMALL - 1] = '\0';
119 if (res == 4 && (strcmp(toQuery, dir) == 0)) { // 4 : The correct number of parameters
120 WRITE_LOG(LOG_DEBUG, "FindMountDeviceByPath dev:%s dir:%s", dev, dir);
135 bool HdcDaemonUnity::RemountPartition(const char *dir)
141 if (!FindMountDeviceByPath(dir, dev) || strlen(dev) < 4) { // 4 : file count
142 WRITE_LOG(LOG_FATAL, "FindMountDeviceByPath failed %s", dir);
153 if (mount(dev, dir, "none", MS_REMOUNT, nullptr) < 0) {
154 WRITE_LOG(LOG_FATAL, "Mount device failed dev:%s dir:%s error:%d", dev, dir, errno);