Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ad8e7a
)
Fix debugfs/logdump.c to compile with configure --disable-swapfs.
author
Stephen Tweedie
<sct@redhat.com>
Thu, 27 Sep 2001 14:48:56 +0000
(15:48 +0100)
committer
Stephen Tweedie
<sct@redhat.com>
Thu, 27 Sep 2001 14:48:56 +0000
(15:48 +0100)
debugfs/logdump.c
patch
|
blob
|
history
diff --git
a/debugfs/logdump.c
b/debugfs/logdump.c
index
a1441b7
..
0102c24
100644
(file)
--- a/
debugfs/logdump.c
+++ b/
debugfs/logdump.c
@@
-332,8
+332,10
@@
static void dump_journal(char *cmdname, FILE *out_file,
jsb = (journal_superblock_t *) buf;
sb = (struct ext2_super_block *) (buf+1024);
+#ifdef ENABLE_SWAPFS
if (sb->s_magic == ext2fs_swab16(EXT2_SUPER_MAGIC))
ext2fs_swap_super(sb);
+#endif
if ((be32_to_cpu(jsb->s_header.h_magic) != JFS_MAGIC_NUMBER) &&
(sb->s_magic == EXT2_SUPER_MAGIC) &&