X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fofd%2Fofd_dev.c;h=b2301321ee3b48397fbb44fb7f88bce6652057e1;hb=d54114d0c54f7d037ad1009f6db7081124c4c9b8;hp=6b9ea6e51d5967346243ae8defdb71ddf105e400;hpb=d851381ea6947244842ae6f138cd0bfd399b7ef4;p=fs%2Flustre-release.git diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index 6b9ea6e..b230132 100644 --- 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));