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-13301 lfs: return error when setstripe -o on inactive OSTs
[fs/lustre-release.git]
/
lustre
/
lod
/
lod_qos.c
diff --git
a/lustre/lod/lod_qos.c
b/lustre/lod/lod_qos.c
index
2d6d369
..
110ad09
100644
(file)
--- a/
lustre/lod/lod_qos.c
+++ b/
lustre/lod/lod_qos.c
@@
-104,6
+104,7
@@
static int lod_statfs_and_check(const struct lu_env *env, struct lod_device *d,
{
struct lov_desc *desc = <d->ltd_lov_desc;
int rc;
+ ENTRY;
LASSERT(d);
LASSERT(tgt);
@@
-152,8
+153,15
@@
static int lod_statfs_and_check(const struct lu_env *env, struct lod_device *d,
}
spin_unlock(&d->lod_lock);
}
+ if (rc == -ENOTCONN) {
+ /* In case that the ENOTCONN for inactive OST state is
+ * mistreated as MDT disconnection state by the client,
+ * this error should be changed to someone else.
+ */
+ rc = -EREMOTEIO;
+ }
-
return rc
;
+
RETURN(rc)
;
}
static int lod_is_tgt_usable(struct lu_tgt_descs *ltd, struct lu_tgt_desc *tgt)