Whamcloud - gitweb
LU-14430 mdd: don't assert on default ACL big buffer
authorMikhail Pershin <mpershin@whamcloud.com>
Fri, 26 Feb 2021 14:48:36 +0000 (17:48 +0300)
committerLi Xi <lixi@ddn.com>
Mon, 26 Apr 2021 14:17:24 +0000 (14:17 +0000)
commit6175dd10c0dae3e11e12414c0da9c7515dd01346
treec441975a47c619f28907ed68a845ed6483a83b1b
parentb1e1abdcc0323b3bf5144b4494ad11e6f8b834f6
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.

Lustre-commit: b66b530c18c910ded562e279c9db02fcdad42176
Lustre-change: https://review.whamcloud.com/41775

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>
Change-Id: I8c0665ba693c60506812926a8372b61095d08f78
Reviewed-on: https://review.whamcloud.com/42059
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdd/mdd_dir.c