]> wimlib.net Git - wimlib/blobdiff - src/lookup_table.h
--disable-multithreaded-compression option
[wimlib] / src / lookup_table.h
index 92eac33f067cd465e2e3d4b07e0d8619dc243409..dbcf55543254fc18ca48e78d7b18ff11a493b87e 100644 (file)
@@ -180,7 +180,10 @@ struct lookup_table_entry {
         *      - The stream may have a different compressed size in the
         *      new WIM if the compression type changed
         */
-       struct resource_entry output_resource_entry;
+       union {
+               struct resource_entry output_resource_entry;
+               struct list_head msg_list;
+       };
 
        /* This field is used for the special hardlink or symlink image
         * extraction mode.   In these mode, all identical files are linked
@@ -204,6 +207,11 @@ static inline u64 wim_resource_size(const struct lookup_table_entry *lte)
        return lte->resource_entry.original_size;
 }
 
+static inline u64 wim_resource_chunks(const struct lookup_table_entry *lte)
+{
+       return (wim_resource_size(lte) + WIM_CHUNK_SIZE - 1) / WIM_CHUNK_SIZE;
+}
+
 static inline u64
 wim_resource_compressed_size(const struct lookup_table_entry *lte)
 {
@@ -256,8 +264,9 @@ extern int lookup_resource(WIMStruct *w, const char *path,
 
 extern void lte_decrement_refcnt(struct lookup_table_entry *lte,
                                 struct lookup_table *table);
-extern void lte_decrement_num_opened_fds(struct lookup_table_entry *lte,
-                                        struct lookup_table *table);
+#ifdef WITH_FUSE
+extern void lte_decrement_num_opened_fds(struct lookup_table_entry *lte);
+#endif
 
 extern int lte_zero_out_refcnt(struct lookup_table_entry *entry, void *ignore);
 extern int lte_zero_real_refcnt(struct lookup_table_entry *entry, void *ignore);