Whamcloud - gitweb
EX-8927 csdc: check ocd flag for fiemap/lseek
authorBobi Jam <bobijam@whamcloud.com>
Tue, 6 Feb 2024 09:13:27 +0000 (17:13 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 14 Feb 2024 19:19:46 +0000 (19:19 +0000)
commit96fca2a176ae855661c2636503f9474b9748a672
tree9ea95d4a0d17f282ef74aa515e03eaa5683df3f7
parent4c43d93016245b55ff6b3e1c8a245e5f5fff0e90
EX-8927 csdc: check ocd flag for fiemap/lseek

Currently client will not sending fiemap/lseek request to OST if
the file is a compressed one. This patch will check the
OBD_CONNECT2_COMPRESS flags and send the request if OST supports
compression as server would do the fiemap/lseek check instead.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I478cbf161044165fa31d4caa2336e9949fc626fe
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53935
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lov/lov_io.c
lustre/lov/lov_object.c
lustre/osc/osc_io.c
lustre/osc/osc_object.c