* [PATCH] libext2fs: initialize large inodes for journal & resize
@ 2009-06-17 2:50 Eric Sandeen
2009-06-17 23:52 ` Theodore Tso
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2009-06-17 2:50 UTC (permalink / raw)
To: ext4 development
I noticed that neither the journal nor resize inodes have
i_extra_isize set post-mkfs; while this isn't likely
to be a big problem, I think the below patch tidies
it up.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/lib/ext2fs/mkjournal.c b/lib/ext2fs/mkjournal.c
index f5a9dba..412f50b 100644
--- a/lib/ext2fs/mkjournal.c
+++ b/lib/ext2fs/mkjournal.c
@@ -354,7 +354,7 @@ static errcode_t write_journal_inode(ext2_filsys fs, ext2_ino_t journal_ino,
inode.i_links_count = 1;
inode.i_mode = LINUX_S_IFREG | 0600;
- if ((retval = ext2fs_write_inode(fs, journal_ino, &inode)))
+ if ((retval = ext2fs_write_new_inode(fs, journal_ino, &inode)))
goto errout;
retval = 0;
diff --git a/lib/ext2fs/res_gdt.c b/lib/ext2fs/res_gdt.c
index dda7c2b..62b5988 100644
--- a/lib/ext2fs/res_gdt.c
+++ b/lib/ext2fs/res_gdt.c
@@ -208,7 +208,7 @@ out_inode:
#endif
if (inode_dirty) {
inode.i_atime = inode.i_mtime = fs->now ? fs->now : time(0);
- retval2 = ext2fs_write_inode(fs, EXT2_RESIZE_INO, &inode);
+ retval2 = ext2fs_write_new_inode(fs, EXT2_RESIZE_INO, &inode);
if (!retval)
retval = retval2;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libext2fs: initialize large inodes for journal & resize
2009-06-17 2:50 [PATCH] libext2fs: initialize large inodes for journal & resize Eric Sandeen
@ 2009-06-17 23:52 ` Theodore Tso
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2009-06-17 23:52 UTC (permalink / raw)
To: Eric Sandeen; +Cc: ext4 development
On Tue, Jun 16, 2009 at 09:50:53PM -0500, Eric Sandeen wrote:
> I noticed that neither the journal nor resize inodes have
> i_extra_isize set post-mkfs; while this isn't likely
> to be a big problem, I think the below patch tidies
> it up.
>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Thanks, I've taken this patch into e2fsprogs's maint branch.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-17 23:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-17 2:50 [PATCH] libext2fs: initialize large inodes for journal & resize Eric Sandeen
2009-06-17 23:52 ` Theodore Tso
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).