Seamless File System Switching via Process Suspension
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing file system switching methods can result in operational errors when performed during process execution, as they do not seamlessly transition from one file system to another, especially when switching from a local to a remote file system or performing hardware maintenance.
Innovation Solution
A system and method that temporarily suspends processes accessing the first file system, replaces its resources with corresponding resources from a second file system, synchronizes attributes, and resumes execution, ensuring seamless switching by managing memory mappings, file descriptors, and file system attributes.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If file system switching is performed during process execution, then system adaptability and resource management flexibility are improved, but operational errors and system stability deteriorate
Solution Approach 1:
The system performs preliminary actions by identifying and suspending processes before actually switching file systems. This ensures that no process is actively accessing files during the transition, preventing operational errors while maintaining the ability to switch file systems dynamically
Solution Approach 2:
The system introduces an intermediary mechanism that manages the transition between file systems. This intermediary handles process suspension, file descriptor replacement, and attribute synchronization, ensuring a safe and controlled transition that prevents errors
2Adaptability or versatility
If file system switching is performed during process execution, then system adaptability is improved, but system complexity increases
Solution Approach 1:
The system employs self-service mechanisms where the file system switching process automatically manages process suspension, resource replacement, and attribute synchronization without requiring complex external coordination. This reduces the overall system complexity while maintaining adaptability
3Manufacturing precision
If process suspension is implemented during file system switching, then data integrity is improved, but productivity decreases
Solution Approach 1:
The system implements a quick suspension and resumption mechanism that minimizes the time processes are suspended. By rapidly completing the file system switching operation and immediately resuming processes, the system maintains data integrity while minimizing impact on productivity
4Adaptability or versatility
If resource replacement is performed during file system switching, then adaptability is improved, but loss of information increases
Solution Approach 1:
The system uses copying mechanisms to preserve file descriptor and memory mapping information during the transition. By creating and maintaining accurate copies of this information, the system ensures that no data is lost during the file system replacement, while still enabling adaptability
Data Source
AI summary
A system and method is provided for switching file systems based on an instruction from a user application. An exemplary method includes receiving an instruction from a user application to replace a first file system by a second file system, identifying and temporarily suspending all processes that are working with one or more files on the first file system, obtaining information about all files that are used by a temporarily suspended process, the obtained information including at least information on corresponding memory mappings or file descriptors, replacing resources of the first file system by matching resources of the second file system, synchronizing attributes of the first and second file systems, and resuming execution of suspended processes.


