How c0xc/capacitytester works
CapacityTester is a desktop/CLI utility for checking whether flash storage provides its advertised capacity. Users select a mounted filesystem for a non-destructive fill-and-verify volume test, or an unmounted device for the faster, destructive raw-disk test; Linux also provides device selection and formatting support. The graph retains the documented format and progress-display capabilities. Source excerpts establish component references and responsibilities, but do not expose every runtime call, so uncertain connections are omitted.
Main entry points: capacitytestergui.cpp Desktop workflow · capacitytestercli.cpp Command-line workflow · volumetester.cpp Volume test · destructivedisktester.cpp Raw disk test
Components 15
User interfaces
- Desktop workflow
src/capacitytestergui.cpp - Command-line workflow
src/capacitytestercli.cpp
Device selection
- Selection window
src/selectionwindow.cpp - Disk selection
src/storagediskselection.cpp - USB selection dialog
src/usbdiskselectiondialog.cpp
Capacity tests
- Volume test
src/volumetester.cpp - Raw disk test
src/destructivedisktester.cpp - Disk test wrapper
src/destructivedisktesterwrapper.cpp
Storage and display
- UDisks management
src/udiskmanager.cpp - USB device details
src/usbstoragedevice.cpp - Drive formatting
src/udiskformatdialog.cpp - Performance graphs
src/performancegraph.cpp
Other components
- User
- Mounted filesystem
- USB storage device
Connections 17
- User → Desktop workflow: uses
README.md - User → Command-line workflow: uses
README.md - Desktop workflow → Selection window: references
- Desktop workflow → Volume test: references
- Desktop workflow → Raw disk test: references
- Desktop workflow → Disk test wrapper: references
- Desktop workflow → USB device details: references
- Desktop workflow → Performance graphs: references
- Command-line workflow → Volume test: references
- Command-line workflow → Raw disk test: references
- Selection window → UDisks management: references
- USB selection dialog → Disk selection: references
- Disk selection → UDisks management: uses
- Volume test → Mounted filesystem: writes and verifies
README.md - Raw disk test → USB storage device: overwrites and verifies
README.md - UDisks management → USB storage device: manages
- Desktop workflow → Drive formatting: offers formatting