From b379218a75833f113fc28fe4b63b5596cdc93f9e Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Thu, 24 Aug 2023 00:43:56 +0800 Subject: [PATCH] EX-7806 csdc: not support data compression on MDT Do not support setting data compression component on DoM until data compression on MDT implemented. Test-Parameters: trivial testlist=sanity-pfl Signed-off-by: Bobi Jam Change-Id: I3794460140f08a073377c418dd56e7dda907d96d Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52062 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/tests/sanity-pfl.sh | 4 ++++ lustre/utils/lfs.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/lustre/tests/sanity-pfl.sh b/lustre/tests/sanity-pfl.sh index 04c175d..039de1e 100644 --- a/lustre/tests/sanity-pfl.sh +++ b/lustre/tests/sanity-pfl.sh @@ -25,6 +25,10 @@ if [[ "$ost1_FSTYPE" == "zfs" ]]; then # bug #: LU-1941 ALWAYS_EXCEPT+="24a" fi + +# until data compression on MDT works +always_except EX-7806 100k + build_test_filter check_and_setup_lustre diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index 9feec18a..c4c9561 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -3138,6 +3138,12 @@ new_comp: return rc; } + if (lsa->lsa_pattern == LLAPI_LAYOUT_MDT && + lsa->lsa_compr_type != LL_COMPR_TYPE_NONE) { + fprintf(stderr, "Do not support data compression on MDT\n"); + errno = -EINVAL; + return -1; + } /* set compress parameters */ rc = llapi_layout_compress_set(layout, lsa->lsa_compr_type, lsa->lsa_compr_lvl, -- 1.8.3.1