lkml.org 
[lkml]   [2003]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.4 odd behaviour of ramdisk + cramfs

Hello Meelis,

thank you ! This patch works for me.

Does it have any side effects or might I suggest that this one is merged
into the mainstream kernel ?

Cheers,

Remco van Mook

At 18:59 13-11-2003 +0200, Meelis Roos wrote:
>RvM> Running it once causes the mount to fail with 'cramfs: wrong magic' -
>
>Debian kernel has a patch to help cramfs initrd's work. The symptoms
>wothout the patch are very similar. This is the patch, extracted from
>Debian kernel-source package:
>
>diff -urN linux-2.4.22.orig/fs/block_dev.c linux-2.4.22/fs/block_dev.c
>--- linux-2.4.22.orig/fs/block_dev.c 2003-06-01 13:06:32.000000000 +1000
>+++ linux-2.4.22/fs/block_dev.c 2003-06-01 20:43:53.000000000 +1000
>@@ -95,7 +95,7 @@
> sync_buffers(dev, 2);
> blksize_size[MAJOR(dev)][MINOR(dev)] = size;
> bdev->bd_inode->i_blkbits = blksize_bits(size);
>- kill_bdev(bdev);
>+ invalidate_bdev(bdev, 1);
> bdput(bdev);
> return 0;
> }
>
>--
>Meelis Roos (mroos@linux.ee)
>-
>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/

-
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:58    [W:0.036 / U:0.924 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site