All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] common/attr: _acl_get_max echo 532 for f2fs
@ 2022-01-30  9:28 Sun Ke
  2022-01-30 15:07 ` Chao Yu
  0 siblings, 1 reply; 7+ messages in thread
From: Sun Ke @ 2022-01-30  9:28 UTC (permalink / raw)
  To: fstests, guan; +Cc: chao, sunke32

Run generic/026 on f2fs, the diff:

    -chacl: cannot set access acl on "largeaclfile": Argument list too long
    +Wrong ACL count - 532 != 531

The ACL_MAX_ENTRIES depend on MAX_VALUE_LEN(inode), MAX_VALUE_LEN(inode) I got
by printk is 4244, so I think the ACL_MAX_ENTRIES should be
(4244 - 20) / 8 + 4 =532.

Signed-off-by: Sun Ke <sunke32@huawei.com>
---
 common/attr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/attr b/common/attr
index 35682d7c..56ac5cca 100644
--- a/common/attr
+++ b/common/attr
@@ -28,7 +28,7 @@ _acl_get_max()
 	f2fs)
 		_fs_options $TEST_DEV | grep "inline_xattr" >/dev/null 2>&1
 		if [ $? -eq 0 ]; then
-			echo 531
+			echo 532
 		else
 			echo 506
 		fi
-- 
2.13.6


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-02-07 15:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-30  9:28 [PATCH] common/attr: _acl_get_max echo 532 for f2fs Sun Ke
2022-01-30 15:07 ` Chao Yu
2022-02-01 17:53   ` Eric Biggers
2022-02-03 14:30     ` [f2fs-dev] " Chao Yu
2022-02-03 14:30       ` Chao Yu
2022-02-07  3:07   ` Sun Ke
2022-02-07 15:46     ` Chao Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.