X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fofd%2Fofd_obd.c;h=2e74bc4cb520ccdcdf031bf8d970d75ac523dc58;hp=478854c15c137a5353818d0985935c024309f406;hb=9b0ebf78f7919a144673edadc4a95bad84fae2d3;hpb=6e73b5705c6f1cda391b3a9cec8825eb9f914d38 diff --git a/lustre/ofd/ofd_obd.c b/lustre/ofd/ofd_obd.c index 478854c..2e74bc4 100644 --- a/lustre/ofd/ofd_obd.c +++ b/lustre/ofd/ofd_obd.c @@ -849,6 +849,9 @@ int ofd_statfs(const struct lu_env *env, struct obd_export *exp, if (ofd->ofd_raid_degraded) osfs->os_state |= OS_STATE_DEGRADED; + if (ofd->ofd_no_precreate) + osfs->os_state |= OS_STATE_NOPRECREATE; + if (obd->obd_self_export != exp && !exp_grant_param_supp(exp) && tgd->tgd_blockbits > COMPAT_BSIZE_SHIFT) { /*