Commit 0761c0b
committed
common_ompio_file_set_view: recognize negative disp in access
you cannot access parts of a file if the file view contains a description
that leads ultimately to a negative offset. This fix ensures that
we return an error in this case (MPI_ERR_IO).
This fix was triggered by an investigation into mpich/test/mpi/io/tst_fileview testcase.
Running this test with ompio still leads to a number of 'failures' since
we return MPI_ERR_TYPE in some instances, while the testcode expects MPI_ERR_IO.
I will not fix those issues, since this is like playing guacamole (fixing the error
code expected by one testsuite makes another testsuite fail). However, this commit
fixes the one case where we returned MPI_SUCCESS instead of an error code.
Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>1 parent 79561ee commit 0761c0b
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
180 | 189 | | |
| 190 | + | |
181 | 191 | | |
182 | 192 | | |
183 | 193 | | |
| |||
0 commit comments