public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Ratchov <alexandre.ratchov@bull.net>
To: Andreas Dilger <adilger@clusterfs.com>
Cc: Alexandre Ratchov <alexandre.ratchov@bull.net>,
	linux-ext4@vger.kernel.org,
	Jean-Pierre Dion <jean-pierre.dion@bull.net>
Subject: Re: [patch] 48bit extents in e2fsprogs
Date: Fri, 15 Sep 2006 20:11:00 +0200	[thread overview]
Message-ID: <20060915181100.GA29801@moule.localdomain> (raw)
In-Reply-To: <20060915165743.GH6441@schatzie.adilger.int>

On Fri, Sep 15, 2006 at 10:57:43AM -0600, Andreas Dilger wrote:
> On Sep 15, 2006  14:05 +0200, Alexandre Ratchov wrote:
> > here is a patch that fixes 48bit extents in e2fsprogs. Basically, it wraps
> > acces to 48bit filds of extent indexes and leaves in macros, so 32bit fields
> > are no more (mis)used, see EXT3_EE_START and EXT3_EI_LEAF macros definitions.
> 
> This looks mostly good...  Some minor comments.
> - please wrap lines at 80 columns
> - the check for ee_start_hi and ei_leaf_hi fields (PR_1_EXTENT_HI) needs to
>   be fixed (I don't see it changed here) so that it considers that an error
>   only if INCOMPAT_64BIT flag is set and the filesystem is > 2^32 blocks.
>   That is in e2fsck_ext_block_verify()
> - (FYI) In my definition of PR_1_EXTENT_HI I recently added the PR_PREEN_NOMSG
>   flag because users were confused about the "High 16 bits of extent/index
>   block set" message even though it is harmless for 32-bit filesystems.

just to be sure to get it right: we allow 32bit file-systems to have extents
with _hi bits set, right? (and *_hi are ignored)

so we can't simply assume that extents are always 48bit, in which case it
would be enough to just check that they are inside the block group (that
would detect extents with *_hi set as corrupt).

> - In my patch (due to Ted's upstream repository changes) I've renamed
>   everything to be ext4_* and EXT4_*.  Ted renamed EXT3_EXTENTS_FL to be
>   EXT4_EXTENTS_FL, and I'm guessing he'll do the same with the rest...
> 
> >  	if (ix) {
> > -		/* FIXME: 48-bit support */
> >  		if (ex->ee_block < ix->ei_block)
> 
> My bad...
> 
> > @@ -298,15 +294,16 @@ int block_iterate_extents(struct ext3_ex
> >  			}
> > -			ctx->errcode = ext2fs_read_ext_block(ctx->fs,
> > -							     ix->ei_leaf,
> > -							     block_buf);
> > +			ctx->errcode = ext2fs_read_ext_block(
> > +				ctx->fs, EXT3_EI_LEAF(ix), block_buf);
> 
> I think the original code is more consistent with the e2fsprogs coding style.
> 
> As always, many thanks for the good work.
> 
> Can you also please change your patch series NOT to add s_*_count_hi in
> the wrong place in 16-blk-64bit, and then change it back in 64bit-fixsb?
> That is very dangerous if the patch series is partially used and just
> adds confusion when reviewing the patches.
> 
> Also, the same 16-blk-64bit patch uses EXT2_FEATURE_RO_COMPAT_64BIT, but
> later this is changed in 20-blk-64bit-compat to be INCOMPAT_64BIT.  I
> suspect Ted will want to call this EXT4_FEATURE_INCOMPAT_64BIT in the end
> (maybe he can comment on what the preferred names are for all the new flags).
>
> Can you please fix this in the original patches instead of adding a later
> patch that fixes the previous patches?
> 

yes of course; i'll try take the latest e2fsprogs (-wip) and update all my
patches following your suggestions... clean-up, re-ording, coding style,
naming, etc.

thanks for your comments, they are very helpful for me

-- Alexandre

  reply	other threads:[~2006-09-15 18:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-15 12:05 [patch] 48bit extents in e2fsprogs Alexandre Ratchov
2006-09-15 16:57 ` Andreas Dilger
2006-09-15 18:11   ` Alexandre Ratchov [this message]
2006-09-16 18:16     ` Andreas Dilger

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=20060915181100.GA29801@moule.localdomain \
    --to=alexandre.ratchov@bull.net \
    --cc=adilger@clusterfs.com \
    --cc=jean-pierre.dion@bull.net \
    --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