- goto out_free_lte;
- } else {
- lte->ntfs_loc->is_reparse_point = false;
- lte->size = data_size;
- }
- }
- if (name_length == 0) {
- /* Unnamed data stream. Put the reference to it in the
- * dentry's inode. */
- if (inode->i_lte) {
- if (lte) {
- if (!(inode->i_attributes &
- FILE_ATTRIBUTE_REPARSE_POINT))
- {
- WARNING("Found two un-named "
- "data streams for \"%s\" "
- "(sizes = %"PRIu64", "
- "%"PRIu64")",
- path,
- inode->i_lte->size,
- lte->size);
- }
- free_lookup_table_entry(lte);
- continue;
- }
- } else {
- stream_id = 0;
- inode->i_lte = lte;
- }
- } else {
- /* Named data stream. Put the reference to it in the
- * alternate data stream entries */
- struct wim_ads_entry *new_ads_entry;
-
- new_ads_entry = inode_add_ads_utf16le(inode,
- attr_record_name(actx->attr),
- name_length * 2);
- if (!new_ads_entry) {
- ret = WIMLIB_ERR_NOMEM;
- goto out_free_lte;