Whamcloud - gitweb
LU-15748 ofd: fix fallocate interop for older clients 48/47548/17
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 6 Jun 2022 23:14:32 +0000 (17:14 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 29 Nov 2022 07:06:14 +0000 (07:06 +0000)
commit91cb04ef800a8ae9384777286ee1282a262ee89e
treed6e8cd1a01237fcc6ef4d1e5a510c2f6effb28e3
parent2d916eec68e8a7d353ae4ae2a4923d7f6cfcec0d
LU-15748 ofd: fix fallocate interop for older clients

The logic for detecting older client fallocate was backward, and
should be checking if the OBD_CONNECT_OLD_FALLOC patch was *not*
present to detect old clients.

Since the new server does not have OLD_FALLOC in the SUPPORTED flags,
it will clear the flag from the export at connect time, so it needs
to be saved in the export early on.

Test-Parameters: testlist=sanityn env=ONLY=16,HONOR_EXCEPT=y
Test-Parameters: serverversion=2.14 testlist=sanityn env=ONLY=16,HONOR_EXCEPT=y
Fixes: 7905359296 ("LU-15748 osc: fallocate interop for 2.14 clients")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I327183025a8de6fd814a7c2929365497153ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/47548
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_export.h
lustre/ldlm/ldlm_lib.c
lustre/mdt/mdt_io.c
lustre/ofd/ofd_dev.c
lustre/tests/sanityn.sh