Whamcloud - gitweb
LU-12025 osp: allow OS_STATE_* flags from OSTs
[fs/lustre-release.git] / lustre / ofd / ofd_obd.c
index c5d9f2e..2e74bc4 100644 (file)
@@ -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) {
                /*
@@ -1434,7 +1437,7 @@ static int ofd_health_check(const struct lu_env *nul, struct obd_device *obd)
                RETURN(rc);
 
        info = ofd_info_init(&env, NULL);
-       rc = dt_statfs(&env, ofd->ofd_osd, &info->fti_u.osfs, NULL);
+       rc = dt_statfs(&env, ofd->ofd_osd, &info->fti_u.osfs);
        if (unlikely(rc))
                GOTO(out, rc);