×

Systems and methods for compacting a virtual machine file

  • US 9,311,375 B1
  • Filed: 02/07/2012
  • Issued: 04/12/2016
  • Est. Priority Date: 02/07/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method performed by a physical computer system for compacting a virtual machine file, the method comprising:

  • under control of a physical computer system configured for use with virtual machines associated with virtual machine files;

    accessing a source virtual machine file associated with a guest file system;

    determining the guest file system associated with the source virtual machine file;

    creating a destination virtual machine file based on the guest file system;

    initializing a block allocation table of the destination virtual machine file;

    accessing a block allocation table of the source virtual machine file and for each block of the source virtual machine file identified in the block allocation table of the source virtual machine file;

    determining whether the block includes data that is not marked for deletion from the source virtual machine file;

    in response to determining that the block includes data that is not marked for deletion from the source virtual machine file, copying the block to the destination virtual machine file and updating the block allocation table of the destination virtual machine file; and

    in response to determining either that the block does not include data or that the block includes data which is marked for deletion from the source virtual machine file, not copying the block and not updating the block allocation table of the destination virtual machine file, thereby reducing a size of the destination virtual machine file compared to a size of the source virtual machine file.

View all claims
  • 23 Assignments
Timeline View
Assignment View
    ×
    ×