Searched refs:real_path (Results 1 – 3 of 3) sorted by relevance
/device/google/bonito/gpt-utils/ |
D | gpt-utils.cpp | 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() [all …]
|
/device/google/coral/gpt-utils/ |
D | gpt-utils.cpp | 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() [all …]
|
/device/google/crosshatch/gpt-utils/ |
D | gpt-utils.cpp | 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() [all …]
|