Lines Matching refs:real_path
529 char real_path[PATH_MAX] = {0}; in get_scsi_node_from_bootdevice() local
538 if (readlink(bootdev_path, real_path, sizeof(real_path) - 1) < 0) { in get_scsi_node_from_bootdevice()
544 if(strlen(real_path) < PATH_TRUNCATE_LOC + 1){ in get_scsi_node_from_bootdevice()
546 real_path); in get_scsi_node_from_bootdevice()
551 real_path[PATH_TRUNCATE_LOC] = '\0'; in get_scsi_node_from_bootdevice()
552 if(strlen(real_path) < LUN_NAME_START_LOC + 1){ in get_scsi_node_from_bootdevice()
554 real_path); in get_scsi_node_from_bootdevice()
562 &real_path[LUN_NAME_START_LOC]); in get_scsi_node_from_bootdevice()
982 char real_path[PATH_MAX] = {0}; in prepare_boot_update() local
1014 if (readlink(buf, real_path, sizeof(real_path) - 1) < 0) in prepare_boot_update()
1020 if(strlen(real_path) < PATH_TRUNCATE_LOC + 1){ in prepare_boot_update()
1022 real_path); in prepare_boot_update()
1024 real_path[PATH_TRUNCATE_LOC] = '\0'; in prepare_boot_update()
1025 add_lun_to_update_list(real_path, &data); in prepare_boot_update()
1029 memset(real_path, '\0', sizeof(real_path)); in prepare_boot_update()