1 diff -ur util-linux-2.12q.org/disk-utils/fsck.cramfs.c util-linux-2.12q/disk-utils/fsck.cramfs.c
2 --- util-linux-2.12q.org/disk-utils/fsck.cramfs.c 2004-12-11 15:53:16.000000000 +0100
3 +++ util-linux-2.12q/disk-utils/fsck.cramfs.c 2005-02-27 20:03:09.000000000 +0100
9 #define PAGE_CACHE_SIZE ((int) PAGE_SIZE)
10 -#elif defined __ia64__
11 -#define PAGE_CACHE_SIZE (16384)
12 -#elif defined __alpha__
13 -#define PAGE_CACHE_SIZE (8192)
15 -#define PAGE_CACHE_SIZE (4096)
18 /* Guarantee access to at least 8kB at a time */
19 #define ROMBUFFER_BITS 13
21 static unsigned long read_buffer_block = ~0UL;
23 /* Uncompressing data structures... */
24 -static char outbuffer[PAGE_CACHE_SIZE*2];
25 +static char *outbuffer;
28 #endif /* INCLUDE_FS_TESTS */
30 +static void init_statics(void)
32 +#ifdef INCLUDE_FS_TESTS
33 + if ((outbuffer = malloc (PAGE_CACHE_SIZE*2)) == NULL) {
34 + fprintf (stderr, _("Cannot allocate space for decompression buffer\n"));
40 /* Input status of 0 to print help and exit without an error. */
41 static void usage(int status)
44 int c; /* for getopt */