Whamcloud - gitweb
LU-15551 ofd: Return EOPNOTSUPP instead of EPROTO 16/46516/13
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 14 Feb 2022 10:02:08 +0000 (15:32 +0530)
committerOleg Drokin <green@whamcloud.com>
Fri, 18 Mar 2022 17:35:08 +0000 (17:35 +0000)
commit2f496148c31dd435681e595129834cecdaec82dc
tree3fbf80d5367589be1203e2373755458877c6d46b
parent9dcbf8b3d44f9bb2b1d9c3ac6036345bad827797
LU-15551 ofd: Return EOPNOTSUPP instead of EPROTO

Modify server to return -EOPNOTSUPP instead of
-EPROTO for unsupported fallocate modes

Test-Parameters: serverversion=2.14.0 testlist=sanity env=ONLY=150
Test-Parameters: serverversion=2.14.0 testlist=sanity-flr env=ONLY=50
Test-Parameters: serverversion=2.14.0 testlist=ost-pools env=ONLY="29 31"
Test-Parameters: serverversion=2.14.0 testlist=sanity-benchmark env=ONLY=fsx
Test-Parameters: serverversion=2.14.0 testlist=sanity-dom env=ONLY=fsx
Test-Parameters: serverversion=2.14.0 testlist=sanityn env=ONLY=16
Fixes: 7462e8cad730 ("LU-14160 fallocate: Add punch mode to fallocate")
Signed-off-by: arshad.hussain@aeoncomputing.com
Change-Id: Id203c0b9abbdd674af33f1f78e81ae7fe105e90f
Reviewed-on: https://review.whamcloud.com/46516
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Oleg Drokin <green@whamcloud.com>
lustre/ofd/ofd_dev.c
lustre/tests/sanity-flr.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh