Command line raid-create command always fails
Brought to you by:
brking
The code that handles the raid-create command always returns -EINVAL after the check to see if both HDDs and SSDs were specified. Contrary to the indentation, the the "return -EINVAL;" is always executed after the "if" because only the "syslog(LOG_ERR, _("SSDs and HDDs can not be mixed in an array.\n"));" statement is executed if the condition is true. The "if" statement needs braces so that it executes the "return -EINVAL" only if the condition is true.
Cleaning up old pathces. This no longer applies to the current upstream code, so closing.