From: Jaegeuk Kim Date: Tue, 5 Apr 2016 01:48:46 +0000 (+1000) Subject: attr: adjust acl_max of f2fs if inline_xattr is set X-Git-Tag: v2022.05.01~2543 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=829b475f541580e9dd17da0023b9db67263753c4;p=users%2Fhch%2Fxfstests-dev.git attr: adjust acl_max of f2fs if inline_xattr is set If f2fs gets inline_xattr, it enlarges the whole xattr space, which also enables to cover more acl entries up to 531 from 506. This patch detects the mount option, inline_xattr, and changes the result of _acl_get_max for generic/026. Fixes: 9f7bf79d0c34 ("attr: add maximum acl count for f2fs") Signed-off-by: Jaegeuk Kim Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/common/attr b/common/attr index 0efc26d27..ce2d76a9f 100644 --- a/common/attr +++ b/common/attr @@ -43,7 +43,12 @@ _acl_get_max() echo 8191 ;; f2fs) - echo 506 + _fs_options $TEST_DEV | grep "inline_xattr" >/dev/null 2>&1 + if [ $? -eq 0 ]; then + echo 531 + else + echo 506 + fi ;; *) echo 0