From: Eric Sandeen <sandeen@redhat.com>
To: number9652 <number9652@yahoo.com>
Cc: Theodore Tso <tytso@mit.edu>,
ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] libext2fs: write only core inode in update_path()
Date: Wed, 17 Jun 2009 15:43:01 -0500 [thread overview]
Message-ID: <4A395555.2070308@redhat.com> (raw)
In-Reply-To: <494208.86194.qm@web43505.mail.sp1.yahoo.com>
number9652 wrote:
> --- On Wed, 6/17/09, Eric Sandeen wrote:
>> Theodore Tso wrote:
>>> Probably it would be better/simpler to replace this
>> with:
>>> retval =
>> ext2fs_write_inode(handle->fs, handle->ino, handle->inode); - Ted
>>>
>> Sure, that makes more sense, revised below:
>>
>> libext2fs: write only core inode in update_path()
>>
>> The ext2_extent_handle only has a struct ext2_inode allocated on
>> it, and the same amount copied into it in that same function,
>
> First, sorry for the original bug. I don't think the above is the
> right way to fix it, however. I am concerned that I may have
> basically broken write_inode_full on any inode with extents. For
> example, there is another call to write_inode_full in extent.c that
> might exhibit this same problem. I think the right fix would be to
> return to reading the full inode into memory in the extent_open
> function. See the patch below for what I am talking about.
Hm, well, I wondered about that. IMHO having these 2 inode sizes is a
big pain in the butt, and the shuffling back and forth is just asking
for bugs.
If this is the case (that it's broken now), then we really need
something in the regression suite to catch it - all tests pass in 1.41.6
....
-Eric
next prev parent reply other threads:[~2009-06-17 20:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 20:11 [PATCH] libext2fs: write only core inode in update_path() number9652
2009-06-17 20:43 ` Eric Sandeen [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-06-17 21:32 number9652
2009-06-17 21:36 ` Eric Sandeen
2009-06-17 22:46 ` Theodore Tso
2009-06-16 22:38 Something wrong with extent-based journal creation Eric Sandeen
2009-06-17 0:57 ` [PATCH] libext2fs: write only core inode in update_path() Eric Sandeen
2009-06-17 15:35 ` Theodore Tso
2009-06-17 15:50 ` Eric Sandeen
2009-06-17 22:50 ` Theodore Tso
2009-06-17 23:00 ` Eric Sandeen
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=4A395555.2070308@redhat.com \
--to=sandeen@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=number9652@yahoo.com \
--cc=tytso@mit.edu \
/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).