-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined use of num_devs
in uscsi_helper.c
#168
Comments
An incorrect variable name was being used when checking when the system failed to open all devices due to permissions errors. Reviewing the code, this was likely due to the variable being named num_devs in get_Device_Count. Both functions now use the same name: num_rdsk [Seagate/openSeaChest#168] Signed-off-by: Tyler Erickson <[email protected]>
[#167, #168] Signed-off-by: Tyler Erickson <[email protected]>
Thank you for reporting all of these! I would love to find a CI solution for Illumos distros to catch these issues since we do not always have an Illumos machine available to test. If you know of one, please let me know! |
The SmartOS folks, being basically a cloud datacenter solution with easy ways to spin up guests for this sort of thing, have a lot of their own tooling. I've asked about github CI in their IRC channel, and will forward an answers I get. Glad I could provide something vaguely useful! |
Thank you for asking! Let me know if you find out anything we can potentially use and I will look into how to implement it. Also, thank you for reporting these issues. If you run into more, please feel free to report them and we will do our best to correct them. |
In fucnction get_Device_List at line 610 in subprojects/opensea-transport/src/uscsi_helper.c, the variable num_devs is referenced. In one other function, num_devs is defined, but not in this one. Adding a definition for num_devs obviously resolves the compile error, but this particular function defines
uint32_t numberOfDevices = 0;
which makes me suspect thatjust defining num_devs is not enough for proper function.
Compiler error (-Wmissing-declarations):
FWIW, the same gcc 10.4 and SmartOS environment as the other three bugs I've filed.
The text was updated successfully, but these errors were encountered: