From: Santiago Garcia Mantinan <manty@manty.net>
To: linux-kernel@vger.kernel.org
Subject: cramfs as initrd still fails in 2.4.27-pre2 [PATCH]
Date: Fri, 14 May 2004 15:29:55 +0200 [thread overview]
Message-ID: <20040514132955.GA6190@man.manty.net> (raw)
Hi!
I've been trying to use the cramfs to hold my initrd images and it works ok
in 2.6.6, but when testing it in 2.4.26 or 2.4.27rc2 I get this problem:
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 2128 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 2128k freed
cramfs: wrong magic
In Debian official kernel packages cramfs is being used as the initrd, so I
had a look at Debian's kernel patches and extracted this one that makes
initrd work for me in 2.4.26 and 2.4.27-pre2:
diff -urN kernel-source-2.4.26/fs/block_dev.c kernel-source-2.4.26-1/fs/block_dev.c
--- kernel-source-2.4.26/fs/block_dev.c 2003-06-14 00:51:37.000000000 +1000
+++ kernel-source-2.4.26-1/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;
}
I think this patch or some other fix should be applied.
Regards...
--
Manty/BestiaTester -> http://manty.net
next reply other threads:[~2004-05-14 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-14 13:29 Santiago Garcia Mantinan [this message]
2004-05-14 13:43 ` viro
2004-05-17 14:00 ` Jeremy Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040514132955.GA6190@man.manty.net \
--to=manty@manty.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®