Page MenuHomeFreeBSD

D47446.diff
No OneTemporary

D47446.diff

diff --git a/tests/sys/cam/ctl/ctl.subr b/tests/sys/cam/ctl/ctl.subr
--- a/tests/sys/cam/ctl/ctl.subr
+++ b/tests/sys/cam/ctl/ctl.subr
@@ -47,7 +47,14 @@
ctladm port -o on -p 0 >/dev/null
HEXLUN=`printf %x $LUN`
while true; do
- dev=`camcontrol devlist | awk -v lun=$HEXLUN '/FREEBSD CTL/ && $9==lun {split($10, fields, /[,]/); print fields[1];}' | sed 's:[()]::'`
+ dev=`camcontrol devlist | awk -v lun=$HEXLUN '
+ /FREEBSD CTL.*,pass/ && $9==lun {
+ split($10, fields, /[,]/); print fields[1];
+ }
+ /FREEBSD CTL.*\(pass/ && $9==lun {
+ split($10, fields, /[,]/); print fields[2];
+ }
+ ' | sed 's:[()]::'`
if [ -z "$dev" -o ! -c /dev/$dev ]; then
retries=$(( $retries - 1 ))
if [ $retries -eq 0 ]; then

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 9:38 AM (12 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14475130
Default Alt Text
D47446.diff (735 B)

Event Timeline