Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/makefs/cd9660/iso9660_rrip.c
Show First 20 Lines • Show All 408 Lines • ▼ Show 20 Lines | if (parent != NULL && parent->rr_real_parent != NULL) { | ||||
current = cd9660node_susp_create_node(SUSP_TYPE_RRIP, | current = cd9660node_susp_create_node(SUSP_TYPE_RRIP, | ||||
SUSP_ENTRY_RRIP_PL, "PL", SUSP_LOC_DOTDOT); | SUSP_ENTRY_RRIP_PL, "PL", SUSP_LOC_DOTDOT); | ||||
cd9660_rrip_PL(current,node); | cd9660_rrip_PL(current,node); | ||||
TAILQ_INSERT_TAIL(&node->head, current, rr_ll); | TAILQ_INSERT_TAIL(&node->head, current, rr_ll); | ||||
} | } | ||||
} else { | } else { | ||||
cd9660_rrip_initialize_inode(node); | cd9660_rrip_initialize_inode(node); | ||||
/* | |||||
* Not every node needs a NM set - only if the name is | |||||
* actually different. IE: If a file is TEST -> TEST, | |||||
* no NM. test -> TEST, need a NM | |||||
* | |||||
* The rr_moved_dir needs to be assigned a NM record as well. | |||||
*/ | |||||
if (node == diskStructure->rr_moved_dir) { | if (node == diskStructure->rr_moved_dir) { | ||||
cd9660_rrip_add_NM(node, RRIP_DEFAULT_MOVE_DIR_NAME); | cd9660_rrip_add_NM(node, RRIP_DEFAULT_MOVE_DIR_NAME); | ||||
} | } else if (node->node != NULL) { | ||||
else if ((node->node != NULL) && | |||||
((strlen(node->node->name) != | |||||
(uint8_t)node->isoDirRecord->name_len[0]) || | |||||
(memcmp(node->node->name,node->isoDirRecord->name, | |||||
(uint8_t)node->isoDirRecord->name_len[0]) != 0))) { | |||||
cd9660_rrip_NM(node); | cd9660_rrip_NM(node); | ||||
} | } | ||||
/* Rock ridge directory relocation code here. */ | /* Rock ridge directory relocation code here. */ | ||||
/* First handle the CL for the placeholder file. */ | /* First handle the CL for the placeholder file. */ | ||||
if (node->rr_relocated != NULL) { | if (node->rr_relocated != NULL) { | ||||
current = cd9660node_susp_create_node(SUSP_TYPE_RRIP, | current = cd9660node_susp_create_node(SUSP_TYPE_RRIP, | ||||
SUSP_ENTRY_RRIP_CL, "CL", SUSP_LOC_ENTRY); | SUSP_ENTRY_RRIP_CL, "CL", SUSP_LOC_ENTRY); | ||||
cd9660_rrip_CL(current, node); | cd9660_rrip_CL(current, node); | ||||
▲ Show 20 Lines • Show All 398 Lines • Show Last 20 Lines |