From: Theodore Ts'o Date: Fri, 27 Jul 2001 19:35:21 +0000 (-0400) Subject: mkjournal.c (ext2fs_add_journal_device): Use the correct block X-Git-Tag: E2FSPROGS-1_23-WIP-0727~10 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f35e6440ef09dca989d98213c1be62efd1ee183a;p=tools%2Fe2fsprogs.git mkjournal.c (ext2fs_add_journal_device): Use the correct block when writing the journal superblock, too. (Oops! Needed to make 1k filesystems with external journal to work.) --- diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index 660c279..6ff0166 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -1,3 +1,9 @@ +2001-07-27 Theodore Tso + + * mkjournal.c (ext2fs_add_journal_device): Use the correct block + when writing the journal superblock, too. (Oops! Needed + to make 1k filesystems with external journal to work.) + 2001-07-26 Theodore Tso * mkjournal.c (ext2fs_add_journal_device): Use the correct block diff --git a/lib/ext2fs/mkjournal.c b/lib/ext2fs/mkjournal.c index ada11a6..c848e94 100644 --- a/lib/ext2fs/mkjournal.c +++ b/lib/ext2fs/mkjournal.c @@ -289,7 +289,7 @@ errcode_t ext2fs_add_journal_device(ext2_filsys fs, ext2_filsys journal_dev) } /* Writeback the journal superblock */ - if ((retval = io_channel_write_blk(journal_dev->io, 1, -1024, buf))) + if ((retval = io_channel_write_blk(journal_dev->io, start, -1024, buf))) return retval; fs->super->s_journal_inum = 0;