Unlock instant, AI-driven research and patent intelligence for your innovation.

A boot file system detection method and related equipment

A file system and detection method technology, applied in the storage field, can solve the problem of increasing the time-consuming of the boot process, and achieve the effect of improving the flexibility of implementation, reducing time-consuming, and increasing the flexibility of implementation.

Active Publication Date: 2021-01-05
HUAWEI TECH CO LTD
View PDF17 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the user state, the init process starts the fsck process. Every time the fsck process reads and writes to the disk (input / output, I / 0), it needs to switch from the user state to the kernel state and then to the user state, which increases the time consumption of the boot process.

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 boot file system detection method and related equipment
  • A boot file system detection method and related equipment
  • A boot file system detection method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The embodiment of the present application provides a boot file system detection method and related equipment. After the kernel driver in the kernel state detects the first disk partition, the initialization function of the kernel driver completes the initialization of the first disk partition. After the initialization function of the kernel state completes the initialization of the first disk partition, the initialization function performs a file system detection fsck on the first disk partition. After completing the fsck, the initialization function of the kernel state reports the first disk partition event to the user state initialization process. It avoids that every read and write operation (input / output, I / 0) to the disk in the fsck process needs to switch from the user state to the kernel state and then to the user state, so as to improve the speed of the fsck process and reduce the time-consuming of the boot process.

[0055] Before introducing this embodiment, se...

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

Disclosed in embodiments of the present application is a power-on file system check method, comprising: detecting a first disk partition by means of a kernel driver in a kernel mode; completing the initialization of the first disk partition by means of an initialization function in the kernel driver; performing file system check (fsck) on the first disk partition by means of the initialization function; and reporting a first disk partition event to an initialization process in a user mode. According to the method, the fsck processes of disk partitions are advanced to a disk partition initialization phase and executed in parallel, without blocking a power-on process, avoiding the need to switch every read and write operation of the fsck processes on a disk from the user mode to the kernel mode and then to the user mode, thereby increasing the speed of the fsck processes, and reducing the time consumed by the power-on process.

Description

technical field [0001] The present application relates to the field of storage technologies, and in particular to a boot file system detection method and related equipment. Background technique [0002] Terminal equipment is prone to power failure. During the process of reading and writing disk files, if the terminal equipment suddenly loses power, it will easily cause disk file damage. Therefore, in order to ensure that the disk is available, it is necessary to perform a file system check (file system check, FSCK) on the disk partition during the boot process of the terminal device, so as to detect whether the disk partition is damaged. [0003] In the prior art, after the kernel driver in the kernel mode (kernel mode) detects the disk partition, it will report the disk partition event to the user mode (user mode), and the user space process (ueventd) in the user mode monitors the disk partition event After that, the corresponding disk partition nodes will be generated, an...

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/4401
CPCG06F9/4401
Inventor 龚晨杨杰陈成周佐华
Owner HUAWEI TECH CO LTD