tests: print OPAL device parameters in test envirenment if specified

This commit is contained in:
Milan Broz
2024-04-04 15:21:04 +02:00
parent 69920581a3
commit 4b0ae54379

View File

@@ -34,6 +34,11 @@ pversion integritysetup
$CRYPTSETUP_PATH/cryptsetup --help | sed -n '/optional key file for/,$p' | tail -n +3
}
if [ -b "$OPAL2_DEV" ]; then
echo "OPAL test device:"
lsblk "$OPAL2_DEV" -d -o NAME,TRAN,MODEL,REV,MIN-IO,PHY-SEC,LOG-SEC,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO 2>/dev/null
fi
[ $(id -u) != 0 ] && exit 77
modprobe dm-crypt >/dev/null 2>&1