DF-4174 / gate_check.sh
#!/bin/sh # DF-4172/4173/4174 hardware gate check: is the iir(4) driver even # instantiated on this guest? (iir attaches only to Intel 0x8086:0x0600 # or ICP 0x1119:0x0100-0x02ff/0x0300 PCI RAID controllers, and /dev/iir # + the "iir" CAM bus exist only after a successful attach.) echo "== uname ==" uname -a echo "== /dev/iir ==" ls -l /dev/iir* 2>&1 echo "== /dev/pass ==" ls -l /dev/pass* 2>&1 || true echo "== PCI scan for iir/isp controllers ==" pciconf -l 2>&1 | grep -iE "vendor=0x1077|vendor=0x1119|0x80860600" || echo "no iir/isp PCI device present" echo "== CAM buses ==" camcontrol devlist 2>&1 || true echo "== kernel module state ==" kldstat 2>&1 | grep -i iir || echo "iir.ko not loaded (built-in driver attaches only to matching PCI IDs)" echo "GATE-CHECK-DONE" |