[Libguestfs] [hivex PATCH] Re-allocating unused blocks before assigning new blocks

Shreyas Khare shreyas_khare at rapid7.com
Mon Jul 23 18:38:18 UTC 2018


Hello Richard

As discussed in the IRC channel, when merging a moderately large reg 
file (~35MB) to a hiv file (~118 MB); hivex generates a huge hiv file 
(~580 MB). These changes address that by creating a list of unallocated 
blocks and reassigning unused blocks. I used 
https://github.com/msuhanov/regf/blob/master/Windows%20registry%20file%20format%20specification.md 
as a reference for the structure of the hiv file (in addition to the 
source code itself)

Attaching the patch file.

Shreyas

-- 
NOTICE OF CONFIDENTIALITY: At Rapid7, the privacy of our customers, 
partners, and employees is paramount. If you received this email in error, 
please notify the sender and delete it from your inbox right away. Learn 
how Rapid7 handles privacy at rapid7.com/privacy-policy 
<https://www.rapid7.com/privacy-policy/>. To opt-out of Rapid7 marketing 
emails, please click here 
<https://information.rapid7.com/manage-subscription.html> or email 
privacy at rapid7.com <mailto:mailto:privacy at rapid7.com>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Re-allocating-unused-blocks-before-assigning-new-blo.patch
Type: text/x-patch
Size: 7248 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20180723/6cdc5dd9/attachment.bin>


More information about the Libguestfs mailing list