Page 1 of 1

efficiently copying files and dirs between images

Posted: Thu May 17, 2018 7:32 am
by bliblubli
Hi,
is there an efficient way to copy a dir or file from one image to another inside a wim file. When I do it with wimmount (for source image) and wimmountrw (for destination image), wimlib first decompresses the whole dir or file to a staging dir, which is long and memory and IO hungry, to then rescan the whole thing to update the image when commiting.

It takes sometime hours, also in fact, as all those files are already present and compressed in the wimfile, it's just about appending some blobs refs to the updated image (which should be about a few kilobytes done in a few seconds with a command like cp image1/path image4/path)?

Re: efficiently copying files and dirs between images

Posted: Fri May 18, 2018 6:58 am
by synchronicity
No, this has been requested once before; I'll consider it.

Re: efficiently copying files and dirs between images

Posted: Tue May 22, 2018 6:55 am
by bliblubli
Looking forward :) More atomic functions would make wimmlib very powerfull.