X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flookup_table.h;h=dbcf55543254fc18ca48e78d7b18ff11a493b87e;hp=305e637886b4264144eb87982eaa4733f94d4b6e;hb=6cca349b45e66a2b2b82aa5dcd269a4bf61c50db;hpb=558fbdac286438e57df64cf9c72e372bc2f3149c diff --git a/src/lookup_table.h b/src/lookup_table.h index 305e6378..dbcf5554 100644 --- a/src/lookup_table.h +++ b/src/lookup_table.h @@ -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) {