<div>Hi,<br><br>If "iop->handlers->open_h" returns an error, "open" will call "rtems_set_errno_and_return_minus_one( rc )" which sets "errno" to "rc", where "rc" is the return value of "open_h".</div>

<div>However, the "open_h" handler implemented by each filesystem usually already sets "errno" and returns only -1 at errors, so "open" will override "errno" with -1 which is not a valid errno.<br>
<br>Regards,<br>Wei</div>