Merge pull request #4460 from ggouaillardet/topic/fs-error-codes
fs/ufs: add some more error codes on file_open
Этот коммит содержится в:
Коммит
291d22c0a4
@ -10,7 +10,7 @@
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2008-2017 University of Houston. All rights reserved.
|
||||
* Copyright (c) 2015 Research Organization for Information Science
|
||||
* Copyright (c) 2015-2017 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* Copyright (c) 2016-2017 IBM Corporation. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
@ -102,6 +102,15 @@ mca_fs_ufs_file_open (struct ompi_communicator_t *comm,
|
||||
else if ( EEXIST == errno ) {
|
||||
ret = MPI_ERR_FILE_EXISTS;
|
||||
}
|
||||
else if ( ENOSPC == errno ) {
|
||||
ret = MPI_ERR_NO_SPACE;
|
||||
}
|
||||
else if ( EDQUOT == errno ) {
|
||||
ret = MPI_ERR_QUOTA;
|
||||
}
|
||||
else if ( ETXTBSY == errno ) {
|
||||
ret = MPI_ERR_FILE_IN_USE;
|
||||
}
|
||||
else {
|
||||
ret = MPI_ERR_OTHER;
|
||||
}
|
||||
@ -135,6 +144,15 @@ mca_fs_ufs_file_open (struct ompi_communicator_t *comm,
|
||||
else if ( EEXIST == errno ) {
|
||||
ret = MPI_ERR_FILE_EXISTS;
|
||||
}
|
||||
else if ( ENOSPC == errno ) {
|
||||
ret = MPI_ERR_NO_SPACE;
|
||||
}
|
||||
else if ( EDQUOT == errno ) {
|
||||
ret = MPI_ERR_QUOTA;
|
||||
}
|
||||
else if ( ETXTBSY == errno ) {
|
||||
ret = MPI_ERR_FILE_IN_USE;
|
||||
}
|
||||
else {
|
||||
ret = MPI_ERR_OTHER;
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user