]> wimlib.net Git - wimlib/blobdiff - src/iterate_dir.c
mount_image.c: add fallback definitions of RENAME_* constants
[wimlib] / src / iterate_dir.c
index ad34e7990b038df68d4e7d464cb4848c3070ad11..85857043150153513b1f2ccb5aec1ab1a7df304e 100644 (file)
@@ -19,7 +19,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this file; if not, see http://www.gnu.org/licenses/.
+ * along with this file; if not, see https://www.gnu.org/licenses/.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -121,9 +121,19 @@ init_wimlib_dentry(struct wimlib_dir_entry *wdentry, struct wim_dentry *dentry,
        wdentry->num_links = inode->i_nlink;
        wdentry->attributes = inode->i_attributes;
        wdentry->hard_link_group_id = inode->i_ino;
-       wdentry->creation_time = wim_timestamp_to_timespec(inode->i_creation_time);
-       wdentry->last_write_time = wim_timestamp_to_timespec(inode->i_last_write_time);
-       wdentry->last_access_time = wim_timestamp_to_timespec(inode->i_last_access_time);
+
+       wim_timestamp_to_wimlib_timespec(inode->i_creation_time,
+                                        &wdentry->creation_time,
+                                        &wdentry->creation_time_high);
+
+       wim_timestamp_to_wimlib_timespec(inode->i_last_write_time,
+                                        &wdentry->last_write_time,
+                                        &wdentry->last_write_time_high);
+
+       wim_timestamp_to_wimlib_timespec(inode->i_last_access_time,
+                                        &wdentry->last_access_time,
+                                        &wdentry->last_access_time_high);
+
        if (inode_get_unix_data(inode, &unix_data)) {
                wdentry->unix_uid = unix_data.uid;
                wdentry->unix_gid = unix_data.gid;
@@ -206,22 +216,12 @@ do_iterate_dir_tree(WIMStruct *wim,
                struct wim_dentry *child;
 
                ret = 0;
-               if (default_ignore_case) {
-                       for_dentry_child_case_insensitive(child, dentry) {
-                               ret = do_iterate_dir_tree(wim, child,
-                                                         flags & ~WIMLIB_ITERATE_DIR_TREE_FLAG_CHILDREN,
-                                                         cb, user_ctx);
-                               if (ret)
-                                       break;
-                       }
-               } else {
-                       for_dentry_child(child, dentry) {
-                               ret = do_iterate_dir_tree(wim, child,
-                                                         flags & ~WIMLIB_ITERATE_DIR_TREE_FLAG_CHILDREN,
-                                                         cb, user_ctx);
-                               if (ret)
-                                       break;
-                       }
+               for_dentry_child(child, dentry) {
+                       ret = do_iterate_dir_tree(wim, child,
+                                                 flags & ~WIMLIB_ITERATE_DIR_TREE_FLAG_CHILDREN,
+                                                 cb, user_ctx);
+                       if (ret)
+                               break;
                }
        }
 out_free_wimlib_dentry:
@@ -269,11 +269,6 @@ wimlib_iterate_dir_tree(WIMStruct *wim, int image, const tchar *_path,
        path = canonicalize_wim_path(_path);
        if (path == NULL)
                return WIMLIB_ERR_NOMEM;
-
-       ret = wim_checksum_unhashed_blobs(wim);
-       if (ret)
-               return ret;
-
        struct image_iterate_dir_tree_ctx ctx = {
                .path = path,
                .flags = flags,