lkml.org 
[lkml]   [2002]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectcramfs + initrd bug in 2.4.15
[Please CC all replies]

Hi,

I just found a small bug in the way ramdisks work - it was introduced
sometime between 2.4.10 and 2.4.15. I haven't yet been able to try 2.4.17,
but I didn't see anything too evident in the patch/changelog.

Basically, if you use a filesystem with a blocksize that is not BLOCK_SIZE
then when the filesystem super block is loaded set_blocksize will be
called which will call kill_bdev which calls truncate_inode_pages on the
rd mapping - that ends up destroying the ramdisk.

I found this while using cramfs as an initrd, a hackish work around in my
case is to change the default block size of the ramdisk - I'm not sure
what the real fix should be.

Hope this helps,
Jason

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