]> wimlib.net Git - wimlib/blobdiff - include/wimlib/dentry.h
ntfs-3g capture/apply: Capture & apply DOS names correctly
[wimlib] / include / wimlib / dentry.h
index 6d8c557ee0b1bb7a752f1c922780ff50738152b7..09de869a99e07464fb5eaf8909bd60257f60146d 100644 (file)
@@ -159,6 +159,8 @@ struct wim_dentry {
         * characters).  Otherwise this will always be 0. */
        u8 extraction_skipped : 1;
 
+       u8 skeleton_extracted : 1;
+
        /* When capturing from a NTFS volume using NTFS-3g, this flag is set on
         * dentries that were created from a filename in the WIN32 or WIN32+DOS
         * namespaces rather than the POSIX namespace.  Otherwise this will
@@ -311,6 +313,9 @@ struct wim_inode {
         * error paths.  */
        u8 i_visited : 1;
 
+       /* Set if the DOS name of an inode has already been extracted.  */
+       u8 i_dos_name_extracted : 1;
+
        /* Pointer to a malloc()ed array of i_num_ads alternate data stream
         * entries for this inode.  */
        struct wim_ads_entry *i_ads_entries;
@@ -575,7 +580,7 @@ inode_get_unix_data(const struct wim_inode *inode,
 extern int
 inode_set_unix_data(struct wim_inode *inode, uid_t uid, gid_t gid, mode_t mode,
                    struct wim_lookup_table *lookup_table, int which);
-#endif /* __WIN32__ */
+#endif /* !__WIN32__ */
 
 extern bool
 inode_has_unix_data(const struct wim_inode *inode);