From: Jaegeuk Kim <jaegeuk@kernel.org>
To: fstests@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Subject: [PATCH] attr: adjust acl_max of f2fs if inline_xattr is set
Date: Wed, 30 Mar 2016 16:58:19 -0700 [thread overview]
Message-ID: <1459382299-71068-1-git-send-email-jaegeuk@kernel.org> (raw)
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
reply other threads:[~2016-03-31 0:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459382299-71068-1-git-send-email-jaegeuk@kernel.org \
--to=jaegeuk@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox