aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cramfs_fs.h
diff options
context:
space:
mode:
authorAndi Drebes <lists-receive@programmierforen.de>2007-10-17 02:27:12 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:53 -0400
commitac8d35c5658377c280dc830352f66233e2f76f73 (patch)
treebf0f460defa448c4a01c8d3acb6fa1d03c48fc36 /include/linux/cramfs_fs.h
parent7f44c3621a41576d755668c48d0caf894c228fa9 (diff)
cramfs: error message about endianess
The README file in the cramfs subdirectory says: "All data is currently in host-endian format; neither mkcramfs nor the kernel ever do swabbing." If somebody tries to mount a cramfs with the wrong endianess, cramfs only complains about a wrong magic but doesn't inform the user that only the endianess isn't right. The following patch adds an error message to the cramfs sources. If a user tries to mount a cramfs with the wrong endianess using the patched sources, cramfs will display the message "cramfs: wrong endianess". Signed-off-by: Andi Drebes <lists-receive@programmierforen.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cramfs_fs.h')
-rw-r--r--include/linux/cramfs_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cramfs_fs.h b/include/linux/cramfs_fs.h
index 1dba681e428d..3be4e5a27d82 100644
--- a/include/linux/cramfs_fs.h
+++ b/include/linux/cramfs_fs.h
@@ -4,6 +4,7 @@
4#include <linux/types.h> 4#include <linux/types.h>
5 5
6#define CRAMFS_MAGIC 0x28cd3d45 /* some random number */ 6#define CRAMFS_MAGIC 0x28cd3d45 /* some random number */
7#define CRAMFS_MAGIC_WEND 0x453dcd28 /* magic number with the wrong endianess */
7#define CRAMFS_SIGNATURE "Compressed ROMFS" 8#define CRAMFS_SIGNATURE "Compressed ROMFS"
8 9
9/* 10/*