Currently, the system lacks a proper cleanup mechanism for Inodes (index nodes) that have a Time-To-Live (TTL) attribute. This can lead to the following problems:
Orphaned Inodes: Inodes with expired TTLs may not be automatically removed, resulting in orphaned inodes that occupy storage space unnecessarily.
Resource Leak: Over time, accumulated expired Inodes could degrade filesystem performance and waste system resources.
Inconsistent State: Without cleanup, stale Inodes might cause inconsistencies in metadata or unexpected behavior in filesystem operations.
Expected Behavior:
Implement a background process or scheduled job to scan and remove Inodes whose TTL has expired.
Ensure proper handling of associated data blocks and metadata during cleanup.
Log cleanup actions for auditing and debugging purposes.
Currently, the system lacks a proper cleanup mechanism for Inodes (index nodes) that have a Time-To-Live (TTL) attribute. This can lead to the following problems:
Orphaned Inodes: Inodes with expired TTLs may not be automatically removed, resulting in orphaned inodes that occupy storage space unnecessarily.
Resource Leak: Over time, accumulated expired Inodes could degrade filesystem performance and waste system resources.
Inconsistent State: Without cleanup, stale Inodes might cause inconsistencies in metadata or unexpected behavior in filesystem operations.
Expected Behavior:
Implement a background process or scheduled job to scan and remove Inodes whose TTL has expired.
Ensure proper handling of associated data blocks and metadata during cleanup.
Log cleanup actions for auditing and debugging purposes.