Whamcloud - gitweb
LU-13465 vfs: make ll_vfs_setxattr return -EOPNOTSUPP 01/38301/5
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 21 Apr 2020 07:28:20 +0000 (09:28 +0200)
committerOleg Drokin <green@whamcloud.com>
Thu, 7 May 2020 05:45:41 +0000 (05:45 +0000)
commitb4d061dfa6d8a80020925c20e81b26a766509bf5
tree5ccf3b73134804ab0ab0bc1b8c0c6e881a02e55c
parent5501c414dc13a01004825a532079cbb21a036cc4
LU-13465 vfs: make ll_vfs_setxattr return -EOPNOTSUPP

New compat macros ll_vfs_setxattr/ll_vfs_removexattr need to return
-EOPNOTSUPP instead of -ENOTSUPP. Indeed, the llapi_layout_get_by_fd()
code checks for "-EOPNOTSUPP" and handles this specially.

Also, the case of missing i_op->setxattr() and i_op->getxattr() can be
considered unlikely.

Test-Parameters: clientversion=2.12 envdefinitions=SANITY_EXCEPT="27M 56ra 151 156 802"
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I2474c184a1597979971881de84638fb8d281f704
Reviewed-on: https://review.whamcloud.com/38301
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_compat.h