Whamcloud - gitweb
LU-13653 mdt: ignore quota when creating slave stripe 82/39282/2
authorHongchao Zhang <hongchao@whamcloud.com>
Wed, 24 Jun 2020 09:53:55 +0000 (17:53 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 7 Aug 2020 21:12:11 +0000 (21:12 +0000)
When creating striped directory, the quota limit has been checked
on master MDT, the quota should be ignored when creating the slave
stripe object.

Lustre-change: https://review.whamcloud.com/#/c/38875/
Lustre-commit: f762acebfcc6a88c3f4ba6296cbd6f1696bff530

Change-Id: Ia53b1975a8d66c78725feb313659f7a9b889e735
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/38875
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/39282
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
lustre/target/out_lib.c

index e8bdfd1..e8ebf95 100644 (file)
@@ -598,6 +598,10 @@ int out_create_add_exec(const struct lu_env *env, struct dt_object *obj,
        struct tx_arg *arg;
        int rc;
 
+       /* LU-13653: ignore quota for DNE directory creation */
+       if (dof->dof_type == DFT_DIR)
+               th->th_ignore_quota = 1;
+
        rc = dt_declare_create(env, obj, attr, NULL, dof, th);
        if (rc != 0)
                return rc;