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.)
bitmap-optimize
Theodore Ts'o 2001-07-27 15:35:21 -04:00
parent 36131b37d7
commit f35e6440ef
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-07-27 Theodore Tso <tytso@valinux.com>
* 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 <tytso@valinux.com>
* mkjournal.c (ext2fs_add_journal_device): Use the correct block

View File

@ -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;