lkml.org 
[lkml]   [2002]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] cramfs big-endian kernel patch
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.128 / U:0.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site