Project

General

Profile

Actions

Bug #9941

closed

Noise from cfgadm plugins

Added by Andy Fiddaman over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2018-10-31
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

The sata, ib and usb cfgadm plugins generate output noise when an unknown option is provided to cfgadm -l, for example:

omni# cfgadm -l -o test sata3/0
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfga_msg: NULL msgp
cfgadm: Hardware specific failure: Hardware specific option not supported
zsh: exit 1     cfgadm -l -o test sata3/0

or a real world case:

# cfgadm -al -o show_FCP_dev
cfga_msg: NULL msgp
cfga_msg: NULL msgp
... repeated many times ...
cfga_msg: NULL msgp
cfga_msg: NULL msgp
Ap_Id                          Type         Receptacle   Occupant     Condition
c3                             fc           connected    unconfigured unknown
c4                             fc           connected    unconfigured unknown

This is because the modules call `cfga_help(NULL, ...)` which never succeeds as a NULL first argument is not supported. Other plugins such as scsi do not do this.

Actions

Also available in: Atom PDF