Re: 2.4 odd behaviour of ramdisk + cramfs

From: Remco van Mook
Date: Thu Nov 13 2003 - 12:19:58 EST



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@xxxxxxxx)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/