[mpich-discuss] error class MPI_ERR_NO_SUCH_FILE thrown by MPI_File_delete
Wei-keng Liao
wkliao at eecs.northwestern.edu
Sat Apr 5 14:48:05 CDT 2014
In MPI-2 standard has the sentence below for MPI_File_delete.
"If the file does not exist, MPI_FILE_DELETE raises an error in the class MPI_ERR_NO_SUCH_FILE."
But in src/mpi/romio/adio/common/ad_delete.c, the return code of unlink() is not checked
for this error (only MPI_ERR_IO class is thrown.) May I suggest to add a check, so the
MPI_ERR_NO_SUCH_FILE class can reported.
19 err = unlink(filename);
if (err == ENOENT) {
*error_code = MPIO_Err_create_code(MPI_SUCCESS, MPIR_ERR_RECOVERABLE,
myname, __LINE__, MPI_ERR_NO_SUCH_FILE, "**io",
"**io %s", strerror(errno));
return;
}
else if (err == -1) {
...
Wei-keng
More information about the discuss
mailing list