IP Library Granted Patent US 11,650,875
Granted Patent B2
US 11,650,875 · App. 17/786,812 · Granted May 16, 2023

Abnormal inode dynamic repair method and system, and related component

Inventors: Peng Li (Shandong, CN); Xiangrui Meng (Shandong, CN)
Assignee: INSPUR ELECTRONIC INFORMATION INDUSTRY CO., LTD.
G06F11/0793G06F16/13G06F16/164
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,650,875
App. No.
17/786,812
Granted
May 16, 2023
Kind
B2
Abstract

An abnormal index node (inode) dynamic repair method, system, and apparatus, and a readable memory medium. The method includes: obtaining an overall memory structure of an abnormal inode in a memory, and converting the overall memory structure into an editable file; determining an abnormal field in the editable file according to error reporting information; writing an expected value of a file system to a position of the abnormal field in the editable file to obtain a repaired editable file; and importing the repaired editable file back to the memory.

Claims (41)

1. An abnormal index node (inode) dynamic repair method, comprising:

obtaining an overall memory structure of an abnormal inode in a memory, and converting the overall memory structure into an editable file;

determining an abnormal field in the editable file according to error reporting information;

writing an expected value of a file system to a position of the abnormal field in the editable file to obtain a repaired editable file; and

encoding the repaired editable file according to a format in an inode structure in the memory, and then overwriting the overall memory structure in the memory with coded content by use of a memory copy function provided by an operating system.

2. The dynamic repair method according to claim 1 , further comprising:

writing metadata corresponding to the repaired editable file to an underlying memory cell.

3. The dynamic repair method according to claim 2 , wherein the process of writing metadata corresponding to the repaired editable file to an underlying memory cell comprises:

calling a refresh interface of the file system actively to write the metadata corresponding to the repaired editable file to the underlying memory cell.

4. The dynamic repair method according to claim 1 , wherein the process of writing an expected value of a file system to a position of the abnormal field in the editable file to obtain a repaired editable file comprises:

writing the expected value of the file system to the position of the abnormal field in the editable file to supplement a missing field or replace an abnormal field value.

5. The dynamic repair method according to claim 1 , wherein the editable file is:

stored in a nested structure and a text form.

6. The dynamic repair method according to claim 1 , wherein the abnormal field determined according to the error reporting information comprises field missing and abnormal field value.

7. An abnormal index node (inode) dynamic repair apparatus, comprising:

a storage device, configured to store a computer program;

a processor, configured to execute the computer program to implement any steps of an abnormal inode dynamic repair method, wherein the abnormal inode dynamic repair method comprises:

obtaining an overall memory structure of an abnormal inode in a memory, and converting the overall memory structure into an editable file;

determining an abnormal field in the editable file according to error reporting information;

writing an expected value of a file system to a position of the abnormal field in the editable file to obtain a repaired editable file; and

encoding the repaired editable file according to a format in an inode structure in the memory, and then overwriting the overall memory structure in the memory with coded content by use of a memory copy function provided by an operating system.

8. The abnormal inode dynamic repair apparatus according to claim 7 , wherein the abnormal inode dynamic repair method further comprises:

writing metadata corresponding to the repaired editable file to an underlying memory cell.

9. The abnormal inode dynamic repair apparatus according to claim 8 , wherein the process of writing metadata corresponding to the repaired editable file to an underlying memory cell comprises:

calling a refresh interface of the file system actively to write the metadata corresponding to the repaired editable file to the underlying memory cell.

10. The abnormal inode dynamic repair apparatus according to claim 7 , wherein the process of writing an expected value of a file system to a position of the abnormal field in the editable file to obtain a repaired editable file comprises:

writing the expected value of the file system to the position of the abnormal field in the editable file to supplement a missing field or replace an abnormal field value.

11. The abnormal inode dynamic repair apparatus according to claim 7 , wherein the editable file is stored in a nested structure and a text form.

12. The abnormal inode dynamic repair apparatus according to claim 7 , wherein the abnormal field determined according to the error reporting information comprises field missing and abnormal field value.

13. A non-transitory computer-readable storage medium, having a computer program stored thereon which, when executed by a processor, implements any steps of an abnormal inode dynamic repair method, wherein the abnormal inode dynamic repair method comprises:

obtaining an overall memory structure of an abnormal inode in a memory, and converting the overall memory structure into an editable file;

determining an abnormal field in the editable file according to error reporting information;

writing an expected value of a file system to a position of the abnormal field in the editable file to obtain a repaired editable file; and

encoding the repaired editable file according to a format in an inode structure in the memory, and then overwriting the overall memory structure in the memory with coded content by use of a memory copy function provided by an operating system.

14. The non-transitory computer-readable storage medium according to claim 10 , wherein the abnormal inode dynamic repair method further comprises:

writing metadata corresponding to the repaired editable file to an underlying memory cell.

15. The non-transitory computer-readable storage medium according to claim 14 , wherein the process of writing metadata corresponding to the repaired editable file to an underlying memory cell comprises:

calling a refresh interface of the file system actively to write the metadata corresponding to the repaired editable file to the underlying memory cell.

16. The non-transitory computer-readable storage medium according to claim 13 , wherein the process of writing an expected value of a file system to a position of the abnormal field in the editable file to obtain a repaired editable file comprises:

writing the expected value of the file system to the position of the abnormal field in the editable file to supplement a missing field or replace an abnormal field value.

17. The non-transitory computer-readable storage medium according to claim 13 , wherein the editable file is stored in a nested structure and a text form.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 17, 2022
From: LI, PENG; MENG, XIANGRUI
To: INSPUR ELECTRONIC INFORMATION INDUSTRY CO., LTD.
Reel/Frame 060237/0363 →
Priority Claims (1)
CN 201911328598.6 · Dec 20, 2019 · national
Continuity (1)
Related Publication 20230032428A1 · Feb 2, 2023