Whamcloud - gitweb
LU-12036 ofd: add "no_precreate" mount option
[fs/lustre-release.git] / lustre / ofd / ofd_obd.c
index 7240b8f..c59f96b 100644 (file)
@@ -1105,6 +1105,9 @@ static int ofd_echo_create(const struct lu_env *env, struct obd_export *exp,
 
        ENTRY;
 
+       if (ofd->ofd_no_precreate)
+               return -EPERM;
+
        ofd_info_init(env, exp);
 
        LASSERT(seq == FID_SEQ_ECHO);