[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fstests
Subject:    [PATCH] attr: adbjust acl_max of f2fs
From:       Chao Yu <chao () kernel ! org>
Date:       2017-04-28 13:13:07
Message-ID: 20170428131307.3384-1-chao () kernel ! org
[Download RAW message or body]

From: Chao Yu <yuchao0@huawei.com>

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 'ininline_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.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
 common/attr | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/attr b/common/attr
index ac139e61..6d4f68ed 100644
--- a/common/attr
+++ b/common/attr
@@ -43,11 +43,11 @@ _acl_get_max()
 		echo 8191
 		;;
 	f2fs)
-		_fs_options $TEST_DEV | grep "inline_xattr" >/dev/null 2>&1
+		_fs_options $TEST_DEV | grep "noinline_xattr" >/dev/null 2>&1
 		if [ $? -eq 0 ]; then
-			echo 531
+			echo 507
 		else
-			echo 506
+			echo 532
 		fi
 		;;
 	*)
-- 
2.12.2.575.gb14f27f

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic