All of lore.kernel.org
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: coly <colyli@gmail.com>
Cc: linux-ext4 <linux-ext4@vger.kernel.org>
Subject: Re: confused on different inode size
Date: Mon, 9 Apr 2007 11:26:30 -0400	[thread overview]
Message-ID: <20070409152630.GA30658@thunk.org> (raw)
In-Reply-To: <1176085993.4101.6.camel@colyT43.site>

On Mon, Apr 09, 2007 at 10:33:13AM +0800, coly wrote:
> Theodore:
> 
> Thanks for your replying. 
> 
> Can I understand this way:
> * Though sizeof(struct ext4_inode) is 152, the real inode size on disk
> still depends on mount options.

Not mount options, but how the filesystem is formatted.  So substitute
"mount" with "mke2fs", and that would be correct.

> * If use old inode size, the on disk inode will be 128 bytes.
> * If use new inode size(e.g. extent option in mount), the on disk inode
> will be 256, or more bytes.

s/mount/mke2fs/

And the on-disk inode size is 256, 512, or some greater power of two,
up to the filesystem blocksize.

> * If on disk inode size is 128 bytes, only first 128 bytes of struct
> ext4_inode take effects.

Well, there's no space to store the fields beyond the first 128, so
any features that require the extra inode fields can't be used.

						- Ted

  reply	other threads:[~2007-04-09 15:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-08  6:39 confused on different inode size coly
2007-04-08 17:52 ` Theodore Tso
2007-04-09  2:33   ` coly
2007-04-09 15:26     ` Theodore Tso [this message]
2007-04-09 15:58       ` coly

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=20070409152630.GA30658@thunk.org \
    --to=tytso@mit.edu \
    --cc=colyli@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.