crafcat7 opened a new pull request, #15535:
URL: https://github.com/apache/nuttx/pull/15535
## Summary
Returns the error code returned directly by the host to avoid conversion
to EBADF.
In the LTP test of the file system, the test result is judged by checking
the return value. In most cases, NuttX's errno is an error return value that
can align with the operating environment, so I think we can directly return the
error code from the host to avoid conversion to -EBADF, which will cause
incompatibility with the test when using hostfs.
## Impact
Adjusted the return result of host_open. When the host processing error
occurs, the host result is directly returned as the return value.
## Testing
Build Host(s): Linux x86
Target(s): sim/nsh
Filesystem test passed on hostfs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]