Bug #12919
cfgadm error message when no devices found is rather confusing
Status:
New
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
When attempting to list devices with cfgadm, if none are present, then both config_list()
and config_list_ext()
return CFGA_NOTSUPP
as an error message. When this is presented, a user is presented with the following:
# cfgadm -al 'cfgadm: Configuration administration not supported'
In this case, this error message would be much clearer if the program indicated that there were no devices to administer as it was a virtual machine with no devices that cfgadm could operate on. It likely would make sense to add a specific error type that indicates there were no supported devices as this error message is also used when operating in a non-global zone, where it would make a lot more sense..