else
stat_fn = lstat;
+ if (add_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+ printf("Scanning `%s'\n", root_disk_path);
+
ret = (*stat_fn)(root_disk_path, &root_stbuf);
if (ret != 0) {
return WIMLIB_ERR_NOMEM;
}
lte->file_on_disk = file_on_disk;
+ lte->resource_location = RESOURCE_IN_FILE_ON_DISK;
lte->resource_entry.original_size = root_stbuf.st_size;
lte->resource_entry.size = root_stbuf.st_size;
copy_hash(lte->hash, hash);
dest_lte = new_lookup_table_entry();
if (!dest_lte)
return WIMLIB_ERR_NOMEM;
- dest_lte->other_wim_fp = src_wim->fp;
- dest_lte->other_wim_ctype =
- wimlib_get_compression_type(src_wim);
+ dest_lte->resource_location = RESOURCE_IN_WIM;
+ dest_lte->wim = src_wim;
memcpy(&dest_lte->resource_entry,
&src_lte->resource_entry,
sizeof(struct resource_entry));