Lines Matching refs:path
203 fp = fopen(file, "r"); // no file system, can not get real path
263 FstabItem *FindFstabItemForPath(Fstab fstab, const char *path)
267 if (path == NULL || *path != '/') {
273 if (strncpy_s(tmp, PATH_MAX - 1, path, strlen(path)) != EOK) {
274 BEGET_LOGE("Failed to copy path.");
285 // Reverse walk through path and met "/", just quit.
500 int GetBlockDevicePath(const char *partName, char *path, size_t size)
502 BEGET_CHECK_RETURN_VALUE(partName != NULL && path != NULL, -1);
506 char *fstabFile = GetFstabFile(path, size);
511 int ret = GetBlockDeviceByMountPoint(partName, fstab, path, size);
512 BEGET_INFO_CHECK(ret == 0, ret = GetBlockDeviceByName(partName, fstab, path, size),
513 "Mount point not found, try to get path by device name.");