Whamcloud - gitweb
LU-14160 fallocate: Add punch mode to fallocate
[fs/lustre-release.git] / lustre / mdc / mdc_dev.c
index db9e83b..02e562a 100644 (file)
@@ -1067,6 +1067,9 @@ static int mdc_io_setattr_start(const struct lu_env *env,
                        return rc;
        }
 
+       if (cl_io_is_fallocate(io))
+               return -EOPNOTSUPP;
+
        if (oio->oi_lockless == 0) {
                cl_object_attr_lock(obj);
                rc = cl_object_attr_get(env, obj, attr);