Whamcloud - gitweb
LU-14430 mdd: don't assert on default ACL big buffer 75/41775/6
authorMikhail Pershin <mpershin@whamcloud.com>
Fri, 26 Feb 2021 14:48:36 +0000 (17:48 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 13 Mar 2021 18:34:10 +0000 (18:34 +0000)
commitb66b530c18c910ded562e279c9db02fcdad42176
treeab3471550c66928388472273b255b6bf36f11e40
parentf9b75c5fb4d4e39759a2d3cb8e67a4312ff4ae5a
LU-14430 mdd: don't assert on default ACL big buffer

Previous patch may cause situations when default ACL buffer
is bigger than ACL buffer, so that default ACL EA may fit
into the former but not in the latter, causing assertion in
mdd_acl_init().

There is no need in assertion actually, just return -ERANGE so
ACL buffer will be re-allocated.

Fixes: f3d03bc38a3a ("LU-14430 mdd: fix inheritance of big default ACLs")
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Change-Id: I8c0665ba693c60506812926a8372b61095d08f78
Reviewed-on: https://review.whamcloud.com/41775
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdd/mdd_dir.c