Menu

#8 Command line raid-create command always fails

Unstable (example)
wont-fix
nobody
None
5
2020-05-01
2009-05-12
Anonymous
No

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.

Discussion

  • Nobody/Anonymous

     
  • Brian King

    Brian King - 2020-05-01
    • status: open --> wont-fix
    • Group: --> Unstable (example)
     
  • Brian King

    Brian King - 2020-05-01

    Cleaning up old pathces. This no longer applies to the current upstream code, so closing.

     

Log in to post a comment.

MongoDB Logo MongoDB