new_lte->refcnt = inode->i_nlink;
new_lte->resource_location = RESOURCE_IN_STAGING_FILE;
new_lte->staging_file_name = staging_file_name;
- new_lte->lte_inode = inode;
new_lte->resource_entry.original_size = size;
lookup_table_insert_unhashed(ctx->wim->lookup_table, new_lte,
DEBUG("Closing all staging file descriptors.");
image_for_each_unhashed_stream_safe(lte, tmp, imd) {
- ret = inode_close_fds(lte->lte_inode);
+ ret = inode_close_fds(lte->back_inode);
if (ret)
return ret;
}
WIMLIB_MOUNT_FLAG_STREAM_INTERFACE_WINDOWS)))
mount_flags |= WIMLIB_MOUNT_FLAG_STREAM_INTERFACE_XATTR;
-
DEBUG("Initializing struct wimfs_context");
init_wimfs_context(&ctx);
ctx.wim = wim;
#endif
/* Mark dentry tree as modified if read-write mount. */
- if (mount_flags & WIMLIB_MOUNT_FLAG_READWRITE) {
+ if (mount_flags & WIMLIB_MOUNT_FLAG_READWRITE)
imd->modified = 1;
- imd->has_been_mounted_rw = 1;
- }
/* Resolve the lookup table entries for every inode in the image, and
* assign inode numbers */