+ return 0;
+}
+
+static int
+get_default_stream_type(const struct wim_inode *inode)
+{
+ if (inode->i_attributes & FILE_ATTRIBUTE_ENCRYPTED)
+ return STREAM_TYPE_EFSRPC_RAW_DATA;
+ if (inode->i_attributes & FILE_ATTRIBUTE_REPARSE_POINT)
+ return STREAM_TYPE_REPARSE_POINT;
+ return STREAM_TYPE_DATA;
+}
+
+static int
+init_wimlib_dentry(struct wimlib_dir_entry *wdentry, struct wim_dentry *dentry,
+ WIMStruct *wim, int flags)
+{
+ int ret;
+ size_t dummy;
+ const struct wim_inode *inode = dentry->d_inode;
+ const struct wim_inode_stream *strm;
+ struct wimlib_unix_data unix_data;
+
+ ret = utf16le_get_tstr(dentry->d_name, dentry->d_name_nbytes,
+ &wdentry->filename, &dummy);
+ if (ret)
+ return ret;
+
+ ret = utf16le_get_tstr(dentry->d_short_name, dentry->d_short_name_nbytes,
+ &wdentry->dos_name, &dummy);
+ if (ret)
+ return ret;
+