From: Christoph Hellwig on
On Mon, Jul 19, 2010 at 07:16:42PM +0200, Lubomir Rintel wrote:
> A mount-time option was added that makes it possible to override the
> endianness and an attempt is made to autodetect it (which seems easy,
> given the disk addresses are 3-byte.
> No attempt is made to detect big-endian filesystems -- were there any?
> Tested with PDP-11 v7 filesystems and PC-IX maintenance floppy.

Do you actually need the mount option? We get away just fine with
it for sysv filesystems. And if not I'd be consistent and accept the
options for both sysv and v7 filesystems.

> + /* plausibility check on root inode: it is a directory,
> + with a nonzero size that is a multiple of 16 */
> + if ((bh2 = sb_bread(sb, 2)) == NULL) {
> + return 0;
> + }

A little style nitpick, this should be:

bh2 = sb_bread(sb, 2);
if (!bh)
return 0;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at