How synology-apm/fs-inspect works
fs-inspect is a read-only Rust SDK for inspecting disk images and snapshot devices without mounting them, with CLI, C, and Python interfaces. The main workflow opens sources, discovers disks and volumes, then maps allocation or browses, verifies, and exports file-system data; change trackers compare scans. The README establishes the public workflow and capabilities. Source excerpts are limited, so edges below reflect documented relationships rather than inferred calls in unsampled implementations.
Main entry points: disk.rs DiskSet · volume.rs Volumes · fs.rs Browse and read · drivers File-system drivers
Components 17
Disk inputs
- Image sources
crates/fs-inspect-io/src/lib.rs - Disk images
crates/fs-inspect-disk/src/lib.rs
Disk discovery
- DiskSet
crates/fs-inspect/src/disk.rs - Partitions and layout
crates/fs-inspect-disk/src/partition.rs - Volume managers
crates/fs-inspect-volmgr/src/lib.rs - Volumes
crates/fs-inspect/src/volume.rs
File-system analysis
- File-system drivers
crates/fs-inspect/src/drivers - Allocation maps
crates/fs-inspect/src/map.rs - Verification
crates/fs-inspect/src/verify.rs - Change trackers
crates/fs-inspect-change/src/lib.rs
Browsing and output
- File namespace
crates/fs-inspect-core/src/ns.rs - Browse and read
crates/fs-inspect/src/fs.rs - Export
crates/fs-inspect/src/export/mod.rs
User interfaces
- CLI
crates/fs-inspect-cli/src/app.rs - C API
crates/fs-inspect-ffi/src/lib.rs - Python package
crates/fs-inspect-py/src/lib.rs
Other components
- Caller
Connections 18
- Caller → CLI: runs commands
README.md - Caller → DiskSet: opens SDK
README.md - Caller → C API: calls API
README.md - Caller → Python package: uses package
README.md - DiskSet → Image sources: opens sources
README.md - DiskSet → Partitions and layout: lists layout
README.md - DiskSet → Volumes: lists volumes
README.md - Partitions and layout → Volume managers: assembles volumes
- Volumes → Allocation maps: provides map
README.md - Volumes → Browse and read: provides browse
README.md - Volumes → Verification: provides verification
README.md - File-system drivers → Allocation maps: supports mapping
README.md - File-system drivers → Change trackers: supports tracking
README.md - Browse and read → File namespace: exposes namespace
README.md - Browse and read → Export: exports files
crates/fs-inspect/src/export/mod.rs - CLI → DiskSet: wraps SDK
README.md - C API → DiskSet: wraps SDK
README.md - Python package → DiskSet: wraps SDK
README.md