mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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: 9f7bf79d0c ("attr: add maximum acl count for f2fs")
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
3e026f5937
commit
829b475f54
+6
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user