How snapshotmanager/snapm works
Snapm manages coordinated Linux snapshot sets through a CLI and a central manager, which resolves storage providers and coordinates snapshot operations. The product also supports boot/revert entries, scheduled snapshots with retention, and filesystem-difference reports. The graph emphasizes those documented capabilities and the source-indexed internal links; unsampled implementations are represented only where the tree or README supports them.
Main entry points: command.py Snapm CLI · _manager.py Snapshot manager · engine.py Difference engine · treewalk.py Filesystem walker
Components 25
User interface
- Snapm CLI
snapm/command.py - Tabular reports
snapm/report.py
Snapshot management
- Snapshot manager
snapm/manager/_manager.py - Snapshot sets
snapm/_snapm.py - Provider loader
snapm/manager/_loader.py - Provider interface
snapm/manager/plugins/_plugin.py - LVM2 backend
snapm/manager/plugins/lvm2.py - Stratis backend
snapm/manager/plugins/stratis.py - Stratis client
snapm/manager/plugins/stratislib/_data.py - Snapshot mounts
snapm/manager/_mounts.py
Boot and scheduling
- Boot entries
snapm/manager/_boot.py - Schedule and retention
snapm/manager/_schedule.py - Timer support
snapm/manager/_timers.py - Calendar schedules
snapm/manager/_calendar.py
Filesystem differences
- Diff options
snapm/fsdiff/options.py - Filesystem walker
snapm/fsdiff/treewalk.py - File type detection
snapm/fsdiff/filetypes.py - Difference engine
snapm/fsdiff/engine.py - Change detection
snapm/fsdiff/changes.py - Content comparison
snapm/fsdiff/contentdiff.py - Tree output
snapm/fsdiff/tree.py
Other components
- Administrator
- Linux storage
- boom-boot
- systemd
Connections 26
- Administrator → Snapm CLI: invokes
- Snapm CLI → Snapshot manager: dispatches
snapm/command.py - Snapm CLI → Tabular reports: formats reports
snapm/command.py - Snapm CLI → Diff options: sets options
- Snapm CLI → Difference engine: requests comparison
- Snapshot manager → Snapshot sets: manages sets
snapm/manager/_manager.py - Snapshot manager → Provider loader: loads providers
snapm/manager/_manager.py - Provider loader → Provider interface: loads interface
snapm/manager/_loader.py - LVM2 backend → Provider interface: implements
snapm/manager/plugins/lvm2.py - Stratis backend → Provider interface: implements
snapm/manager/plugins/stratis.py - Stratis backend → Stratis client: uses client
snapm/manager/plugins/stratis.py - LVM2 backend → Linux storage: manages volumes
- Stratis backend → Linux storage: manages pools
- Snapshot manager → Boot entries: coordinates boot
snapm/manager/_manager.py - Boot entries → boom-boot: creates entries
- Snapshot manager → Schedule and retention: manages schedules
snapm/manager/_manager.py - Schedule and retention → Timer support: uses timers
snapm/manager/_schedule.py - Timer support → systemd: integrates with
snapm/manager/_timers.py - Timer support → Calendar schedules: uses calendar
snapm/manager/_timers.py - Diff options → Filesystem walker: configures walk
snapm/fsdiff/treewalk.py - Filesystem walker → File type detection: detects types
snapm/fsdiff/treewalk.py - Difference engine → Filesystem walker: compares trees
snapm/fsdiff/engine.py - Difference engine → Change detection: detects changes
snapm/fsdiff/engine.py - Difference engine → Content comparison: compares content
snapm/fsdiff/engine.py - Difference engine → Tree output: renders tree
snapm/fsdiff/engine.py - Filesystem walker → Snapshot mounts: uses mount data
snapm/fsdiff/treewalk.py