File System Directory Tree Repair via Metadata Reconstruction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current systems cannot recover an original file system directory tree when metadata is corrupted, leading to impaired file system operation.

Innovation Solution

A method and apparatus that traverse metadata to construct subdirectory trees based on subdirectory path information, reconstruct parent directory path information, and integrate these trees to restore the original directory tree structure.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If metadata is corrupted in the file system, then file system operation is impaired, but the current system cannot recover the original directory tree structure

Engineering Contradiction:
Improvefile system operation reliabilityVSAvoiddirectory tree structure information
Core Design Contradiction:
ReliabilityVSLoss of information

Solution Approach 1:

The patent segments the corrupted directory tree into multiple subdirectory trees by traversing metadata and constructing separate tree structures from available information. This segmentation allows the system to work with partial intact structures rather than being blocked by corrupted sections, enabling progressive recovery and reconstruction of the original directory tree.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary actions by traversing metadata before corruption fully impacts operation, constructing subdirectory trees from available information, and preparing reconstruction data. This preliminary processing preserves as much directory structure information as possible before complete recovery is needed, enabling subsequent reconstruction of the original tree.

Inventive Principle:
Principle #10Preliminary action

2Ease of operation

If the file system directory tree is corrupted, then normal file system operation is affected, but existing repair methods cannot restore the original tree

Engineering Contradiction:
Improvefile system operationVSAvoiddirectory tree recovery
Core Design Contradiction:
Ease of operationVSEase of repair

Solution Approach 1:

The patent implements feedback mechanisms by traversing metadata to identify corrupted sections, constructing subdirectory trees from available information, and using this feedback to guide the reconstruction process. The system continuously monitors the state of directory tree metadata and adjusts reconstruction strategies based on what information is available and what has been recovered.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent creates copies of the corrupted directory tree in the form of multiple subdirectory trees, each constructed from available metadata information. These copies serve as reconstructible versions that can be merged to form the original directory tree, allowing the system to work with replicated data rather than the single corrupted original.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS10817469B2Method and apparatus for repairing file system directory tree
Publication Date: 2020.10.27 HUAWEI TECH CO LTD
  • US10817469B2 patent drawing
  • US10817469B2 patent drawing
  • US10817469B2 patent drawing

AI summary

A method and an apparatus for repairing a file system directory tree are provided. Parent directory path information is added to metadata of each directory. When metadata of a directory tree is corrupted, the metadata is traversed, and N subdirectory trees are constructed according to subdirectory path information in the metadata of each directory. A corrupted directory is determined according to parent directory path information of a sub-root directory of a subdirectory tree. Metadata of a higher-level directory of a level R that is adjacent to the sub-root directory is reconstructed according to the parent directory path information of the sub-root directory of the subdirectory tree. The N subdirectory trees are constructed into one directory tree according to the reconstructed metadata of the higher-level directory of the level R that is adjacent to the sub-root directory.