break;
case 'v':
add_image_flags |= WIMLIB_ADD_IMAGE_FLAG_VERBOSE;
+ write_flags |= WIMLIB_WRITE_FLAG_VERBOSE;
break;
default:
usage(cmd);
int open_flags = WIMLIB_OPEN_FLAG_SHOW_PROGRESS;
int export_flags = 0;
int write_flags = WIMLIB_WRITE_FLAG_SHOW_PROGRESS;
- int compression_type = WIM_COMPRESSION_TYPE_XPRESS;
+ int compression_type;
bool compression_type_specified = false;
const char *src_wimfile;
const char *src_image_num_or_name;
} else {
wim_is_new = true;
/* dest_wimfile is not an existing file, so create a new WIM. */
+ if (!compression_type_specified)
+ compression_type = wimlib_get_compression_type(src_w);
if (errno == ENOENT) {
ret = wimlib_create_new_wim(compression_type, &dest_w);
if (ret != 0)
usage_all();
return 1;
}
-/*#ifndef WITH_NTFS_3G*/
- /*ERROR("wimlib was not compiled with support for NTFS-3g, so we cannot extract");*/
- /*ERROR("a WIM to a NTFS filesystem while preserving NTFS-specific metadata.");*/
- /*ERROR("Please apply the WIM to a directory rather than a block device, ");*/
- /*ERROR("and without the NTFS flag; or compile in support for NTFS-3g.");*/
- /*return WIMLIB_ERR_UNSUPPORTED;*/
-/*#endif*/