cramfs: error message about endianess
authorAndi Drebes <lists-receive@programmierforen.de>
Wed, 17 Oct 2007 06:27:12 +0000 (23:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:53 +0000 (08:42 -0700)
commitac8d35c5658377c280dc830352f66233e2f76f73
treebf0f460defa448c4a01c8d3acb6fa1d03c48fc36
parent7f44c3621a41576d755668c48d0caf894c228fa9
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>
fs/cramfs/inode.c
include/linux/cramfs_fs.h