linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Theodore Y. Ts'o" <tytso@mit.edu>
To: "Gaoming (ming, consumer BG)" <gaoming20@huawei.com>
Cc: "linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Liqingchao (sorp)" <sorp.liqingchao@huawei.com>,
	"Shenchen (harry)" <harry.shen@huawei.com>,
	"miaoxie (A)" <miaoxie@huawei.com>,
	"yangfei (D)" <yangfei39@huawei.com>,
	"Renlipeng (OS driver)" <renlipeng@huawei.com>
Subject: Re: 答复: 答复: 答复: [PATCH] ext4: e2fsprogs: fix inode bitmap num not integer,incompatible for ancient android devices
Date: Fri, 29 Jun 2018 10:26:12 -0400	[thread overview]
Message-ID: <20180629142612.GE1231@thunk.org> (raw)
In-Reply-To: <FDC91B229D965C458E3615E98C48ADDD0EC4179B@dggemm511-mbx.china.huawei.com>

On Fri, Jun 29, 2018 at 02:06:03AM +0000, Gaoming (ming, consumer BG) wrote:
> We use usual inode size, it is 256 bytes.
> 
> Yes, this commit is in my repository.
> But there is a bug in this patch.
> 
> Let me show you,
> Here is the bug: " return ALIGN(inodes, (info.block_size / info.inode_size));"
> 
> In my reproduce,
> info.block_size = 1024, (it is legal)
> info.inode_size =256,

But why are you using a block size of 1024?  It's legal, but in
general, it's a bad idea (often will hurt performance, will impose
additional scalability limitations, etc.)....  It's certainly not
the default.

A block size of 1024 is also incompatible with file-based encryption
(FBE), which is required for a number of Android features.  Support
for FBE is strongly required, and it wouldn't surprise me if it
becomes an mandatory requirement at some point in the future.

How long have you been using a block size of 1024, and why?

> But in real scenario, we should align by 8,( 8 bit per bytes in inode map).

Yes, and that's why mke2fs does.  make_ext4fs was an Android specific
abomination, that I've been pushing hard for Android to rid itself of.
This is not the only thing it's gotten wrong in the past, and I've had
to help Android developers deal with data corrupting bugs caused by
the fact that way back when, Android had a GPL-in-userspace allergy.

						- Ted

  reply	other threads:[~2018-06-29 14:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-26 11:54 [PATCH] ext4: e2fsprogs: fix inode bitmap num not integer,incompatible for ancient android devices GaoMing
2018-06-27 14:09 ` Theodore Y. Ts'o
2018-06-28  1:40   ` 答复: " Gaoming (ming, consumer BG)
2018-06-28  2:29     ` Theodore Y. Ts'o
2018-06-28  7:56       ` 答复: " Gaoming (ming, consumer BG)
2018-06-28 15:30         ` Theodore Y. Ts'o
2018-06-29  2:06           ` 答复: " Gaoming (ming, consumer BG)
2018-06-29 14:26             ` Theodore Y. Ts'o [this message]
2018-06-30  1:26               ` 答复: " Gaoming (ming, consumer BG)
2018-06-30 13:04                 ` Theodore Y. Ts'o
2018-07-02  9:34                   ` 答复: " Gaoming (ming, consumer BG)
2018-07-02 12:16                     ` Theodore Y. Ts'o
2018-07-03  0:58                       ` 答复: " Gaoming (ming, consumer BG)
2018-07-03 10:35                         ` Theodore Y. Ts'o
2018-07-03 11:15                           ` 答复: " Gaoming (ming, consumer BG)
2018-07-03 16:03                             ` Theodore Y. Ts'o
2018-07-04  1:54                               ` 答复: " Gaoming (ming, consumer BG)

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=20180629142612.GE1231@thunk.org \
    --to=tytso@mit.edu \
    --cc=gaoming20@huawei.com \
    --cc=harry.shen@huawei.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miaoxie@huawei.com \
    --cc=renlipeng@huawei.com \
    --cc=sorp.liqingchao@huawei.com \
    --cc=yangfei39@huawei.com \
    /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;
as well as URLs for NNTP newsgroup(s).