]> wimlib.net Git - wimlib/blobdiff - include/wimlib/header.h
Variable chunk size support (currently XPRESS only)
[wimlib] / include / wimlib / header.h
index cd68486b0d9f118f90b8c82c04443d6ddad2db03..f7c4b7fff1818844637474a8a4c1452b818febcc 100644 (file)
 /* Length of the WIM header on disk.  */
 #define WIM_HEADER_DISK_SIZE 208
 
-/* Compressed resources in the WIM are divided into separated compressed chunks
- * of this size.  This value is unfortunately not configurable (at least when
- * compatibility with Microsoft's software is desired).  */
-#define WIM_CHUNK_SIZE 32768
-
 /* Version of the WIM file.  There is an older version (used for prerelease
  * versions of Windows Vista), but wimlib doesn't support it.  The differences
  * between the versions are undocumented.  */
@@ -69,9 +64,8 @@ struct wim_header_disk {
        /* Flags for the WIM file (WIM_HDR_FLAG_*) */
        u32 wim_flags;
 
-       /* Uncompressed chunk size of resources in the WIM.  0 if the WIM is
-        * uncompressed.  If compressed, WIM_CHUNK_SIZE is expected (currently
-        * the only supported value).  */
+       /* Chunk size for compressed resources in the WIM, or 0 if the WIM is
+        * uncompressed.  */
        u32 chunk_size;
 
        /* Globally unique identifier for the WIM file.  Basically a bunch of
@@ -127,6 +121,9 @@ struct wim_header {
        /* Bitwise OR of one or more of the WIM_HDR_FLAG_* defined below. */
        u32 flags;
 
+       /* Compressed resource chunk size  */
+       u32 chunk_size;
+
        /* A unique identifier for the WIM file. */
        u8 guid[WIM_GID_LEN];