unifyfs_dispatch_io returns UNIFYFS_SUCCESS when it should not
Describe how to reproduce the problem
Well, clearly I have done something wrong in my UNIFY driver for ROMIO, but If I try to read a non-existent file, unifyfs_dispatch_io returns UNIFYFS_SUCCESS, even though unify internal implementation determined the file did not exist and set ENOENT at some point
Include any warning or errors or releveant debugging data
NOTABUG: i should not look at unifyfs_dispatch_io return code -- the library did indeed dispatch i/o -- but should instead be looking at result.error field of the unifyfs_io_request
System information
Describe the problem you're observing
unifyfs_dispatch_io returns UNIFYFS_SUCCESS when it should not
Describe how to reproduce the problem
Well, clearly I have done something wrong in my UNIFY driver for ROMIO, but If I try to read a non-existent file,
unifyfs_dispatch_io
returnsUNIFYFS_SUCCESS
, even though unify internal implementation determined the file did not exist and set ENOENT at some pointInclude any warning or errors or releveant debugging data
Look at https://github.com/LLNL/UnifyFS/blob/dev/client/src/client_read.c#L582
ok, something went wrong... but before
process_gfid_reads
returns, on its way out it obliterates the return code: https://github.com/LLNL/UnifyFS/blob/dev/client/src/client_read.c#L739client_remove_mread_reqeust()
succeeds, rc is set to UNIFYFS_SUCESS and ROMIO thinks dispatch-io returned successfully. :crying_cat_face: