Reverse Lookup for Union-Mounted File System Search Completeness

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In union-mounted file systems, searches for files often fail to find files located in subdirectories of lower-order file systems due to the traditional method of maintaining only links to root directories, resulting in incomplete file system searches.

Innovation Solution

Implementing a reverse lookup mechanism that rebuilds the search path from a child directory to a parent directory, allowing the search logic to follow union mount links and perform a second lookup in the corresponding lower-order file system, ensuring that files are correctly located and accessed across multiple union-mounted file systems.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If only links to root directories are maintained in union-mounted file systems, then device complexity is reduced, but file search completeness deteriorates

Engineering Contradiction:
Improveunion mount structureVSAvoidfile search completeness
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

Instead of searching from root directories downward, the patent performs a reverse lookup by traversing from the child directory path upward to identify the corresponding lower-order file system mount point. This inversion of the search direction enables complete file searches across all union-mounted file systems while maintaining a simple mount structure.

Inventive Principle:
Principle #13The other way round (Inversion)

2Ease of operation

If traditional forward lookup from root is used, then search logic is simple, but files in lower-order subdirectories are not found

Engineering Contradiction:
Improvesearch logicVSAvoidfile location information
Core Design Contradiction:
Ease of operationVSLoss of information

Solution Approach 1:

The patent performs a preliminary reverse lookup to identify the corresponding lower-order file system mount point before conducting the actual file search. This preliminary action ensures that the search logic can access files in lower-order subdirectories by first establishing the correct mount point context.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS8903875B2Method for identifying corresponding directories in a union-mounted file system
Publication Date: 2014.12.02 APPLE INC
  • US8903875B2 patent drawing
  • US8903875B2 patent drawing
  • US8903875B2 patent drawing

AI summary

In one embodiment, in response to a request for searching a file stored in a first directory, a first lookup is performed by a virtual file system in a first file system to locate the file. The virtual file system traverses from the first directory back to a mount point of the first file system to recreate a search path from the mount point to the first directory. The virtual file system performs a second lookup in a second directory of a second file system that is associated with the mount point to locate the file in the second file system, where second directory is identified by the recreated search path.