Whamcloud - gitweb
EX-4841 ofd: Return EOPNOTSUPP instead of EPROTO
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 14 Feb 2022 10:02:08 +0000 (15:32 +0530)
committerJohn L. Hammond <jhammond@whamcloud.com>
Fri, 18 Feb 2022 19:24:13 +0000 (19:24 +0000)
commit6147b43f5e23ce136d5421f0c6ff62842dcbe6b8
tree1691be088c1fa7ac30522d12a034a815b100fcf8
parent358d3edf27f0301815c84dee986b0dd3b8cd4b29
EX-4841 ofd: Return EOPNOTSUPP instead of EPROTO

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

Lustre-commit: TBD (5ad69eae24a4f1a6bc02a9fa9d66b0ed1a57fe84)
Lustre-change: https://review.whamcloud.com/46516

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/46527
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
lustre/ofd/ofd_dev.c