public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] attr: adjust acl_max of f2fs if inline_xattr is set
@ 2016-03-30 23:58 Jaegeuk Kim
  0 siblings, 0 replies; only message in thread
From: Jaegeuk Kim @ 2016-03-30 23:58 UTC (permalink / raw)
  To: fstests, linux-f2fs-devel; +Cc: Jaegeuk Kim

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: 9f7bf79d0c34 ("attr: add maximum acl count for f2fs")
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 common/attr | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/common/attr b/common/attr
index 0efc26d..ce2d76a 100644
--- a/common/attr
+++ b/common/attr
@@ -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
-- 
2.6.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-31  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-30 23:58 [PATCH] attr: adjust acl_max of f2fs if inline_xattr is set Jaegeuk Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox