Cross-host sparse file copying method and device, equipment and storage medium

A sparse file, cross-host technology, applied in the field of data processing, can solve the problem of copy rate reduction and achieve the effect of increasing file copy rate

Inactive Publication Date: 2020-03-17
北京浪潮数据技术有限公司
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, when a user copies a sparse file across hosts, the entire sparse file including invalid data will be copied, that is, when a sparse file is copied across hosts, even the empty part will be copied, which is equivalent to copying a bunch of invalid data 0, resulting in a cross-host copy When files are copied, the copy rate is reduced

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
  • Cross-host sparse file copying method and device, equipment and storage medium
  • Cross-host sparse file copying method and device, equipment and storage medium
  • Cross-host sparse file copying method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0041] The embodiment of the invention discloses a cross-host sparse file copy method, device, equipment and computer storage medium, so as to improve the copy speed of cross-host sparse files.

[0042] see figure 1 , a cross-host sparse file copy method provided by an embodiment of the present invention, based on the source host, the sparse file copy includes:

[0043] S101. Read the metadata information of the target sparse file to be copied;

[0044] It should...

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 cross-host sparse file copying method, device and equipment and a computer storage medium. In the scheme, a source host reads metadata information of a to-be-copied target sparse file and then sends the metadata information to a target host, and the target host creates the to-be-filled sparse file by utilizing the metadata information; and the source host reads the targetsparse file, and sends the valid data determined in the reading process and the offset information of the valid data to the destination host, so that the destination host reconstructs the corresponding sparse file in the to-be-filled sparse file by using the valid data and the offset information. It can be seen that after the source host sends the effective data and the offset information of thesparse file to the target host, the target host can reconstruct the corresponding sparse file through the effective data and the offset information, and therefore cross-host copying of the sparse fileis achieved; moreover, only effective data is copied when the sparse file is copied, so that the file copying rate can be increased.

Description

technical field [0001] The present invention relates to the technical field of data processing, and more specifically relates to a method, device, equipment and computer storage medium for copying sparse files across hosts. Background technique [0002] When the user applies for storage space, no data is written into the space at the beginning. When the data is actually written, the operating system gradually allocates space. Then this file will look very large, but the actual occupied space is very small, and the actual occupied space is only related to the amount of data filled by the user. Such a file is a sparse file. The place in the file that is not filled with data is called a hole, that is, a hole. Although these holes are not filled with data, when the operating system accesses the data in these locations, the file system will return the default value of 0. At present, when a user copies a sparse file across hosts, the entire sparse file including invalid data wi...

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): G06F16/16G06F16/174G06F3/06
CPCG06F16/174G06F16/16G06F3/065
Inventor 张伟
Owner 北京浪潮数据技术有限公司
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