A method, device, and machine-readable storage medium for image file shrinkage

A technology of mirroring files and shrinking devices, applied in multi-programming devices, program control devices, software simulation/interpretation/simulation, etc., can solve the problem of wasting physical machine storage space, and achieve the effect of improving disk space utilization.

Active Publication Date: 2020-09-25
NEW H3C CLOUD TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present application provides an image file shrinking method, device and machine-readable storage medium to solve the problem that the current virtual machine image file does not reduce the file size even if the data is deleted, and wastes the storage space of the physical machine

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
  • A method, device, and machine-readable storage medium for image file shrinkage
  • A method, device, and machine-readable storage medium for image file shrinkage
  • A method, device, and machine-readable storage medium for image file shrinkage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

[0024] The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term...

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 discloses a mirror image file compression method and apparatus, and a machine readable storage medium. The mirror image file compression method comprises the steps of detecting a disk space usage state of a virtual machine to obtain a to-be-recovered disk block number in the virtual machine; according to a disk block number and a mirror image file block number of the virtual machineand a mapping relationship between the mirror image file block number and a disk block number of a physical machine, mapping the to-be-recovered disk block number in the virtual machine to a to-be-recovered disk block number of the physical machine; and controlling the physical machine to release a to-be-recovered disk block of the physical machine. By detecting a disk space unused by a mirror image file of the virtual machine and releasing a disk space of the physical machine, corresponding to the disk space of the virtual machine, the purpose of increasing the disk space utilization rate ofthe physical machine is achieved.

Description

technical field [0001] The present application relates to the technical field of computer file processing, in particular to a shrinking method, device and machine-readable storage medium for image files. Background technique [0002] Virtualization technology adds a virtualization layer to the system, which abstracts the resources of the lower layer into another form of resource for use by the upper layer. The files inside the virtual machine are written into the disk image file, and the disk image file is saved in the file system of the host machine (ie, the physical machine). [0003] Disk image files generally adopt a write-time allocation strategy, that is, when data is written to the virtual machine disk inside the virtual machine, the disk space of the physical machine occupied by the image file will increase. However, when a file is deleted inside the virtual machine, the disk space of the physical machine corresponding to the deleted virtual machine file cannot be r...

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 Patents(China)
IPC IPC(8): G06F9/455G06F9/50
Inventor 葛长伟
Owner NEW H3C CLOUD TECH CO 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