* the only supported value). */
u32 chunk_size;
- /* Globally unique identifier for the WIM file. Basically bunch of
+ /* Globally unique identifier for the WIM file. Basically a bunch of
* random bytes. */
u8 guid[WIM_GID_LEN];
u32 boot_idx;
/* Location and size of the WIM's integrity table, or all zeroes if the
- * WIM has no integrity table. */
-
- /* Note the integrity_table_res_entry here is 4-byte aligned even though
+ * WIM has no integrity table.
+ *
+ * Note the integrity_table_res_entry here is 4-byte aligned even though
* it would ordinarily be 8-byte aligned--- hence, the _packed_attribute
* on the `struct wim_header_disk' is essential. */
struct resource_entry_disk integrity_table_res_entry;
{
struct wim_header_disk disk_hdr _aligned_attribute(8);
+ BUILD_BUG_ON(sizeof(struct wim_header_disk) != WIM_HEADER_DISK_SIZE);
+
DEBUG("Reading WIM header from \"%"TS"\"", filename);
if (full_pread(in_fd, &disk_hdr, sizeof(disk_hdr), 0) != sizeof(disk_hdr)) {
return WIMLIB_ERR_NOT_A_WIM_FILE;
}
- BUILD_BUG_ON(sizeof(struct wim_header_disk) != WIM_HEADER_DISK_SIZE);
if (le32_to_cpu(disk_hdr.hdr_size) != sizeof(struct wim_header_disk)) {
ERROR("\"%"TS"\": Header size is invalid (%u bytes)",
filename, le32_to_cpu(disk_hdr.hdr_size));