From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Stancek Date: Wed, 12 May 2021 15:59:09 +0200 Subject: [LTP] [PATCH] mkfs: force block size to 1024 for ext3 and ext4 In-Reply-To: References: <20210510134739.37512-1-cascardo@canonical.com> <20210511103622.GC12149@mussarela> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it On Wed, May 12, 2021 at 3:55 PM Petr Vorel wrote: > > Hi, > > [Cc Jan] > > > Hi! > > > > > /etc/mke2fs.conf will use 1024 block size for small filesystems, which are > > > > > between 3M and 512M. However, on recent versions of Ubuntu, this > > > > > configuration has changed and thet default blocksize is 4096 even for small > > > > > filesystems. > > > > > > Force the blocksize to 1024 on ext3 and ext4 filesystems, which will lead > > > > > to the expected results, as journals will take only 1M. > > > > > IMHO it'd be better to keep the default, because that covers what end users > > > > actually use. > > > > One alternative to forcing the block size is accouting for the journal blocks, > > > but, then, that needs to consider the block size. I think my approach is more > > > simple. We could restrict it to the smaller 16M filesystem, though. > > > > What do you think? > > > I guess that we should merge your fix in order to have the test working > > for the upcomming release. Then we can discuss if this should be fixed > > differently or not. > Acked-by: Petr Vorel Fine by me (I don't have a better idea atm.) > > Kind regards, > Petr >