How lakshmipathi/dduper works
Main Components
a) Core Components:
• BTRFS Filesystem Interface
• Checksum Management System
• Deduplication Engine
• File/Directory Scanner
• Validation System
b) Operating Modes:
• Default Mode (Safe Mode)
• Fast Mode
• Insane Mode
• Analysis Mode
Detailed Component Breakdown
Input Handler:
[CLI Interface] → [Input Validator]
• ↓
[Path Scanner] → [File/Directory Processor]
Core Engine:
[Chunk Size Manager] → [BTRFS Csum Reader]
• ↓
[Deduplication Engine]
• ↓ ↓
[ficlonerange] [fideduperange]
Safety System:
[Backup Manager] → [SHA256 Validator]
• ↓
[Recovery Logger]
Integration Points
Highlight:
• BTRFS filesystem hooks
• Kernel system calls
• Checksum verification points
• File operation interfaces
Technical Details to Note
• Supported checksum types (crc32, xxhash64, blake2, sha256)
• Backup file paths
• System call integration points
• Validation flow paths
Limitations Section
• Subvolume limitations
• Single file block limitations
• Checksum type restrictions
Remember to emphasize the three operating modes (default, fast, and insane) as they represent different trade-offs between safety and performance, which is a key architectural decision in this system.