summaryrefslogtreecommitdiff
path: root/e2fsck/jfs_user.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-01-02 18:14:42 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-01-02 18:14:42 -0500
commite35d548b59e24af9f7fc18396e8880df96d1bc51 (patch)
treee55f7bac0a6a77a17de3d0e2c362c0142fdbd36a /e2fsck/jfs_user.h
parentdd04d05f702be151d6a7312da2b64147d2751de1 (diff)
downloade2fsprogs-e35d548b59e24af9f7fc18396e8880df96d1bc51.tar.gz
e2fsck: Fix journal replay for block sizes greater than 8k
E2fsck was using a fixed-size 8k buffer for replaying blocks from the journal. So attempts to replay a journal on filesystems greater than 8k would cause e2fsck to crash with a segfault. Thanks to Miao Xie <miaox@cn.fujitsu.com> for reporting this problem. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/jfs_user.h')
-rw-r--r--e2fsck/jfs_user.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsck/jfs_user.h b/e2fsck/jfs_user.h
index 0e4f9518..60cc682b 100644
--- a/e2fsck/jfs_user.h
+++ b/e2fsck/jfs_user.h
@@ -15,7 +15,6 @@
#include "e2fsck.h"
struct buffer_head {
- char b_data[8192];
e2fsck_t b_ctx;
io_channel b_io;
int b_size;
@@ -23,6 +22,7 @@ struct buffer_head {
int b_dirty;
int b_uptodate;
int b_err;
+ char b_data[1024];
};
struct inode {