mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 08:33:30 +00:00
Organize companion code and materials by book part: part-01/ Foundations part-02/ Kernel & driver fundamentals part-03/ Character & block devices part-04/ Networking & storage part-05/ Buses & advanced topics part-06/ Debugging & performance part-07/ Real-world drivers appendices/ Supplementary material README.md Overview and build instructions
27 lines
646 B
Bash
Executable file
27 lines
646 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# explore.sh - Dump the current GEOM topology to a text file.
|
|
#
|
|
# Produces a human-readable inventory suitable for later comparison
|
|
# before and after loading new GEOM classes.
|
|
|
|
set -eu
|
|
|
|
echo "==================== geom -t ===================="
|
|
geom -t || true
|
|
echo
|
|
|
|
echo "==================== geom disk list ===================="
|
|
geom disk list || true
|
|
echo
|
|
|
|
echo "==================== geom provider list ===================="
|
|
geom provider list || true
|
|
echo
|
|
|
|
echo "==================== gstat snapshot (1s) ===================="
|
|
gstat -b -d -I 1s || true
|
|
echo
|
|
|
|
echo "==================== kldstat ===================="
|
|
kldstat || true
|