linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Shishkin <alexander.shishckin@gmail.com>
To: linux-ext4@vger.kernel.org
Subject: [Q] ext3 mkfs: zeroing journal blocks
Date: Mon, 11 May 2009 18:03:13 +0300	[thread overview]
Message-ID: <71a0d6ff0905110803t1a6b34ccq91d5494f95fe1f34@mail.gmail.com> (raw)

Hi,

Here's a question regarding ext3, jbd and mkfs. I'm not 100% confident
this is the right
list, got it from MAINTAINERS for ext3 and jbd. Please correct me if
this is wrong.

As far as I could tell from brief looking at jbd code, it seemed to me
that the only thing
that has to be reset during the filesystem creation time is journal
superblock (talking
about the default case when journal resides within an ext3 partition).
However, currently
mke2fs -j would zero every journal block no matter what. So, the
question is: can this
zeroing really be avoided in mkfs?
I tried commenting-out ext2fs_zero_block() in mkjournal_proc() and it
seems to speed
up mkfs a great deal while the kernel is still able to mount the
partition afterwards. Also,
for the sake of experiment, I filled the partition with urandom's
contents before doing
the modified mkfs and it still works. My next step in this direction
would be to go
through jbd code, but before doing that, I thought, I'd ask here.

Please CC me in replies as I'm not (yet) subscribed.

Regards,
-- 
Alex

             reply	other threads:[~2009-05-11 15:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-11 15:03 Alexander Shishkin [this message]
2009-05-11 17:58 ` [Q] ext3 mkfs: zeroing journal blocks Eric Sandeen
2009-05-11 18:20   ` Andreas Dilger
2009-05-11 18:44     ` Eric Sandeen
2009-05-11 19:35       ` Theodore Tso
2009-05-11 19:35       ` Andreas Dilger
2009-05-12 11:55       ` Alexander Shishkin
2009-05-12 12:13         ` Theodore Tso
2009-05-12 12:49           ` Alexander Shishkin
2009-05-12 21:04             ` Theodore Tso
2009-07-29 15:58             ` [PATCH] [RFC] mkjournal: zero journal blocks only when necessary Alexander Shishkin
2009-07-29 17:16               ` Theodore Tso

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=71a0d6ff0905110803t1a6b34ccq91d5494f95fe1f34@mail.gmail.com \
    --to=alexander.shishckin@gmail.com \
    --cc=linux-ext4@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 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).