summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-01-18 01:44:19 +0000
committerTheodore Ts'o <tytso@mit.edu>2001-01-18 01:44:19 +0000
commit020888625fb8f6d5293e67da95ae18c0af45aead (patch)
treea3b20a57ee1bea4d478028382449e6371cb1d60b /lib
parent16ed5b3af43c72f60991222b9d7ab65cf53f203d (diff)
downloade2fsprogs-020888625fb8f6d5293e67da95ae18c0af45aead.tar.gz
ChangeLog, mkjournal.c:
mkjournal.c (ext2fs_add_journal_device): Fix bug where the device number of the filesystem (instead of the journal) was being dropped into s_journal_dev. ChangeLog, dumpe2fs.c: dumpe2fs.c (print_journal_information): Use s_first_data_block to find the correct block to read the journal superblock.
Diffstat (limited to 'lib')
-rw-r--r--lib/ext2fs/ChangeLog6
-rw-r--r--lib/ext2fs/mkjournal.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog
index 0a0c4982..886f73ab 100644
--- a/lib/ext2fs/ChangeLog
+++ b/lib/ext2fs/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-17 Theodore Ts'o <tytso@valinux.com>
+
+ * mkjournal.c (ext2fs_add_journal_device): Fix bug where the
+ device number of the filesystem (instead of the journal)
+ was being dropped into s_journal_dev.
+
2001-01-15 Theodore Ts'o <tytso@valinux.com>
* initialize.c (ext2fs_initialize): Add support for initializing
diff --git a/lib/ext2fs/mkjournal.c b/lib/ext2fs/mkjournal.c
index 73b4b029..52b7998d 100644
--- a/lib/ext2fs/mkjournal.c
+++ b/lib/ext2fs/mkjournal.c
@@ -255,7 +255,7 @@ errcode_t ext2fs_add_journal_device(ext2_filsys fs, ext2_filsys journal_dev)
__u32 nr_users;
/* Make sure the device exists and is a block device */
- if (stat(fs->device_name, &st) < 0)
+ if (stat(journal_dev->device_name, &st) < 0)
return errno;
if (!S_ISBLK(st.st_mode))