Re: [PATCH] cramfs big-endian kernel patch

H. Peter Anvin (hpa@zytor.com)
Mon, 25 Feb 2002 17:25:30 -0800


In article <15482.53400.786310.950430@sodium.transmeta.com> of
linux.dev.kernel, you write:
>
> +Currently, cramfs can be read only by kernels with PAGE_CACHE_SIZE ==
> +4096. This is a bug, but it hasn't been decided what the best fix is.
> +For the moment if you have larger pages you can just change the
> +#define in mkcramfs.c, so long as you don't mind the filesystem
> +becoming unreadable to future kernels.
>

For the binary format to be compatible, there is only one solution: if
PAGE_CACHE_SIZE > 4096, you decompress more than one cramfs chunk into
the same page.

If the binary format can change, then you could implement the same
solution used in zisofs.

FWIW, currently on Linux I believe:

4096 <= PAGE_CACHE_SIZE <= 32768

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/