Whamcloud - gitweb
LU-15748 osc: fallocate interop for 2.14 clients 98/47098/4
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Wed, 20 Apr 2022 09:07:53 +0000 (05:07 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 28 Apr 2022 16:01:09 +0000 (16:01 +0000)
commit79053592966792a21912390b9db09b1ab1d61e2a
tree09f821af703616f7ec122ed2c6b47d4b9b533a0e
parentc6cf295d8ffc2923ee0e33d9a195bc4ee778c5b0
LU-15748 osc: fallocate interop for 2.14 clients

fallocate() start and end are passed in o_size and o_blocks
on the wire.  Clients 2.15.0 and newer should always set
the OBD_MD_FLSIZE and OBD_MD_FLBLOCKS valid flags, but some
older client versions did not.  We permit older clients to
not set these flags, checking their version by proxy using
the missing OBD_CONNECT_TRUNCLOCK to imply 2.14.0 or older.

Test-Parameters: serverversion=2.14.0 testlist=sanity env=SANITY_EXCEPT="64h 103e"
Fixes: 2f496148c31d ("LU-15551 Return EOPNOTSUPP instead of EPROTO")
Fixes: 163870abfb7c ("LU-14382 mdt: implement fallocate in MDC/MDT")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I1ea47854f40d54297bceb03ad32b24737efa4ae7
Reviewed-on: https://review.whamcloud.com/47098
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/mdt/mdt_io.c
lustre/ofd/ofd_dev.c