Lines Matching refs:deviceName
98 if (item->deviceName != NULL) { in ReleaseFstabItem()
99 free(item->deviceName); in ReleaseFstabItem()
100 item->deviceName = NULL; in ReleaseFstabItem()
153 item->deviceName = strdup(p); in ParseFstabPerLine()
154 BEGET_ERROR_CHECK(item->deviceName != NULL, break, "strdup deviceName failed."); in ParseFstabPerLine()
313 int GetBlockDeviceByMountPoint(const char *mountPoint, const Fstab *fstab, char *deviceName, int na… in GetBlockDeviceByMountPoint() argument
315 if (fstab == NULL || mountPoint == NULL || *mountPoint == '\0' || deviceName == NULL) { in GetBlockDeviceByMountPoint()
323 if (strncpy_s(deviceName, nameLen, item->deviceName, strlen(item->deviceName)) != 0) { in GetBlockDeviceByMountPoint()
330 int GetBlockDeviceByName(const char *deviceName, const Fstab *fstab, char* miscDev, size_t size) in GetBlockDeviceByName() argument
333 if (strstr(item->deviceName, deviceName) != NULL) { in GetBlockDeviceByName()
334 BEGET_CHECK_RETURN_VALUE(strcpy_s(miscDev, size, item->deviceName) != 0, 0); in GetBlockDeviceByName()