System startup method and related device

US11868631B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11868631-B2
Application numberUS-202017626331-A
CountryUS
Kind codeB2
Filing dateJul 9, 2020
Priority dateJul 12, 2019
Publication dateJan 9, 2024
Grant dateJan 9, 2024

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A system startup method includes creating a first thread when a kernel driver in a kernel mode detects a first disk partition, reading, in the kernel mode, metadata of the first disk partition using the first thread, and writing the metadata of the first disk partition into a first page cache using the first thread. In the kernel mode, metadata of a disk partition is pre-cached into a page cache using the first thread, and in a subsequent process in a user mode, the metadata of the disk partition is directly read from the page cache. A storage area of the page cache is memory and has a higher read/write operation rate compared with a disk.

First claim

Opening claim text (preview).

What is claimed is: 1. A method comprising: creating, by calling a first function, a first thread when a kernel driver in a kernel mode detects a first disk partition; calling a second function to obtain a first block pointer, wherein the first block pointer is a block device structure pointer corresponding to the first disk partition; enabling the first disk partition based on the first block pointer; reading, in the kernel mode, metadata of the first disk partition using the first thread; and writing the metadata into a first page cache using the first thread. 2. The method of claim 1 , further comprising: detecting, using the kernel driver in the kernel mode, whether a current disk partition is the first disk partition; calling the first function to create the first thread when the current disk partition is the first disk partition; and transferring a first structure pointer and a first partition number of the first disk partition to the first thread, wherein the first structure pointer is a generic disk structure pointer of the first disk partition. 3. The method of claim 2 , further comprising: calling a third function using the first thread to enable the first disk partition; calling a page operation function using the first thread; and reading the metadata using the page operation function. 4. The method of claim 3 , wherein before calling the third function, the method further comprises: calling the second function using the first thread based on the first structure pointer and the first partition number to obtain the first block pointer; further calling the third function using the first thread; transferring the first block pointer to the third function; and further enabling the first disk partition using the third function. 5. The method of claim 3 , further comprising: transferring, to the page operation function using the first thread, an amount of data to be read and an offset status of the amount of data; and further reading, using the page operation function, the metadata based on the amount of data and the offset status. 6. The method of claim 5 , further comprising writing the metadata into the first page cache using the page operation function. 7. The method of claim 1 , further comprising: performing a file system check (fsck) on the first disk partition in a user mode to obtain an fsck result; and when the fsck result is normal: querying, based on a first index relationship and by calling a fourth function, whether cached data exists in the first page cache, wherein the first index relationship comprises a first address space that manages the first page cache and a first index node that manages the first address space; and performing mounting using the cached data when the cached data exists in the first page cache. 8. The method of claim 7 , wherein after querying whether the cached data exists in the first page cache, the method further comprises: reading the metadata by calling a fifth function when the cached data does not exist in the first page cache; and performing mounting using the metadata. 9. The method of claim 1 , wherein after creating the first thread, the method further comprises: applying for a first memory space using the first thread in the kernel mode; further reading the metadata using the first thread; and writing the metadata into the first memory space using the first thread. 10. The method of claim 9 , wherein after writing the metadata into the first memory space, the method further comprises: establishing a first file node mapped to the first memory space using the first thread; reading, in a user mode and by accessing the first file node, the metadata that is cached in the first memory space; performing a file system check (fsck) on the metadata of the first disk partition to obtain an fsck result; and recording the fsck result. 11. The method of claim 10 , wherein recording the fsck result comprises writing the fsck result to the first disk partition while writing the fsck result to the first memory space by accessing the first file node. 12. A terminal device comprising: a memory configured to store instructions; and a processor coupled to the memory, wherein the instructions cause the processor to be configured to: create, by calling a first function, a first thread when a kernel driver in a kernel mode detects a first disk partition; call a second function to obtain a first block pointer, wherein the first block pointer is a block device structure pointer corresponding to the first disk partition; enable the first disk partition based on the first block pointer; read, in the kernel mode, metadata of the first disk partition using the first thread; and write the metadata into a first page cache using the first thread. 13. The terminal device of claim 12 , wherein the instructions further cause the processor to be configured to: detect, using the kernel driver in the kernel mode, whether a current disk partition is the first disk partition; call the first function to create the first thread when the current disk partition is the first disk partition; and transfer a first structure pointer and a first partition number of the first disk partition to the first thread, wherein the first structure pointer is a generic disk structure pointer of the first disk partition. 14. The terminal device of claim 13 , wherein the instructions further cause the processor to be configured to: call a third function using the first thread to enable the first disk partition; call a page operation function using the first thread; and read the metadata using the page operation function. 15. The terminal device of claim 14 , wherein the instructions further cause the processor to be configured to: call the second function using the first thread based on the first structure pointer and the first partition number to obtain the first block pointer; further call the third function using the first thread; transfer the first block pointer to the third function; and enable the first disk partition based on the first block pointer and using the third function. 16. The terminal device of claim 14 , wherein the instructions further cause the processor to be configured to: transfer, to the page operation function using the first thread, an amount of data to be read and an offset status of the amount of data; and further read, using the page operation function, the metadata based on the amount of data and the offset status. 17. The terminal device of claim 16 , wherein the instructions further cause the processor to be configured to write the metadata into the first page cache using the page operation function. 18. The terminal device of claim 12 , wherein the instructions further cause the processor to be configured to: perform a file system check (fsck) on the first disk partition in a user mode; and when an fsck result of the first disk partition is normal: query, based on a first index relationship and by calling a fourth function, whether cached data exists in the first page cache, wherein the first index relationship comprises a first address space that manages the first page cache and a first index node that manages the first address space; and perform mounting by using the cached data when the cached data exists in the first page cache. 19. The terminal device of claim 18 , wherein the instructions further cause the processor to be configured to: read the metadata by calling a fifth function when the cached data does not

Assignees

Inventors

Classifications

  • G06F3/0632Primary

    by initialisation or re-initialisation of storage systems · CPC title

  • in relation to data integrity, e.g. data losses, bit errors · CPC title

  • Management of space entities, e.g. partitions, extents, pools · CPC title

  • Command handling arrangements, e.g. command buffers, queues, command scheduling · CPC title

  • Single storage device · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11868631B2 cover?
A system startup method includes creating a first thread when a kernel driver in a kernel mode detects a first disk partition, reading, in the kernel mode, metadata of the first disk partition using the first thread, and writing the metadata of the first disk partition into a first page cache using the first thread. In the kernel mode, metadata of a disk partition is pre-cached into a page cach…
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F3/0632. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jan 09 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 9 related publications on this page (citations in our corpus or others sharing the same primary CPC).