DEBUG("Reading metadata resource (size=%"PRIu64").", metadata_blob->size);
/* Read the metadata resource into memory. (It may be compressed.) */
- ret = read_full_blob_into_alloc_buf(metadata_blob, &buf);
+ ret = read_blob_into_alloc_buf(metadata_blob, &buf);
if (ret)
return ret;
/* Write the metadata resource to the output WIM using the proper
* compression type, in the process updating the blob descriptor for the
* metadata resource. */
- ret = write_wim_resource_from_buffer(buf, len, WIM_RESHDR_FLAG_METADATA,
+ ret = write_wim_resource_from_buffer(buf,
+ len,
+ true,
&wim->out_fd,
wim->out_compression_type,
wim->out_chunk_size,