]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/attr: adbjust acl_max of f2fs
authorSun Ke <sunke32@huawei.com>
Tue, 8 Feb 2022 07:16:24 +0000 (15:16 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 20 Feb 2022 16:01:07 +0000 (00:01 +0800)
commiteb564a21879912c842a522aedef0fac6d922a467
tree0f0d5fb98a4bcb19ae9f023d8726a71137af9a8d
parent11342071e1054c65a28d32f3c6ab63c4bd6ef5a6
common/attr: adbjust acl_max of f2fs

f2fs has set inline_xattr as a default option, and introduced a new
option named 'noinline_xattr' for disabling default inline_xattr
option.  So in _acl_get_max we need to check 'noinline_xattr' string
in fs option, otherwise we may select the wrong max acl number since
we always found the string 'inline_xattr' in fs option.

Additionally, f2fs has changed disk layout of xattr block a bit, so
will contain one more entry in both inline and noinline xattr inode,
this patch will modify the max acl number to adjust it.

Suggested-by: Chao Yu <chao@kernel.org>
Signed-off-by: Sun Ke <sunke32@huawei.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/attr