Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

File data checking method and device

A technology of file data and verification method, which is applied in the field of data processing and can solve problems such as inconsistency between embedded verification code data and files

Inactive Publication Date: 2017-09-05
ALIBABA GRP HLDG LTD
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the present application provides a method and device for verifying file data, which can solve the problem of inconsistency between existing embedded check code data and files

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
  • File data checking method and device
  • File data checking method and device
  • File data checking method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0087] 401. Set a unique check code initial value for each data to be written, and add the check code initial value to the metadata of the corresponding file;

[0088] The core of this embodiment is to combine the file name information of the stored data with the check code to form a one-to-one correspondence, thereby overcoming the problem in the prior art that the file name of the stored data may not be consistent with the embedded check code .

[0089] Therefore, in this embodiment, a unique check code initial value is set for each data file, and the check code initial value is added to the metadata of the corresponding file; The unique correspondence between metadata and the initial value of the check code, the initial value of the check code is different between different files; when writing data, use the initial value of the check code to generate the check code.

[0090] Wherein, the metadata, also known as intermediary data and relay data, is a kind of data describing...

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 file data checking method and device. According to file name information of files to be read, and initial checking code values are determined; according to the initial checking code values and data contents of data blocks in the files to be read, a checking code generating algorithm is utilized to calculate check codes of the data blocks; the calculated check codes are compared with checking codes embedded into the data blocks, if the codes are consistent, it is determined that the files to be read are consistent with the data blocks.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular to a method and device for verifying file data. Background technique [0002] The data stored on the disk may be inconsistent with the data read and written due to disk failure, operating system failure, and software defects, that is, the data integrity is destroyed. Therefore, the storage system needs to verify the data. The usual method is to use a checksum (checksum). A commonly used checksum algorithm is to use a cyclic redundancy check algorithm (crc algorithm) to generate a checksum corresponding to the data. In the practice of storage systems, there is a common practice to use a certain fixed block size as the unit. [0003] Generate a corresponding check code for each block, and store the check codes corresponding to all blocks in the file separately in a file. The advantage of this method is that the reading and writing logic is simple, and the disadvanta...

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
IPC IPC(8): G06F11/10
CPCG06F11/1068
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
Eureka Blog
Learn More
PatSnap group products