Project

General

Profile

Bug #9941

Noise from cfgadm plugins

Added by Andy Fiddaman about 1 year ago. Updated about 1 year 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:

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.

History

#2

Updated by Andy Fiddaman about 1 year ago

Testing notes

After the patch from reviewboard:

omni# cfgadm -l -o test sata3/0
cfgadm: Hardware specific failure: Hardware specific option not supported

omni# cfgadm -al -o show_FCP_dev
cfgadm: Configuration administration not supported
#3

Updated by Andy Fiddaman about 1 year ago

  • Status changed from New to Pending RTI
  • % Done changed from 80 to 100
#4

Updated by Electric Monk about 1 year ago

  • Status changed from Pending RTI to Closed

git commit cf25223258f3cd568605b3e10c1432e5e93b2c5e

commit  cf25223258f3cd568605b3e10c1432e5e93b2c5e
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
Date:   2018-11-06T19:23:00.000Z

    9941 Noise from cfgadm plugins
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF