[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131204032757.GB11238@gmail.com>
Date: Wed, 4 Dec 2013 11:27:57 +0800
From: Zheng Liu <gnehzuil.liu@...il.com>
To: "Darrick J. Wong" <darrick.wong@...cle.com>
Cc: linux-ext4@...r.kernel.org, Theodore Ts'o <tytso@....edu>,
Zheng Liu <wenqing.lz@...bao.com>
Subject: Re: [PATCH v2 19/28] mke2fs: add inline_data support in mke2fs
On Tue, Dec 03, 2013 at 02:30:26PM -0800, Darrick J. Wong wrote:
[...]
> > + * notify users that inline data will never be useful.
> > + */
> > + if ((fs_param.s_feature_incompat &
> > + EXT4_FEATURE_INCOMPAT_INLINE_DATA) &&
> > + inode_size == EXT2_GOOD_OLD_INODE_SIZE) {
>
> Perhaps I'm missing something here, but why is it impossible to use i_blocks
> for inline data even if there's no space for EAs?
If I understand correctly, on kernel side, we determine an inode has
inline data according to whether we have 'system.data' xattr entry on
inode extended attribute space. If an inode doesn't have enough space
to store an entry with 'system.data', we just think this inode doesn't
has inline data. So that is why I add this sanity check.
Regards,
- Zheng
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists