Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-15451 sec: read-only nodemap flag
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
import.c
diff --git
a/lustre/ptlrpc/import.c
b/lustre/ptlrpc/import.c
index
b513815
..
2afcf6a
100644
(file)
--- a/
lustre/ptlrpc/import.c
+++ b/
lustre/ptlrpc/import.c
@@
-1338,10
+1338,11
@@
out:
time64_t next_connect;
import_set_state_nolock(imp, LUSTRE_IMP_DISCON);
time64_t next_connect;
import_set_state_nolock(imp, LUSTRE_IMP_DISCON);
- if (rc == -EACCES) {
+ if (rc == -EACCES
|| rc == -EROFS
) {
/*
* Give up trying to reconnect
* EACCES means client has no permission for connection
/*
* Give up trying to reconnect
* EACCES means client has no permission for connection
+ * EROFS means client must mount read-only
*/
imp->imp_obd->obd_no_recov = 1;
ptlrpc_deactivate_import_nolock(imp);
*/
imp->imp_obd->obd_no_recov = 1;
ptlrpc_deactivate_import_nolock(imp);