linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: Andreas Dilger <adilger@sun.com>
Cc: ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH, RFC V3] ext4: limit block allocations for	indirect-block files to < 2^32
Date: Thu, 10 Sep 2009 16:16:32 -0500	[thread overview]
Message-ID: <4AA96CB0.3090309@redhat.com> (raw)
In-Reply-To: <20090910211006.GF9372@webber.adilger.int>

Andreas Dilger wrote:
> On Sep 10, 2009  11:02 -0500, Eric Sandeen wrote:
>> This patch limits such allocations to < 232, and adds
>> WARN_ONs (maybe should be BUG_ONs) if we do get blocks
>> larger than that.
> 
> Given that this may corrupt the filesystem (e.g. block
> 2^32 turning into block 0 and overwriting the superblock)
> I think a BUG_ON() is probably more appropriate.  This
> should only happen with software bugs, so it is more
> appropriate than ext4_error() I think.

Ok, fine by me.  I can send an update.

Any suggestions on the naming issues?  (what's the official name for a
"not-extent-based-file?")

I ran it a lot through a mkfs/mount/fsstress/unmount/fsck cycle, and all
seemed well.  mkfs was without extents, so I was thinking we were in
good shape.

However, Ric just ran a massive fs_mark test on a 60T filesystem that he
created with "mke2fs" (no extents and no journal - accidentally) and we
got no corruption even without this patch.

I need to see if a filesystem w/o the extents feature (at all, vs. some
old-format files on an extents fs) never even tries to allocate past
2^32; I didn't think so, but now not so sure.

I probably need to do more testing ...

-Eric

  reply	other threads:[~2009-09-10 21:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-04 22:17 [PATCH, RFC] ext4: limit block allocations for indirect-block files to < 2^32 Eric Sandeen
2009-09-05  3:21 ` [PATCH, RFC V2] " Eric Sandeen
2009-09-05 16:45   ` Andreas Dilger
2009-09-05 18:16     ` Eric Sandeen
2009-09-10 16:02     ` [PATCH, RFC V3] " Eric Sandeen
2009-09-10 16:53       ` Theodore Tso
2009-09-10 16:56         ` Eric Sandeen
2009-09-10 21:10       ` Andreas Dilger
2009-09-10 21:16         ` Eric Sandeen [this message]
2009-09-10 21:33           ` Theodore Tso
2009-09-10 21:42             ` Eric Sandeen
2009-09-10 21:51           ` Andreas Dilger
2009-09-10 21:57             ` Eric Sandeen
2009-09-10 23:19               ` Theodore Tso
2009-09-11 14:15                 ` Eric Sandeen
2009-09-10 22:01             ` Andreas Dilger
2009-09-14 20:03       ` [PATCH, RFC V4] " Eric Sandeen
2009-09-16 18:54         ` 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=4AA96CB0.3090309@redhat.com \
    --to=sandeen@redhat.com \
    --cc=adilger@sun.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).