US 12,346,717 B2
Virtual machine storage system for duplication avoidance
Giuseppe Scrivano, Spezzano della Sila (IT); and Michael Tsirkin, Yokneam Illit (IL)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by Red Hat, Inc., Raleigh, NC (US)
Filed on Apr. 22, 2022, as Appl. No. 17/727,350.
Prior Publication US 2023/0342173 A1, Oct. 26, 2023
Int. Cl. G06F 9/455 (2018.01); G06F 16/13 (2019.01); G06F 16/14 (2019.01)
CPC G06F 9/45558 (2013.01) [G06F 16/137 (2019.01); G06F 16/152 (2019.01); G06F 2009/45583 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A method, comprising:
receiving, by a virtual machine (VM), a request to perform a file access operation with respect to a file;
determining, by the VM, a hash value corresponding to a content of the file;
searching, in a host file system of a host computer system, the file identified by the hash value by searching for the hash value in a first hash-to-content (HTC) table stored in the host file system;
responsive to failing to find file identified by the hash value in the host file system, searching, in a guest file system of the VM, the file identified by the hash value by searching for the hash value in a second HTC table stored in the guest file system, wherein each HTC table comprises a plurality of records, and each of the plurality of records maps a particular hash value to a corresponding content location; and
responsive to finding the file identified by the hash value in the guest file system, performing the file access operation with respect to the file.