Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | From | Meelis Roos <> | Subject | Re: 2.4 odd behaviour of ramdisk + cramfs | Date | Thu, 13 Nov 2003 18:59:46 +0200 |
| |
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/
| ![\](/images/icornerr.gif) |