]> wimlib.net Git - wimlib/blobdiff - include/wimlib/lookup_table.h
test-imagex-mount: Always use tmp.mnt for mounts
[wimlib] / include / wimlib / lookup_table.h
index 216565e1939b334f2e6c9ac576199683b9137045..4252f3a5ccdac4cbca41b534b9bb687c6f7fef75 100644 (file)
@@ -169,7 +169,10 @@ struct wim_lookup_table_entry {
                tchar *file_on_disk;
                void *attached_buffer;
        #ifdef WITH_FUSE
-               tchar *staging_file_name;
+               struct {
+                       char *staging_file_name;
+                       int staging_dir_fd;
+               };
        #endif
        #ifdef WITH_NTFS_3G
                struct ntfs_location *ntfs_loc;
@@ -348,19 +351,6 @@ lte_is_partial(const struct wim_lookup_table_entry * lte)
               lte->size != lte->rspec->uncompressed_size;
 }
 
-static inline bool
-lte_filename_valid(const struct wim_lookup_table_entry *lte)
-{
-       return     lte->resource_location == RESOURCE_IN_FILE_ON_DISK
-       #ifdef __WIN32__
-               || lte->resource_location == RESOURCE_WIN32_ENCRYPTED
-       #endif
-       #ifdef WITH_FUSE
-               || lte->resource_location == RESOURCE_IN_STAGING_FILE
-       #endif
-               ;
-}
-
 static inline const struct stream_owner *
 stream_owners(struct wim_lookup_table_entry *stream)
 {