Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Magnetic disk block detection method and device

An inspection method and inspection device technology, applied in the storage field, can solve the problems of long time, lower FSCK efficiency, time-consuming inspection steps, etc.

Active Publication Date: 2013-05-22
浙江杭海新城控股集团有限公司
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the file is large, this check step is very time-consuming, because it requires frequent disk reads, which will greatly reduce the efficiency of FSCK
Especially for the deduplication file system, since one file often corresponds to a large number of data blocks (up to hundreds of millions), this step will consume a very long time

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
  • Magnetic disk block detection method and device
  • Magnetic disk block detection method and device
  • Magnetic disk block detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] In order to make the object, technical solution and advantages of the present invention clearer, the specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0059] In the embodiment of the present invention, first create a Bloom Filter array for checking disk blocks (abbreviated as Bloom Filter array in this embodiment), that is, map the block number of the first disk block to the first Bloom Filter array in the Bloom Filter array by using the Hash function. One position, the value of the first position is set as the first feature value, the initial value of all positions in the Bloom Filter array is the second feature value; Utilize the Hash function to map the block number of the checked disk block to The second position in the Bloom Filter array; judging whether the value of the second position is the first characteristic value; determining whether the checked disk block is free according...

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

A magnetic disk block detection method and a device comprise the following steps: mapping each block number of a first auxiliary magnetic disk block collection of a first magnetic disk block collection to a bloom filter array by using a hash function; arranging an original value of location mapped by each block number to be a first characteristic value, and arranging original values of all locations in the bloom filter array to be second valves; mapping the block number of the detected magnetic disk block into the bloom filter array by using the hash function; judging whether the detected magnetic disk block belongs to the bloom filter array according to the valve of the mapped location of the block number of the detected magnetic disk block; and confirming the detected magnetic disk block is a free magnetic disk block or a non-free magnetic disk block according to the fact that whether the detected magnetic disk block belongs to the bloom filter array, so that the fact that disk reading operation is only conducted when the bloom filter array is built or judgment cannot realized is achieved, and file system check (FSCK) speed is improved.

Description

technical field [0001] The invention relates to the field of storage technology, in particular to a disk block checking method and device. Background technique [0002] A file system in a computer can generally be in one of two states: clean or dirty. If you want to mount a file system on a disk partition, the file system must be clean, that is, the structure is complete, and the metadata, metadata and data are consistent. But sometimes the consistency of the file system may be destroyed. For example, when the system is powered off, the data in the memory will be lost, or due to a disk failure, such as a bad track on the disk, etc., the consistency of the file system data will be destroyed. In order to check and maintain inconsistent file systems, the file system will provide a disk block check (FilesystemCheck, FSCK) tool to facilitate users to check and repair the file system. [0003] FSCK has an important step: traversing whether the data blocks corresponding to all fi...

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): G11B20/18
Inventor 张森黄岩
Owner 浙江杭海新城控股集团有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products