Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/4] package/mke2img: use mkfs to generate rootfs image
Date: Fri, 24 Mar 2017 23:04:51 +0100	[thread overview]
Message-ID: <20170324230451.722ab8c0@free-electrons.com> (raw)
In-Reply-To: <ec6c517a-18a2-e6c3-a35e-4c794dad7aaa@mind.be>

Hello,

On Fri, 24 Mar 2017 22:58:11 +0100, Arnout Vandecappelle wrote:

> > -    # Remove count- and time-based checks, they are not welcome
> > -    # on embedded devices, where they can cause serious boot-time
> > -    # issues by tremendously slowing down the boot.
> > -    tune2fs -c 0 -i 0 "${image}"
> > +    # Generate the filesystem
> > +    mkfs_opts+=( -d "${root_dir}" -N ${nb_inodes} -T small -F )  
> 
>  I have a small preference to specify the options explicitly instead of -T small
> (i.e. -b 1024 -I 128).

What do we force a block size of 1 KB ? 1 KB is really a terrible
choice for most filesystem sizes in nowadays storage devices, and 4 KB
is often much more appropriate.

mkfs.ext234 is capable of selecting a good block size automatically, so
why should we force a block size here?

See:

      -b block-size
              Specify  the  size  of blocks in bytes.  Valid block-size values
              are 1024, 2048 and 4096 bytes per block.  If omitted, block-size
              is  heuristically  determined  by  the  filesystem  size and the
              expected usage of the filesystem (see the -T option).

So I would not set -T small, and I would not pass any -b or -I option.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2017-03-24 22:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-24 16:20 [Buildroot] [PATCH 1/4] fs/ext2: Remove support for auto-calculation of rootfs size Sébastien Szymanski
2017-03-24 16:20 ` [Buildroot] [PATCH 2/4] package/mke2img: use mkfs to generate rootfs image Sébastien Szymanski
2017-03-24 21:58   ` Arnout Vandecappelle
2017-03-24 22:04     ` Thomas Petazzoni [this message]
2017-03-30  7:54     ` Sébastien Szymanski
2017-03-30 16:47       ` Arnout Vandecappelle
2017-03-24 16:20 ` [Buildroot] [PATCH 3/4] package/mke2img: remove unused package Sébastien Szymanski
2017-03-30 20:27   ` Arnout Vandecappelle
2017-03-24 16:20 ` [Buildroot] [PATCH 4/4] fs/ext2: Make filesystem size a string Sébastien Szymanski
2017-03-30 20:47   ` Arnout Vandecappelle
2017-03-24 21:35 ` [Buildroot] [PATCH 1/4] fs/ext2: Remove support for auto-calculation of rootfs size Arnout Vandecappelle
2017-03-25 13:43 ` Thomas Petazzoni

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=20170324230451.722ab8c0@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.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