From: "Theodore Ts'o" <tytso@mit.edu>
To: fstests@vger.kernel.org
Cc: Theodore Ts'o <tytso@mit.edu>
Subject: [PATCH] common/populate: fix S_IFDIR.FMT_BLOCK and ATTR.FMT_LOCAL for ext4 encryption
Date: Tue, 12 Dec 2017 00:19:37 -0500 [thread overview]
Message-ID: <20171212051937.25984-1-tytso@mit.edu> (raw)
When ext4 encryption is enabled, the directory entries are encrypted
so we need to create fewer directory entries to guarantee that they
will all fit in a single block.
Also, the encryption metadata takes up extended attribute room so we
can only add a single xattr to guarantee that the xattrs will fit in
the inode.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
common/populate | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/populate b/common/populate
index b77c5081..07ea7e60 100644
--- a/common/populate
+++ b/common/populate
@@ -343,7 +343,7 @@ _scratch_ext4_populate() {
# - BLOCK
echo "+ block dir"
- __populate_create_dir "${SCRATCH_MNT}/S_IFDIR.FMT_BLOCK" "$((dblksz / 24))"
+ __populate_create_dir "${SCRATCH_MNT}/S_IFDIR.FMT_BLOCK" "$((dblksz / 32))"
# - HTREE
echo "+ htree dir"
@@ -369,7 +369,7 @@ _scratch_ext4_populate() {
# Attribute formats
# LOCAL
echo "+ local attr"
- __populate_create_attr "${SCRATCH_MNT}/ATTR.FMT_LOCAL" 1
+ __populate_create_attr "${SCRATCH_MNT}/ATTR.FMT_LOCAL" 0
# BLOCK
echo "+ block attr"
--
2.11.0.rc0.7.gbe5a750
reply other threads:[~2017-12-12 5:19 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=20171212051937.25984-1-tytso@mit.edu \
--to=tytso@mit.edu \
--cc=fstests@vger.kernel.org \
/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 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.