X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fntfs-3g_capture.c;h=11cbc9ddb9c288f28f59ad0f81b132a1d01d4b92;hp=c26ca605382d86c970d5ce9cb4f226795b84e862;hb=5d3d469e410dc5f4a28814ad231336fc174cba56;hpb=1fc939b7bd0b37900d974b1cd5b11df128df71f5 diff --git a/src/ntfs-3g_capture.c b/src/ntfs-3g_capture.c index c26ca605..11cbc9dd 100644 --- a/src/ntfs-3g_capture.c +++ b/src/ntfs-3g_capture.c @@ -155,14 +155,13 @@ out: } -/* Load the streams from a file or reparse point in the NTFS volume into the WIM - * lookup table */ +/* Load the streams from a file or reparse point in the NTFS volume */ static int capture_ntfs_streams(struct wim_inode *inode, ntfs_inode *ni, char *path, size_t path_len, - struct wim_lookup_table *lookup_table, + struct list_head *unhashed_streams, ntfs_volume *vol, ATTR_TYPES type) { @@ -183,7 +182,7 @@ capture_ntfs_streams(struct wim_inode *inode, /* Capture each data stream or reparse data stream. */ while (!ntfs_attr_lookup(type, NULL, 0, - WIMLIB_CASE_SENSITIVE, 0, NULL, 0, actx)) + CASE_SENSITIVE, 0, NULL, 0, actx)) { u64 data_size = ntfs_get_attribute_value_length(actx->attr); u64 name_length = actx->attr->name_length; @@ -274,8 +273,8 @@ capture_ntfs_streams(struct wim_inode *inode, new_ads_entry->lte = lte; } if (lte) { - lookup_table_insert_unhashed(lookup_table, lte, - inode, stream_id); + add_unhashed_stream(lte, inode, + stream_id, unhashed_streams); } } if (errno == ENOENT) { @@ -605,7 +604,7 @@ build_dentry_tree_ntfs_recursive(struct wim_dentry **root_ret, * - Reparse points: capture reparse data only */ ret = capture_ntfs_streams(inode, ni, path, path_len, - params->lookup_table, vol, stream_type); + params->unhashed_streams, vol, stream_type); if (ret) goto out;