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-15873 obd: skip checking read-only fs health
[fs/lustre-release.git]
/
lustre
/
ofd
/
ofd_dev.c
diff --git
a/lustre/ofd/ofd_dev.c
b/lustre/ofd/ofd_dev.c
index
6b9ea6e
..
b230132
100644
(file)
--- a/
lustre/ofd/ofd_dev.c
+++ b/
lustre/ofd/ofd_dev.c
@@
-203,6
+203,8
@@
static int ofd_stack_init(const struct lu_env *env,
d = m->ofd_osd_exp->exp_obd->obd_lu_dev;
LASSERT(d);
m->ofd_osd = lu2dt_dev(d);
+ if (m->ofd_osd->dd_rdonly)
+ ofd_obd(m)->obd_read_only = 1;
snprintf(info->fti_u.name, sizeof(info->fti_u.name),
"%s-osd", lustre_cfg_string(cfg, 0));