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

Acquisition method and device for bad block information of hard disk

A technology of bad block information and acquisition method, applied in the field of hard disk bad block information acquisition, can solve the problem of not being able to know hard disk irreparable bad block information, etc.

Active Publication Date: 2015-05-27
SHENZHEN STREAMING VIDEO TECH
View PDF10 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a method and device for obtaining bad block information of a hard disk, aiming at solving the problem in the prior art that the file system cannot obtain the irreparable bad block information of the hard disk

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
  • Acquisition method and device for bad block information of hard disk
  • Acquisition method and device for bad block information of hard disk
  • Acquisition method and device for bad block information of hard disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0022] figure 1 The implementation process of the method for obtaining bad block information of the hard disk provided by the embodiment of the present invention is shown, and the details are as follows:

[0023] In S101, run an independent file system daemon thread in the user space of the operating system.

[0024] In S102, a communication channel is established between the user space and the kernel space of the operating system.

[0025] In the Linux system, part of the core software is independent of ordinary applications and runs at a higher privilege level. They reside in the protected memo...

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 is applied to the technical field of computers, and provides an acquisition method and an acquisition device for bad block information of a hard disk. The method comprises the following steps: running an independent file system daemon thread in a user space of an operating system; establishing a communication channel between the user space and a kernel space of the operating system; after an IO (Input and Output) request of block equipment fails, judging whether the IO request of the block equipment is a write request or not; if the IO request of the block equipment is a write request, transmitting the bad block position, corresponding to the IO request of the block equipment, of the block equipment to the daemon thread through the communication channel by the kernel space. According to the method and the device, a hard disk write operation failure result is transmitted to a file system from a kernel of the operating system, so that the file system learns about the hard disk write operation failure result as well as the position of an unrepairable bad block in the hard disk to take further processing measures to avoid data being stored into the bad block with a write error.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a method and a device for acquiring bad block information of a hard disk. Background technique [0002] The application program realizes the file reading and writing operation by calling the interface of the file system, and the reading and writing operation of the physical hard disk by the file system is realized by calling the corresponding interface of the system call layer of the operating system. Due to the existence of the operating system cache mechanism, as long as the file system successfully writes data into the operating system cache, it can get the result of "write operation successful". When the accumulated write cache data reaches the set threshold, or the write cache data is in the cache When the retention time reaches the set threshold, the operating system will synchronize the write cache data to the hard disk. [0003] Generally, hard disk bad blo...

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): G06F3/06G06F11/16
CPCG06F3/0622
Inventor 黄凯明刘文涛
Owner SHENZHEN STREAMING VIDEO TECH
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