US 11,914,983 B2
Virtual restructuring for patching compressed disk images
Christian T. Martelock, Los Gatos, CA (US); Ali Sazegari, Los Altos, CA (US); and Eric Bainville, Sunnyvale, CA (US)
Assigned to Apple Inc., Cupertino, CA (US)
Filed by Apple Inc., Cupertino, CA (US)
Filed on Aug. 29, 2022, as Appl. No. 17/898,013.
Claims priority of provisional application 63/349,032, filed on Jun. 3, 2022.
Prior Publication US 2023/0393830 A1, Dec. 7, 2023
Int. Cl. G06F 8/61 (2018.01); G06F 8/658 (2018.01); G06F 9/445 (2018.01)
CPC G06F 8/63 (2013.01) [G06F 8/658 (2018.02); G06F 9/44505 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method comprising performing, by a computing device:
accessing a stored disk image in response to a request to apply a patch to the stored disk image;
detecting compressed extents within the stored disk image;
reordering the compressed extents to form one or more compressed forks within a virtual disk image;
virtually decompressing at least one fork from the one or more compressed forks within the virtual disk image based on the request to apply the patch;
virtually writing the at least one fork with the patch to the virtual disk image as an updated fork;
compressing the updated fork; and
writing the updated fork, as compressed, to storage to produce an updated, stored disk image.