FAT File System Directory Compaction for Cluster Reclamation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In FAT file systems, repeated creation and deletion of subdirectories or files lead to clusters with deleted content, making them unavailable for new data storage, resulting in performance degradation due to unavailability of free data clusters.

Innovation Solution

A method and system for storage optimizations through directory compaction, where a microprocessor determines if a cluster contains deleted content, marks it as deleted, and updates the File Allocation Table (FAT) entries to indicate the cluster is free, using a cluster module, mark module, and link module to manage metadata and update FAT entries.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If clusters with deleted content are left unchanged in FAT file system, then file system structure is maintained, but free data clusters become unavailable and performance degrades

Engineering Contradiction:
Improvefile system performanceVSAvoidavailable free clusters
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent applies preliminary action by proactively scanning the FAT structure to identify clusters containing deleted content before they cause performance problems. The system performs directory compaction operations in advance to reclaim space, preventing the accumulation of deleted content that would otherwise degrade file system performance over time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements discarding and recovering by identifying clusters that contain deleted content and recovering them for new use. The FAT structure is updated to mark these clusters as free, making them available for storing new files or directories, thus recovering lost storage capacity and improving overall system productivity.

Inventive Principle:
Principle #34Discarding and recovering

2Quantity of substance

If directory compaction is performed frequently to maintain free clusters, then storage efficiency is improved, but system overhead and complexity increase

Engineering Contradiction:
Improvefree data clustersVSAvoidcompaction management complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent applies self-service by enabling the FAT file system to automatically manage its own cluster allocation and compaction without requiring external intervention. The system monitors its own FAT structure, identifies clusters with deleted content, and performs compaction operations autonomously, reducing the need for complex external management mechanisms.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent implements feedback by continuously monitoring the FAT structure for clusters containing deleted content. This feedback mechanism triggers compaction operations when needed, creating a self-regulating system that maintains optimal storage efficiency without requiring complex external control or frequent manual intervention.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS8429331B2Storage optimizations by directory compaction in a fat file system
Publication Date: 2013.04.23 TEXAS INSTRUMENTS INC
  • US8429331B2 patent drawing
  • US8429331B2 patent drawing
  • US8429331B2 patent drawing

AI summary

Storage optimizations by directory compaction in a file allocation table (FAT) file system. The method comprises determining if a cluster comprises a deleted content, indicating that the deleted content is deleted, and updating an entry of a FAT associated with the cluster to indicate that the cluster is free. The method may also comprise indicating that the deleted content is deleted and modifying a metadata of at least one of a file of the cluster and a directory of the cluster according to a specified protocol.