linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ted Ts'o <tytso@mit.edu>
To: Eric Sandeen <sandeen@redhat.com>
Cc: ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] resize2fs: do not clear resize inode for 0 resvd blocks
Date: Wed, 22 Dec 2010 13:55:01 -0500	[thread overview]
Message-ID: <20101222185501.GA30115@thunk.org> (raw)
In-Reply-To: <4D111CD5.2040800@redhat.com>

On Tue, Dec 21, 2010 at 03:32:05PM -0600, Eric Sandeen wrote:
> I ran into odd behavior where mkfs.ext4 of a 16T filesystem would
> create a resize inode with 0 reserved blocks, and mark the resize_inode
> feature.
> 
> A subsequent slight downward resize of the filesystem would remove
> the resize inode, making any further offline resizing impossible.
> 
> This is especially odd in light of the fact that a large downward
> resize (say, to 8T) will actually add blocks to the resize inode -
> so a small resize removes it, a large resize expands it ...
> 
> commit 8ade268cf2fde8629b51bfd1c044a83db88234cd had added this:
> 
>   If the filesystem is grown to the point where the resize_inode is no
>   longer needed, clean it up properly so e2fsck doesn't have to.
> 
> but, it seems e2fsck does not care about this situation, either.
> 
> So, simply leave the resize_inode intact in this case, and everything
> seems to be happy.
> 
> Note, this is for the 1.41.xx branch.
> 
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>

Thanks, applied.

						- Ted



      reply	other threads:[~2010-12-22 18:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 21:32 [PATCH] resize2fs: do not clear resize inode for 0 resvd blocks Eric Sandeen
2010-12-22 18:55 ` Ted Ts'o [this message]

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=20101222185501.GA30115@thunk.org \
    --to=tytso@mit.edu \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sandeen@redhat.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).