]> wimlib.net Git - wimlib/blobdiff - src/mount_image.c
Cleanups
[wimlib] / src / mount_image.c
index 30ee82d235c3c0ad3de339b451e0235870cd4be4..cf5d43538685c2c0a4ff17077591968a1de59a1d 100644 (file)
@@ -1105,7 +1105,7 @@ send_unmount_request_msg(mqd_t mq, int unmount_flags, u8 want_progress_messages)
        struct msg_unmount_request msg = {
                .hdr = {
                        .min_version = ((unmount_flags & WIMLIB_UNMOUNT_FLAG_NEW_IMAGE) ?
-                                               WIMLIB_MAKEVERSION(1, 6, 1) :
+                                               WIMLIB_MAKEVERSION(1, 6, 2) :
                                                WIMLIB_MAKEVERSION(1, 2, 1)),
                        .cur_version = WIMLIB_VERSION_CODE,
                        .msg_type    = MSG_TYPE_UNMOUNT_REQUEST,
@@ -2615,7 +2615,7 @@ wimlib_mount_image(WIMStruct *wim, int image, const char *dir,
 #endif
 
        /* Assign inode numbers.  Also, if a read-write mount was requested,
-        * mark the dentry tree as modified, and add each streams referenced by
+        * mark the dentry tree as modified, and add each stream referenced by
         * files in the image to a list and preemptively double the number of
         * references to each.  The latter is done to allow implementing the
         * WIMLIB_UNMOUNT_FLAG_NEW_IMAGE semantics.  */
@@ -2629,10 +2629,8 @@ wimlib_mount_image(WIMStruct *wim, int image, const char *dir,
                                struct wim_lookup_table_entry *lte;
 
                                lte = inode_stream_lte(inode, i, wim->lookup_table);
-                               if (lte) {
-                                       lte->orig_stream_list = (struct list_head){NULL, NULL};
+                               if (lte)
                                        lte->out_refcnt = 0;
-                               }
                        }
                }
                image_for_each_inode(inode, imd) {