Whamcloud - gitweb
EX-7593 csdc: don't set compression layout when disabled
authorBobi Jam <bobijam@whamcloud.com>
Thu, 8 Jun 2023 03:42:46 +0000 (11:42 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Jun 2023 07:30:57 +0000 (07:30 +0000)
commit03c1ddf19c83891683e1726f240a2449941e8b22
tree07f2d8012ec2981fb9197722a7a5eb7c74800f61
parentb6b4f89f0196a77874350fa44e9891a84ffe8a4b
EX-7593 csdc: don't set compression layout when disabled

When llite_enable_compression is disabled
(lfs set_param llite.*.enable_compression=0), we should check
it before sending it to MDS lest we get a file with compressed
component which we cannot handle.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ib1e2123ffdb239c3e1401d682ae9c2c49e3f4a6f
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51250
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_swab.h
lustre/llite/file.c
lustre/llite/xattr.c
lustre/lov/lov_ea.c
lustre/ptlrpc/pack_generic.c
lustre/tests/sanity-pfl.sh