Method and device for compressing virtual hard disk image file

A technology of virtual disk mirroring and disk mirroring, applied in the file system, data processing input/output process, memory address/allocation/relocation, etc., can solve problems such as wasting storage space, achieve size reduction, and save storage space Effect

Active Publication Date: 2013-02-13
ALIBABA GRP HLDG LTD
View PDF4 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] This application provides a method and device for shrinking a virtual disk image file to solve the problem that the current virtual disk image file will not reduce the size of the file even if the data is deleted, thereby wasting storage space

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for compressing virtual hard disk image file
  • Method and device for compressing virtual hard disk image file
  • Method and device for compressing virtual hard disk image file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0052] This application proposes a method for clearing garbage data in a virtual disk image file, and then shrinking the file, so that after some data is deleted in the image file, the size of the image file can also be reduced by applying this method, thereby saving the required time for the file. storage.

[0053] Wherein, the garbage data refers to data that is generated during the running of the virtual machine and deleted later and is no longer needed, but still exists in the virtual disk image file.

[0054] The implementation process of the method described in this application will be described in detail below by taking an image file in VHD format as an example.

[0055] First, the format of the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a device for compressing a virtual hard disk image file, and aims to solve the problem of storage space waste caused by incapability of decreasing the size of the conventional virtual hard disk image file even by deleting data. The method comprises the following steps of: searching for a junk data block in the file, and modifying a corresponding record of the junk data block in a block allocation table, wherein the junk data block is a data block without valid data; migrating a valid data block after the junk data block to the position of the junk data block, and modifying a corresponding record of the migrated valid data block in the block allocation table; and after the migration of the data block is finished, truncating the file. After certain data are deleted from the virtual hard disk image file, the size of the image file can be decreased, so that a storage space required by the file is saved.

Description

technical field [0001] The present application relates to computer file processing technology, in particular to a method and device for shrinking virtual disk image files. Background technique [0002] The image file is actually similar to the ZIP archive. It makes a specific series of files into a single file in a certain format to facilitate users to download and use, such as a test version of the operating system, games, etc. Its most important feature is that it can be recognized by specific software and can be directly burned to a CD. In fact, the image file in the usual sense can be extended, and more information can be included in the image file. For example, system files, boot files, partition table information, etc., so that the image file can contain all the information of a partition or even a hard disk. [0003] VHD (Virtual Hard Disk) is a virtual disk image file format. The file in VHD format can be used as a virtual disk to format the file system and store ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30G06F12/06
CPCG06F3/0643G06F3/0665G06F17/30067G06F3/0671G06F3/0608G06F3/0652G06F2206/1004G06F3/064G06F17/30138G06F17/30117G06F3/0623G06F3/0631G06F3/0674G06F16/162G06F16/1727
Inventor 宋振华陈伟才王倩万佳
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products