[PATCH] common/attr: _acl_get_max echo 532 for f2fs

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



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@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux